:root {
    --bg: #f6f9fd;
    --text: #0f172a;
    --muted: #6b7280;
    --brand: #2f7ecb;
    --brand-soft: #dcecff;
    --accent: #4f8fd9;
    --line: #e3eefc;
    --footer: #0b1220;
    --footer-text: #cdd6e1;
    --container-padding: 20px;
    --logo-size-desktop: 110px;
    --logo-size-mobile: 110px;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: #ffffff;
    scrollbar-width: thin;
    scrollbar-color: rgba(47, 126, 203, 0.45) #eef4ff;
}
body::-webkit-scrollbar,
.nav-menu::-webkit-scrollbar {
    width: 8px;
}
body::-webkit-scrollbar-track,
.nav-menu::-webkit-scrollbar-track {
    background: #eef4ff;
}
body::-webkit-scrollbar-thumb,
.nav-menu::-webkit-scrollbar-thumb {
    background: rgba(47, 126, 203, 0.45);
    border-radius: 10px;
    border: 2px solid #eef4ff;
}
body::-webkit-scrollbar-thumb:hover,
.nav-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(47, 126, 203, 0.7);
}
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    grid-template-rows: auto auto auto 1fr auto;
    background: linear-gradient(180deg, #f9fbff 0%, #ffffff 28%, #ffffff 100%);
}
.content {
    flex: 1 0 auto;
}
.content table,
.vip-content table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #dbe7f7;
    margin: 12px 0;
    background: #ffffff;
}
.content th,
.content td,
.vip-content th,
.vip-content td {
    border: 1px solid #dbe7f7;
    padding: 8px 10px;
    font-size: 13px;
    color: #1e3552;
}
.content thead th,
.vip-content thead th {
    background: #f5f9ff;
    color: #223b5a;
    font-weight: 600;
}
.footer {
    margin-top: auto;
}
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    padding: 26px 300px 18px;
    position: relative;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 64px;
    flex: 0 0 auto;
    padding-right: 8px;
    margin-right: auto;
}
.brand-logo {
    width: var(--logo-size-desktop);
    height: var(--logo-size-desktop);
    border-radius: 12px;
    border: none;
    background: transparent;
    object-fit: contain;
    display: block;
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    justify-content: flex-end;
    min-width: 0;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
    color: #223b5a;
    font-weight: 600;
    font-size: 12px;
    flex: 0 0 auto;
    min-width: 0;
    flex-wrap: nowrap;
    white-space: nowrap;
    justify-content: flex-end;
}
.nav-menu li { display: inline-flex; }
.nav-menu a {
    text-decoration: none;
    color: #223b5a;
    padding: 4px 5px;
    border-radius: 8px;
}
.nav-menu a.active {
    background: var(--brand-soft);
    color: #1e3a5f;
}
.nav-menu a:hover {
    background: var(--brand-soft);
    color: #1e3a5f;
}
.top-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.pill-btn {
    border: 1px solid var(--line);
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 11px;
    text-decoration: none;
    color: var(--text);
    background: #ffffff;
    white-space: nowrap;
}
.pill-btn.ghost { background: #f5f8ff; }
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 14px;
    background: #ffffff;
    font-size: 12px;
    color: #223b5a;
    box-shadow: 0 6px 16px rgba(30, 58, 138, 0.08);
}
.menu-toggle span {
    width: 18px;
    height: 2px;
    background: #2f7ecb;
    position: relative;
    display: inline-block;
}
.menu-toggle span::before,
.menu-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: #2f7ecb;
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease;
    z-index: 5;
}
.page.menu-open .menu-overlay {
    opacity: 1;
    pointer-events: auto;
}
.nav-menu .nav-action { display: none; }
.nav-menu .nav-action a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--line);
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 12px;
    background: #ffffff;
    white-space: nowrap;
}
.tagline-band {
    background: #eef5ff;
    border-top: 1px solid #e3edf9;
    border-bottom: 1px solid #e3edf9;
    position: relative;
    overflow: hidden;
}
.tagline {
    text-align: center;
    color: #1f3a5f;
    font-weight: 600;
    padding: 12px 0;
    position: relative;
    z-index: 1;
    animation: taglineBreath 2.6s ease-in-out infinite;
}
.tagline-band::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(47, 126, 203, 0.08), transparent);
    transform: translateX(-100%);
    animation: taglineSweep 6s ease-in-out infinite;
}
@keyframes taglineSweep {
    0%, 65% { transform: translateX(-100%); opacity: 0; }
    75% { opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}
@keyframes taglineBreath {
    0%, 100% { text-shadow: 0 0 0 rgba(47, 126, 203, 0); transform: translateY(0); }
    50% { text-shadow: 0 0 18px rgba(47, 126, 203, 0.55); transform: translateY(-1px); }
}
.ribbon {
    height: 36px;
    background: linear-gradient(90deg, #e9f2ff 0%, #c9e4ff 50%, #e9f2ff 100%);
    border-top: 1px solid #e5effd;
    border-bottom: 1px solid #e5effd;
    box-shadow: inset 0 8px 12px rgba(79, 143, 217, 0.12);
}
.auth-container {
    padding: 60px 0 80px;
    display: flex;
    justify-content: center;
}
.auth-card {
    width: min(720px, 100%);
    background: #ffffff;
    border: 1px solid #e6eef9;
    border-radius: 18px;
    padding: 32px 34px;
    box-shadow: 0 18px 36px rgba(30, 58, 138, 0.08);
}
.auth-head h1 {
    margin: 0 0 8px;
    font-size: 24px;
    color: #102a44;
}
.auth-head p {
    margin: 0 0 18px;
    color: #5a6b7d;
    font-size: 13px;
}
.auth-info {
    margin: -6px 0 16px;
    padding: 10px 12px;
    border: 1px solid #e6eef9;
    border-radius: 12px;
    background: #f9fbff;
    font-size: 12px;
    color: #4b5f75;
    display: grid;
    gap: 4px;
}
.auth-form {
    display: grid;
    gap: 14px;
}
.auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}
.auth-grid-single {
    grid-template-columns: 1fr;
}
.auth-field {
    display: grid;
    gap: 8px;
    font-size: 12px;
    color: #30425a;
}
.auth-field .required {
    color: #e11d48;
    margin-left: 4px;
}
.auth-error {
    font-size: 12px;
    color: #e11d48;
    min-height: 14px;
}
.auth-field-full {
    grid-column: 1 / -1;
}
.auth-field input {
    width: 100%;
    border: 1px solid #e1e9f5;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13px;
    background: #f9fbff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.auth-phone {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 10px;
}
.phone-code {
    border: 1px solid #e1e9f5;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13px;
    background: #f9fbff;
    outline: none;
    width: 100%;
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(47, 126, 203, 0.45) #eef4ff;
}
.phone-code::-webkit-scrollbar {
    width: 8px;
}
.phone-code::-webkit-scrollbar-track {
    background: #eef4ff;
}
.phone-code::-webkit-scrollbar-thumb {
    background: rgba(47, 126, 203, 0.45);
    border-radius: 10px;
    border: 2px solid #eef4ff;
}
.auth-field input:focus {
    border-color: #8db8f1;
    box-shadow: 0 0 0 3px rgba(47, 126, 203, 0.12);
    background: #ffffff;
}
.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.auth-captcha {
    display: flex;
    align-items: center;
    gap: 10px;
}
.auth-captcha .auth-btn {
    white-space: nowrap;
    min-width: 110px;
    padding: 10px 14px;
}
.captcha-box {
    min-width: 110px;
    height: 40px;
    border-radius: 10px;
    background: #eef5ff;
    border: 1px solid #dbe7f7;
    display: grid;
    place-items: center;
    font-weight: 700;
    letter-spacing: 3px;
    color: #2f7ecb;
    user-select: none;
    cursor: pointer;
}
.auth-row-split {
    align-items: flex-end;
}
.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #4b5f75;
}
.auth-btn {
    border: none;
    background: #2f7ecb;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 10px 18px rgba(47, 126, 203, 0.2);
}
.auth-btn.ghost {
    background: #eef5ff;
    color: #2f7ecb;
    border: 1px solid #dbe7f7;
    box-shadow: none;
}
.auth-link {
    color: #2f7ecb;
    text-decoration: none;
    font-size: 12px;
}
.auth-link:hover {
    text-decoration: underline;
}
.auth-hint {
    font-size: 12px;
    color: #8a98ad;
    text-align: center;
}
.auth-foot {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: #5a6b7d;
}
.ui-mask {
    position: fixed;
    inset: 0;
    background: rgba(245, 249, 255, 0.75);
    backdrop-filter: blur(2px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.ui-modal {
    width: min(420px, 90vw);
    background: #ffffff;
    border: 1px solid #e6eef9;
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(30, 58, 138, 0.15);
    padding: 20px 22px;
    text-align: center;
}
.ui-modal h4 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #102a44;
}
.ui-modal p {
    margin: 0 0 16px;
    font-size: 13px;
    color: #4b5f75;
}
.ui-modal .ui-btn {
    border: none;
    background: #2f7ecb;
    color: #fff;
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
}
.ui-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.ui-btn.ghost {
    background: #eef5ff;
    color: #2f7ecb;
}
.footer {
    background: var(--footer);
    color: var(--footer-text);
    padding: 46px 0 44px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 0%, rgba(79, 143, 217, 0.18), transparent 42%),
        radial-gradient(circle at 88% 10%, rgba(47, 126, 203, 0.12), transparent 38%);
    pointer-events: none;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    position: relative;
    z-index: 1;
}
.footer h4 {
    margin: 0 0 14px;
    font-size: 13px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.footer h4::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
}
.footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
    font-size: 12.5px;
}
.footer a {
    color: inherit;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
}
.footer a:hover {
    color: #ffffff;
}
.footer a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.6);
    transition: width 0.25s ease;
}
.footer a:hover::after {
    width: 100%;
}
.footer-grid > div {
    position: relative;
    padding-right: 14px;
}
.footer-grid > div::after {
    content: "";
    position: absolute;
    top: 6px;
    right: 0;
    bottom: 6px;
    width: 1px;
    background: rgba(255, 255, 255, 0.06);
}
.footer-grid > div:last-child {
    padding-right: 0;
}
.footer-grid > div:last-child::after {
    display: none;
}
.footer-meta {
    margin-top: 26px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 12px;
    color: #9aa9bf;
    position: relative;
    z-index: 1;
}
.footer-contact-info {
    margin-top: 14px;
    font-size: 12px;
    color: #9aa9bf;
    line-height: 1.6;
}
.float-buttons {
    position: fixed;
    right: 22px;
    bottom: 24px;
    display: grid;
    gap: 10px;
}
.float-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e5edf8;
    display: grid;
    place-items: center;
    text-decoration: none;
    color: #2f7ecb;
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.12);
}
.cookie-notice {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 22px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e6eef9;
    border-radius: 14px;
    box-shadow: 0 18px 36px rgba(30, 58, 138, 0.12);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 9998;
    backdrop-filter: blur(6px);
}
.cookie-text {
    font-size: 12px;
    color: #3c516b;
}
.cookie-btn {
    border: none;
    background: #2f7ecb;
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 12px;
    white-space: nowrap;
}
@media (max-width: 640px) {
    .cookie-notice {
        left: 12px;
        right: 12px;
        bottom: 12px;
        flex-direction: column;
        align-items: flex-start;
    }
}
@media (max-width: 1024px) {
    .container {
        margin: 0;
        padding: 0 12px;
    }
    .auth-container {
        padding: 40px 0 60px;
    }
    .auth-card {
        width: 100%;
        margin: 0 12px;
    }
    .topbar {
        padding: 18px 16px 12px;
        gap: 12px;
        flex-wrap: nowrap;
    }
    .brand {
        flex: 1 1 auto;
        min-width: 0;
    }
    .brand-logo {
        width: var(--logo-size-mobile);
        height: var(--logo-size-mobile);
    }
    .nav-right {
        flex: 0 0 auto;
        gap: 10px;
    }
    .top-actions { display: none; }
    .menu-toggle { display: inline-flex; }
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        left: 50%;
        right: auto;
        top: calc(100% + 8px);
        width: 100vw;
        transform: translateX(-50%);
        row-gap: 12px;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 0;
        background: #ffffff;
        box-shadow: 0 12px 24px rgba(30, 58, 138, 0.08);
        max-height: 60vh;
        overflow-y: auto;
        z-index: 10;
    }
    .nav-menu.open { display: flex; }
    .nav-menu li, .nav-menu a { width: 100%; }
    .nav-menu a {
        padding: 10px 12px;
        background: #f7f9ff;
    }
    .nav-menu .nav-action { display: inline-flex; }
    .nav-menu .nav-action a {
        background: #ffffff;
        border: 1px solid var(--line);
    }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-grid > div {
        padding-right: 0;
    }
    .footer-grid > div::after {
        display: none;
    }
}
