:root {
    --bg: #0F172A;
    --panel: #111827;
    --tile: #1E293B;
    --line: #334155;
    --text: #E2E8F0;
    --mute: #94A3B8;
    --accent: #38BDF8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
}

a { color: var(--accent); text-decoration: none; }

.frame {
    width: min(1140px, calc(100% - 40px));
    margin: 0 auto;
}

.topbar {
    border-bottom: 1px solid var(--line);
    background: #020617;
}

.topbar-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.brand svg { width: 28px; height: 28px; color: var(--accent); }

nav { display: flex; gap: 20px; }
nav a { color: var(--mute); font-size: 14px; }
nav a:hover { color: #fff; }

.hero-portal {
    padding: 56px 0 40px;
    background:
        linear-gradient(180deg, #020617 0%, #0F172A 100%);
}

.tag {
    color: var(--accent);
    font-size: 12px;
    letter-spacing: 0.16em;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-portal h1 {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.25;
    max-width: 16em;
    margin-bottom: 16px;
}

.hero-lead {
    color: var(--mute);
    max-width: 48em;
    margin-bottom: 10px;
}

.cta {
    display: inline-block;
    margin: 16px 0 28px;
    background: var(--accent);
    color: #0F172A;
    font-weight: 800;
    padding: 12px 22px;
}

.cta:hover { background: #7DD3FC; }

.tile-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.tile-preview a {
    background: var(--tile);
    border: 1px solid var(--line);
    color: var(--text);
    padding: 16px 12px;
    font-size: 14px;
    font-weight: 700;
    border-top: 3px solid var(--accent);
}

.tile-preview a:hover { background: #334155; }

.panel { padding: 60px 0; }
.panel.dim { background: #020617; }

.panel h2 {
    font-size: clamp(22px, 3vw, 30px);
    margin-bottom: 12px;
}

.intro { color: var(--mute); margin-bottom: 24px; max-width: 48em; }

.tile-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tile-detail.slim { grid-template-columns: repeat(4, 1fr); }

.tile-detail article {
    background: var(--tile);
    border: 1px solid var(--line);
    padding: 22px;
    min-height: 180px;
}

.tile-detail span {
    display: block;
    color: var(--accent);
    font-weight: 800;
    margin-bottom: 8px;
}

.tile-detail h3 { font-size: 17px; margin-bottom: 8px; }
.tile-detail p { color: var(--mute); font-size: 14px; }

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.two-col article {
    border: 1px solid var(--line);
    padding: 22px;
    background: var(--panel);
}

.two-col h3 { margin-bottom: 8px; }
.two-col p { color: var(--mute); margin-bottom: 8px; }

.dash { padding-left: 18px; color: var(--mute); }
.dash li { margin-bottom: 8px; }

.facts {
    display: grid;
    gap: 10px;
}

.facts p {
    background: var(--tile);
    border-left: 4px solid var(--accent);
    padding: 12px 16px;
    color: var(--mute);
}

.table-scroll { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--panel);
}

th, td {
    border: 1px solid var(--line);
    padding: 12px;
    text-align: left;
    font-size: 14px;
    vertical-align: top;
}

th { background: #1E293B; color: #fff; }
td { color: var(--mute); }
tr:nth-child(even) td { background: #0B1220; }

.missing { padding-left: 20px; color: var(--mute); }
.missing li { margin-bottom: 8px; }

.gate-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 18px;
}

.gates {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.gates li {
    position: relative;
    background: var(--tile);
    padding: 22px 18px 22px 28px;
    border: 1px solid var(--line);
    min-height: 200px;
}

.gates li::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 12px;
    bottom: 12px;
    width: 4px;
    background: repeating-linear-gradient(
        to bottom,
        var(--accent) 0 10px,
        transparent 10px 16px
    );
}

.gates b {
    display: block;
    color: var(--accent);
    font-size: 12px;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.gates strong { display: block; margin-bottom: 8px; }
.gates p { color: var(--mute); font-size: 14px; }

.faq-dir {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.faq-dir details {
    background: var(--tile);
    border: 1px solid var(--line);
}

.faq-dir summary {
    cursor: pointer;
    padding: 14px 16px;
    font-weight: 700;
    list-style: none;
}

.faq-dir summary::-webkit-details-marker { display: none; }

.faq-dir p {
    padding: 0 16px 14px;
    color: var(--mute);
    font-size: 14px;
}

.foot {
    border-top: 1px solid var(--line);
    padding: 32px 0;
    color: var(--mute);
    font-size: 14px;
}

.foot p { margin-bottom: 8px; }

@media (max-width: 900px) {
    .topbar-inner { flex-direction: column; padding: 12px 0; gap: 10px; }
    .tile-preview,
    .tile-detail,
    .tile-detail.slim,
    .two-col,
    .gates,
    .faq-dir { grid-template-columns: 1fr; }
}

#news .news-list { display: grid; gap: 10px; }
#news article { display: grid; grid-template-columns: 96px 1fr; gap: 8px 18px; background: var(--tile); border: 1px solid var(--line); padding: 14px 16px; }
#news time { color: var(--accent); font-size: 12px; letter-spacing: .06em; }
#news h3 { margin: 0; color: var(--text); font-size: 16px; grid-column: 2; }
#news p { margin: 0; color: var(--mute); font-size: 14px; grid-column: 2; }
@media (max-width: 700px) { #news article { grid-template-columns: 1fr; } }
