:root {
    color-scheme: dark;
    --bg: #0E0A0A;
    --deep: #080505;
    --panel: #1A1214;
    --panel2: #241618;
    --title: #F5D4D6;
    --text: #E8C8CC;
    --muted: #B8888E;
    --soft: #8A5A60;
    --brand: #C41E3A;
    --bright: #E03A52;
    --darkred: #8A1428;
    --cream: #FFF4F0;
    --line: rgba(196,30,58,.22);
    --line-strong: rgba(196,30,58,.50);
    --shadow: 0 12px 28px rgba(0,0,0,.45);
    --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif; font-size: 15px; line-height: 1.7; overflow-x: hidden; }
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a, button, input { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 9999; background: var(--cream); color: var(--deep); padding: 8px 12px; border-radius: 8px; }
.skip-link:focus { top: 8px; }
.peach-line { position: fixed; inset: 0 0 auto 0; z-index: 1200; height: 22px; background: #090606; border-bottom: 1px solid var(--line); color: var(--text); font-size: 12px; }
.top-shell, .heart-shell, .tabs-shell, .footer-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 { border: 0; background: transparent; color: var(--text); min-width: 44px; height: 22px; padding: 0 8px; }
.text-button:hover, .text-button:focus-visible { color: var(--cream); outline: 1px solid var(--line-strong); outline-offset: -1px; }
.heart-bar { position: fixed; left: 0; right: 0; top: 22px; z-index: 1190; height: 60px; background: #100A0B; border-bottom: 1px solid var(--line-strong); }
.heart-shell { height: 60px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.brand-link { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; max-width: 210px; }
.brand-logo, .drawer-logo, .footer-logo { width: auto; height: 28px; object-fit: contain; object-position: center; }
.brand-text { font-size: 16px; color: var(--title); font-weight: 700; }
.drawer-button, .app-link, .close-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; padding: 0 16px; font-size: 14px; }
.drawer-button { justify-self: center; border: 1px solid var(--line-strong); background: var(--panel); color: var(--title); }
.app-link { justify-self: end; background: linear-gradient(135deg,#E03A52 0%,#C41E3A 55%,#8A1428 100%); color: var(--cream); font-weight: 700; }
.shadow-tabs { position: fixed; left: 0; right: 0; top: 82px; z-index: 1180; height: 40px; background: #0B0708; border-bottom: 1px solid var(--line); }
.tabs-shell { height: 40px; display: flex; justify-content: center; align-items: center; gap: 8px; }
.tabs-shell a { min-width: 82px; height: 32px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; border-radius: 9px; color: var(--muted); font-size: 13px; }
.tabs-shell a:hover, .tabs-shell a:focus-visible { color: var(--cream); outline: 1px solid var(--line-strong); }
.tabs-shell a.active { background: var(--brand); color: var(--cream); }
.site-main { min-height: 70vh; padding: 150px 16px 72px; }
.content-shell { width: min(var(--max), 100%); margin: 0 auto; }
.hero, .page-hero { background: radial-gradient(circle at 90% 0%, rgba(196,30,58,.14), transparent 34%), var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); }
.hero-media { width: 100%; height: 260px; background: var(--deep); border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--line); }
.hero-media img, .media-slot img, .media-180 img, .media-200 img, .media-app img, .icon-slot img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.hero-copy { padding: 24px 4px 4px; max-width: 820px; }
.eyebrow { margin: 0 0 6px; color: var(--bright); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; color: var(--title); font-size: 24px; line-height: 1.3; }
h2 { color: var(--title); font-size: 20px; line-height: 1.4; margin: 0 0 12px; }
h3 { color: var(--title); font-size: 16px; line-height: 1.45; margin: 0 0 8px; }
p { margin: 0 0 14px; }
.lead { margin-top: 12px; color: var(--text); max-width: 780px; }
.muted { color: var(--muted); }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn { min-height: 42px; padding: 0 18px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; font-size: 14px; border: 1px solid transparent; }
.btn-primary { background: linear-gradient(135deg,#E03A52 0%,#C41E3A 55%,#8A1428 100%); color: var(--cream); }
.btn-secondary { background: #100A0B; border-color: rgba(245,212,214,.42); color: var(--title); }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .drawer-button:focus-visible, .app-link:focus-visible, .close-button:focus-visible, .mobile-bar a:focus-visible, .footer-grid a:focus-visible { outline: 2px solid var(--bright); outline-offset: 2px; }
.section { margin-top: 26px; }
.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 14px; }
.section-head p { color: var(--muted); margin: 0; max-width: 650px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.card, .article-section, .policy-section, .faq-item, .timeline-item, .shelf-item, .note-card, .feature-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.card p:last-child, .article-section p:last-child, .policy-section p:last-child, .faq-item p:last-child, .timeline-item p:last-child, .shelf-item p:last-child { margin-bottom: 0; }
.card-link { color: var(--title); display: inline-flex; min-height: 44px; align-items: center; margin-top: 4px; }
.card-link::after { content: '→'; margin-left: 8px; color: var(--bright); }
.media-slot, .media-180, .media-200, .media-app, .icon-slot { background: var(--deep); border-radius: 10px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 14px; }
.media-slot { height: 220px; }
.media-180 { height: 180px; }
.media-200 { height: 200px; }
.media-app { height: 340px; }
.icon-slot { width: 64px; height: 64px; margin: 0; }
.number-list { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-top: 14px; }
.number-item { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.number-item b, .ranking-number { color: var(--title); font-size: 22px; font-variant-numeric: tabular-nums; }
.number-item span { display: block; color: var(--muted); margin-top: 4px; }
.shelf { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.shelf-item { position: relative; padding-left: 52px; min-height: 112px; }
.shelf-item .shelf-code { position: absolute; left: 16px; top: 16px; width: 28px; height: 28px; border-radius: 8px; background: var(--darkred); color: var(--cream); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.ranking-list { display: grid; gap: 10px; }
.ranking-row { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.ranking-row span:last-child { color: var(--muted); font-size: 13px; }
.timeline { position: relative; display: grid; gap: 14px; padding-left: 22px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 1px; background: var(--line-strong); }
.timeline-item { position: relative; }
.timeline-item::before { content: ''; position: absolute; left: -22px; top: 22px; width: 9px; height: 9px; border-radius: 50%; background: var(--bright); box-shadow: 0 0 0 4px var(--bg); }
.status { display: inline-flex; align-items: center; min-height: 28px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--title); font-size: 12px; margin-bottom: 8px; }
.note-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.note-card small { color: var(--bright); display: block; margin-bottom: 7px; }
.app-feature { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0,1.28fr); gap: 18px; align-items: stretch; }
.app-copy { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.app-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.inline-list { padding-left: 20px; margin: 12px 0 0; }
.inline-list li { margin: 7px 0; }
.page-hero { margin-bottom: 18px; }
.page-hero .crumb { display: inline-flex; min-height: 32px; align-items: center; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.page-hero p { max-width: 860px; margin: 10px 0 0; color: var(--text); }
.article-stack { display: grid; gap: 14px; }
.article-section p + p, .policy-section p + p { margin-top: 10px; }
.article-section ul, .policy-section ul { margin: 10px 0 0; padding-left: 20px; }
.article-section li, .policy-section li { margin: 7px 0; }
.kicker { color: var(--bright); font-size: 12px; letter-spacing: .08em; display: inline-block; margin-bottom: 6px; }
.page-media { margin-bottom: 16px; }
.checklist { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.check-item { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.check-item b { color: var(--title); display: block; margin-bottom: 6px; }
.faq-list { display: grid; gap: 12px; }
.faq-item h2 { font-size: 16px; margin-bottom: 8px; }
.site-footer { background: var(--deep); border-top: 1px solid var(--line-strong); color: var(--text); font-size: 13px; padding: 28px 16px calc(28px + env(safe-area-inset-bottom)); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer-brand strong, .drawer-brand strong { display: block; color: var(--title); font-size: 16px; }
.footer-brand span, .drawer-brand span { display: block; color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.footer-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.footer-grid h2 { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.footer-grid a { display: block; min-height: 32px; padding: 4px 0; color: var(--text); }
.footer-grid a:hover { color: var(--cream); }
.footer-note { margin-top: 20px; color: var(--muted); max-width: 900px; }
.copyright { margin: 10px 0 0; color: var(--soft); }
.page-overlay { position: fixed; inset: 0; z-index: 2000; 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; }
.heart-drawer { position: fixed; right: 0; top: 0; bottom: 0; z-index: 2100; width: min(400px, 86vw); background: #0D0809; border-left: 1px solid var(--line-strong); box-shadow: var(--shadow); transform: translateX(104%); visibility: hidden; pointer-events: none; transition: transform .22s ease, visibility .22s ease; }
.heart-drawer.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.drawer-head { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--deep); }
.drawer-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.close-button { border: 1px solid var(--line-strong); background: var(--panel); color: var(--title); }
.drawer-scroll { height: calc(100vh - 76px); overflow-y: auto; padding: 12px 14px calc(24px + env(safe-area-inset-bottom)); }
.drawer-scroll section { margin-bottom: 16px; }
.drawer-scroll h2 { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.drawer-scroll a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; border: 1px solid transparent; }
.drawer-scroll a:hover, .drawer-scroll a:focus-visible { background: var(--panel); border-color: var(--line); outline: none; }
.drawer-scroll b { color: var(--title); font-size: 14px; }
.drawer-scroll span { color: var(--muted); font-size: 12px; }
.search-panel { position: fixed; left: 0; right: 0; top: 82px; z-index: 2050; visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(-10px); transition: opacity .2s ease, transform .2s ease, visibility .2s ease; }
.search-panel.is-open { visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0); }
.search-card { width: min(780px, calc(100% - 32px)); margin: 12px auto 0; background: #0D0809; border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow); padding: 18px; }
.search-title-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.search-title-row strong { display: block; color: var(--title); font-size: 16px; }
.search-title-row span { display: block; color: var(--muted); font-size: 12px; }
.search-box { display: block; margin-top: 14px; }
.search-box input { width: 100%; min-height: 46px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--cream); padding: 0 14px; outline: none; }
.search-box input:focus { border-color: var(--bright); box-shadow: 0 0 0 3px rgba(224,58,82,.12); }
.search-results { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.search-results a { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px; min-height: 68px; color: var(--title); }
.search-results a span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.mobile-bar { display: none; }
@media (max-width: 860px) {
    .grid-3, .note-grid { grid-template-columns: 1fr; }
    .grid-2, .checklist, .shelf { grid-template-columns: 1fr; }
    .number-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .app-feature { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .search-results { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
    body { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
    .top-shell, .heart-shell, .tabs-shell, .footer-shell { width: calc(100% - 32px); }
    .shadow-tabs { display: none; }
    .heart-shell { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 8px; }
    .brand-link { min-width: 0; overflow: hidden; }
    .brand-logo { max-width: 112px; }
    .drawer-button, .app-link { padding: 0 11px; font-size: 13px; }
    .site-main { padding-top: 108px; padding-bottom: 48px; }
    .hero, .page-hero { padding: 16px; }
    .hero-media { height: 260px; }
    .media-180 { height: 180px; }
    .media-200 { height: 200px; }
    .media-app { height: 320px; }
    .ranking-row { grid-template-columns: 46px 1fr; }
    .ranking-row span:last-child { grid-column: 2; }
    .section-head { display: block; }
    .section-head p { margin-top: 6px; }
    .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500; height: calc(48px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5,1fr); background: #090606; border-top: 1px solid var(--line-strong); }
    .mobile-bar a { display: flex; align-items: center; justify-content: center; min-width: 0; height: 48px; font-size: 12px; color: var(--muted); }
    .mobile-bar a.active { background: var(--brand); color: var(--cream); }
    .search-panel { top: 0; bottom: 0; background: var(--deep); overflow-y: auto; transform: none; }
    .search-card { width: 100%; min-height: 100%; margin: 0; border: 0; border-radius: 0; padding: calc(20px + env(safe-area-inset-top)) 16px calc(30px + env(safe-area-inset-bottom)); box-shadow: none; }
    .search-results { grid-template-columns: 1fr; }
    .heart-drawer { width: min(86vw, 400px); }
}
