:root {
    --bg: #000000;
    --deep: #050505;
    --content: #0B0B0B;
    --secondary: #121212;
    --hover: #1A1A1A;
    --white: #FFFFFF;
    --title: #F7F7F7;
    --text: #DDDDDD;
    --muted: #A5A5A5;
    --faint: #727272;
    --silver: #C7C7C7;
    --dark: #2A2A2A;
    --border: rgba(255,255,255,.12);
    --border-strong: rgba(255,255,255,.40);
    --shadow: 0 18px 46px rgba(0,0,0,.48);
    --max: 1280px;
    --top: 126px;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif; font-size: 16px; line-height: 1.75; overflow-x: hidden; }
body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.top-shell { position: fixed; inset: 0 0 auto 0; z-index: 1000; background: var(--bg); }
.curtain-line { height: 20px; background: #000; color: var(--silver); font-size: 11px; letter-spacing: .08em; border-bottom: 1px solid rgba(255,255,255,.06); }
.curtain-line__inner { height: 20px; display: flex; align-items: center; justify-content: space-between; }
.text-button, .journal-button, .icon-button { border: 0; background: transparent; cursor: pointer; }
.text-button { min-width: 44px; height: 20px; padding: 0 2px; color: var(--silver); }
.screen-bar { height: 64px; background: #0a0a0a; border-bottom: 1px solid rgba(255,255,255,.18); }
.screen-bar__inner { height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.brand { justify-self: start; min-width: 72px; display: inline-flex; align-items: center; min-height: 44px; }
.brand__logo { max-height: 36px; width: auto; object-fit: contain; }
.brand__fallback { font-size: 22px; font-weight: 700; letter-spacing: .16em; color: var(--white); }
.journal-button { min-height: 44px; min-width: 92px; padding: 8px 16px; border: 1px solid var(--border-strong); border-radius: 6px; color: var(--title); background: #101010; }
.journal-button:hover, .journal-button:focus-visible { background: var(--white); color: #000; outline: none; }
.app-link { justify-self: end; min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 6px; background: var(--white); color: #000; font-weight: 700; }
.session-tabs { height: 42px; background: #0d0d0d; border-bottom: 1px solid rgba(255,255,255,.16); }
.session-tabs__inner { height: 42px; display: flex; align-items: center; gap: 8px; }
.session-tabs a { min-height: 30px; display: inline-flex; align-items: center; padding: 4px 12px; color: var(--silver); border-radius: 4px; }
.session-tabs a:hover, .session-tabs a:focus-visible { color: var(--white); outline: 1px solid var(--border-strong); }
.session-tabs a.is-active { background: var(--white); color: #000; }
.site-main { padding-top: calc(var(--top) + 34px); min-height: 70vh; }
.hero, .page-hero { width: min(calc(100% - 40px), var(--max)); margin: 0 auto 44px; }
.hero-media, .page-media, .media-slot { background: #050505; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-media { min-height: 180px; max-height: 300px; }
.hero-media img { width: 100%; max-height: 300px; object-fit: contain; object-position: center; }
.hero-copy { max-width: 860px; padding: 26px 0 0; }
.eyebrow { display: inline-block; color: var(--silver); font-size: 12px; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; color: var(--title); line-height: 1.28; }
h1 { margin-top: 8px; font-size: clamp(28px, 4vw, 32px); letter-spacing: -.02em; }
h2 { font-size: clamp(22px, 3vw, 27px); }
h3 { font-size: 18px; }
p { margin: 12px 0 0; }
.lead { color: var(--text); font-size: 17px; max-width: 900px; }
.muted { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 9px 16px; border-radius: 6px; border: 1px solid var(--border-strong); }
.btn--primary { background: var(--white); color: #000; border-color: var(--white); font-weight: 700; }
.btn--secondary { background: transparent; color: var(--white); }
.btn:hover, .btn:focus-visible, .text-link:hover, .text-link:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.section { width: min(calc(100% - 40px), var(--max)); margin: 0 auto 56px; }
.section-head { display: flex; gap: 18px; align-items: end; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 18px; margin-bottom: 20px; }
.section-head p { max-width: 640px; color: var(--muted); }
.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 { background: var(--content); border: 1px solid var(--border); padding: 20px; border-radius: 8px; min-width: 0; }
.card:hover { background: var(--secondary); border-color: var(--border-strong); }
.card p { color: var(--muted); }
.card .text-link { display: inline-flex; margin-top: 16px; color: var(--white); min-height: 44px; align-items: center; }
.number-card { display: grid; grid-template-columns: 52px 1fr; gap: 14px; }
.number { font-size: 24px; color: var(--white); font-weight: 700; }
.media-card { overflow: hidden; background: var(--content); border: 1px solid var(--border); border-radius: 8px; }
.media-card__img { height: 210px; background: #050505; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border); }
.media-card__img img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.media-card__body { padding: 20px; }
.page-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: 28px; align-items: center; }
.page-hero--single { grid-template-columns: 1fr; }
.page-media { min-height: 220px; max-height: 300px; }
.page-media img { width: 100%; max-height: 300px; object-fit: contain; object-position: center; }
.article { max-width: 920px; }
.article p { margin-top: 16px; color: var(--text); }
.article h2 { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--border); }
.article h3 { margin-top: 26px; }
.article ul { color: var(--text); padding-left: 22px; }
.meta-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.meta-strip span { padding: 5px 10px; border: 1px solid var(--border); color: var(--silver); border-radius: 4px; font-size: 13px; }
.status-card strong { display: block; color: var(--white); font-size: 18px; }
.status-card span { display: block; margin-top: 8px; color: var(--muted); }
.note { border-left: 3px solid var(--silver); padding: 14px 18px; background: #0d0d0d; color: var(--silver); }
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--border); background: var(--content); padding: 20px; border-radius: 8px; }
.faq-item h2 { font-size: 18px; }
.faq-item p { color: var(--muted); }
.site-footer { margin-top: 70px; padding: 44px 0 calc(34px + env(safe-area-inset-bottom)); background: #000; border-top: 1px solid var(--border); color: var(--silver); }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 28px; }
.footer-grid h2 { font-size: 14px; margin-bottom: 8px; color: var(--white); }
.footer-grid a { display: block; padding: 5px 0; color: var(--silver); }
.footer-grid a:hover, .footer-grid a:focus-visible { color: var(--white); text-decoration: underline; outline: none; }
.footer-brand__mark { min-height: 44px; display: inline-flex !important; align-items: center; }
.footer-logo { max-height: 34px; width: auto; object-fit: contain; }
.footer-brand__name { color: var(--white); font-weight: 700; line-height: 1.3; }
.footer-brand__name span { color: var(--muted); font-size: 12px; letter-spacing: .14em; }
.footer-notice { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.site-overlay { position: fixed; inset: 0; z-index: 1100; background: rgba(0,0,0,.68); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.site-overlay.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
.journal-drawer { position: fixed; z-index: 1200; top: 0; right: 0; width: min(390px, 86vw); height: 100dvh; padding: 18px; background: #080808; border-left: 1px solid var(--border-strong); box-shadow: var(--shadow); transform: translateX(104%); visibility: hidden; pointer-events: none; transition: transform .24s ease, visibility .24s ease; overflow-y: auto; }
.journal-drawer.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.journal-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.drawer-brand { display: flex; align-items: center; gap: 10px; }
.drawer-brand img { max-height: 32px; width: auto; object-fit: contain; }
.drawer-brand strong, .drawer-brand span { display: block; }
.drawer-brand span { color: var(--muted); font-size: 10px; letter-spacing: .12em; }
.icon-button { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 6px; font-size: 24px; }
.icon-button:hover, .icon-button:focus-visible { background: var(--white); color: #000; outline: none; }
.journal-groups { display: grid; gap: 14px; padding-top: 16px; }
.journal-group { background: var(--content); border: 1px solid var(--border); padding: 14px; border-radius: 8px; }
.journal-group h2 { font-size: 13px; color: var(--silver); margin-bottom: 8px; }
.journal-group a { display: block; padding: 10px 8px; border-top: 1px solid rgba(255,255,255,.07); }
.journal-group a:first-of-type { border-top: 0; }
.journal-group a:hover, .journal-group a:focus-visible { background: var(--hover); outline: 1px solid var(--border-strong); }
.journal-group strong, .journal-group span { display: block; }
.journal-group strong { color: var(--white); }
.journal-group span { color: var(--muted); font-size: 12px; margin-top: 2px; line-height: 1.55; }
.search-layer { position: fixed; z-index: 1200; top: 84px; left: 0; right: 0; visibility: hidden; pointer-events: none; transform: translateY(-10px); opacity: 0; transition: .2s ease; }
.search-layer.is-open { visibility: visible; pointer-events: auto; transform: translateY(0); opacity: 1; }
.search-card { background: #0d0d0d; border: 1px solid var(--border-strong); box-shadow: var(--shadow); padding: 20px; }
.search-card__top { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.search-card__top h2 { margin-top: 4px; }
.search-look { margin-top: 18px; min-height: 48px; display: flex; align-items: center; padding: 10px 14px; border: 1px solid var(--border); background: #050505; color: var(--muted); border-radius: 6px; }
.search-presets { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.search-presets a { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 14px; border: 1px solid var(--border); border-radius: 6px; }
.search-presets a:hover, .search-presets a:focus-visible { background: var(--white); color: #000; outline: none; }
.mobile-bottom { display: none; }
@media (max-width: 900px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .page-hero { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
    :root { --top: 84px; }
    body { padding-bottom: calc(50px + env(safe-area-inset-bottom)); }
    .wrap, .hero, .page-hero, .section { width: min(calc(100% - 32px), var(--max)); }
    .session-tabs { display: none; }
    .site-main { padding-top: calc(var(--top) + 24px); }
    .screen-bar__inner { grid-template-columns: 1fr auto 1fr; gap: 8px; }
    .brand__logo { max-width: 96px; }
    .journal-button { min-width: 84px; padding: 8px 10px; }
    .app-link { padding: 0 10px; white-space: nowrap; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .hero-copy { padding-top: 20px; }
    .hero-media { min-height: 140px; }
    .media-card__img { height: 190px; }
    .section { margin-bottom: 44px; }
    .section-head { display: block; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .footer-brand { grid-column: 1 / -1; }
    .search-layer { top: 84px; }
    .search-card { width: calc(100% - 20px); }
    .mobile-bottom { position: fixed; z-index: 900; left: 0; right: 0; bottom: 0; height: calc(50px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, 1fr); background: #050505; border-top: 1px solid var(--border-strong); }
    .mobile-bottom a { min-height: 50px; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--silver); }
    .mobile-bottom a.is-active { background: var(--white); color: #000; }
}
@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; }
}

.app-icon { width: 64px; height: 64px; object-fit: contain; object-position: center; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 16px; }
