:root {
    --bg: #0E0A0A;
    --bg-deep: #080505;
    --panel: #1A1214;
    --panel-2: #241618;
    --title: #F5D4D6;
    --text: #E8C8CC;
    --muted: #B8888E;
    --soft: #8A5A60;
    --red: #C41E3A;
    --red-bright: #E03A52;
    --red-deep: #8A1428;
    --cream: #FFF4F0;
    --border: rgba(196,30,58,.22);
    --border-strong: rgba(196,30,58,.50);
    --shadow: 0 12px 28px rgba(0,0,0,.45);
    --shell: 1120px;
    --radius: 12px;
    --top-offset: 122px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg-deep); }
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; }
button, input { font: inherit; }
button { color: inherit; }
img { max-width: 100%; display: block; }
.shell { width: min(var(--shell), calc(100% - 32px)); margin: 0 auto; }
.skip-link { position: fixed; left: 16px; top: -70px; z-index: 300; background: var(--cream); color: var(--red-deep); padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 10px; }
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 120; background: var(--bg-deep); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.peach-line { height: 22px; background: var(--bg-deep); border-bottom: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.peach-line-inner { height: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.peach-line-brand { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.text-button, .drawer-open, .drawer-close, .search-close { border: 0; background: transparent; cursor: pointer; }
.text-button { min-height: 22px; padding: 0 2px; color: var(--text); }
.heart-bar { height: 60px; background: #120B0C; border-bottom: 1px solid var(--border-strong); }
.heart-bar-inner { height: 60px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.brand-home { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; max-width: 240px; }
.brand-logo, .drawer-logo, .footer-logo { height: 28px; width: auto; max-width: 220px; object-fit: contain; object-position: left center; }
.brand-fallback { color: var(--title); font-size: 16px; font-weight: 700; letter-spacing: .04em; }
.drawer-open { min-height: 44px; padding: 0 20px; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--cream); background: var(--panel); font-size: 14px; }
.app-link { justify-self: end; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border-radius: 9px; color: var(--cream); background: linear-gradient(135deg,#E03A52 0%,#C41E3A 55%,#8A1428 100%); font-size: 14px; white-space: nowrap; }
.shadow-tabs { height: 40px; background: var(--bg-deep); border-bottom: 1px solid var(--border); }
.shadow-tabs-inner { height: 40px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.shadow-tabs a { min-width: 84px; min-height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 13px; color: var(--muted); }
.shadow-tabs a:hover, .shadow-tabs a:focus-visible { color: var(--cream); background: var(--panel-2); outline: none; }
.shadow-tabs a.is-current { background: var(--red); color: var(--cream); }
.site-main { min-height: 70vh; padding-top: calc(var(--top-offset) + 30px); padding-bottom: 72px; }
.page-head { padding: 18px 0 28px; }
.eyebrow { color: var(--red-bright); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 14px; color: var(--title); font-size: 24px; line-height: 1.3; }
h2 { color: var(--title); font-size: 20px; line-height: 1.4; }
h3 { color: var(--title); font-size: 16px; line-height: 1.45; }
p { margin-bottom: 14px; }
.lead { max-width: 820px; color: var(--text); font-size: 16px; }
.muted { color: var(--muted); }
.section { padding: 24px 0; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.section-title p { margin: 0; max-width: 620px; color: var(--muted); }
.card, .article-panel, .note-panel, .shelf-item, .timeline-item, .faq-item, .policy-block, .feature-row { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card { padding: 18px; }
.card p:last-child, .article-panel p:last-child, .policy-block p:last-child { margin-bottom: 0; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.image-slot { width: 100%; background: #090607; border: 1px solid var(--border); border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.image-slot img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.image-slot.banner { height: 260px; }
.image-slot.card-image { height: 180px; margin-bottom: 16px; }
.image-slot.feature-image { height: 200px; margin-bottom: 16px; }
.image-slot.app-image { height: min(360px, 66vw); }
.image-slot.brand-image { height: 220px; }
.app-icon-slot { width: 64px; height: 64px; }
.cover-copy { max-width: 760px; margin: 18px auto 0; text-align: center; }
.cover-copy p { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.btn { min-height: 42px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; font-size: 14px; white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg,#E03A52 0%,#C41E3A 55%,#8A1428 100%); color: var(--cream); border: 1px solid transparent; }
.btn-secondary { background: #110B0C; color: var(--text); border: 1px solid var(--border-strong); }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .app-link:focus-visible, .drawer-open:focus-visible, .text-button:focus-visible, .drawer-close:focus-visible, .search-close:focus-visible, a:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 3px; }
.number-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
.number-strip .number-card { background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.number-strip strong { display: block; color: var(--title); margin-bottom: 4px; }
.number-strip span { color: var(--muted); }
.shelf { display: grid; gap: 10px; }
.shelf-item { display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; align-items: center; padding: 14px 16px; box-shadow: none; }
.shelf-index { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: .08em; }
.shelf-item strong { color: var(--title); }
.shelf-item p { margin: 4px 0 0; color: var(--muted); }
.shelf-link { color: var(--cream); min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 8px; }
.ranking-list { display: grid; gap: 12px; }
.ranking-item { display: grid; grid-template-columns: 54px 1fr; gap: 16px; align-items: start; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.ranking-no { color: #F0BFC4; font-size: 20px; font-weight: 800; }
.ranking-item p { margin-bottom: 0; color: var(--muted); }
.timeline { position: relative; display: grid; gap: 14px; margin-left: 8px; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 8px; bottom: 8px; width: 1px; background: var(--border-strong); }
.timeline-item { position: relative; margin-left: 34px; padding: 16px 18px; box-shadow: none; }
.timeline-item::before { content: ""; position: absolute; left: -30px; top: 22px; width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px var(--bg); }
.status { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--cream); font-size: 12px; margin-bottom: 8px; }
.memo-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; }
.note-panel { padding: 18px; box-shadow: none; }
.note-list { margin: 0; padding-left: 20px; }
.note-list li + li { margin-top: 8px; }
.article-panel { padding: 20px; }
.article-panel + .article-panel { margin-top: 16px; }
.article-panel p { color: var(--text); }
.article-panel .muted { color: var(--muted); }
.policy-stack { display: grid; gap: 14px; }
.policy-block { padding: 18px; box-shadow: none; }
.policy-block h2 { margin-bottom: 8px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { padding: 18px; box-shadow: none; }
.faq-item h2 { font-size: 17px; margin-bottom: 8px; }
.faq-item p { margin-bottom: 0; color: var(--text); }
.feature-row { padding: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: center; }
.feature-row + .feature-row { margin-top: 16px; }
.feature-row.reverse .feature-copy { order: 2; }
.feature-row.reverse .image-slot { order: 1; }
.mini-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mini-links a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--border); color: var(--text); }
.service-callout { background: linear-gradient(135deg, rgba(224,58,82,.15), rgba(138,20,40,.08)); border: 1px solid var(--border-strong); border-radius: 14px; padding: 20px; }
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--border-strong); color: var(--text); font-size: 13px; }
.footer-grid { padding: 34px 0 24px; display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 24px; }
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-brand strong { color: var(--title); font-size: 16px; }
.footer-brand span { color: var(--muted); }
.footer-logo-wrap { min-height: 44px; display: flex; align-items: center; }
.footer-links { display: flex; flex-direction: column; gap: 7px; }
.footer-links h2 { margin: 0 0 4px; font-size: 13px; color: var(--title); }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--cream); }
.footer-note { border-top: 1px solid var(--border); padding: 18px 0 26px; color: var(--muted); }
.footer-note p { margin-bottom: 6px; }
.drawer-mask { 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; }
.drawer-mask.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
.heart-drawer { position: fixed; z-index: 190; top: 0; right: 0; width: min(400px, 86vw); height: 100dvh; background: #100A0B; border-left: 1px solid var(--border-strong); transform: translateX(104%); visibility: hidden; pointer-events: none; transition: transform .24s ease, visibility .24s ease; display: flex; flex-direction: column; }
.heart-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: 14px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.drawer-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.drawer-brand div { display: flex; flex-direction: column; min-width: 0; }
.drawer-brand strong { color: var(--title); }
.drawer-brand span { color: var(--muted); font-size: 11px; }
.drawer-close, .search-close { min-width: 44px; min-height: 44px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel); }
.drawer-scroll { overflow-y: auto; padding: 14px 16px 28px; }
.drawer-group + .drawer-group { margin-top: 20px; }
.drawer-group h2 { margin-bottom: 8px; font-size: 13px; color: var(--red-bright); }
.drawer-list { display: grid; gap: 8px; }
.drawer-item { display: block; padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); }
.drawer-item strong { display: block; color: var(--title); font-size: 14px; }
.drawer-item span { display: block; color: var(--muted); font-size: 12px; line-height: 1.55; margin-top: 3px; }
.drawer-item.is-current { border-color: var(--border-strong); background: linear-gradient(135deg, rgba(196,30,58,.22), rgba(36,22,24,.88)); }
.search-layer { position: fixed; z-index: 200; inset: 82px 0 auto; padding: 18px 16px; background: rgba(8,5,5,.94); border-bottom: 1px solid var(--border-strong); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-10px); transition: .2s ease; }
.search-layer.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.search-card { width: min(760px, 100%); margin: 0 auto; background: var(--panel); border: 1px solid var(--border-strong); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
.search-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.search-head h2 { margin: 2px 0 12px; }
.search-label { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
#siteSearchInput { width: 100%; min-height: 46px; border: 1px solid var(--border-strong); border-radius: 10px; background: #0D090A; color: var(--cream); padding: 0 13px; outline: none; }
#siteSearchInput:focus { border-color: var(--red-bright); }
.search-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.search-presets a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 13px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel-2); }
.search-presets a[hidden] { display: none; }
.search-empty { color: var(--muted); margin: 12px 0 0; }
.mobile-bottom { display: none; }
@media (max-width: 860px) {
    :root { --top-offset: 82px; }
    .shell { width: calc(100% - 32px); }
    .shadow-tabs { display: none; }
    .site-main { padding-top: calc(var(--top-offset) + 26px); padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
    .heart-bar-inner { grid-template-columns: minmax(0,1fr) auto auto; gap: 8px; }
    .brand-home { min-width: 0; overflow: hidden; }
    .brand-logo { max-width: 130px; }
    .drawer-open { padding: 0 13px; }
    .app-link { padding: 0 12px; }
    .cards-3, .grid-4 { grid-template-columns: 1fr 1fr; }
    .memo-grid, .feature-row { grid-template-columns: 1fr; }
    .feature-row.reverse .feature-copy, .feature-row.reverse .image-slot { order: initial; }
    .number-strip { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .shelf-item { grid-template-columns: 72px 1fr; }
    .shelf-link { grid-column: 2; justify-self: start; }
    .search-layer { inset: 82px 0 0; padding: 16px; background: #090607; overflow-y: auto; }
    .search-card { min-height: calc(100dvh - 114px); box-shadow: none; }
    .mobile-bottom { position: fixed; z-index: 130; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(48px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #0A0607; border-top: 1px solid var(--border-strong); }
    .mobile-bottom a { min-height: 48px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; }
    .mobile-bottom a.is-current { background: var(--red); color: var(--cream); }
}
@media (max-width: 620px) {
    .peach-line-brand { max-width: 72vw; }
    .cards-3, .cards-2, .grid-4 { grid-template-columns: 1fr; }
    .image-slot.banner { height: 260px; }
    .image-slot.card-image { height: 180px; }
    .image-slot.feature-image { height: 200px; }
    .cover-copy { text-align: left; }
    .actions { justify-content: flex-start; }
    .number-strip { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
    .footer-brand { grid-column: 1 / -1; }
    .section-title { display: block; }
    .section-title p { margin-top: 6px; }
    .shelf-item { grid-template-columns: 58px 1fr; }
    .heart-drawer { width: 86vw; }
}
@media (max-width: 400px) {
    .brand-logo { max-width: 104px; }
    .drawer-open, .app-link { font-size: 13px; padding: 0 9px; }
    .number-strip { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
