:root {
    --bg: #0D0D0D;
    --deep: #070707;
    --panel: #171717;
    --panel2: #222222;
    --title: #F2F2F2;
    --text: #C8C8C8;
    --muted: #9A9A9A;
    --quiet: #6E6E6E;
    --silver: #C8C8C8;
    --bright: #E8E8E8;
    --ink: #1A1A1A;
    --mist-red: #B85A5A;
    --line: rgba(232,232,232,.12);
    --strong-line: rgba(232,232,232,.36);
    --shadow: 0 12px 28px rgba(0,0,0,.45);
    --max: 1120px;
    --top-offset: 122px;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 15px; line-height: 1.7; overflow-x: hidden; }
body.overlay-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { max-width: 100%; }
.shell { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.ink-line { position: fixed; z-index: 80; top: 0; left: 0; right: 0; height: 22px; background: var(--deep); border-bottom: 1px solid var(--line); }
.ink-line-inner { height: 22px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; line-height: 1; }
.ink-brand { color: var(--silver); letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.text-button { min-width: 44px; min-height: 22px; padding: 0 8px; border: 0; background: transparent; color: var(--silver); cursor: pointer; }
.material-bar { position: fixed; z-index: 79; top: 22px; left: 0; right: 0; height: 60px; background: var(--ink); border-bottom: 1px solid var(--strong-line); }
.material-bar-inner { height: 60px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.brand-link { justify-self: start; display: inline-flex; min-height: 44px; align-items: center; color: var(--title); font-size: 16px; font-weight: 700; }
.brand-link img, .drawer-brand img, .footer-brand-row img { width: auto; height: 28px; object-fit: contain; object-position: center; }
.drawer-trigger, .app-link, .icon-button { min-height: 44px; border: 1px solid var(--strong-line); border-radius: 10px; padding: 0 16px; background: var(--panel); color: var(--bright); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.drawer-trigger { justify-self: center; min-width: 88px; }
.app-link { justify-self: end; }
.case-tabs { position: fixed; z-index: 78; top: 82px; left: 0; right: 0; height: 40px; background: #111; border-bottom: 1px solid var(--line); }
.case-tabs-inner { height: 40px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.case-tabs a { min-height: 32px; padding: 4px 18px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; color: var(--silver); }
.case-tabs a.active { background: var(--bright); color: var(--bg); }
.page-main { min-height: 60vh; padding: calc(var(--top-offset) + 32px) 0 72px; }
.page-hero { margin-bottom: 28px; }
.page-hero h1 { margin: 0 0 12px; color: var(--title); font-size: 24px; line-height: 1.3; }
.page-hero p { max-width: 850px; margin: 0; color: var(--text); }
.eyebrow { display: inline-block; margin-bottom: 8px; color: var(--mist-red); font-size: 12px; letter-spacing: .12em; }
.section { margin-top: 24px; }
.section h2 { margin: 0 0 12px; color: var(--title); font-size: 20px; line-height: 1.4; }
.section h3 { margin: 0 0 8px; color: var(--title); font-size: 16px; line-height: 1.45; }
.section p { margin: 0 0 12px; }
.cover-slot, .image-slot { width: 100%; background: var(--ink); border: 1px solid var(--line); border-radius: 14px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cover-slot { height: 260px; margin-bottom: 18px; }
.image-slot { height: 180px; }
.image-slot.tall { height: 200px; }
.image-slot.app-shot { height: min(360px, 62vw); }
.cover-slot img, .image-slot img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.card p:last-child { margin-bottom: 0; }
.card .image-slot { margin-bottom: 14px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.stack { display: grid; gap: 14px; }
.number-list { counter-reset: n; display: grid; gap: 12px; }
.number-item { counter-increment: n; display: grid; grid-template-columns: 54px minmax(0,1fr); gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.number-item::before { content: counter(n, decimal-leading-zero); color: var(--bright); font-size: 28px; font-weight: 700; line-height: 1; }
.timeline { position: relative; margin-left: 12px; padding-left: 28px; border-left: 1px solid var(--strong-line); }
.timeline-item { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.timeline-item::before { content: ""; position: absolute; width: 11px; height: 11px; border-radius: 50%; background: var(--bright); left: -34px; top: 22px; box-shadow: 0 0 0 5px var(--bg); }
.status { display: inline-flex; min-height: 28px; align-items: center; padding: 2px 10px; border: 1px solid var(--strong-line); border-radius: 999px; font-size: 12px; color: var(--bright); }
.shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.shelf-item { min-height: 150px; background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; }
.shelf-item small { color: var(--muted); }
.note-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.note { background: var(--panel); border-left: 3px solid var(--mist-red); border-radius: 0 12px 12px 0; padding: 16px 18px; }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn-primary, .btn-secondary { min-height: 42px; padding: 0 18px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; white-space: nowrap; }
.btn-primary { color: var(--bg); background: linear-gradient(135deg,#E8E8E8 0%,#C8C8C8 55%,#8A8A8A 100%); border: 1px solid transparent; }
.btn-secondary { color: var(--bright); background: var(--deep); border: 1px solid var(--strong-line); }
a:hover, button:hover { filter: brightness(1.08); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--bright); outline-offset: 3px; }
.rule-block { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.rule-block + .rule-block { margin-top: 14px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.faq-item h2, .faq-item h3 { margin-bottom: 8px; }
.link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.link-card { min-height: 120px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.link-card strong { display: block; color: var(--title); margin-bottom: 6px; }
.site-footer { background: var(--deep); border-top: 1px solid var(--line); padding: 32px 0 calc(18px + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 20px; }
.footer-brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-brand-row div { display: grid; gap: 2px; }
.footer-brand-row strong { color: var(--title); font-size: 16px; }
.footer-brand-row span { color: var(--muted); font-size: 12px; }
.site-footer h2 { margin: 0 0 8px; font-size: 13px; color: var(--title); }
.site-footer a { display: block; font-size: 13px; color: var(--text); min-height: 30px; }
.site-footer p, .footer-bottom { color: var(--muted); font-size: 13px; }
.footer-bottom { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.page-mask { position: fixed; z-index: 88; inset: 0; background: rgba(0,0,0,.68); opacity: 0; visibility: hidden; pointer-events: none; transition: .2s ease; }
.page-mask.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
.drawer-panel { position: fixed; z-index: 90; top: 0; bottom: 0; left: 0; width: min(400px, 86vw); background: var(--deep); border-right: 1px solid var(--strong-line); transform: translateX(-102%); visibility: hidden; pointer-events: none; transition: transform .22s ease, visibility .22s ease; overflow-y: auto; }
.drawer-panel.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.drawer-head { position: sticky; top: 0; z-index: 2; background: var(--deep); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer-brand { display: flex; align-items: center; gap: 10px; color: var(--title); }
.drawer-body { padding: 14px 16px 24px; }
.drawer-body section + section { margin-top: 18px; }
.drawer-body h2 { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.drawer-body a { display: grid; gap: 2px; padding: 11px 10px; border-radius: 10px; border: 1px solid transparent; }
.drawer-body a:hover { background: var(--panel); border-color: var(--line); }
.drawer-body strong { color: var(--title); font-size: 14px; }
.drawer-body span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.search-panel { position: fixed; z-index: 89; top: 82px; left: 0; right: 0; background: var(--ink); border-bottom: 1px solid var(--strong-line); box-shadow: var(--shadow); transform: translateY(-120%); visibility: hidden; pointer-events: none; transition: .2s ease; }
.search-panel.is-open { transform: translateY(0); visibility: visible; pointer-events: auto; }
.search-card { padding: 18px 0 20px; }
.search-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--title); }
.search-presets { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.search-presets a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--strong-line); border-radius: 10px; background: var(--panel); }
.mobile-bottom { display: none; }
.muted { color: var(--muted); }
.quote-box { background: var(--bright); color: var(--bg); border-radius: 12px; padding: 18px; }
.quote-box h2, .quote-box h3, .quote-box p { color: var(--bg); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-row span { display: inline-flex; min-height: 30px; align-items: center; padding: 2px 10px; border-radius: 999px; background: var(--panel2); color: var(--text); border: 1px solid var(--line); font-size: 12px; }
@media (max-width: 860px) {
    :root { --top-offset: 82px; }
    .case-tabs { display: none; }
    .material-bar-inner { grid-template-columns: 1fr auto 1fr; gap: 8px; }
    .brand-link img { max-width: 110px; }
    .drawer-trigger { min-width: 70px; padding: 0 12px; }
    .app-link { padding: 0 12px; }
    .card-grid, .link-grid { grid-template-columns: 1fr; }
    .shelf { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .mobile-bottom { position: fixed; z-index: 84; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); min-height: calc(48px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--deep); border-top: 1px solid var(--strong-line); }
    .mobile-bottom a { min-height: 48px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--text); }
    .mobile-bottom a.active { background: var(--bright); color: var(--bg); }
    .site-footer { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
    .search-panel { top: 0; bottom: 0; background: var(--deep); transform: translateY(-104%); overflow-y: auto; }
    .search-card { padding-top: 26px; }
    .search-presets { display: grid; grid-template-columns: 1fr 1fr; }
    .search-presets a { justify-content: center; }
}
@media (max-width: 680px) {
    .shell { width: calc(100% - 32px); }
    .page-main { padding-bottom: 72px; }
    .split, .note-list { grid-template-columns: 1fr; }
    .shelf { grid-template-columns: 1fr; }
    .cover-slot { height: 260px; }
    .image-slot { height: 180px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 18px 14px; }
    .number-item { grid-template-columns: 46px minmax(0,1fr); }
}
