:root {
    --bg: #0D0D0D;
    --bg-deep: #070707;
    --panel: #171717;
    --panel-2: #222222;
    --text: #C8C8C8;
    --text-strong: #F2F2F2;
    --muted: #9A9A9A;
    --soft: #6E6E6E;
    --silver: #C8C8C8;
    --silver-bright: #E8E8E8;
    --ink: #1A1A1A;
    --red: #B85A5A;
    --line: rgba(232,232,232,0.12);
    --line-strong: rgba(232,232,232,0.36);
    --shadow: 0 12px 28px rgba(0,0,0,0.45);
    --radius: 12px;
    --shell: 1120px;
    --header-space: 122px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
    margin: 0;
    min-width: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "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; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

.skip-link {
    position: fixed;
    left: 12px;
    top: -60px;
    z-index: 9999;
    padding: 10px 14px;
    background: var(--silver-bright);
    color: var(--bg);
    border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.shell { width: min(calc(100% - 32px), var(--shell)); margin: 0 auto; }
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 1000; }
.ink-line { height: 22px; background: var(--bg-deep); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--silver); }
.ink-line-inner { height: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.text-action { border: 0; background: transparent; min-height: 22px; padding: 0 2px; cursor: pointer; color: var(--silver-bright); }
.text-action:hover, .text-action:focus-visible { text-decoration: underline; outline: none; }

.material-bar { height: 60px; background: var(--ink); border-bottom: 1px solid var(--line); box-shadow: 0 3px 12px rgba(0,0,0,0.18); }
.material-bar-inner { height: 60px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.brand-home { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; }
.brand-logo { width: auto; height: 28px; max-width: 168px; object-fit: contain; object-position: left center; }
.brand-text { display: inline-flex; align-items: center; height: 28px; font-size: 16px; font-weight: 700; letter-spacing: .08em; color: var(--text-strong); }
.drawer-trigger, .app-link, .icon-button {
    min-height: 44px;
    min-width: 44px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid var(--line-strong);
    background: var(--bg-deep);
    color: var(--silver-bright);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}
.drawer-trigger { justify-self: center; }
.app-link { justify-self: end; }
.drawer-trigger:hover, .drawer-trigger:focus-visible, .app-link:hover, .app-link:focus-visible, .icon-button:hover, .icon-button:focus-visible { border-color: var(--silver-bright); outline: none; }

.case-tabs { height: 40px; background: var(--bg-deep); border-bottom: 1px solid var(--line); }
.case-tabs-inner { height: 40px; display: flex; align-items: stretch; justify-content: center; gap: 2px; }
.case-tabs a { min-width: 110px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; font-size: 13px; color: var(--silver); }
.case-tabs a:hover, .case-tabs a:focus-visible { background: var(--panel); outline: none; }
.case-tabs a.is-current { background: var(--silver-bright); color: var(--bg); font-weight: 700; }

.site-main { min-height: 70vh; padding-top: calc(var(--header-space) + 28px); }
.page-hero { padding: 22px 0 8px; }
.eyebrow { display: inline-block; font-size: 12px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
h1, h2, h3 { margin: 0; color: var(--text-strong); font-weight: 700; }
h1 { font-size: 24px; line-height: 1.3; letter-spacing: .01em; }
h2 { font-size: 20px; line-height: 1.4; }
h3 { font-size: 16px; line-height: 1.5; }
p { margin: 0; }
.lead { margin-top: 12px; max-width: 820px; color: var(--text); font-size: 15px; }
.section { padding: 30px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.section-head p { color: var(--muted); max-width: 660px; }
.section-kicker { color: var(--red); font-size: 12px; letter-spacing: .1em; margin-bottom: 6px; }
.prose { max-width: 860px; }
.prose p + p { margin-top: 14px; }
.prose h2 { margin: 28px 0 10px; }
.prose h3 { margin: 22px 0 8px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 12px 0 0; }
.prose li + li { margin-top: 7px; }

.button-row { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    white-space: nowrap;
    border: 1px solid transparent;
}
.btn-primary { background: linear-gradient(135deg,#E8E8E8 0%,#C8C8C8 55%,#8A8A8A 100%); color: var(--bg); font-weight: 700; }
.btn-secondary { background: var(--bg-deep); color: var(--silver-bright); border-color: var(--line-strong); }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--silver-bright); outline-offset: 2px; }

.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 {
    min-width: 0;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}
.card h3 + p, .card h2 + p { margin-top: 8px; }
.card p { color: var(--text); }
.card .meta { margin-top: 10px; color: var(--muted); font-size: 13px; }
.card-link { display: block; transition: border-color .2s ease, transform .2s ease; }
.card-link:hover, .card-link:focus-visible { border-color: var(--line-strong); transform: translateY(-2px); outline: none; }

.media-slot { width: 100%; background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.media-slot img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.media-banner { height: 260px; }
.media-card { height: 180px; margin-bottom: 14px; }
.media-feature { height: 200px; margin-bottom: 18px; }
.media-app { height: min(360px, 52vw); min-height: 260px; }
.media-icon { width: 64px; height: 64px; border-radius: 14px; }
.media-icon img { width: 48px; height: 48px; }

.home-cover { padding-top: 6px; }
.cover-copy { padding: 20px 0 8px; max-width: 860px; }
.cover-copy h1 { margin-top: 8px; }
.cover-copy .cover-slogan { margin-top: 8px; font-size: 20px; color: var(--silver-bright); }
.cover-copy .lead { margin-top: 10px; }

.numbered-feature { display: grid; grid-template-columns: minmax(0, 1fr) 1.2fr; gap: 20px; align-items: start; }
.number-list { display: grid; gap: 10px; }
.number-item { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.number-item:last-child { border-bottom: 0; }
.number-item .num { color: var(--silver-bright); font-size: 18px; font-weight: 700; letter-spacing: .06em; }
.number-item p { color: var(--muted); margin-top: 4px; }

.shelf { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.shelf-item { position: relative; min-height: 172px; padding: 20px 16px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.shelf-item::before { content: ""; position: absolute; left: 16px; right: 16px; top: 10px; height: 2px; background: var(--line-strong); }
.shelf-item span { color: var(--muted); font-size: 12px; }
.shelf-item h3 { margin-top: 8px; }
.shelf-item p { margin-top: 8px; color: var(--text); }

.editor-list { counter-reset: editor; display: grid; gap: 0; border-top: 1px solid var(--line); }
.editor-item { counter-increment: editor; display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.editor-item::before { content: counter(editor, decimal-leading-zero); color: var(--silver-bright); font-size: 24px; font-weight: 700; }
.editor-item p { margin-top: 5px; color: var(--muted); }

.timeline { position: relative; margin-left: 10px; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--line-strong); }
.timeline-item { position: relative; padding: 0 0 24px; }
.timeline-item::before { content: ""; position: absolute; left: -28px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--silver); box-shadow: 0 0 0 4px var(--bg); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item .status { display: inline-flex; align-items: center; min-height: 28px; padding: 0 9px; margin-bottom: 7px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 12px; color: var(--silver-bright); }
.timeline-item p { margin-top: 6px; color: var(--muted); }

.note-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.note { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.note .note-label { color: var(--red); font-size: 12px; letter-spacing: .08em; }
.note h3 { margin-top: 5px; }
.note p { margin-top: 8px; color: var(--text); }

.list-rows { border-top: 1px solid var(--line); }
.list-row { display: grid; grid-template-columns: minmax(150px,.6fr) 1.4fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.list-row .row-title { color: var(--text-strong); font-weight: 700; }
.list-row .row-copy { color: var(--muted); }
.list-row .row-tag { font-size: 12px; color: var(--silver-bright); border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 9px; white-space: nowrap; }

.term-section { padding: 22px 0; border-top: 1px solid var(--line); }
.term-section:first-child { border-top: 0; padding-top: 0; }
.term-section h2 + p { margin-top: 8px; }
.term-section p + p { margin-top: 12px; }

.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.faq-item h2, .faq-item h3 { font-size: 16px; }
.faq-item p { margin-top: 8px; color: var(--text); }

.app-layout { display: grid; grid-template-columns: minmax(280px,.72fr) 1.28fr; gap: 24px; align-items: start; }
.app-identity { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.app-identity .media-slot { flex: 0 0 64px; margin: 0; }
.app-identity strong { color: var(--text-strong); display: block; font-size: 18px; }
.app-identity span { color: var(--muted); font-size: 13px; }

.notice { padding: 16px 18px; border-left: 3px solid var(--red); background: var(--panel); border-radius: 0 var(--radius) var(--radius) 0; color: var(--text); }
.notice strong { color: var(--text-strong); }

.site-footer { margin-top: 42px; background: var(--bg-deep); border-top: 1px solid var(--line); color: var(--text); }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(4,1fr); gap: 28px; padding: 34px 0 26px; }
.footer-brand-link { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; width: max-content; max-width: 100%; }
.footer-logo { grid-row: 1 / span 2; }
.footer-brand-name { color: var(--text-strong); font-weight: 700; }
.footer-brand-en { color: var(--muted); font-size: 11px; letter-spacing: .1em; }
.footer-brand p { margin-top: 14px; max-width: 410px; font-size: 13px; color: var(--muted); }
.footer-column { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.footer-column h2 { font-size: 13px; color: var(--silver-bright); margin-bottom: 4px; }
.footer-column a { color: var(--text); min-height: 28px; display: inline-flex; align-items: center; }
.footer-column a:hover, .footer-column a:focus-visible, .footer-bottom a:hover, .footer-bottom a:focus-visible { color: var(--silver-bright); outline: none; text-decoration: underline; }
.footer-bottom { min-height: 54px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }

.overlay { position: fixed; inset: 0; z-index: 1190; background: rgba(0,0,0,.62); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.overlay.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.material-drawer { position: fixed; inset: 0 auto 0 0; z-index: 1200; width: min(400px,86vw); background: var(--bg-deep); border-right: 1px solid var(--line-strong); transform: translateX(-102%); visibility: hidden; pointer-events: none; transition: transform .24s ease, visibility .24s ease; box-shadow: var(--shadow); }
.drawer-open .material-drawer { transform: translateX(0); visibility: visible; pointer-events: auto; }
.drawer-head { height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.drawer-brand { display: flex; align-items: center; gap: 10px; color: var(--text-strong); font-weight: 700; }
.drawer-scroll { height: calc(100vh - 70px); overflow-y: auto; padding: 8px 16px 30px; }
.drawer-group { padding: 14px 0; border-bottom: 1px solid var(--line); }
.drawer-group:last-child { border-bottom: 0; }
.drawer-group h2 { font-size: 12px; color: var(--muted); letter-spacing: .1em; margin-bottom: 6px; }
.drawer-group a { display: block; padding: 10px 8px; border-radius: 8px; }
.drawer-group a:hover, .drawer-group a:focus-visible { background: var(--panel); outline: none; }
.drawer-group strong { display: block; color: var(--text-strong); font-size: 14px; }
.drawer-group span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

.search-panel { position: fixed; left: 0; right: 0; top: 82px; z-index: 1210; display: flex; justify-content: center; padding: 18px 16px; visibility: hidden; pointer-events: none; opacity: 0; transform: translateY(-10px); transition: .2s ease; }
.search-open .search-panel { visibility: visible; pointer-events: auto; opacity: 1; transform: translateY(0); }
.search-card { width: min(760px,100%); background: var(--ink); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow); padding: 18px; }
.search-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.search-head h2 { margin-top: 3px; }
.search-label { display: block; margin-top: 16px; color: var(--muted); font-size: 13px; }
.search-input { margin-top: 6px; width: 100%; height: 46px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg-deep); color: var(--text-strong); padding: 0 14px; outline: none; }
.search-input:focus { border-color: var(--silver-bright); box-shadow: 0 0 0 2px rgba(232,232,232,.08); }
.search-presets { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 12px; }
.search-presets a { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.search-presets a:hover, .search-presets a:focus-visible { border-color: var(--line-strong); outline: none; }
.search-presets strong { display: block; color: var(--text-strong); }
.search-presets span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.search-empty { margin-top: 12px; color: var(--muted); }

.mobile-bottom { display: none; }

@media (max-width: 900px) {
    .card-grid.four, .shelf { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .footer-grid { grid-template-columns: 1.5fr repeat(2,1fr); }
    .footer-brand { grid-row: span 2; }
    .numbered-feature { grid-template-columns: 1fr; }
    .app-layout { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    :root { --header-space: 82px; }
    body { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
    .case-tabs { display: none; }
    .material-bar-inner { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 8px; }
    .brand-home { max-width: 100%; overflow: hidden; }
    .brand-logo { max-width: 112px; }
    .brand-text { font-size: 15px; }
    .drawer-trigger, .app-link { padding: 0 11px; }
    .app-link { font-size: 13px; }
    .site-main { padding-top: calc(var(--header-space) + 20px); }
    .card-grid, .card-grid.two, .card-grid.four { grid-template-columns: 1fr; }
    .note-grid { grid-template-columns: 1fr; }
    .shelf { grid-template-columns: 1fr; }
    .app-layout { grid-template-columns: 1fr; }
    .media-app { height: 340px; min-height: 0; }
    .list-row { grid-template-columns: 1fr; gap: 6px; }
    .list-row .row-tag { justify-self: start; }
    .footer-grid { grid-template-columns: repeat(2,1fr); gap: 20px; }
    .footer-brand { grid-column: 1 / -1; grid-row: auto; }
    .footer-bottom { padding: 14px 0; min-height: 62px; align-items: flex-start; flex-direction: column; justify-content: center; }
    .mobile-bottom { position: fixed; z-index: 1100; 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: var(--bg-deep); border-top: 1px solid var(--line-strong); box-shadow: 0 -6px 18px rgba(0,0,0,.35); }
    .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-bright); color: var(--bg); font-weight: 700; }
    .search-panel { inset: 0; top: 0; padding: 0; background: var(--bg-deep); align-items: stretch; }
    .search-card { width: 100%; border: 0; border-radius: 0; padding: calc(18px + env(safe-area-inset-top)) 16px 72px; overflow-y: auto; }
    .search-presets { grid-template-columns: 1fr; }
    .section-head { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 430px) {
    .shell { width: calc(100% - 32px); }
    .ink-line-inner { gap: 8px; }
    .ink-line-inner > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .brand-logo { max-width: 92px; }
    .drawer-trigger, .app-link { padding: 0 9px; }
    .media-banner { height: 220px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
