:root {
    --bg: #0C100E;
    --deep: #080A09;
    --card: #141A16;
    --sub: #1A2420;
    --title: #E8F6EE;
    --text: #CDE3D6;
    --muted: #8FB3A0;
    --quiet: #6E8F7E;
    --green: #2A9D5C;
    --bright: #3CB371;
    --darkgreen: #146B3A;
    --sand: #EFE6D2;
    --line: rgba(42,157,92,.18);
    --line-strong: rgba(42,157,92,.45);
    --shadow: 0 12px 28px rgba(8,10,9,.35);
    --shell: 1120px;
}
* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; min-width: 0; overflow-x: hidden; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif; font-size: 15px; line-height: 1.7; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input { font: inherit; }
button { color: inherit; }
.shell { width: min(calc(100% - 32px), var(--shell)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 120; padding: 10px 14px; background: var(--sand); color: #08110C; border-radius: 8px; }
.skip-link:focus { top: 10px; }
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 80; }
.topline { height: 22px; background: #050706; border-bottom: 1px solid var(--line); color: var(--bright); font-size: 12px; }
.topline-inner { height: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.text-button { min-width: 44px; min-height: 22px; border: 0; background: transparent; color: var(--bright); cursor: pointer; padding: 0 4px; }
.mainbar { height: 60px; background: var(--deep); border-bottom: 1px solid var(--line-strong); }
.mainbar-inner { height: 60px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.brand-link { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; min-width: 72px; }
.brand-logo { display: block; height: 28px; width: auto; max-width: 170px; object-fit: contain; object-position: center; }
.brand-fallback { color: var(--title); font-weight: 800; font-size: 16px; letter-spacing: .06em; }
.drawer-button, .app-link, .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; font-size: 14px; line-height: 1; white-space: nowrap; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.drawer-button { padding: 0 20px; border: 1px solid var(--line-strong); background: #0A0D0B; color: var(--text); cursor: pointer; }
.app-link { justify-self: end; padding: 0 18px; color: #08110C; font-weight: 800; background: linear-gradient(135deg,#3CB371 0%,#2A9D5C 55%,#146B3A 100%); }
.drawer-button:hover, .app-link:hover, .btn:hover { transform: translateY(-1px); }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }
.tabs { height: 40px; background: #0E2F1D; border-bottom: 1px solid var(--line-strong); }
.tabs-inner { height: 40px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.tabs a { min-height: 32px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 8px; font-size: 13px; color: var(--text); }
.tabs a.active { background: var(--green); color: #08110C; font-weight: 800; }
.site-main { padding-top: 138px; min-height: 70vh; padding-bottom: 56px; }
.page-hero { padding: 30px 0 22px; border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-block; font-size: 12px; color: var(--bright); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
h1,h2,h3,p { margin-top: 0; }
h1 { color: var(--title); font-size: 24px; line-height: 1.3; margin-bottom: 12px; }
h2 { color: var(--title); font-size: 20px; line-height: 1.4; margin-bottom: 12px; }
h3 { color: var(--title); font-size: 16px; line-height: 1.5; margin-bottom: 8px; }
p { margin-bottom: 16px; }
.lead { max-width: 860px; color: var(--muted); font-size: 15px; }
.section { padding: 30px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; }
.section-title p { margin: 0; color: var(--quiet); max-width: 650px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px; }
.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)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.card p:last-child, .note p:last-child { margin-bottom: 0; }
.card-kicker { color: var(--bright); font-size: 12px; letter-spacing: .08em; margin-bottom: 7px; }
.card-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.card-list li { padding: 10px 0 0; border-top: 1px solid var(--line); color: var(--muted); }
.card-list li:first-child { border-top: 0; padding-top: 0; }
.media-slot { width: 100%; background: #070908; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 16px; }
.media-slot img { width: 100%; height: 100%; display: block; object-fit: contain; object-position: center; }
.media-banner { height: 260px; }
.media-card { height: 180px; }
.media-wide { height: 200px; }
.media-app { height: min(360px, 64vw); }
.hero-brand { padding: 18px 0 8px; }
.hero-brand strong { display: block; color: var(--sand); font-size: 16px; margin-bottom: 6px; }
.hero-brand .headline { color: var(--title); font-size: 24px; line-height: 1.35; font-weight: 800; margin-bottom: 10px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn { padding: 0 18px; border: 1px solid transparent; }
.btn-primary { background: linear-gradient(135deg,#3CB371 0%,#2A9D5C 55%,#146B3A 100%); color: #08110C; font-weight: 800; }
.btn-secondary { background: #090C0A; border-color: var(--line-strong); color: var(--text); }
.topic-number { color: var(--sand); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.timeline { position: relative; display: grid; gap: 14px; }
.timeline::before { content: ""; position: absolute; left: 12px; top: 10px; bottom: 10px; width: 1px; background: var(--line-strong); }
.timeline-item { position: relative; padding: 14px 14px 14px 38px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.timeline-item::before { content: ""; position: absolute; left: 7px; top: 22px; width: 11px; height: 11px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px #0C100E; }
.status { display: inline-flex; align-items: center; min-height: 28px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--sand); font-size: 12px; margin-bottom: 8px; }
.note { background: var(--sub); border-left: 3px solid var(--green); border-radius: 10px; padding: 16px 18px; color: var(--muted); }
.prose { max-width: 900px; }
.prose h2 { margin-top: 28px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 22px; }
.prose ul, .prose ol { padding-left: 1.3em; color: var(--muted); }
.prose li { margin-bottom: 8px; }
.index-links { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.index-links a { min-height: 78px; display: flex; flex-direction: column; justify-content: center; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.index-links strong { color: var(--title); }
.index-links span { color: var(--quiet); font-size: 13px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.faq-item h2, .faq-item h3 { margin-bottom: 8px; }
.site-footer { background: #050706; border-top: 1px solid var(--line-strong); color: var(--text); font-size: 13px; padding: 30px 0 calc(22px + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 24px; }
.footer-brandline { display: flex; align-items: center; gap: 12px; color: var(--title); margin-bottom: 12px; }
.footer-brand p { color: var(--muted); max-width: 430px; }
.site-footer h2 { font-size: 13px; color: var(--sand); margin-bottom: 9px; }
.site-footer a { display: block; color: var(--muted); padding: 4px 0; }
.site-footer a:hover { color: var(--bright); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 16px; color: var(--quiet); }
.overlay { position: fixed; inset: 0; z-index: 89; background: rgba(0,0,0,.62); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.drawer { position: fixed; inset: 0 auto 0 0; z-index: 91; width: min(400px, 86vw); background: #070A08; border-right: 1px solid var(--line-strong); transform: translateX(-101%); visibility: hidden; pointer-events: none; transition: transform .22s ease, visibility .22s ease; overflow-y: auto; padding: 18px 16px 30px; }
.drawer.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.drawer-brand { display: flex; align-items: center; gap: 10px; color: var(--title); }
.icon-button { min-height: 44px; min-width: 56px; border: 1px solid var(--line-strong); border-radius: 8px; background: #0B0E0C; cursor: pointer; }
.drawer-section { padding: 16px 0; border-bottom: 1px solid var(--line); }
.drawer-section h2 { font-size: 13px; color: var(--sand); margin-bottom: 8px; }
.drawer-section a { display: block; padding: 10px 9px; border-radius: 8px; }
.drawer-section a:hover { background: var(--sub); }
.drawer-section strong { display: block; color: var(--title); font-size: 14px; margin-bottom: 2px; }
.drawer-section span { display: block; color: var(--quiet); font-size: 12px; line-height: 1.6; }
.search-panel { position: fixed; left: 0; right: 0; top: 82px; z-index: 92; padding: 14px 16px; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.search-panel.is-open { visibility: visible; opacity: 1; pointer-events: auto; }
.search-card { width: min(780px, 100%); margin: 0 auto; background: #070A08; border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow); padding: 18px; }
.search-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.search-head h2 { margin-bottom: 10px; }
.search-card label { display: block; color: var(--muted); margin-bottom: 6px; }
.search-card input { width: 100%; min-height: 46px; border: 1px solid var(--line-strong); border-radius: 9px; background: #0B0F0C; color: var(--text); padding: 0 12px; }
.search-results { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.search-results a { min-height: 44px; display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.search-empty { margin: 14px 0 0; color: var(--quiet); }
.mobile-bottom { display: none; }
.table-like { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.table-row { display: grid; grid-template-columns: 160px 1fr; gap: 0; background: var(--card); }
.table-row strong, .table-row span { padding: 12px 14px; }
.table-row strong { color: var(--sand); border-right: 1px solid var(--line); }
.table-row span { color: var(--muted); }
@media (max-width: 820px) {
    .tabs { display: none; }
    .site-main { padding-top: 98px; padding-bottom: 74px; }
    .mainbar-inner { grid-template-columns: 1fr auto 1fr; gap: 8px; }
    .brand-logo { max-width: 128px; }
    .drawer-button { padding: 0 14px; }
    .app-link { padding: 0 12px; }
    .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .index-links { grid-template-columns: 1fr 1fr; }
    .mobile-bottom { position: fixed; z-index: 78; inset: auto 0 0 0; height: calc(48px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, 1fr); background: #050706; border-top: 1px solid var(--line-strong); }
    .mobile-bottom a { min-height: 48px; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); }
    .mobile-bottom a.active { background: var(--green); color: #08110C; font-weight: 800; }
    .search-panel { top: 0; bottom: 0; padding: 0; background: #050706; overflow-y: auto; }
    .search-card { min-height: 100%; width: 100%; border: 0; border-radius: 0; padding: max(18px, env(safe-area-inset-top)) 16px 72px; box-shadow: none; }
    .search-results { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
    .shell { width: calc(100% - 32px); }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .page-hero { padding-top: 22px; }
    .section { padding: 24px 0; }
    .section-title { align-items: flex-start; flex-direction: column; }
    .media-banner { height: 260px; }
    .media-card { height: 180px; }
    .media-wide { height: 200px; }
    .index-links { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
    .search-results { grid-template-columns: 1fr; }
    .table-row { grid-template-columns: 1fr; }
    .table-row strong { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
    .table-row span { padding-top: 8px; }
}
