:root {
    --bg: #0D0D0D;
    --deep: #070707;
    --panel: #171717;
    --panel-2: #222222;
    --title: #F2F2F2;
    --text: #C8C8C8;
    --muted: #9A9A9A;
    --soft: #6E6E6E;
    --silver: #C8C8C8;
    --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;
    --header-h: 122px;
    --mobile-bottom: 0px;
}
* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; 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.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a, button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 80; }
.ink-line { height: 22px; background: var(--deep); border-bottom: 1px solid var(--line); font-size: 12px; }
.ink-line-inner { height: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.text-button, .drawer-trigger, .icon-button {
    border: 0;
    background: transparent;
    cursor: pointer;
}
.text-button { min-height: 22px; padding: 0 4px; color: var(--bright); }
.material-bar { height: 60px; background: var(--ink); border-bottom: 1px solid var(--line-strong); }
.material-bar-inner { height: 60px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.brand-mark { justify-self: start; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; font-size: 16px; color: var(--title); }
.brand-mark img, .footer-brand img, .drawer-brand img { height: 28px; width: auto; max-width: 180px; object-fit: contain; object-position: left center; }
.drawer-trigger {
    justify-self: center;
    min-width: 88px;
    min-height: 44px;
    padding: 8px 22px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--bright);
    background: #111;
}
.app-link {
    justify-self: end;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,#E8E8E8 0%,#C8C8C8 55%,#8A8A8A 100%);
    color: #0D0D0D;
    font-weight: 700;
    white-space: nowrap;
}
.case-tags { height: 40px; background: #101010; border-bottom: 1px solid var(--line); }
.case-tags-inner { height: 40px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.case-tags a { min-height: 32px; padding: 4px 18px; display: inline-flex; align-items: center; border-radius: 8px; font-size: 13px; color: var(--silver); }
.case-tags a.is-current { background: var(--silver); color: #0D0D0D; }
.site-main { min-height: 70vh; padding: calc(var(--header-h) + 34px) 0 72px; }
.page-hero { padding: 24px 0 28px; }
.eyebrow { color: var(--red); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { color: var(--title); line-height: 1.3; margin: 0; }
h1 { font-size: 24px; margin-top: 8px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
p { margin: 0; }
.lead { margin-top: 14px; max-width: 820px; color: var(--silver); }
.section { padding: 28px 0; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-head p { max-width: 680px; color: var(--muted); }
.prose { display: grid; gap: 16px; max-width: 900px; }
.prose p { color: var(--text); }
.note { padding: 16px 18px; border-left: 3px solid var(--red); background: var(--panel); border-radius: 0 var(--radius) var(--radius) 0; color: var(--silver); }
.media-slot {
    width: 100%;
    min-height: 180px;
    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; }
.banner-slot { height: 260px; }
.feature-slot { height: 180px; }
.wide-slot { height: 200px; }
.app-slot { height: min(360px, 55vw); min-height: 260px; }
.cover-copy { display: grid; gap: 14px; padding: 20px 0 6px; }
.cover-copy p { max-width: 860px; }
.mt-16 { margin-top: 16px; }
.mt-18 { margin-top: 18px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.primary-button, .secondary-button {
    height: 44px;
    padding: 0 20px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    white-space: nowrap;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.primary-button { background: linear-gradient(135deg,#E8E8E8 0%,#C8C8C8 55%,#8A8A8A 100%); color: #0D0D0D; font-weight: 700; }
.secondary-button { background: #111; color: var(--bright); border: 1px solid var(--line-strong); }
.primary-button:hover, .secondary-button:hover, .app-link:hover, .drawer-trigger:hover { transform: translateY(-1px); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--bright); outline-offset: 3px; }
.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, .shelf-card, .number-card, .memo-card, .policy-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.card { padding: 16px; }
.card .media-slot { margin-bottom: 14px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); }
.card a.more, .text-link { display: inline-flex; margin-top: 12px; color: var(--bright); border-bottom: 1px solid var(--line-strong); }
.numbered-list, .shelf-list, .timeline, .memo-list, .policy-list, .faq-list { display: grid; gap: 12px; }
.number-row, .shelf-row, .timeline-item, .memo-item, .policy-item, .faq-item {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.number-row { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 18px; align-items: start; }
.number-row .num { color: var(--bright); font-size: 24px; line-height: 1; font-weight: 700; }
.number-row p { margin-top: 6px; color: var(--muted); }
.shelf-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shelf-row { padding: 18px; display: grid; grid-template-columns: 84px 1fr; gap: 14px; }
.shelf-code { color: var(--bright); font-weight: 700; letter-spacing: .08em; }
.shelf-row p { color: var(--muted); margin-top: 5px; }
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 12px; bottom: 12px; width: 1px; background: var(--line-strong); }
.timeline-item { position: relative; padding: 18px 18px 18px 20px; }
.timeline-item::before { content: ""; position: absolute; left: -24px; top: 24px; width: 10px; height: 10px; border-radius: 50%; background: var(--silver); box-shadow: 0 0 0 5px var(--bg); }
.status { display: inline-flex; min-height: 28px; align-items: center; padding: 2px 10px; border-radius: 999px; background: var(--silver); color: #0D0D0D; font-size: 12px; font-weight: 700; }
.timeline-item h3 { margin-top: 10px; }
.timeline-item p { margin-top: 6px; color: var(--muted); }
.memo-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.memo-item { padding: 18px; }
.memo-item strong { color: var(--bright); display: block; margin-bottom: 6px; }
.memo-item p { color: var(--muted); }
.policy-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.policy-item { padding: 20px; }
.policy-item h2 { margin-bottom: 10px; }
.policy-item p + p { margin-top: 10px; }
.app-panel { display: grid; grid-template-columns: .86fr 1.14fr; gap: 24px; align-items: center; }
.app-icon-line { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.app-icon-line .icon-slot { width: 48px; height: 48px; background: var(--ink); border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.app-icon-line img { width: 48px; height: 48px; object-fit: contain; }
.app-copy { display: grid; gap: 14px; }
.faq-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.faq-item { padding: 18px; }
.faq-item h2, .faq-item h3 { margin-bottom: 8px; }
.faq-item p { color: var(--muted); }
.inline-links { display: flex; flex-wrap: wrap; gap: 10px; }
.inline-links a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); }
.site-footer { background: var(--deep); border-top: 1px solid var(--line-strong); color: var(--text); font-size: 13px; padding: 34px 0 calc(28px + var(--mobile-bottom)); }
.footer-top { display: grid; grid-template-columns: 220px 1fr; gap: 36px; }
.footer-brand { display: grid; align-content: start; gap: 6px; color: var(--title); }
.footer-brand small { color: var(--muted); letter-spacing: .08em; }
.footer-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.footer-nav section { display: grid; align-content: start; gap: 7px; }
.footer-nav h2 { font-size: 13px; margin-bottom: 4px; color: var(--bright); }
.footer-nav a { color: var(--muted); }
.footer-nav a:hover { color: var(--bright); }
.footer-note { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 6px; color: var(--muted); }
.material-drawer {
    position: fixed;
    z-index: 120;
    inset: 0 auto 0 0;
    width: min(400px, 86vw);
    background: #101010;
    border-right: 1px solid var(--line-strong);
    box-shadow: var(--shadow);
    transform: translateX(-104%);
    visibility: hidden;
    pointer-events: none;
    transition: transform .22s ease, visibility .22s ease;
    display: grid;
    grid-template-rows: auto 1fr;
}
.material-drawer.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.drawer-head { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.drawer-brand { display: flex; align-items: center; gap: 10px; color: var(--title); font-weight: 700; }
.icon-button { min-height: 44px; min-width: 56px; border: 1px solid var(--line-strong); border-radius: 9px; padding: 0 12px; }
.drawer-scroll { overflow-y: auto; padding: 14px 18px 24px; }
.drawer-group + .drawer-group { margin-top: 20px; }
.drawer-group h2 { font-size: 13px; color: var(--silver); margin-bottom: 8px; }
.drawer-group a { display: grid; gap: 2px; padding: 11px 0; border-top: 1px solid var(--line); }
.drawer-group a strong { color: var(--bright); font-size: 15px; }
.drawer-group a span { color: var(--muted); font-size: 12px; line-height: 1.55; }
.page-mask { position: fixed; z-index: 100; inset: 0; background: rgba(0,0,0,.68); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.page-mask.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
.search-layer { position: fixed; z-index: 130; left: 0; right: 0; top: 82px; 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(720px, calc(100% - 32px)); margin: 0 auto; padding: 20px; background: var(--ink); border: 1px solid var(--line-strong); border-radius: 0 0 14px 14px; box-shadow: var(--shadow); }
.search-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.search-head h2 { margin-top: 4px; }
.search-input-wrap { display: grid; gap: 6px; margin-top: 16px; color: var(--muted); font-size: 12px; }
.search-input-wrap input { width: 100%; height: 44px; border: 1px solid var(--line-strong); border-radius: 9px; background: #0F0F0F; color: var(--bright); padding: 0 13px; }
.search-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.search-presets a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.mobile-bottom-nav { display: none; }
@media (max-width: 840px) {
    :root { --header-h: 82px; --mobile-bottom: calc(48px + env(safe-area-inset-bottom)); }
    .case-tags { display: none; }
    .site-main { padding-top: calc(var(--header-h) + 24px); padding-bottom: calc(56px + var(--mobile-bottom)); }
    .material-bar-inner { gap: 8px; }
    .brand-mark { max-width: 110px; overflow: hidden; }
    .brand-mark img { max-width: 104px; }
    .drawer-trigger { min-width: 74px; padding-inline: 16px; }
    .app-link { padding-inline: 13px; }
    .card-grid, .card-grid.two, .shelf-list, .memo-list, .policy-list, .faq-list, .app-panel { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .mobile-bottom-nav {
        position: fixed;
        z-index: 90;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(48px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        background: #0A0A0A;
        border-top: 1px solid var(--line-strong);
    }
    .mobile-bottom-nav a { display: flex; align-items: center; justify-content: center; min-width: 0; color: var(--silver); font-size: 12px; }
    .mobile-bottom-nav a.is-current { background: var(--silver); color: #0D0D0D; font-weight: 700; }
    .search-layer { inset: 0; top: 0; background: var(--deep); }
    .search-layer.is-open { display: block; }
    .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); }
    .section-head { display: grid; gap: 8px; align-items: start; }
    .banner-slot { height: 260px; }
    .feature-slot { height: 180px; }
    .wide-slot { height: 200px; }
}
@media (max-width: 520px) {
    .ink-line-inner { width: calc(100% - 24px); }
    .material-bar-inner { width: calc(100% - 24px); grid-template-columns: minmax(80px, 1fr) auto minmax(80px, 1fr); }
    .brand-mark span { font-size: 15px; }
    .app-link { font-size: 13px; }
    .number-row { grid-template-columns: 50px 1fr; padding: 16px; }
    .shelf-row { grid-template-columns: 66px 1fr; }
    .footer-nav { grid-template-columns: 1fr 1fr; }
}
