:root {
    --bg: #0D0D0D;
    --deep: #070707;
    --panel: #171717;
    --panel-2: #222222;
    --title: #F2F2F2;
    --text: #C8C8C8;
    --muted: #9A9A9A;
    --soft: #6E6E6E;
    --silver: #C8C8C8;
    --bright: #E8E8E8;
    --ink: #1A1A1A;
    --mist-red: #B85A5A;
    --border: rgba(232,232,232,0.12);
    --border-strong: rgba(232,232,232,0.36);
    --shadow: 0 12px 28px rgba(0,0,0,0.45);
    --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    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;
    overflow-x: hidden;
}
body.ui-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { display: block; max-width: 100%; }
.skip-link { position: fixed; left: 16px; top: -64px; z-index: 200; background: var(--bright); color: var(--bg); padding: 8px 12px; border-radius: 8px; }
.skip-link:focus { top: 8px; }
.site-header { position: relative; z-index: 80; }
.ink-line, .main-bar, .case-tabs { position: fixed; left: 0; right: 0; }
.ink-line { top: 0; height: 22px; background: var(--deep); border-bottom: 1px solid var(--border); z-index: 83; }
.main-bar { top: 22px; height: 60px; background: var(--ink); border-bottom: 1px solid var(--border); z-index: 82; }
.case-tabs { top: 82px; height: 40px; background: var(--deep); border-bottom: 1px solid var(--border); z-index: 81; }
.bar-inner, .case-tabs-inner { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }
.ink-line-inner { height: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--silver); white-space: nowrap; }
.text-button { border: 0; background: transparent; color: var(--silver); min-height: 22px; padding: 0 2px; cursor: pointer; }
.main-bar-inner { height: 60px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.brand-link { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; min-width: 70px; }
.brand-logo, .footer-logo, .drawer-brand img { height: 28px; width: auto; max-width: 180px; object-fit: contain; object-position: center; }
.brand-text { color: var(--bright); font-size: 16px; font-weight: 700; letter-spacing: .08em; }
.drawer-trigger, .app-link, .icon-button { min-height: 44px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--deep); color: var(--bright); padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.drawer-trigger { justify-self: center; }
.app-link { justify-self: end; }
.drawer-trigger:hover, .app-link:hover, .icon-button:hover { background: var(--panel-2); }
.case-tabs-inner { height: 40px; display: flex; justify-content: center; align-items: stretch; gap: 6px; }
.case-tab { min-width: 96px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; font-size: 13px; color: var(--silver); border-left: 1px solid transparent; border-right: 1px solid transparent; }
.case-tab:hover { background: var(--panel); }
.case-tab.is-current { background: var(--silver); color: var(--bg); font-weight: 700; }
.site-main { padding-top: 122px; min-height: 70vh; }
.content-wrap { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }
.page-hero { padding: 44px 0 24px; border-bottom: 1px solid var(--border); }
.page-hero .eyebrow, .eyebrow { margin: 0 0 8px; color: var(--muted); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3 { color: var(--title); margin-top: 0; }
h1 { font-size: 24px; line-height: 1.3; margin-bottom: 14px; }
h2 { font-size: 20px; line-height: 1.4; margin-bottom: 12px; }
h3 { font-size: 16px; line-height: 1.5; margin-bottom: 8px; }
p { margin-top: 0; }
.lead { max-width: 820px; color: var(--text); margin-bottom: 0; }
.section { padding: 34px 0; border-bottom: 1px solid var(--border); }
.section:last-child { border-bottom: 0; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-heading 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, .article-block, .shelf-item, .note-item, .faq-item, .timeline-item, .numbered-item {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
}
.card, .article-block, .shelf-item, .note-item, .faq-item { padding: 20px; }
.card p:last-child, .article-block p:last-child, .shelf-item p:last-child, .note-item p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }
.tiny { color: var(--soft); font-size: 13px; }
.tag { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--silver); font-size: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.media-slot { width: 100%; height: 200px; background: var(--ink); border: 1px solid var(--border); border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.media-slot img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.media-slot.banner-slot { height: 260px; border-radius: 14px; }
.media-slot.card-media { height: 180px; margin-bottom: 16px; }
.media-slot.app-media { height: 360px; max-width: 420px; margin: 0 auto; }
.media-slot.icon-slot { width: 64px; height: 64px; border-radius: 14px; }
.hero-brand { padding: 22px 0 4px; }
.hero-brand h1 { margin-bottom: 8px; }
.hero-brand .hero-line { font-size: 18px; color: var(--bright); margin-bottom: 10px; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn { min-height: 42px; padding: 0 18px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; white-space: nowrap; border: 1px solid var(--border-strong); }
.btn-primary { color: var(--bg); background: linear-gradient(135deg,#E8E8E8 0%,#C8C8C8 55%,#8A8A8A 100%); }
.btn-secondary { color: var(--bright); background: var(--deep); }
.btn:hover { transform: translateY(-1px); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--bright); outline-offset: 3px; }
.number { font-size: 28px; line-height: 1; font-weight: 800; color: var(--bright); letter-spacing: .04em; }
.number-small { font-size: 13px; color: var(--bright); font-weight: 800; letter-spacing: .12em; }
.numbered-list { display: grid; gap: 12px; }
.numbered-item { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start; padding: 18px; }
.shelf { display: grid; gap: 10px; }
.shelf-spaced { margin-top: 16px; }
.shelf-item { display: grid; grid-template-columns: minmax(150px, 220px) 1fr auto; gap: 16px; align-items: center; }
.shelf-label { color: var(--bright); font-weight: 700; }
.shelf-status { color: var(--muted); font-size: 13px; white-space: nowrap; }
.timeline { position: relative; display: grid; gap: 14px; margin-left: 6px; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 10px; bottom: 10px; width: 1px; background: var(--border-strong); }
.timeline-item { position: relative; margin-left: 42px; padding: 18px 20px; }
.timeline-item::before { content: ""; position: absolute; width: 11px; height: 11px; border-radius: 50%; background: var(--silver); left: -33px; top: 24px; box-shadow: 0 0 0 6px var(--bg); }
.timeline-item .status { color: var(--bright); font-size: 13px; font-weight: 700; }
.prose { max-width: 900px; }
.prose p { margin-bottom: 16px; }
.prose ul { padding-left: 20px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.notice { border-left: 3px solid var(--mist-red); background: var(--panel); padding: 16px 18px; border-radius: 0 10px 10px 0; }
.faq-list { display: grid; gap: 12px; }
.faq-item h2, .faq-item h3 { margin-bottom: 8px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px 16px; color: var(--muted); font-size: 13px; }
.app-intro { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px; align-items: center; }
.app-icon-line { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.app-icon-line strong { color: var(--bright); font-size: 20px; }
.site-footer { background: var(--deep); border-top: 1px solid var(--border); color: var(--silver); font-size: 13px; margin-top: 32px; padding: 34px 0 calc(32px + env(safe-area-inset-bottom)); }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.footer-logo-link { display: inline-flex; min-height: 44px; align-items: center; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding: 26px 0; }
.footer-grid h2 { font-size: 13px; margin-bottom: 10px; color: var(--bright); }
.footer-grid a { display: block; min-height: 32px; color: var(--text); }
.footer-grid a:hover { color: var(--bright); }
.footer-notice { max-width: 880px; color: var(--muted); }
.copyright { color: var(--soft); margin-bottom: 0; }
.site-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.68); z-index: 90; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.site-overlay.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.site-drawer { position: fixed; left: 0; top: 0; bottom: 0; width: min(400px, 86vw); z-index: 100; background: var(--deep); 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 ease; }
.site-drawer.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.drawer-head { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.drawer-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.drawer-brand div { display: grid; line-height: 1.2; }
.drawer-brand strong { color: var(--bright); }
.drawer-brand span { color: var(--muted); font-size: 11px; }
.drawer-scroll { height: calc(100% - 78px); overflow-y: auto; padding: 6px 14px 28px; }
.drawer-group { padding: 16px 0; border-bottom: 1px solid var(--border); }
.drawer-group h2 { font-size: 12px; color: var(--muted); margin: 0 0 8px 4px; letter-spacing: .12em; }
.drawer-group a { display: grid; gap: 2px; padding: 10px 10px; border-radius: 10px; }
.drawer-group a:hover { background: var(--panel); }
.drawer-group strong { color: var(--bright); font-size: 14px; }
.drawer-group span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.search-layer { position: fixed; left: 0; right: 0; top: 82px; z-index: 99; visibility: hidden; pointer-events: none; opacity: 0; transition: opacity .18s ease, visibility .18s ease; }
.search-layer.is-open { visibility: visible; pointer-events: auto; opacity: 1; }
.search-card { width: min(calc(100% - 32px), 760px); margin: 18px auto 0; background: var(--ink); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow); padding: 22px; }
.search-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.search-head h2 { margin-bottom: 0; }
.search-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.search-presets a { min-height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); color: var(--bright); }
.search-presets a:hover { border-color: var(--border-strong); }
.search-note { color: var(--muted); font-size: 13px; margin: 16px 0 0; }
.mobile-bottom { display: none; }
@media (max-width: 860px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .app-intro { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    body { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
    .case-tabs { display: none; }
    .site-main { padding-top: 82px; }
    .bar-inner { width: calc(100% - 32px); }
    .main-bar-inner { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; }
    .brand-link { min-width: 0; overflow: hidden; }
    .brand-logo { max-width: 92px; }
    .brand-text { font-size: 15px; white-space: nowrap; }
    .drawer-trigger, .app-link { padding: 0 12px; min-width: 60px; }
    .app-link { white-space: nowrap; }
    .page-hero { padding-top: 30px; }
    .grid-2, .grid-4 { grid-template-columns: 1fr; }
    .section-heading { display: block; }
    .section-heading p { margin-top: 6px; }
    .media-slot.banner-slot { height: 260px; }
    .shelf-item { grid-template-columns: 1fr; gap: 6px; }
    .shelf-status { white-space: normal; }
    .numbered-item { grid-template-columns: 48px 1fr; }
    .number { font-size: 24px; }
    .search-layer { top: 0; bottom: 0; background: var(--deep); }
    .search-card { width: 100%; min-height: 100%; margin: 0; border: 0; border-radius: 0; padding: 28px 16px calc(80px + env(safe-area-inset-bottom)); background: var(--deep); }
    .search-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-footer { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mobile-bottom { display: grid; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; height: calc(48px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--deep); border-top: 1px solid var(--border-strong); }
    .mobile-bottom a { min-height: 48px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--silver); }
    .mobile-bottom a.is-current { background: var(--silver); color: var(--bg); font-weight: 700; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
