:root {
  --bg:#0C100E; --bg-deep:#080A09; --panel:#141A16; --panel-2:#1A2420;
  --title:#E8F6EE; --text:#CDE3D6; --muted:#8FB3A0; --aux:#6E8F7E;
  --green:#2A9D5C; --green-light:#3CB371; --green-deep:#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);
  --shell:1120px; --topline:22px; --header:60px; --tabs:40px;
}
* { box-sizing:border-box; }
html { background:var(--bg); scroll-behavior:smooth; overflow-x:hidden; }
body { margin:0; min-width:0; background:var(--bg); color:var(--text); font-family:"Microsoft YaHei","PingFang SC","Noto Sans CJK SC",Arial,sans-serif; font-size:15px; line-height:1.7; overflow-x:hidden; }
body.panel-open { overflow:hidden; }
a { color:inherit; text-decoration:none; }
button,input { font:inherit; }
button { color:inherit; }
img { display:block; max-width:100%; }
.shell { width:min(calc(100% - 32px), var(--shell)); margin:0 auto; }
.topline { position:fixed; z-index:120; inset:0 0 auto; height:var(--topline); background:#050706; border-bottom:1px solid var(--border); color:var(--green-light); font-size:12px; }
.topline-inner { height:100%; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.topline-brand { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.text-button,.menu-trigger,.drawer-close,.search-close { border:0; background:transparent; cursor:pointer; min-height:44px; padding:0 10px; }
.topline .text-button { min-height:22px; height:22px; padding:0 4px; color:var(--green-light); }
.site-header { position:fixed; z-index:115; top:var(--topline); left:0; right:0; height:var(--header); background:var(--bg-deep); border-bottom:1px solid var(--border-strong); }
.header-inner { height:100%; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:12px; }
.header-brand { justify-self:start; min-width:88px; min-height:44px; display:flex; align-items:center; }
.brand-logo { height:28px; width:auto; object-fit:contain; object-position:center; }
.brand-fallback { color:var(--title); font-size:16px; font-weight:800; letter-spacing:.04em; }
.menu-trigger { justify-self:center; border:1px solid var(--border-strong); border-radius:10px; min-width:76px; height:44px; background:#0E1511; color:var(--text); font-size:14px; }
.app-link { justify-self:end; display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:0 16px; border-radius:10px; background:linear-gradient(135deg,#3CB371 0%,#2A9D5C 55%,#146B3A 100%); color:#08110C; font-size:14px; font-weight:800; white-space:nowrap; }
.layer-tabs { position:fixed; z-index:110; top:calc(var(--topline) + var(--header)); left:0; right:0; height:var(--tabs); background:#0D2116; border-bottom:1px solid var(--border-strong); }
.layer-tabs-inner { height:100%; display:flex; align-items:center; justify-content:center; gap:8px; }
.layer-tab { height:32px; min-width:110px; display:flex; align-items:center; justify-content:center; padding:0 14px; border-radius:8px; color:var(--text); font-size:13px; }
.layer-tab:hover,.layer-tab:focus-visible { background:#14321F; outline:none; }
.layer-tab.is-current { background:var(--green); color:#08110C; font-weight:800; }
.site-main { min-height:70vh; padding:calc(var(--topline) + var(--header) + var(--tabs) + 28px) 0 72px; }
.page-hero,.content-section,.notice-box,.legal-block,.faq-item,.index-section { width:min(calc(100% - 32px), var(--shell)); margin:0 auto 24px; }
.page-hero { background:linear-gradient(180deg,#141A16 0%,#101511 100%); border:1px solid var(--border); border-radius:14px; padding:28px; box-shadow:var(--shadow); }
.eyebrow { margin:0 0 8px; color:var(--green-light); font-size:12px; letter-spacing:.12em; text-transform:uppercase; }
h1,h2,h3 { margin-top:0; color:var(--title); line-height:1.3; }
h1 { margin-bottom:12px; font-size:24px; }
h2 { font-size:20px; margin-bottom:12px; }
h3 { font-size:16px; margin-bottom:8px; }
p { margin:0 0 14px; }
.lead { color:var(--sand); max-width:850px; }
.muted { color:var(--muted); }
.aux { color:var(--aux); }
.actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }
.btn { min-height:42px; display:inline-flex; align-items:center; justify-content:center; padding:0 18px; border-radius:10px; font-size:14px; white-space:nowrap; border:1px solid transparent; }
.btn-primary { background:linear-gradient(135deg,#3CB371 0%,#2A9D5C 55%,#146B3A 100%); color:#08110C; font-weight:800; }
.btn-secondary { background:#0A0E0C; border-color:var(--border-strong); color:var(--text); }
.btn:hover { transform:translateY(-1px); }
.btn:focus-visible,a:focus-visible,button:focus-visible,input:focus-visible { outline:2px solid var(--green-light); outline-offset:2px; }
.content-section,.index-section { padding:24px; border:1px solid var(--border); background:var(--panel); border-radius:12px; }
.content-section > p:last-child,.legal-block > p:last-child,.faq-item > p:last-child { margin-bottom:0; }
.section-head { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin-bottom:16px; }
.section-head p { margin:0; color:var(--muted); font-size:13px; }
.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 { min-width:0; padding:18px; background:var(--panel-2); border:1px solid var(--border); border-radius:12px; }
.card p:last-child { margin-bottom:0; }
.card-kicker { color:var(--green-light); font-size:12px; margin-bottom:5px; }
.card a.more { display:inline-flex; min-height:44px; align-items:center; margin-top:10px; color:var(--sand); }
.media-slot { width:100%; height:200px; display:flex; align-items:center; justify-content:center; overflow:hidden; background:#080A09; border:1px solid var(--border); border-radius:12px; margin-bottom:18px; }
.media-slot img { width:100%; height:100%; object-fit:contain; object-position:center; }
.media-banner { height:260px; }
.media-card { height:180px; }
.media-app { height:min(360px,62vw); }
.media-icon { width:48px; height:48px; border-radius:12px; margin:0; flex:0 0 48px; }
.media-icon img { width:100%; height:100%; object-fit:contain; }
.brand-cover { text-align:center; }
.brand-cover .lead { margin-left:auto; margin-right:auto; }
.brand-cover .actions { justify-content:center; }
.brand-line { font-size:13px; color:var(--muted); margin-bottom:8px; }
.number-list { display:grid; gap:12px; counter-reset:item; }
.number-item { display:grid; grid-template-columns:44px 1fr; gap:14px; padding:14px 0; border-top:1px solid var(--border); }
.number-item:first-child { border-top:0; }
.number-item .num { width:44px; height:44px; border-radius:10px; display:flex; align-items:center; justify-content:center; background:var(--green); color:#08110C; font-weight:900; }
.number-item h3 { margin-bottom:5px; }
.number-item p { margin:0; }
.tag-row { display:flex; gap:8px; flex-wrap:wrap; margin:12px 0 0; }
.tag { display:inline-flex; align-items:center; min-height:32px; padding:0 10px; border:1px solid var(--border); border-radius:999px; color:var(--muted); background:#101611; font-size:12px; }
.timeline { position:relative; margin:0; padding:0 0 0 28px; list-style:none; }
.timeline:before { content:""; position:absolute; left:8px; top:8px; bottom:8px; width:1px; background:var(--border-strong); }
.timeline li { position:relative; padding:0 0 22px 8px; }
.timeline li:last-child { padding-bottom:0; }
.timeline li:before { content:""; position:absolute; left:-25px; top:8px; width:11px; height:11px; border-radius:50%; background:var(--green); box-shadow:0 0 0 4px #122118; }
.status { display:inline-flex; align-items:center; min-height:28px; padding:0 9px; border-radius:999px; background:#0E1912; border:1px solid var(--border-strong); color:var(--green-light); font-size:12px; margin-bottom:6px; }
.definition-list { display:grid; grid-template-columns:150px 1fr; gap:0; border:1px solid var(--border); border-radius:12px; overflow:hidden; }
.definition-list dt,.definition-list dd { margin:0; padding:14px 16px; border-bottom:1px solid var(--border); }
.definition-list dt { background:#0F1511; color:var(--sand); font-weight:700; }
.definition-list dd { background:var(--panel-2); }
.definition-list dt:last-of-type,.definition-list dd:last-of-type { border-bottom:0; }
.notice-box { padding:18px 20px; border-left:3px solid var(--green); background:#101812; border-radius:10px; color:var(--text); }
.notice-box strong { color:var(--sand); }
.legal-block { padding:22px; background:var(--panel); border:1px solid var(--border); border-radius:12px; }
.legal-block ul,.content-section ul { margin:10px 0 0; padding-left:1.2em; }
.legal-block li,.content-section li { margin:6px 0; }
.faq-list { width:min(calc(100% - 32px), var(--shell)); margin:0 auto; display:grid; gap:14px; }
.faq-item { width:auto; margin:0; padding:20px; background:var(--panel); border:1px solid var(--border); border-radius:12px; }
.faq-item h2 { font-size:16px; margin-bottom:8px; }
.app-feature { display:flex; gap:14px; align-items:flex-start; }
.app-feature .copy { min-width:0; }
.site-footer { background:#050706; border-top:1px solid var(--border-strong); padding:32px 0 calc(26px + env(safe-area-inset-bottom)); color:var(--text); font-size:13px; }
.footer-grid { display:grid; grid-template-columns:1.35fr repeat(4,1fr); gap:24px; }
.footer-brand { display:flex; flex-direction:column; align-items:flex-start; gap:6px; }
.footer-logo-link { min-height:36px; display:flex; align-items:center; }
.footer-brand strong { color:var(--title); font-size:16px; }
.footer-brand span { color:var(--muted); }
.footer-col { display:flex; flex-direction:column; gap:7px; }
.footer-col h2 { font-size:13px; color:var(--green-light); margin:0 0 4px; }
.footer-col a { color:var(--text); min-height:28px; display:flex; align-items:center; }
.footer-col a:hover { color:var(--sand); }
.footer-notice { border-top:1px solid var(--border); margin-top:24px; padding-top:18px; color:var(--muted); }
.footer-notice p:last-child { margin-bottom:0; }
.drawer { position:fixed; z-index:160; inset:0 auto 0 0; width:min(400px,86vw); background:#090D0B; border-right:1px solid var(--border-strong); box-shadow:var(--shadow); transform:translateX(-102%); visibility:hidden; pointer-events:none; transition:transform .22s ease,visibility .22s; overflow-y:auto; overscroll-behavior:contain; }
.drawer.is-open { transform:translateX(0); visibility:visible; pointer-events:auto; }
.drawer-head { position:sticky; top:0; z-index:2; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 16px; background:#090D0B; border-bottom:1px solid var(--border); }
.drawer-brand { display:flex; align-items:center; gap:10px; min-width:0; }
.drawer-brand span { display:flex; flex-direction:column; line-height:1.3; }
.drawer-brand strong { color:var(--title); font-size:16px; }
.drawer-brand small { color:var(--muted); font-size:11px; }
.drawer-close { border:1px solid var(--border); border-radius:10px; height:44px; color:var(--text); }
.drawer-groups { padding:10px 16px 28px; }
.drawer-group { padding:14px 0; border-bottom:1px solid var(--border); }
.drawer-group:last-child { border-bottom:0; }
.drawer-group h2 { font-size:13px; color:var(--green-light); margin-bottom:8px; }
.drawer-group a { display:block; padding:10px 8px; border-radius:9px; }
.drawer-group a:hover { background:#101812; }
.drawer-group strong { display:block; color:var(--title); font-size:14px; }
.drawer-group span { display:block; color:var(--muted); font-size:12px; margin-top:2px; }
.search-panel { position:fixed; z-index:165; top:calc(var(--topline) + var(--header)); left:50%; width:min(640px,calc(100% - 32px)); transform:translate(-50%,-16px); opacity:0; visibility:hidden; pointer-events:none; transition:.2s ease; }
.search-panel.is-open { transform:translate(-50%,0); opacity:1; visibility:visible; pointer-events:auto; }
.search-card { background:#090D0B; border:1px solid var(--border-strong); border-radius:0 0 14px 14px; box-shadow:var(--shadow); padding:20px; }
.search-head { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; }
.search-head > div { display:flex; flex-direction:column; }
.search-head strong { color:var(--title); font-size:18px; }
.search-head span { color:var(--muted); font-size:13px; }
.search-close { height:44px; border:1px solid var(--border); border-radius:10px; }
.search-label { display:block; color:var(--muted); margin:14px 0 6px; font-size:12px; }
.search-input { width:100%; height:44px; border:1px solid var(--border-strong); border-radius:10px; background:#0E1511; color:var(--text); padding:0 12px; }
.search-presets { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:14px; }
.search-presets a { min-height:44px; display:flex; align-items:center; justify-content:center; border:1px solid var(--border); border-radius:10px; background:#111813; color:var(--text); }
.search-presets a:hover { border-color:var(--border-strong); color:var(--sand); }
.search-empty { margin:14px 0 0; color:var(--muted); }
.page-overlay { position:fixed; z-index:150; inset:0; background:rgba(3,5,4,.76); opacity:0; visibility:hidden; pointer-events:none; transition:.2s ease; }
.page-overlay.is-active { opacity:1; visibility:visible; pointer-events:auto; }
.mobile-bottom { display:none; }
@media (max-width:900px) {
  .grid-4 { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .grid-3 { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:repeat(2,1fr); }
  .footer-brand { grid-column:1 / -1; }
}
@media (max-width:680px) {
  :root { --tabs:0px; }
  .shell,.page-hero,.content-section,.notice-box,.legal-block,.index-section,.faq-list { width:calc(100% - 32px); }
  .layer-tabs { display:none; }
  .site-main { padding-top:calc(var(--topline) + var(--header) + 24px); padding-bottom:92px; }
  .header-inner { grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); gap:8px; }
  .header-brand { min-width:0; overflow:hidden; }
  .brand-logo { max-width:96px; }
  .menu-trigger { min-width:68px; padding:0 10px; }
  .app-link { min-width:0; padding:0 11px; font-size:13px; }
  .page-hero { padding:22px 18px; }
  .content-section,.index-section { padding:20px 16px; }
  .grid-2,.grid-4 { grid-template-columns:1fr; }
  .section-head { align-items:flex-start; flex-direction:column; gap:4px; }
  .media-banner { height:260px; }
  .media-card { height:180px; }
  .definition-list { grid-template-columns:1fr; }
  .definition-list dt { border-bottom:0; padding-bottom:4px; }
  .definition-list dd { padding-top:4px; }
  .footer-grid { grid-template-columns:1fr 1fr; gap:20px; }
  .footer-brand { grid-column:1 / -1; }
  .site-footer { padding-bottom:calc(76px + env(safe-area-inset-bottom)); }
  .mobile-bottom { position:fixed; z-index:120; left:0; right:0; bottom: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:#060907; border-top:1px solid var(--border-strong); }
  .mobile-bottom a { min-width:0; height:48px; display:flex; align-items:center; justify-content:center; font-size:12px; color:var(--text); }
  .mobile-bottom a.is-current { background:var(--green); color:#08110C; font-weight:800; }
  .search-panel { inset:0; width:100%; transform:none; opacity:0; background:#070A08; overflow-y:auto; }
  .search-panel.is-open { transform:none; opacity:1; }
  .search-card { min-height:100%; border:0; border-radius:0; padding:calc(18px + env(safe-area-inset-top)) 16px 24px; box-shadow:none; }
  .search-presets { grid-template-columns:1fr 1fr; }
}
@media (max-width:380px) {
  .header-inner { gap:4px; }
  .brand-logo { max-width:78px; }
  .brand-fallback { font-size:14px; }
  .menu-trigger { min-width:60px; }
  .app-link { padding:0 8px; }
  .search-presets { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr; }
}
/* Accessible interaction sizing */
.topline .text-button,.layer-tab { position:relative; }
.topline .text-button::after { content:""; position:absolute; left:-8px; right:-8px; top:-11px; bottom:-11px; }
.layer-tab::after { content:""; position:absolute; left:0; right:0; top:-6px; bottom:-6px; }
.footer-col a { min-height:44px; }
.menu-trigger:hover,.drawer-close:hover,.search-close:hover { border-color:var(--border-strong); background:#111A14; }
.app-link:hover { filter:brightness(1.05); transform:translateY(-1px); }
.text-button:hover { color:var(--sand); }
