:root {
    color-scheme: light;
    font-family:
        "Microsoft YaHei",
        "PingFang SC",
        "Segoe UI",
        Arial,
        sans-serif;
    color: #20242b;
    background: #f3f5f7;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    min-width: 720px;
    background: #f3f5f7;
}

.app-shell {
    display: grid;
    grid-template-columns: 244px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    border-right: 1px solid #30353c;
    color: #ffffff;
    background: #24282e;
}

.brand {
    display: flex;
    align-items: center;
    min-height: 76px;
    padding: 16px 20px;
    border-bottom: 1px solid #3a4048;
    gap: 12px;
}

.brand-mark {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 6px;
    color: #ffffff;
    background: #1769aa;
    font-size: 18px;
    font-weight: 700;
}

.brand div {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.brand strong {
    overflow: hidden;
    font-size: 16px;
    font-weight: 650;
    line-height: 22px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand div > span {
    color: #aeb7c2;
    font-size: 12px;
    line-height: 18px;
}

.side-nav {
    padding: 22px 12px;
}

.side-nav h2 {
    margin: 0 10px 10px;
    color: #8f9aa7;
    font-size: 12px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: 0;
}

.side-nav a {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    min-height: 44px;
    margin-bottom: 6px;
    padding: 10px 12px;
    border-radius: 5px;
    color: #e6ebf0;
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
    text-decoration: none;
    gap: 10px;
}

.side-nav a:hover {
    color: #ffffff;
    background: #343a42;
}

.side-nav a.active {
    color: #ffffff;
    background: #1769aa;
}

.side-nav a:focus-visible {
    outline: 2px solid #73b7e8;
    outline-offset: 2px;
}

.nav-mark {
    position: relative;
    display: block;
    width: 16px;
    height: 16px;
}

.notification-mark::before,
.notification-mark::after {
    position: absolute;
    content: "";
}

.notification-mark::before {
    top: 2px;
    left: 2px;
    width: 11px;
    height: 9px;
    border: 1.5px solid currentColor;
    border-radius: 2px;
}

.notification-mark::after {
    bottom: 1px;
    left: 6px;
    width: 5px;
    height: 1.5px;
    background: currentColor;
}

.query-mark {
    border: 1.5px solid currentColor;
    border-radius: 2px;
}

.query-mark::before,
.query-mark::after {
    position: absolute;
    left: 3px;
    width: 8px;
    height: 1.5px;
    background: currentColor;
    content: "";
}

.query-mark::before {
    top: 4px;
    box-shadow: 0 3px 0 currentColor;
}

.query-mark::after {
    top: 10px;
}

.recharge-mark::before {
    position: absolute;
    inset: 1px;
    display: grid;
    place-items: center;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    content: "¥";
    font-size: 9px;
    line-height: 1;
}

.main-content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
}

.top-bar {
    display: flex;
    align-items: center;
    flex: 0 0 56px;
    padding: 0 24px;
    border-bottom: 1px solid #e3e7ec;
    background: #ffffff;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    line-height: 22px;
}

.breadcrumb a {
    color: #8f9aa7;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #1769aa;
}

.breadcrumb-separator {
    color: #c3cad3;
}

.breadcrumb-current {
    color: #20242b;
    font-weight: 600;
}

.content-frame {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
}

.content-frame iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #ffffff;
}

@media (max-width: 760px) {
    body {
        min-width: 0;
    }

    .app-shell {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
    }

    .sidebar {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid #30353c;
    }

    .brand {
        min-height: 64px;
    }

    .side-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 10px 12px 12px;
        gap: 8px;
    }

    .side-nav h2 {
        display: none;
    }

    .side-nav a {
        margin: 0;
    }

    .main-content {
        min-height: calc(100vh - 122px);
    }

    .top-bar {
        flex-basis: 48px;
        padding: 0 16px;
    }

    .content-frame {
        min-height: 0;
    }
}