:root {
    --bg: #0b1020;
    --panel: rgba(17, 24, 39, 0.82);
    --panel-border: rgba(255, 255, 255, 0.08);
    --primary: #6d28d9;
    --secondary: #d4af37;
    --text: #f8fafc;
    --muted: #94a3b8;
    --ok: #22c55e;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(109, 40, 217, 0.2), transparent 30%),
        radial-gradient(circle at bottom right, rgba(212, 175, 55, 0.14), transparent 28%),
        var(--bg);
    color: var(--text);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(14px);
    background: rgba(11, 16, 32, 0.86);
    border-bottom: 1px solid var(--panel-border);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 72px;
}

.brand {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.brand span {
    color: var(--secondary);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--muted);
    font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
    color: var(--text);
}

.hero {
    padding: 84px 0 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 28px;
    align-items: stretch;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 22px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.24);
}

.hero-copy,
.hero-side,
.section-card,
.card {
    padding: 28px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.82rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.08;
    margin: 16px 0 12px;
}

.hero p,
.section-intro,
.muted {
    color: var(--muted);
    line-height: 1.75;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #4338ca);
    color: #fff;
}

.btn-secondary {
    border-color: rgba(212, 175, 55, 0.45);
    color: var(--secondary);
    background: rgba(212, 175, 55, 0.08);
}

.kpi-list,
.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 18px;
}

.kpi-list {
    margin-top: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.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));
}

.stat,
.card,
.section-card {
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid var(--panel-border);
    border-radius: 18px;
}

.stat strong {
    display: block;
    font-size: 1.55rem;
    color: var(--secondary);
    margin-bottom: 6px;
}

.hero-side ul,
.list {
    padding-left: 18px;
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.section {
    padding: 18px 0 56px;
}

.section h2 {
    font-size: clamp(1.65rem, 3vw, 2.5rem);
    margin: 0 0 12px;
}

.section-title {
    margin-bottom: 18px;
}

.card h3,
.section-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(109, 40, 217, 0.18);
    border: 1px solid rgba(109, 40, 217, 0.3);
    color: #ddd6fe;
    font-size: 0.82rem;
}

.tag.ok {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.26);
    color: #86efac;
}

.footer {
    padding: 12px 0 42px;
    color: var(--muted);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 24px;
    border-top: 1px solid var(--panel-border);
}

.table {
    width: 100%;
    border-collapse: collapse;
    color: var(--muted);
}

.table th,
.table td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.callout {
    border-left: 4px solid var(--secondary);
    padding: 16px 18px;
    background: rgba(212, 175, 55, 0.08);
    border-radius: 0 16px 16px 0;
    color: #f8fafc;
}

.mono {
    font-family: Consolas, "Courier New", monospace;
}

@media (max-width: 900px) {
    .hero-grid,
    .grid-4,
    .grid-3,
    .grid-2,
    .kpi-list {
        grid-template-columns: 1fr;
    }

    .topbar-inner,
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav {
        gap: 12px;
    }
}
