:root {
    --bg: #0C100E;
    --bg-deep: #080A09;
    --surface: #141A16;
    --surface-2: #1A2420;
    --title: #E8F6EE;
    --text: #CDE3D6;
    --muted: #8FB3A0;
    --subtle: #6E8F7E;
    --green: #2A9D5C;
    --green-bright: #3CB371;
    --green-dark: #146B3A;
    --sand: #EFE6D2;
    --border: rgba(42,157,92,.18);
    --border-strong: rgba(42,157,92,.45);
    --shadow: 0 12px 28px rgba(8,10,9,.35);
    --max: 1120px;
    --radius: 12px;
    --top-desktop: 122px;
    --top-mobile: 82px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-width: 0; overflow-x: hidden; background: var(--bg); color: var(--text); font: 15px/1.7 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; }
body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { max-width: 100%; }
.shell { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 500; left: 12px; top: -60px; padding: 10px 14px; background: var(--sand); color: #08110C; border-radius: 8px; }
.skip-link:focus { top: 10px; }
.site-chrome { position: fixed; z-index: 100; inset: 0 0 auto; background: var(--bg-deep); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.utility-line { height: 22px; background: #050706; color: var(--green-bright); font-size: 12px; border-bottom: 1px solid rgba(42,157,92,.12); }
.utility-inner { height: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.utility-brand { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.utility-search { min-width: 54px; height: 22px; border: 0; padding: 0 6px; background: transparent; color: var(--green-bright); cursor: pointer; }
.shelf-bar { height: 60px; background: #080A09; border-bottom: 1px solid var(--border); }
.shelf-inner { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.shelf-logo { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; color: var(--title); font-size: 16px; font-weight: 800; }
.logo-image { height: 28px; width: auto; object-fit: contain; object-position: center; display: block; }
.drawer-open, .app-link, .button, .icon-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 14px; white-space: nowrap; }
.drawer-open { justify-self: center; min-width: 88px; padding: 0 18px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--title); cursor: pointer; }
.app-link { justify-self: end; padding: 0 16px; background: linear-gradient(135deg,#3CB371 0%,#2A9D5C 55%,#146B3A 100%); color: #08110C; font-weight: 800; }
.layer-tabs { height: 40px; background: var(--green-dark); border-bottom: 1px solid var(--border-strong); }
.layer-tabs-inner { height: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; }
.layer-tabs a { height: 32px; min-width: 110px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--sand); font-size: 13px; }
.layer-tabs a.is-current { background: var(--green); color: #08110C; font-weight: 800; }
.site-main { padding-top: calc(var(--top-desktop) + 28px); padding-bottom: 50px; min-height: 70vh; }
.page-hero { padding: 30px 0 20px; }
.eyebrow { margin: 0 0 8px; color: var(--green-bright); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
h1, h2, h3 { margin: 0; color: var(--title); font-weight: 800; }
h1 { font-size: 24px; line-height: 1.3; }
h2 { font-size: 20px; line-height: 1.35; }
h3 { font-size: 16px; line-height: 1.45; }
p { margin: 0; }
.lead { margin-top: 12px; max-width: 830px; color: var(--text); }
.hero-actions, .card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.button { height: 42px; padding: 0 18px; border: 1px solid transparent; }
.button-primary { background: linear-gradient(135deg,#3CB371 0%,#2A9D5C 55%,#146B3A 100%); color: #08110C; font-weight: 800; }
.button-secondary { background: #0A0E0C; color: var(--text); border-color: var(--border-strong); }
a:hover, button:hover { filter: brightness(1.08); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }
.section { padding: 24px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.section-head p { max-width: 650px; color: var(--muted); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-body { padding: 18px; }
.card-body p { margin-top: 8px; color: var(--text); }
.card-meta { display: inline-flex; margin-bottom: 8px; color: var(--green-bright); font-size: 12px; font-weight: 700; }
.media-slot { width: 100%; background: #070A08; display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid var(--border); }
.media-slot.banner { height: 260px; border: 1px solid var(--border); border-radius: 14px; }
.media-slot.card-image { height: 180px; }
.media-slot.wide { height: 200px; }
.media-slot.tall { height: min(360px, 64vw); }
.media-image { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.cover-copy { text-align: center; padding: 22px 0 4px; }
.cover-copy .lead { margin-inline: auto; }
.cover-copy .hero-actions { justify-content: center; }
.feature-list { display: grid; gap: 10px; margin-top: 14px; }
.feature-item { padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.feature-item strong { color: var(--sand); }
.feature-item span { display: block; margin-top: 3px; color: var(--muted); }
.article-layout { display: grid; gap: 18px; }
.article-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.article-section h2 { margin-bottom: 12px; }
.article-section h3 { margin-top: 18px; margin-bottom: 7px; color: var(--sand); }
.article-section p + p { margin-top: 10px; }
.article-section ul, .article-section ol { margin: 10px 0 0; padding-left: 1.3em; }
.article-section li + li { margin-top: 6px; }
.article-note { margin-top: 14px; padding: 12px 14px; border-left: 3px solid var(--green); background: var(--surface-2); color: var(--muted); border-radius: 0 8px 8px 0; }
.index-list { display: grid; gap: 10px; margin-top: 14px; }
.index-list a { min-height: 58px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; }
.index-list .num { color: #08110C; background: var(--green-bright); border-radius: 8px; min-height: 34px; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; }
.index-list span:last-child { color: var(--muted); font-size: 13px; }
.timeline { position: relative; display: grid; gap: 14px; margin-top: 8px; }
.timeline::before { content: ""; position: absolute; left: 18px; top: 12px; bottom: 12px; width: 1px; background: var(--border-strong); }
.timeline-item { position: relative; padding: 14px 14px 14px 48px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.timeline-item::before { content: ""; position: absolute; left: 12px; top: 19px; width: 13px; height: 13px; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 0 5px rgba(60,179,113,.12); }
.status { display: inline-flex; margin-bottom: 4px; padding: 2px 8px; border-radius: 999px; background: var(--green); color: #08110C; font-size: 12px; font-weight: 800; }
.faq-list { display: grid; gap: 12px; }
.faq-item { padding: 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.faq-item h2 { font-size: 16px; margin-bottom: 8px; color: var(--sand); }
.faq-item p { color: var(--text); }
.notice { padding: 16px; border: 1px solid var(--border-strong); background: var(--surface-2); border-radius: 12px; color: var(--text); }
.site-footer { background: #050706; border-top: 1px solid var(--border-strong); color: var(--text); font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 28px; padding: 34px 0 26px; }
.footer-brand p { margin-top: 14px; max-width: 440px; color: var(--muted); }
.footer-brandline { display: flex; align-items: center; gap: 12px; }
.footer-brandline div { display: grid; line-height: 1.35; }
.footer-brandline strong { color: var(--title); font-size: 16px; }
.footer-brandline span { color: var(--green-bright); font-size: 12px; }
.footer-column { display: flex; flex-direction: column; gap: 7px; }
.footer-column h2 { margin-bottom: 3px; color: var(--green-bright); font-size: 13px; }
.footer-column a { color: var(--text); }
.footer-bottom { min-height: 58px; padding: 12px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--border); color: var(--subtle); }
.footer-bottom div { display: flex; gap: 14px; }
.page-overlay { position: fixed; z-index: 180; inset: 0; background: rgba(0,0,0,.66); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.page-overlay.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.nav-drawer { position: fixed; z-index: 220; inset: 0 auto 0 0; width: min(400px, 86vw); background: #080A09; border-right: 1px solid var(--border-strong); transform: translateX(-102%); visibility: hidden; pointer-events: none; transition: transform .24s ease, visibility .24s ease; box-shadow: 24px 0 48px rgba(0,0,0,.35); }
.nav-drawer.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.drawer-head { height: 72px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); }
.drawer-brand { display: flex; align-items: center; gap: 10px; }
.drawer-brand div { display: grid; line-height: 1.3; }
.drawer-brand strong { color: var(--title); }
.drawer-brand span { color: var(--green-bright); font-size: 12px; }
.icon-button { min-width: 64px; padding: 0 12px; border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; }
.drawer-scroll { height: calc(100vh - 72px); overflow-y: auto; padding: 16px; }
.drawer-group + .drawer-group { margin-top: 18px; }
.drawer-group h2 { margin-bottom: 8px; color: var(--green-bright); font-size: 13px; }
.drawer-group a { display: block; padding: 10px 12px; border-radius: 10px; border: 1px solid transparent; }
.drawer-group a:hover { background: var(--surface); border-color: var(--border); }
.drawer-group strong { display: block; color: var(--title); font-size: 14px; }
.drawer-group span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.search-layer { position: fixed; z-index: 230; top: 82px; left: 0; right: 0; visibility: hidden; pointer-events: none; opacity: 0; transition: opacity .2s ease, visibility .2s ease; }
.search-layer.is-open { visibility: visible; pointer-events: auto; opacity: 1; }
.search-card { width: min(calc(100% - 32px), 760px); margin: 10px auto 0; padding: 18px; background: #080A09; border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow); }
.search-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.search-head > div { display: grid; }
.search-head strong { color: var(--title); font-size: 16px; }
.search-head span { color: var(--muted); font-size: 12px; }
.search-label { display: block; margin-top: 16px; margin-bottom: 6px; color: var(--muted); font-size: 12px; }
.search-input { width: 100%; min-height: 44px; padding: 0 12px; color: var(--title); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; }
.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 { min-height: 58px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--title); }
.search-presets a span { display: block; color: var(--muted); font-size: 12px; }
.search-empty { margin-top: 14px; color: var(--muted); }
.mobile-bottom { display: none; }
.kicker-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.kicker { padding: 4px 9px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.app-panel { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: 20px; align-items: stretch; }
.app-copy { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
.app-copy .icon-row { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.app-icon-slot { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: #070A08; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.app-icon-slot img { width: 48px; height: 48px; object-fit: contain; }
.compact-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.compact-links a { min-height: 40px; padding: 7px 12px; display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-2); }
@media (max-width: 900px) {
    .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 2fr repeat(2, 1fr); }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
    :root { --top-mobile: 82px; }
    .layer-tabs { display: none; }
    .site-main { padding-top: calc(var(--top-mobile) + 20px); padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
    .shelf-inner { grid-template-columns: minmax(0,1fr) auto auto; gap: 8px; }
    .shelf-logo { min-width: 0; }
    .shelf-logo span { font-size: 15px; }
    .drawer-open { min-width: 68px; padding: 0 12px; }
    .app-link { padding: 0 12px; }
    .page-hero { padding-top: 20px; }
    .section { padding: 18px 0; }
    .section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px 16px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; align-items: flex-start; padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
    .mobile-bottom { position: fixed; z-index: 150; left: 0; right: 0; bottom: 0; min-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(--border-strong); }
    .mobile-bottom a { min-height: 48px; display: flex; align-items: center; justify-content: center; color: var(--text); font-size: 12px; }
    .mobile-bottom a.is-current { background: var(--green); color: #08110C; font-weight: 800; }
    .search-layer { inset: 0; top: 0; background: #080A09; overflow-y: auto; }
    .search-card { width: 100%; min-height: 100%; margin: 0; border: 0; border-radius: 0; padding: 22px 16px calc(80px + env(safe-area-inset-bottom)); box-shadow: none; }
    .search-presets { grid-template-columns: 1fr; }
    .app-panel { grid-template-columns: 1fr; }
    .media-slot.banner { height: 260px; }
    .media-slot.card-image { height: 180px; }
    .media-slot.wide { height: 200px; }
}
@media (max-width: 420px) {
    .shell { width: calc(100% - 32px); }
    .utility-brand { max-width: calc(100vw - 92px); }
    .app-link { font-size: 12px; padding: 0 10px; }
    .drawer-open { font-size: 12px; min-width: 62px; padding-inline: 9px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
