:root {
    --bg: #0D0D0D;
    --deep: #070707;
    --surface: #171717;
    --surface-2: #222222;
    --title: #F2F2F2;
    --text: #C8C8C8;
    --muted: #9A9A9A;
    --subtle: #6E6E6E;
    --silver: #C8C8C8;
    --silver-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; overflow-x: hidden; }
body {
    margin: 0;
    min-width: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
body.ui-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a, button, input { font: inherit; }
button { color: inherit; }
img { max-width: 100%; }
.skip-link {
    position: fixed;
    left: 16px;
    top: -60px;
    z-index: 500;
    padding: 10px 14px;
    background: var(--silver-bright);
    color: var(--bg);
    border-radius: 8px;
}
.skip-link:focus { top: 8px; }

.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; }
.ink-line { height: 22px; background: var(--deep); color: var(--silver); border-bottom: 1px solid var(--border); font-size: 12px; }
.top-shell, .bar-shell, .case-tabs__inner, .footer-shell, .section-shell { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.top-shell { height: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.text-button, .drawer-button, .icon-button {
    border: 0;
    background: transparent;
    cursor: pointer;
}
.text-button { min-height: 22px; padding: 0 4px; color: var(--silver-bright); }
.material-bar { height: 60px; background: var(--ink); border-bottom: 1px solid var(--border); }
.bar-shell { height: 60px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.brand-link { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; }
.logo-slot { display: inline-flex; align-items: center; justify-content: center; min-width: 72px; }
.logo-slot--header, .logo-slot--drawer, .logo-slot--footer { height: 28px; }
.site-logo { height: 28px; width: auto; object-fit: contain; object-position: center; display: block; }
.app-icon-slot { height: 48px; justify-content: flex-start; margin-bottom: 10px; }
.app-icon-slot img { width: 48px; height: 48px; object-fit: contain; object-position: center; }
.brand-fallback { color: var(--title); font-weight: 800; letter-spacing: .08em; font-size: 16px; }
.drawer-button, .app-link {
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.drawer-button { justify-self: center; background: #111; color: var(--silver-bright); }
.app-link { justify-self: end; background: linear-gradient(135deg, #E8E8E8 0%, #C8C8C8 55%, #8A8A8A 100%); color: var(--bg); font-weight: 800; }
.case-tabs { height: 40px; background: #101010; border-bottom: 1px solid var(--border); }
.case-tabs__inner { height: 40px; display: flex; justify-content: center; align-items: stretch; gap: 8px; }
.case-tab { min-width: 92px; display: flex; align-items: center; justify-content: center; padding: 0 16px; font-size: 13px; color: var(--silver); }
.case-tab.is-active { background: var(--silver-bright); color: var(--bg); font-weight: 800; }

.site-main { padding-top: 122px; padding-bottom: 36px; min-height: 70vh; }
.hero, .page-hero { padding: 30px 0 18px; }
.section { padding: 22px 0; }
.section + .section { border-top: 1px solid rgba(232,232,232,.05); }
h1, h2, h3 { color: var(--title); margin-top: 0; letter-spacing: .01em; }
h1 { font-size: 24px; line-height: 1.3; margin-bottom: 12px; }
h2 { font-size: 20px; line-height: 1.4; margin-bottom: 12px; }
h3 { font-size: 16px; line-height: 1.45; margin-bottom: 8px; }
p { margin: 0 0 14px; }
.eyebrow { display: inline-block; margin-bottom: 8px; color: var(--mist-red); font-size: 12px; letter-spacing: .12em; font-weight: 800; }
.lead { max-width: 820px; color: var(--silver); font-size: 16px; }
.meta-line { color: var(--muted); font-size: 13px; }

.image-slot {
    width: 100%;
    background: var(--ink);
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.image-slot img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
.image-slot--banner { height: 260px; }
.image-slot--card { height: 180px; }
.image-slot--feature { height: 200px; }
.image-slot--app { height: 340px; }
.image-slot--article { height: 240px; }
.image-slot--icon { height: 84px; }
.image-slot--icon img { width: 48px; height: 48px; object-fit: contain; object-position: center; }

.hero-copy { padding-top: 18px; max-width: 820px; }
.hero-copy h1 { font-size: 24px; }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.button-primary, .button-secondary {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    white-space: nowrap;
}
.button-primary { background: linear-gradient(135deg, #E8E8E8 0%, #C8C8C8 55%, #8A8A8A 100%); color: var(--bg); font-weight: 800; }
.button-secondary { background: #111; color: var(--silver-bright); border: 1px solid var(--border-strong); }

.grid-3, .grid-2, .grid-4 { display: grid; gap: 14px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card, .note-card, .shelf-card, .number-card, .faq-card {
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
}
.card { padding: 14px; }
.card .image-slot { margin-bottom: 14px; }
.card p, .note-card p, .shelf-card p, .number-card p { color: var(--text); }
.card a.inline-link, .inline-link { color: var(--silver-bright); text-decoration: underline; text-underline-offset: 3px; }
.card-number { display: block; color: var(--silver-bright); font-size: 13px; font-weight: 800; letter-spacing: .14em; margin-bottom: 7px; }
.feature-block { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 20px; align-items: start; }
.feature-copy { min-width: 0; }

.number-list { display: grid; gap: 10px; counter-reset: item; }
.number-row { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.number-row__index { color: var(--silver-bright); font-size: 22px; line-height: 1.2; font-weight: 800; }
.number-row p { margin-bottom: 0; }

.shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.shelf-card { padding: 15px; border-top: 2px solid var(--border-strong); box-shadow: none; }
.shelf-card span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.shelf-card a { color: var(--silver-bright); font-weight: 700; }

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

.article-list { display: grid; gap: 14px; }
.article-item { padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.article-item header { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 6px; }
.article-item header span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.check-list { margin: 0; padding-left: 20px; }
.check-list li { margin-bottom: 7px; color: var(--text); }
.notice { padding: 16px 18px; background: #111; border: 1px solid var(--border-strong); border-left: 3px solid var(--mist-red); border-radius: 12px; }
.notice strong { color: var(--title); }

.faq-list { display: grid; gap: 12px; }
.faq-card { padding: 18px; box-shadow: none; }
.faq-card h2 { font-size: 16px; }
.faq-card p { margin-bottom: 0; }

.site-footer { background: var(--deep); border-top: 1px solid var(--border); color: var(--silver); font-size: 13px; }
.footer-shell { padding: 30px 0 82px; }
.footer-brand { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.footer-brand strong { color: var(--title); font-size: 16px; }
.footer-brand span { color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 20px 0; }
.footer-grid section { min-width: 0; }
.footer-grid h2 { font-size: 13px; margin-bottom: 8px; color: var(--title); }
.footer-grid a { display: block; min-height: 30px; color: var(--text); }
.footer-note { max-width: 860px; color: var(--muted); }
.copyright { color: var(--subtle); margin-bottom: 0; }

.page-overlay {
    position: fixed;
    inset: 0;
    z-index: 180;
    background: rgba(0,0,0,.68);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}
.page-overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.material-drawer {
    position: fixed;
    z-index: 210;
    top: 0;
    left: 0;
    bottom: 0;
    width: 400px;
    max-width: 86vw;
    background: #0e0e0e;
    border-right: 1px solid var(--border-strong);
    box-shadow: var(--shadow);
    transform: translateX(-102%);
    visibility: hidden;
    pointer-events: none;
    transition: transform .24s ease, visibility .24s ease;
}
.material-drawer.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.drawer-head { height: 76px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); }
.drawer-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.drawer-brand > div:last-child { display: grid; line-height: 1.2; }
.drawer-brand strong { color: var(--title); }
.drawer-brand span { color: var(--muted); font-size: 12px; }
.icon-button { min-height: 44px; min-width: 44px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 10px; background: #111; }
.drawer-scroll { height: calc(100% - 76px); overflow-y: auto; padding: 14px 16px 26px; }
.drawer-group { margin-bottom: 20px; }
.drawer-group h2 { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.drawer-group a { display: grid; gap: 3px; padding: 11px 0; border-top: 1px solid var(--border); }
.drawer-group a:last-child { border-bottom: 1px solid var(--border); }
.drawer-group strong { color: var(--title); font-size: 14px; }
.drawer-group span { color: var(--muted); font-size: 12px; line-height: 1.5; }

.search-layer {
    position: fixed;
    z-index: 220;
    top: 82px;
    left: 50%;
    width: min(760px, calc(100% - 32px));
    transform: translate(-50%, -14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.search-layer.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.search-card { padding: 18px; background: var(--ink); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow); }
.search-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.search-head > div { display: grid; }
.search-head strong { color: var(--title); font-size: 16px; }
.search-head span { color: var(--muted); font-size: 12px; }
.search-input-label { display: block; color: var(--muted); font-size: 12px; margin: 16px 0 6px; }
.search-input { width: 100%; height: 44px; border-radius: 10px; border: 1px solid var(--border-strong); background: #0f0f0f; color: var(--title); padding: 0 12px; outline: none; }
.search-presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.search-presets a { min-height: 62px; display: grid; align-content: center; gap: 2px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; color: var(--title); }
.search-presets span { color: var(--muted); font-size: 12px; }
.search-empty { color: var(--muted); margin: 12px 0 0; }

.mobile-bottom { display: none; }

@media (hover:hover) {
    a:hover, button:hover { filter: brightness(1.08); }
    .card:hover, .article-item:hover, .shelf-card:hover { border-color: var(--border-strong); }
}
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--silver-bright); outline-offset: 3px; }

@media (max-width: 780px) {
    .top-shell, .bar-shell, .footer-shell, .section-shell { width: calc(100% - 32px); }
    .case-tabs { display: none; }
    .text-button { min-width: 44px; min-height: 44px; padding: 11px 8px; margin: -11px -8px; }
    .site-main { padding-top: 82px; padding-bottom: 62px; }
    .material-bar, .bar-shell { height: 60px; }
    .bar-shell { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; }
    .brand-link { max-width: 100%; overflow: hidden; }
    .logo-slot--header { min-width: 0; max-width: 120px; }
    .site-logo { max-width: 112px; }
    .drawer-button, .app-link { padding: 0 11px; min-width: 64px; }
    .grid-3, .grid-2, .grid-4, .shelf { grid-template-columns: 1fr; }
    .feature-block { grid-template-columns: 1fr; }
    .image-slot--banner { height: 220px; }
    .image-slot--app { height: 320px; }
    .number-row { grid-template-columns: 42px minmax(0, 1fr); padding: 14px; }
    .article-item header { display: block; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-shell { padding-bottom: 84px; }
    .search-layer { top: 0; left: 0; width: 100%; height: 100dvh; transform: none; background: #0b0b0b; }
    .search-layer.is-open { transform: none; }
    .search-card { min-height: 100%; border: 0; border-radius: 0; box-shadow: none; padding: calc(18px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom)); }
    .search-presets { grid-template-columns: 1fr; }
    .mobile-bottom {
        position: fixed;
        z-index: 140;
        left: 0;
        right: 0;
        bottom: 0;
        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(--deep);
        border-top: 1px solid var(--border-strong);
    }
    .mobile-bottom a { min-width: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--silver); }
    .mobile-bottom a.is-active { background: var(--silver-bright); color: var(--bg); font-weight: 800; }
}

@media (max-width: 420px) {
    .brand-fallback { font-size: 15px; }
    .drawer-button, .app-link { min-width: 58px; padding: 0 9px; font-size: 13px; }
    .image-slot--banner { height: 190px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
