:root {
    --bg: #0D0D0D;
    --bg-deep: #070707;
    --panel: #171717;
    --panel-2: #222222;
    --title: #F2F2F2;
    --text: #C8C8C8;
    --muted: #9A9A9A;
    --soft: #6E6E6E;
    --silver: #C8C8C8;
    --silver-bright: #E8E8E8;
    --ink: #1A1A1A;
    --mist-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);
    --max: 1120px;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.7;
    padding-top: 122px;
}
body.overlay-open { 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; top: 8px; left: 8px; z-index: 300;
    transform: translateY(-140%); padding: 10px 14px; border-radius: 8px;
    background: var(--silver-bright); color: var(--bg-deep);
}
.skip-link:focus { transform: none; }
.top-shell, .content-shell { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }
.ink-line {
    position: fixed; z-index: 110; inset: 0 0 auto 0; height: 22px;
    background: var(--bg-deep); border-bottom: 1px solid var(--line);
    color: var(--silver); font-size: 12px;
}
.ink-line .top-shell { height: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ink-brand { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.text-button, .drawer-open, .drawer-close, .search-close {
    min-width: 44px; min-height: 44px; border: 0; cursor: pointer;
    color: var(--silver-bright); background: transparent;
}
.text-button { min-height: 22px; padding: 0 4px; font-size: 12px; }
.feed-bar {
    position: fixed; z-index: 105; top: 22px; left: 0; right: 0; height: 60px;
    background: var(--ink); border-bottom: 1px solid var(--line-strong);
}
.feed-inner { height: 60px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.brand-link { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; }
.brand-link img, .drawer-brand img, .footer-logo-row img { height: 28px; width: auto; object-fit: contain; }
.brand-fallback { color: var(--title); font-size: 16px; font-weight: 700; letter-spacing: .08em; }
.drawer-open {
    justify-self: center; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 10px;
    background: var(--bg); color: var(--silver-bright); font-size: 14px;
}
.app-entry {
    justify-self: end; min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center;
    border-radius: 10px; background: linear-gradient(135deg,#E8E8E8 0%,#C8C8C8 55%,#8A8A8A 100%);
    color: #0D0D0D; font-weight: 700; font-size: 14px;
}
.case-tabs {
    position: fixed; z-index: 100; top: 82px; left: 0; right: 0; height: 40px;
    background: var(--bg); border-bottom: 1px solid var(--line);
}
.case-tabs-inner { height: 40px; display: flex; align-items: stretch; justify-content: center; }
.case-tabs a { min-width: 120px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); }
.case-tabs a.is-current { background: var(--silver); color: var(--bg-deep); font-weight: 700; }
.site-main { min-height: 70vh; }
.hero, .page-hero { padding: 34px 0 18px; }
.hero-copy { max-width: 860px; margin: 22px auto 0; text-align: center; }
.hero-copy h1, .page-hero h1 { margin: 0 0 12px; color: var(--title); font-size: 24px; line-height: 1.3; letter-spacing: .02em; }
.hero-copy p, .page-hero p { margin: 0 auto; color: var(--text); }
.page-hero .eyebrow, .eyebrow { color: var(--mist-red); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.media-slot {
    width: 100%; min-height: 160px; border: 1px solid var(--line); border-radius: 14px;
    background: linear-gradient(145deg,#141414,#080808); display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.media-slot img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.media-placeholder { width: 42px; height: 2px; background: var(--line-strong); border-radius: 10px; }
.hero .media-slot { height: 260px; }
.home-triptych .media-slot { height: 180px; }
.section-with-image .media-slot { height: 200px; }
.app-section .media-slot { max-height: 360px; min-height: 240px; }
.app-section .media-slot img { max-height: 360px; width: auto; }
.content-shell section { margin: 18px 0 28px; }
.section-card, .feature-card, .article-card, .policy-card, .faq-item, .shelf-card, .memo-card {
    background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.section-card { padding: 26px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.section-heading h2 { margin: 0; color: var(--title); font-size: 20px; line-height: 1.35; }
.section-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.feature-card, .article-card, .policy-card, .shelf-card, .memo-card { padding: 20px; }
.feature-card h3, .article-card h3, .policy-card h3, .shelf-card h3, .memo-card h3 { margin: 12px 0 8px; color: var(--title); font-size: 16px; }
.feature-card p, .article-card p, .policy-card p, .shelf-card p, .memo-card p { margin: 0; color: var(--text); }
.kicker { color: var(--mist-red); font-size: 12px; letter-spacing: .14em; }
.number-list { display: grid; gap: 12px; counter-reset: item; }
.number-row { display: grid; grid-template-columns: 54px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.number-row:first-child { border-top: 0; }
.number-row .num { color: var(--silver-bright); font-size: 22px; font-weight: 700; line-height: 1; }
.number-row h3 { margin: 0 0 5px; color: var(--title); font-size: 16px; }
.number-row p { margin: 0; }
.button-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }
.button-row.align-left { justify-content: flex-start; }
.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; border: 1px solid transparent; white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg,#E8E8E8 0%,#C8C8C8 55%,#8A8A8A 100%); color: #0D0D0D; }
.btn-secondary { background: #111; color: var(--silver-bright); border-color: var(--line-strong); }
.timeline { position: relative; display: grid; gap: 14px; margin-left: 10px; }
.timeline:before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 13px; width: 1px; background: var(--line-strong); }
.timeline-item { position: relative; padding: 0 0 0 42px; }
.timeline-dot { position: absolute; left: 8px; top: 9px; width: 11px; height: 11px; border-radius: 50%; background: var(--silver); box-shadow: 0 0 0 5px var(--panel); }
.timeline-item h3 { margin: 0 0 5px; color: var(--title); font-size: 16px; }
.timeline-item p { margin: 0; }
.status { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--silver-bright); font-size: 12px; margin-bottom: 6px; }
.shelf-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.shelf-card { min-height: 170px; display: flex; flex-direction: column; }
.shelf-card .shelf-meta { margin-top: auto; padding-top: 14px; color: var(--muted); font-size: 12px; }
.article-body { max-width: 860px; margin: 0 auto 40px; }
.article-body > section { padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.article-body h2 { margin: 0 0 10px; color: var(--title); font-size: 20px; }
.article-body h3 { margin: 18px 0 8px; color: var(--title); font-size: 16px; }
.article-body p { margin: 0 0 14px; }
.article-body p:last-child { margin-bottom: 0; }
.article-body ul { margin: 8px 0 0; padding-left: 20px; }
.article-body li { margin: 7px 0; }
.note-box { border-left: 3px solid var(--mist-red); background: #121212; padding: 16px 18px; border-radius: 0 10px 10px 0; color: var(--text); }
.faq-list { display: grid; gap: 12px; }
.faq-item { padding: 20px; }
.faq-item h2, .faq-item h3 { margin: 0 0 8px; color: var(--title); font-size: 16px; }
.faq-item p { margin: 0; }
.rule-table { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: 12px; overflow: hidden; }
.rule-table th, .rule-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.rule-table th { color: var(--title); background: var(--panel-2); }
.rule-table tr:last-child td { border-bottom: 0; }
.page-mask { position: fixed; z-index: 180; inset: 0; background: rgba(0,0,0,.66); visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.page-mask.is-visible { visibility: visible; opacity: 1; pointer-events: auto; }
.drawer-panel { position: fixed; z-index: 200; top: 0; bottom: 0; left: 0; width: 400px; max-width: 86vw; background: var(--bg-deep); border-right: 1px solid var(--line-strong); transform: translateX(-104%); visibility: hidden; pointer-events: none; transition: transform .24s ease, visibility .24s ease; box-shadow: var(--shadow); }
.drawer-panel.is-open { transform: none; visibility: visible; pointer-events: auto; }
.drawer-head { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.drawer-brand { display: flex; align-items: center; gap: 10px; color: var(--title); font-size: 16px; font-weight: 700; }
.drawer-close, .search-close { border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; }
.drawer-scroll { height: calc(100% - 72px); overflow-y: auto; overscroll-behavior: contain; padding: 8px 18px 28px; }
.drawer-group { margin: 20px 0; }
.drawer-group h2 { margin: 0 0 8px; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .12em; }
.drawer-group a { display: grid; gap: 1px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.drawer-group strong { color: var(--silver-bright); font-size: 14px; }
.drawer-group span { color: var(--muted); font-size: 12px; }
.search-panel { position: fixed; z-index: 190; top: 82px; left: 0; right: 0; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.search-panel.is-open { visibility: visible; opacity: 1; pointer-events: auto; }
.search-card { width: min(calc(100% - 32px), 720px); margin: 14px auto 0; padding: 22px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--ink); box-shadow: var(--shadow); }
.search-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.search-head h2 { margin: 0; color: var(--title); font-size: 20px; }
.search-card p { margin: 8px 0 14px; color: var(--muted); }
.search-presets { display: flex; flex-wrap: wrap; gap: 10px; }
.search-presets a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); color: var(--silver-bright); background: #111; }
.site-footer { margin-top: 48px; padding: 32px 0 calc(18px + env(safe-area-inset-bottom)); background: var(--bg-deep); border-top: 1px solid var(--line); color: var(--text); font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(4,1fr); gap: 26px; }
.footer-logo-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-logo-row div { display: grid; }
.footer-logo-row strong { color: var(--title); font-size: 16px; }
.footer-logo-row span { color: var(--muted); font-size: 11px; letter-spacing: .12em; }
.footer-brand p { margin: 0; max-width: 420px; }
.footer-column { display: flex; flex-direction: column; gap: 7px; }
.footer-column h2 { margin: 0 0 3px; color: var(--title); font-size: 13px; }
.footer-column a { color: var(--muted); }
.footer-bottom { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: var(--soft); }
.mobile-bottom { display: none; }
a:hover, button:hover { filter: brightness(1.08); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--silver-bright); outline-offset: 3px; }
@media (max-width: 900px) {
    body { padding-top: 82px; padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
    .case-tabs { display: none; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .shelf-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .search-panel { top: 0; bottom: 0; background: var(--bg-deep); overflow-y: auto; }
    .search-card { width: 100%; min-height: 100%; margin: 0; padding: 84px 16px 24px; border: 0; border-radius: 0; background: var(--bg-deep); }
    .mobile-bottom { position: fixed; z-index: 120; 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(--bg-deep); border-top: 1px solid var(--line-strong); }
    .mobile-bottom a { min-width: 0; min-height: 48px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; }
    .mobile-bottom a.is-current { color: var(--bg-deep); background: var(--silver); font-weight: 700; }
    .site-footer { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
}
@media (max-width: 620px) {
    .top-shell, .content-shell { width: calc(100% - 32px); }
    .feed-inner { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 8px; }
    .brand-link img { max-width: 116px; }
    .drawer-open { padding: 0 14px; }
    .app-entry { padding: 0 12px; }
    .hero, .page-hero { padding-top: 24px; }
    .hero .media-slot { height: 220px; }
    .section-card { padding: 20px; }
    .shelf-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }
    .footer-bottom { flex-direction: column; gap: 6px; }
    .rule-table { display: block; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
