:root {
    --bg: #0C100E;
    --bg-deep: #080A09;
    --surface: #141A16;
    --surface-2: #1A2420;
    --title: #E8F6EE;
    --text: #CDE3D6;
    --muted: #8FB3A0;
    --subtle: #6E8F7E;
    --brand: #2A9D5C;
    --bright: #3CB371;
    --deep-green: #146B3A;
    --sand: #EFE6D2;
    --border: rgba(42,157,92,0.18);
    --border-strong: rgba(42,157,92,0.45);
    --shadow: 0 12px 28px rgba(8,10,9,0.35);
    --max: 1120px;
    --topline: 22px;
    --mainbar: 60px;
    --tabs: 40px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); overflow-x: hidden; }
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.panel-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 400; padding: 10px 14px; border-radius: 8px; background: var(--bright); color: #08110C; transition: top .2s ease; }
.skip-link:focus { top: 10px; }
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 120; }
.top-line { height: var(--topline); background: #050706; border-bottom: 1px solid rgba(60,179,113,.18); color: var(--bright); font-size: 12px; }
.top-line-inner,.main-bar-inner,.layer-tabs-inner,.footer-inner,.page-shell { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.top-line-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top-brand { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-search { min-width: 48px; height: 22px; border: 0; background: transparent; color: var(--bright); padding: 0 4px; cursor: pointer; }
.main-bar { height: var(--mainbar); background: rgba(8,10,9,.98); border-bottom: 1px solid var(--border-strong); }
.main-bar-inner { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.brand-logo { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; color: var(--title); font-size: 16px; font-weight: 800; letter-spacing: .04em; }
.brand-logo img,.footer-logo img,.drawer-brand img { width: auto; height: 28px; object-fit: contain; object-position: left center; }
.drawer-trigger,.app-link,.btn,.panel-close { min-height: 44px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; font-size: 14px; font-weight: 800; line-height: 1; white-space: nowrap; cursor: pointer; }
.drawer-trigger { justify-self: center; border: 1px solid var(--border-strong); background: #0C100E; color: var(--text); }
.app-link { justify-self: end; min-height: 40px; background: linear-gradient(135deg,#3CB371 0%,#2A9D5C 55%,#146B3A 100%); color: #08110C; box-shadow: 0 8px 18px rgba(20,107,58,.2); }
.layer-tabs { height: var(--tabs); background: #0F2118; border-bottom: 1px solid var(--border-strong); font-size: 13px; }
.layer-tabs-inner { height: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; }
.layer-tabs a { min-height: 32px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 8px; color: var(--text); }
.layer-tabs a.is-active { background: var(--brand); color: #08110C; font-weight: 800; }
.site-main { padding-top: calc(var(--topline) + var(--mainbar) + var(--tabs) + 28px); padding-bottom: 72px; min-height: 60vh; }
.page-shell { position: relative; }
.page-hero { margin-bottom: 28px; padding: 26px; border: 1px solid var(--border); border-radius: 14px; background: radial-gradient(circle at 90% 10%, rgba(60,179,113,.11), transparent 34%), linear-gradient(180deg, rgba(20,26,22,.98), rgba(12,16,14,.98)); box-shadow: var(--shadow); }
.eyebrow { display: inline-block; margin-bottom: 8px; color: var(--bright); font-size: 12px; font-weight: 800; letter-spacing: .09em; }
h1,h2,h3 { margin-top: 0; color: var(--title); }
h1 { margin-bottom: 12px; font-size: 24px; line-height: 1.3; }
h2 { margin-bottom: 12px; font-size: 20px; line-height: 1.4; }
h3 { margin-bottom: 8px; font-size: 16px; line-height: 1.5; }
p { margin: 0 0 14px; }
.lead { max-width: 880px; margin-bottom: 0; color: var(--text); }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); }
.sand { color: var(--sand); }
.section { margin: 0 0 28px; padding: 24px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.section-head p { max-width: 640px; margin: 0; color: var(--muted); }
.grid-2,.grid-3,.grid-4,.card-grid { 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-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.card { min-width: 0; padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.card p:last-child { margin-bottom: 0; }
.card .kicker,.number-tag,.status { display: inline-flex; align-items: center; min-height: 26px; margin-bottom: 10px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--border-strong); background: #0C100E; color: var(--bright); font-size: 12px; font-weight: 800; }
.status.ready { background: var(--brand); color: #08110C; border-color: var(--brand); }
.status.progress { background: #13231A; color: var(--sand); }
.status.pending { background: #111512; color: var(--muted); }
.media-slot,.media-slot-tall,.media-slot-banner,.media-slot-small { display: flex; align-items: center; justify-content: center; width: 100%; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: linear-gradient(135deg, rgba(42,157,92,.08), transparent 50%), #080A09; }
.media-slot { height: 180px; margin-bottom: 14px; }
.media-slot-small { height: 120px; margin-bottom: 12px; }
.media-slot-banner { height: 260px; margin-bottom: 20px; }
.media-slot-tall { height: min(360px,58vw); min-height: 260px; }
.media-slot img,.media-slot-small img,.media-slot-banner img,.media-slot-tall img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.media-empty { width: 54px; height: 18px; border-top: 1px solid rgba(60,179,113,.25); border-bottom: 1px solid rgba(60,179,113,.12); opacity: .75; }
.hero-actions,.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn { min-height: 42px; }
.btn-primary { background: linear-gradient(135deg,#3CB371 0%,#2A9D5C 55%,#146B3A 100%); color: #08110C; border: 1px solid transparent; }
.btn-secondary { background: #0C100E; color: var(--text); border: 1px solid var(--border-strong); }
.btn:hover,.app-link:hover,.drawer-trigger:hover,.layer-tabs a:hover,.mobile-bottom a:hover,.footer-grid a:hover,.drawer-group a:hover,.search-presets a:hover { transform: translateY(-1px); }
a:focus-visible,button:focus-visible,input:focus-visible { outline: 2px solid var(--bright); outline-offset: 3px; }
.feature-list,.plain-list,.step-list,.glossary,.qa-list,.directory-list { margin: 0; padding: 0; list-style: none; }
.feature-list { display: grid; gap: 10px; }
.feature-list li,.directory-list li { padding: 13px 14px; border: 1px solid var(--border); border-radius: 10px; background: #101511; }
.feature-list strong { color: var(--title); }
.plain-list { display: grid; gap: 8px; }
.plain-list li { position: relative; padding-left: 18px; color: var(--text); }
.plain-list li::before { content: ""; position: absolute; left: 0; top: .78em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.timeline { position: relative; display: grid; gap: 14px; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 1px; background: var(--border-strong); }
.timeline-item { position: relative; padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.timeline-item::before { content: ""; position: absolute; left: -20px; top: 22px; width: 9px; height: 9px; border-radius: 50%; background: var(--bright); box-shadow: 0 0 0 4px var(--bg); }
.timeline-item p:last-child { margin-bottom: 0; }
.quote-note { margin: 16px 0 0; padding: 14px 16px; border-left: 3px solid var(--brand); background: #0F1511; color: var(--muted); }
.notice { padding: 15px 16px; border: 1px solid var(--border-strong); border-radius: 10px; background: #0E1712; color: var(--text); }
.notice strong { color: var(--sand); }
.faq-list { display: grid; gap: 12px; }
.faq-item { padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.faq-item h2,.faq-item h3 { margin-bottom: 9px; }
.faq-item p:last-child { margin-bottom: 0; }
.site-footer { background: #050706; border-top: 1px solid var(--border-strong); color: var(--text); }
.footer-inner { padding: 34px 0 74px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; color: var(--muted); font-size: 13px; }
.footer-logo { display: inline-flex; align-items: center; min-height: 44px; color: var(--title); }
.footer-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.footer-grid section { display: grid; align-content: start; gap: 7px; }
.footer-grid h2 { margin: 0 0 4px; font-size: 13px; color: var(--bright); }
.footer-grid a { font-size: 13px; color: var(--text); }
.footer-note { margin: 26px 0 8px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.footer-copy { margin: 0; color: var(--subtle); font-size: 13px; }
.overlay { position: fixed; inset: 0; z-index: 190; visibility: hidden; pointer-events: none; opacity: 0; background: rgba(0,0,0,.62); transition: opacity .2s ease, visibility .2s ease; }
.overlay.is-active { visibility: visible; pointer-events: auto; opacity: 1; }
.drawer-panel { position: fixed; inset: 0 auto 0 0; z-index: 210; width: min(400px,86vw); background: #080A09; border-right: 1px solid var(--border-strong); box-shadow: 22px 0 48px rgba(0,0,0,.36); transform: translateX(-102%); visibility: hidden; pointer-events: none; transition: transform .24s ease, visibility .24s ease; }
.drawer-panel.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.drawer-head { height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--border); }
.drawer-brand { min-height: 44px; display: inline-flex; align-items: center; color: var(--title); font-weight: 800; }
.panel-close { min-width: 64px; border: 1px solid var(--border-strong); background: #0C100E; color: var(--text); }
.drawer-scroll { height: calc(100% - 70px); overflow-y: auto; padding: 14px 14px 34px; }
.drawer-group { margin-bottom: 18px; }
.drawer-group h2 { margin: 0 0 8px; padding: 0 8px; color: var(--bright); font-size: 13px; }
.drawer-group a { display: block; padding: 12px 10px; border-radius: 10px; border: 1px solid transparent; }
.drawer-group a:hover { border-color: var(--border); background: var(--surface); }
.drawer-group strong { display: block; margin-bottom: 2px; color: var(--title); font-size: 14px; }
.drawer-group span { display: block; color: var(--muted); font-size: 12px; line-height: 1.55; }
.search-panel { position: fixed; left: 0; right: 0; top: calc(var(--topline) + var(--mainbar)); z-index: 220; visibility: hidden; pointer-events: none; opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s ease; }
.search-panel.is-open { visibility: visible; pointer-events: auto; opacity: 1; transform: translateY(0); }
.search-card { width: min(760px,calc(100% - 32px)); margin: 12px auto 0; padding: 20px; border: 1px solid var(--border-strong); border-radius: 14px; background: #080A09; box-shadow: 0 22px 48px rgba(0,0,0,.42); }
.search-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.search-head h2 { margin-bottom: 0; }
.search-label { display: block; margin: 14px 0 6px; color: var(--muted); font-size: 13px; }
.search-input { width: 100%; height: 44px; border: 1px solid var(--border-strong); border-radius: 10px; background: #0C100E; color: var(--text); padding: 0 13px; }
.search-input::placeholder { color: var(--subtle); }
.search-presets { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.search-presets a { padding: 12px 13px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--title); font-weight: 800; }
.search-presets span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 400; }
.search-empty { margin: 14px 0 0; color: var(--muted); }
.mobile-bottom { display: none; }
.section-space { width: min(var(--max), calc(100% - 32px)); margin: 0 auto 28px; }
.app-intro-grid,.split-cards,.about-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.numbered-list,.policy-stack,.prose-wide { display: grid; gap: 16px; }
.section-heading { margin-bottom: 16px; }
.section-heading h2 { margin-bottom: 0; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.prose-card p:last-child,.media-card > :last-child { margin-bottom: 0; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; margin-top: 10px; color: var(--bright); font-weight: 800; }
.faq-item summary { cursor: pointer; color: var(--title); font-size: 16px; font-weight: 800; line-height: 1.5; }
.faq-item[open] summary { margin-bottom: 10px; color: var(--bright); }
.article-prose > p:last-child { margin-bottom: 0; }
.article-prose h2 { margin-top: 26px; }
.article-prose h2:first-child { margin-top: 0; }
.article-prose h3 { margin-top: 18px; }
.article-prose a { color: var(--bright); text-decoration: underline; text-underline-offset: 3px; }
.compact-links { display: flex; flex-wrap: wrap; gap: 10px; }
.compact-links a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 13px; border: 1px solid var(--border); border-radius: 9px; background: #0F1511; }
@media (max-width: 860px) {
    .card-grid,.grid-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 720px) {
    :root { --tabs: 0px; }
    .layer-tabs { display: none; }
    .top-line-inner,.main-bar-inner,.footer-inner,.page-shell { width: calc(100% - 32px); }
    .main-bar-inner { grid-template-columns: minmax(0,1fr) auto auto; gap: 8px; }
    .brand-logo { min-width: 0; max-width: 100%; }
    .brand-logo span { white-space: nowrap; }
    .drawer-trigger { padding: 0 13px; }
    .app-link { padding: 0 12px; }
    .site-main { padding-top: calc(var(--topline) + var(--mainbar) + 20px); padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
    .page-hero,.section { padding: 18px; border-radius: 12px; }
    .section-head { align-items: flex-start; flex-direction: column; gap: 4px; }
    .grid-2,.grid-3,.grid-4,.card-grid,.app-intro-grid,.split-cards,.about-grid { grid-template-columns: 1fr; }
    .media-slot-banner { height: 260px; }
    .media-slot { height: 180px; }
    .footer-inner { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
    .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .search-panel { inset: 0; top: 0; background: #080A09; }
    .search-panel.is-open { overflow-y: auto; }
    .search-card { width: 100%; min-height: 100%; margin: 0; border: 0; border-radius: 0; box-shadow: none; padding: calc(18px + env(safe-area-inset-top)) 16px calc(80px + env(safe-area-inset-bottom)); }
    .search-presets { grid-template-columns: 1fr; }
    .mobile-bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; height: calc(48px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); padding-bottom: env(safe-area-inset-bottom); background: rgba(5,7,6,.98); border-top: 1px solid var(--border-strong); }
    .mobile-bottom a { min-width: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); }
    .mobile-bottom a.is-active { background: var(--brand); color: #08110C; font-weight: 800; }
    .overlay { z-index: 190; }
    .drawer-panel { z-index: 210; }
}
@media (max-width: 430px) {
    .top-brand { max-width: 68vw; }
    .main-bar-inner { gap: 6px; }
    .brand-logo img { max-width: 105px; }
    .drawer-trigger,.app-link { padding: 0 10px; font-size: 13px; }
    .page-hero h1 { font-size: 23px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
}
@media (prefers-reduced-motion: reduce) {
    *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; }
}
