:root {
    color-scheme: dark;
    --bg: #07101d;
    --bg-soft: #0b1728;
    --surface: rgba(14, 29, 49, .88);
    --surface-solid: #0e1d31;
    --surface-raised: #132641;
    --line: rgba(153, 184, 224, .16);
    --line-strong: rgba(153, 184, 224, .28);
    --text: #f1f6ff;
    --muted: #9db0ca;
    --brand: #62d4ff;
    --brand-strong: #20b9f4;
    --violet: #9c8cff;
    --success: #63e6aa;
    --warning: #ffc76b;
    --danger: #ff8fa3;
    --shadow: 0 24px 70px rgba(0, 0, 0, .24);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 11px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 10% -10%, rgba(32, 185, 244, .18), transparent 34rem),
        radial-gradient(circle at 92% 2%, rgba(156, 140, 255, .14), transparent 30rem),
        linear-gradient(180deg, #091523 0, var(--bg) 38rem);
    font: 15px/1.65 "Microsoft YaHei", "PingFang SC", Inter, ui-sans-serif, system-ui, sans-serif;
    overflow-x: hidden;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .18;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(to bottom, black, transparent 72%);
}

a { color: var(--brand); text-decoration: none; transition: color .18s ease, opacity .18s ease; }
a:hover { color: #a8eaff; }
button, input, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -.035em; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
small { font-size: 12px; }

.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid rgba(153, 184, 224, .1);
    background: rgba(7, 16, 29, .76);
    backdrop-filter: blur(20px);
}
.topbar { min-height: 72px; display: flex; align-items: center; gap: 28px; }
.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--text);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -.03em;
    white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #041522;
    background: linear-gradient(135deg, var(--brand), #8fe6ff);
    box-shadow: 0 8px 24px rgba(32, 185, 244, .25);
}
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--muted);
    font-weight: 650;
    white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: rgba(98, 212, 255, .09); }
.nav-link.active { box-shadow: inset 0 0 0 1px rgba(98, 212, 255, .14); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-button { padding: 8px 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: transparent; font-weight: 700; }
.nav-button:hover { border-color: var(--line-strong); background: rgba(255,255,255,.04); }

.page-shell { padding-bottom: 32px; }
.page-hero { padding: 72px 0 38px; }
.page-hero.compact { padding-bottom: 24px; }
.page-hero h1 { margin-bottom: 14px; font-size: clamp(38px, 5.5vw, 66px); }
.page-hero p { max-width: 720px; margin-bottom: 0; font-size: 17px; color: var(--muted); }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 6px 10px;
    border: 1px solid rgba(98, 212, 255, .2);
    border-radius: 999px;
    color: #b8ecff;
    background: rgba(98, 212, 255, .07);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .04em;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 14px var(--success); }
.muted { color: var(--muted); }
.good { color: var(--success); }
.warning { color: var(--warning); }
.errors, .danger { color: var(--danger); }

.landing-hero {
    min-height: 520px;
    padding: 86px 0 66px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    gap: 56px;
    align-items: center;
}
.landing-hero > *, .dashboard-main, .surface, .card { min-width: 0; }
.landing-hero h1 { margin-bottom: 24px; max-width: 760px; font-size: clamp(48px, 7vw, 84px); line-height: .98; letter-spacing: -.065em; }
.landing-hero h1 span { display: inline-block; white-space: nowrap; color: transparent; background: linear-gradient(90deg, var(--brand), #a8eaff 48%, var(--violet)); background-clip: text; }
.hero-lead { max-width: 700px; margin-bottom: 28px; color: #b8c8dc; font-size: 18px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-chip { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.025); font-size: 13px; }
.hero-visual {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(155deg, rgba(19, 43, 71, .94), rgba(10, 23, 40, .94));
    box-shadow: var(--shadow);
}
.hero-visual::after { content: ""; position: absolute; width: 210px; height: 210px; right: -70px; top: -80px; border-radius: 50%; background: rgba(98,212,255,.16); filter: blur(18px); }
.signal-row { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--line); }
.signal-row:last-child { border-bottom: 0; }
.signal-label { color: var(--muted); font-size: 13px; }
.signal-value { font-weight: 800; }
.signal-dot { display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 16px rgba(99,230,170,.7); }

.surface, .card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(155deg, rgba(17, 35, 58, .92), rgba(11, 24, 42, .92));
    box-shadow: 0 16px 48px rgba(0, 0, 0, .14);
}
.surface { padding: 30px; }
.card { padding: 24px; }
.surface + .surface, .section-gap { margin-top: 22px; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 24px; }
.section-head h2 { margin-bottom: 7px; }
.section-head p { margin-bottom: 0; color: var(--muted); }
.section-kicker { display: block; margin-bottom: 7px; color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.span-full { grid-column: 1 / -1; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field label, label.field-label { display: block; margin-bottom: 8px; color: #dce9f9; font-weight: 700; }
.field-help { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; }
input, select {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    outline: none;
    color: var(--text);
    background: rgba(5, 14, 26, .7);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
input:hover, select:hover { border-color: rgba(98,212,255,.35); }
input:focus, select:focus { border-color: var(--brand); background: rgba(5,14,26,.9); box-shadow: 0 0 0 4px rgba(98,212,255,.1); }
input[readonly] { color: #bed3ec; background: rgba(5,14,26,.45); }
.button, button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 17px;
    border: 0;
    border-radius: 11px;
    color: #032033;
    background: linear-gradient(135deg, #76dcff, var(--brand-strong));
    box-shadow: 0 10px 26px rgba(32,185,244,.19);
    font-weight: 800;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.button:hover, button:hover { color: #032033; transform: translateY(-1px); box-shadow: 0 14px 32px rgba(32,185,244,.25); filter: brightness(1.05); }
.button.secondary, button.secondary { color: var(--text); border: 1px solid var(--line-strong); background: rgba(255,255,255,.035); box-shadow: none; }
.button.danger, button.danger { color: #ffdbe2; border: 1px solid rgba(255,143,163,.25); background: rgba(255,143,163,.09); box-shadow: none; }
.button-block { width: 100%; text-align: center; }
.form-action { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 4px; }
.form-action .button, .form-action button { min-width: 220px; }

.privacy-panel {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 15px;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(98,212,255,.2);
    border-radius: var(--radius-md);
    background: linear-gradient(120deg, rgba(98,212,255,.08), rgba(156,140,255,.055));
}
.privacy-panel strong { display: block; margin-bottom: 3px; }
.privacy-panel p { margin: 0; color: var(--muted); font-size: 13px; }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track { position: absolute; inset: 0; border: 1px solid var(--line-strong); border-radius: 999px; background: #14233a; transition: .2s ease; }
.switch-track::after { content: ""; position: absolute; width: 20px; height: 20px; top: 3px; left: 3px; border-radius: 50%; background: #8da2bd; transition: .2s ease; }
.switch input:checked + .switch-track { border-color: rgba(98,212,255,.6); background: rgba(32,185,244,.33); }
.switch input:checked + .switch-track::after { left: 23px; background: #d8f6ff; box-shadow: 0 0 14px rgba(98,212,255,.55); }
.switch input:focus-visible + .switch-track { box-shadow: 0 0 0 4px rgba(98,212,255,.14); }

.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.025); }
.stat-label { display: block; margin-bottom: 10px; color: var(--muted); font-size: 13px; }
.stat-value { margin: 0; font-size: 36px; line-height: 1; font-weight: 850; letter-spacing: -.05em; }
.stat-value small { color: var(--muted); font-size: 14px; letter-spacing: 0; }
.score-xl { font-size: clamp(68px, 10vw, 118px); line-height: .9; font-weight: 900; letter-spacing: -.08em; }
.score-xl small { color: var(--muted); font-size: 20px; letter-spacing: 0; }
.pill, .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #c4d5e9;
    background: rgba(255,255,255,.035);
    font-size: 12px;
    font-weight: 700;
}
.badge.good { color: var(--success); border-color: rgba(99,230,170,.25); background: rgba(99,230,170,.07); }
.badge.danger { color: var(--danger); border-color: rgba(255,143,163,.25); background: rgba(255,143,163,.07); }

.alert { margin-bottom: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.035); }
.alert.success { color: var(--success); border-color: rgba(99,230,170,.22); background: rgba(99,230,170,.07); }
.alert.error { color: #ffd4dc; border-color: rgba(255,143,163,.25); background: rgba(255,143,163,.08); }

.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); }
table { width: 100%; min-width: 720px; border-collapse: collapse; }
th, td { padding: 15px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: #bdd0e6; background: rgba(255,255,255,.025); font-size: 12px; letter-spacing: .035em; white-space: nowrap; }
td { color: #dbe7f6; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .16s ease; }
tbody tr:hover { background: rgba(98,212,255,.025); }
.rank { color: var(--muted); font-weight: 800; }
.rank.top { color: var(--warning); }
.table-score { font-size: 18px; font-weight: 850; }
.empty-state { padding: 36px 18px; text-align: center; color: var(--muted); }

.list-stack { display: grid; gap: 12px; }
.list-item { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.022); }
.list-item-title { color: var(--text); font-weight: 750; }
.list-meta { color: var(--muted); font-size: 13px; }

.auth-layout { min-height: calc(100vh - 170px); padding: 60px 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 480px); gap: 64px; align-items: center; }
.auth-copy h1 { font-size: clamp(42px, 6vw, 70px); }
.auth-copy p { max-width: 520px; color: var(--muted); font-size: 17px; }
.auth-card { padding: 30px; }
.auth-card .form-grid { grid-template-columns: 1fr; }
.check-row { display: flex; align-items: center; gap: 9px; color: var(--muted); }
.check-row input { width: 17px; min-height: 17px; accent-color: var(--brand-strong); }

.report-hero { padding: 62px 0 34px; display: grid; grid-template-columns: auto 1fr; gap: 42px; align-items: end; }
.report-title { padding-bottom: 8px; }
.report-title h1 { margin: 12px 0; font-size: clamp(36px, 5vw, 62px); }
.report-title p { max-width: 680px; margin-bottom: 0; color: var(--muted); }
.evidence-copy { max-width: 400px; white-space: normal; }
.evidence-copy small { display: block; margin-top: 7px; color: var(--muted); }

.progress-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 22px; align-items: start; }
.progress-summary { position: sticky; top: 96px; }
.progress-ring { width: 86px; height: 86px; margin-bottom: 20px; display: grid; place-items: center; border: 7px solid rgba(98,212,255,.12); border-top-color: var(--brand); border-radius: 50%; animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.step-list { display: grid; gap: 10px; }
.step-item { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); }
.step-item.done { color: var(--text); border-color: rgba(99,230,170,.2); background: rgba(99,230,170,.045); }
.step-item.active { color: var(--text); border-color: rgba(98,212,255,.34); background: rgba(98,212,255,.07); box-shadow: inset 3px 0 0 var(--brand); }
.step-mark { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; font-weight: 850; }
.step-item.done .step-mark { color: #05271a; border-color: var(--success); background: var(--success); }
.step-item.active .step-mark { color: #041522; border-color: var(--brand); background: var(--brand); }

.dashboard-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.dashboard-nav { position: sticky; top: 96px; padding: 14px; }
.dashboard-nav a { display: block; padding: 10px 11px; border-radius: 9px; color: var(--muted); font-weight: 650; }
.dashboard-nav a:hover { color: var(--text); background: rgba(98,212,255,.07); }
.dashboard-main { min-width: 0; }
.claim-box { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.022); }
.claim-box + .claim-box { margin-top: 12px; }

.sponsor-card { margin: 24px 0; display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; border-style: dashed; }
.sponsor-label { color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.sponsor-card h3 { margin: 6px 0; }
.sponsor-card p { margin-bottom: 0; }
.site-footer { padding: 50px 0 38px; color: var(--muted); }
.footer-inner { padding-top: 24px; display: flex; justify-content: space-between; gap: 22px; border-top: 1px solid var(--line); font-size: 13px; }

@media (max-width: 900px) {
    .landing-hero, .auth-layout, .report-hero, .progress-layout, .dashboard-layout { grid-template-columns: 1fr; }
    .landing-hero { gap: 30px; padding-top: 64px; }
    .hero-visual { max-width: 560px; }
    .progress-summary, .dashboard-nav { position: static; }
    .dashboard-nav { display: flex; gap: 4px; overflow-x: auto; }
    .dashboard-nav a { white-space: nowrap; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 720px) {
    .container { width: min(100% - 28px, 1180px); }
    .topbar { min-height: auto; padding: 13px 0; flex-wrap: wrap; gap: 10px; }
    .main-nav { order: 3; width: 100%; overflow-x: auto; margin: 0; padding-top: 4px; border-top: 1px solid var(--line); }
    .nav-actions { margin-left: auto; gap: 4px; }
    .nav-actions .button, .nav-actions .nav-link, .nav-button { min-height: 36px; padding: 7px 9px; }
    .page-hero { padding: 50px 0 26px; }
    .landing-hero { min-height: 0; padding: 56px 0 42px; }
    .landing-hero h1 { max-width: 100%; font-size: clamp(40px, 12vw, 50px); overflow-wrap: anywhere; }
    .hero-lead { font-size: 16px; overflow-wrap: anywhere; }
    .hero-visual { width: 100%; padding: 20px; }
    .signal-row { gap: 12px; }
    .signal-value { max-width: 58%; text-align: right; }
    .trust-chip { white-space: normal; }
    .surface, .card, .auth-card { padding: 20px; border-radius: 18px; }
    .form-grid, .grid-2, .grid-3, .stats-grid { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
    .form-action, .section-head, .footer-inner, .list-item, .sponsor-card { align-items: stretch; flex-direction: column; display: flex; }
    .form-action .button, .form-action button { width: 100%; }
    .grid-4 { grid-template-columns: 1fr 1fr; }
    .auth-layout { gap: 28px; padding: 42px 0; }
    .report-hero { gap: 24px; }
    .score-xl { font-size: 82px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
