:root {
    --bg: #0C100E;
    --bg-deep: #080A09;
    --panel: #141A16;
    --panel-2: #1A2420;
    --title: #E8F6EE;
    --text: #CDE3D6;
    --muted: #8FB3A0;
    --soft: #6E8F7E;
    --brand: #2A9D5C;
    --bright: #3CB371;
    --deep-green: #146B3A;
    --sand: #EFE6D2;
    --line: rgba(42,157,92,0.18);
    --line-strong: rgba(42,157,92,0.45);
    --shadow: 0 12px 28px rgba(8,10,9,0.35);
    --radius: 12px;
    --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
html.is-locked, html.is-locked body { overflow: hidden; }
body {
    margin: 0;
    min-width: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 15px;
    line-height: 1.7;
}
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(--max)); margin: 0 auto; }
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 80; }
.topline { height: 22px; background: #070a08; border-bottom: 1px solid var(--line); }
.topline-inner { height: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand-mini, .text-button { font-size: 12px; color: var(--bright); }
.text-button, .drawer-trigger, .icon-button {
    border: 0;
    background: transparent;
    cursor: pointer;
}
.text-button { padding: 0 4px; min-height: 22px; }
.mainbar { height: 60px; background: rgba(8,10,9,0.98); border-bottom: 1px solid var(--line-strong); }
.mainbar-inner { height: 60px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.logo-link { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; }
.brand-logo { height: 28px; width: auto; object-fit: contain; object-position: center; }
.logo-fallback { color: var(--title); font-size: 16px; font-weight: 800; letter-spacing: .05em; }
.drawer-trigger {
    justify-self: center;
    min-width: 80px;
    min-height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: #0b100d;
    color: var(--text);
    font-size: 14px;
}
.app-link {
    justify-self: end;
    min-height: 44px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg,#3CB371 0%,#2A9D5C 55%,#146B3A 100%);
    color: #08110C;
    font-weight: 800;
    font-size: 14px;
}
.tabbar { height: 40px; background: #102319; border-bottom: 1px solid var(--line-strong); }
.tabbar-inner { height: 40px; display: flex; justify-content: center; align-items: stretch; gap: 8px; }
.tabbar a { min-width: 110px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; color: var(--text); }
.tabbar a.active { background: var(--brand); color: #08110C; font-weight: 800; }
.header-spacer { height: 122px; }
.site-main { min-height: 60vh; }
.page-hero { padding: 42px 0 24px; border-bottom: 1px solid var(--line); }
.page-hero .eyebrow, .eyebrow { margin: 0 0 8px; color: var(--bright); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3 { color: var(--title); margin-top: 0; }
h1 { margin-bottom: 14px; font-size: 24px; line-height: 1.3; }
h2 { margin-bottom: 14px; font-size: 20px; line-height: 1.35; }
h3 { margin-bottom: 8px; font-size: 16px; line-height: 1.45; }
p { margin: 0 0 14px; }
.lead { max-width: 860px; font-size: 16px; color: var(--text); }
.muted { color: var(--muted); }
.section { padding: 34px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-head p { margin: 0; max-width: 640px; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.card-grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.card-grid.four { grid-template-columns: repeat(4,minmax(0,1fr)); }
.card, .content-card {
    min-width: 0;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}
.card p:last-child, .content-card p:last-child { margin-bottom: 0; }
.card .meta, .meta { color: var(--soft); font-size: 12px; }
.media-slot {
    width: 100%; height: 200px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-deep);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.media-slot img, .media-slot.short img, .media-slot.banner img, .media-slot.app-visual img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.media-slot.short { height: 180px; }
.media-slot.banner { height: 260px; }
.media-slot.app-visual { height: 360px; }
.cover-copy { max-width: 860px; margin-top: 20px; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn {
    min-height: 42px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    border: 1px solid transparent;
}
.btn-primary { background: linear-gradient(135deg,#3CB371 0%,#2A9D5C 55%,#146B3A 100%); color: #08110C; }
.btn-secondary { background: #0a0d0b; color: var(--text); border-color: var(--line-strong); }
.btn:hover, .app-link:hover, .drawer-trigger:hover { transform: translateY(-1px); filter: brightness(1.05); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }
.list-clean { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.list-clean li { padding: 14px 16px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; }
.number-list { counter-reset: item; display: grid; gap: 12px; }
.number-item { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.number-item .num { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: var(--brand); color: #08110C; font-weight: 900; }
.timeline { position: relative; display: grid; gap: 16px; margin-left: 9px; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--line-strong); }
.timeline-item { position: relative; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.timeline-item::before { content: ""; position: absolute; left: -31px; top: 24px; width: 12px; height: 12px; border-radius: 50%; background: var(--bright); box-shadow: 0 0 0 5px #0C100E; }
.status { display: inline-flex; min-height: 28px; align-items: center; padding: 0 10px; border-radius: 999px; background: var(--brand); color: #08110C; font-size: 12px; font-weight: 800; }
.article-flow { display: grid; gap: 18px; }
.article-flow section { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.article-flow section p:last-child { margin-bottom: 0; }
.quote-note { padding: 18px 20px; background: #0a0e0c; border-left: 3px solid var(--brand); color: var(--sand); border-radius: 0 10px 10px 0; }
.faq-list { display: grid; gap: 14px; }
.faq-item { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.faq-item h2 { font-size: 17px; }
.search-panel {
    position: fixed; top: 82px; left: 0; right: 0; z-index: 96;
    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-panel-inner { background: #080a09; border: 1px solid var(--line-strong); border-radius: 0 0 14px 14px; box-shadow: var(--shadow); padding: 20px; }
.search-head { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.search-head h2 { margin-bottom: 8px; }
.icon-button { min-width: 64px; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; background: #0d110f; cursor: pointer; }
.search-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.search-grid a { min-height: 44px; display: flex; align-items: center; padding: 0 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.drawer {
    position: fixed; top: 0; bottom: 0; left: 0; width: 400px; max-width: 86vw; z-index: 110;
    background: #080a09; border-right: 1px solid var(--line-strong); box-shadow: var(--shadow);
    transform: translateX(-104%); visibility: hidden; pointer-events: none;
    transition: transform .24s ease, visibility .24s ease;
    display: flex; flex-direction: column;
}
.drawer.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.drawer-head { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.drawer-brand { display: flex; align-items: center; gap: 10px; }
.drawer-scroll { overflow-y: auto; padding: 14px 16px 24px; }
.drawer-group + .drawer-group { margin-top: 20px; }
.drawer-group h3 { color: var(--bright); font-size: 12px; letter-spacing: .1em; }
.drawer-group a { display: grid; gap: 2px; padding: 11px 12px; border-radius: 10px; border: 1px solid transparent; }
.drawer-group a:hover { border-color: var(--line-strong); background: var(--panel); }
.drawer-group span { color: var(--muted); font-size: 12px; line-height: 1.55; }
.page-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.62); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.page-overlay.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
.site-footer { background: #050706; border-top: 1px solid var(--line-strong); margin-top: 44px; padding-bottom: 28px; }
.footer-top { padding: 30px 0 20px; display: grid; grid-template-columns: 220px 1fr; gap: 30px; }
.footer-brand { display: grid; gap: 8px; align-content: start; color: var(--text); }
.footer-brand span { color: var(--muted); font-size: 13px; }
.footer-logo-link { min-height: 44px; display: inline-flex; align-items: center; }
.footer-columns { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.footer-columns h3 { font-size: 13px; color: var(--bright); }
.footer-columns a { display: block; color: var(--text); font-size: 13px; padding: 4px 0; }
.footer-note { border-top: 1px solid var(--line); padding-top: 18px; color: var(--muted); font-size: 13px; }
.mobile-bottom { display: none; }

@media (max-width: 820px) {
    .tabbar { display: none; }
    .header-spacer { height: 82px; }
    .page-hero { padding-top: 32px; }
    .card-grid, .card-grid.two, .card-grid.four { grid-template-columns: 1fr 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-columns { grid-template-columns: 1fr 1fr; }
    .search-panel { top: 0; bottom: 0; background: #080a09; }
    .search-panel-inner { width: 100%; max-width: none; height: 100%; border: 0; border-radius: 0; padding-top: 24px; overflow-y: auto; }
    .search-grid { grid-template-columns: 1fr 1fr; }
    .mobile-bottom {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 75;
        height: calc(48px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        display: grid; grid-template-columns: repeat(5,1fr);
        background: rgba(5,7,6,.98); border-top: 1px solid var(--line-strong);
    }
    .mobile-bottom a { min-width: 0; min-height: 48px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); }
    .mobile-bottom a.active { background: var(--brand); color: #08110C; font-weight: 800; }
    .site-footer { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}
@media (max-width: 620px) {
    .shell { width: min(calc(100% - 32px), var(--max)); }
    .mainbar-inner { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 8px; }
    .app-link { padding: 0 11px; font-size: 13px; }
    .drawer-trigger { min-width: 70px; }
    .logo-fallback { font-size: 15px; }
    .card-grid, .card-grid.two, .card-grid.four { grid-template-columns: 1fr; }
    .search-grid { grid-template-columns: 1fr; }
    .section { padding: 28px 0; }
    .section-head { display: block; }
    .section-head h2 { margin-bottom: 8px; }
    .media-slot.banner { height: 220px; }
    .media-slot.app-visual { height: 320px; }
    .footer-columns { grid-template-columns: 1fr 1fr; gap: 14px; }
    .number-item { grid-template-columns: 36px 1fr; }
    .number-item .num { width: 36px; height: 36px; }
}
.mt-18 { margin-top: 18px; }
.app-summary { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.app-icon-box { width: 48px; height: 48px; background: var(--bg-deep); border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: center; justify-content: center; overflow: hidden; flex: 0 0 48px; }
.app-icon-box img { width: 48px; height: 48px; object-fit: contain; object-position: center; }
.app-summary h3 { margin: 0; }
.app-summary .meta { margin: 2px 0 0; }
