:root {
    --bg: #FFF5F6; --deep: #F8E6EA; --card: #FFFFFF; --soft: #FDEEF1;
    --title: #5A1420; --text: #4A2028; --muted: #8A4A58; --aux: #B07884;
    --brand: #E03A5C; --bright: #F05A78; --dark: #B01E3C; --pink: #F7C8D0; --cream: #FFF8F6;
    --line: rgba(224,58,92,.18); --line-strong: rgba(224,58,92,.46); --shadow: 0 12px 28px rgba(90,20,32,.08);
    --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","Microsoft YaHei",sans-serif; font-size: 15px; line-height: 1.7; overflow-x: hidden; }
body.ui-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
.shell { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }
.site-header { position: fixed; inset: 0 0 auto; z-index: 70; }
.sugar-line { height: 22px; background: var(--dark); color: var(--cream); font-size: 12px; }
.sugar-line-inner { height: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.line-search-btn { min-width: 52px; height: 22px; padding: 0 8px; border: 0; background: transparent; color: var(--cream); border-radius: 6px; }
.line-search-btn:hover, .line-search-btn:focus-visible { background: rgba(255,255,255,.14); outline: 2px solid rgba(255,255,255,.42); outline-offset: -2px; }
.core-bar { height: 60px; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.core-bar-inner { 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; max-width: 220px; }
.brand-logo, .drawer-logo, .footer-logo { height: 28px; width: auto; object-fit: contain; object-position: center; }
.brand-text { color: var(--title); font-size: 16px; font-weight: 800; letter-spacing: .03em; }
.drawer-open-btn, .app-entry { min-height: 44px; padding: 0 18px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.drawer-open-btn { border: 1px solid var(--line-strong); color: var(--title); background: var(--cream); }
.app-entry { justify-self: end; color: var(--cream); background: linear-gradient(135deg,var(--bright) 0%,var(--brand) 55%,var(--dark) 100%); }
.drawer-open-btn:hover, .drawer-open-btn:focus-visible, .app-entry:hover, .app-entry:focus-visible { transform: translateY(-1px); box-shadow: var(--shadow); outline: 2px solid var(--line-strong); outline-offset: 2px; }
.tag-bar { height: 40px; background: var(--cream); border-bottom: 1px solid var(--line); }
.tag-bar-inner { height: 40px; display: flex; justify-content: center; align-items: center; gap: 8px; }
.tag-bar a { min-width: 86px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--muted); font-size: 13px; font-weight: 700; }
.tag-bar a:hover, .tag-bar a:focus-visible { background: var(--soft); color: var(--title); outline: 2px solid var(--line); }
.tag-bar a.is-active { background: var(--brand); color: var(--cream); }
.site-main { min-height: 70vh; padding: 150px 0 72px; }
.page-hero { padding: 28px 0 18px; }
.eyebrow { margin: 0 0 8px; color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
h1,h2,h3 { color: var(--title); margin-top: 0; }
h1 { margin-bottom: 14px; font-size: 24px; line-height: 1.3; }
h2 { font-size: 20px; line-height: 1.4; }
h3 { font-size: 16px; line-height: 1.5; }
p { margin: 0 0 14px; }
.lead { max-width: 820px; color: var(--muted); font-size: 16px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.btn { min-height: 42px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; font-size: 14px; font-weight: 800; white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg,var(--bright) 0%,var(--brand) 55%,var(--dark) 100%); color: var(--cream); }
.btn-secondary { background: #fff; color: var(--title); border: 1px solid var(--line-strong); }
.btn:hover, .btn:focus-visible { transform: translateY(-1px); box-shadow: var(--shadow); outline: 2px solid var(--line-strong); outline-offset: 2px; }
.section { padding: 26px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 14px; }
.section-head p { margin: 0; color: var(--muted); max-width: 680px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: var(--shadow); }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
.card p:last-child { margin-bottom: 0; }
.card-kicker, .number { color: var(--brand); font-weight: 900; letter-spacing: .08em; }
.number { font-size: 28px; line-height: 1; }
.media-slot { width: 100%; min-height: 160px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 14px; background: var(--cream); border: 1px solid var(--line); }
.media-slot img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.media-banner { height: 260px; }
.media-standard { height: 200px; }
.media-card { height: 180px; }
.media-app { height: 360px; }
.hero-banner-wrap { margin: 0 0 22px; }
.home-brand { padding: 20px 0 8px; text-align: center; }
.home-brand strong { display: block; font-size: 13px; color: var(--brand); letter-spacing: .14em; margin-bottom: 8px; }
.home-brand h1 { max-width: 720px; margin: 0 auto 14px; }
.home-brand p { max-width: 830px; margin: 0 auto; color: var(--muted); }
.home-brand .btn-row { justify-content: center; }
.book-shelf { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.book { min-height: 150px; padding: 18px; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(180deg,#fff 0%,var(--soft) 100%); display: flex; flex-direction: column; justify-content: space-between; }
.book span { color: var(--aux); font-size: 12px; }
.book strong { color: var(--title); font-size: 17px; }
.ranking { display: grid; gap: 10px; }
.rank-item { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; padding: 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.rank-item .number { color: var(--brand); }
.timeline { position: relative; display: grid; gap: 14px; }
.timeline::before { content: ""; position: absolute; left: 14px; top: 10px; bottom: 10px; width: 1px; background: var(--line-strong); }
.timeline-item { position: relative; padding: 16px 18px 16px 44px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.timeline-item::before { content: ""; position: absolute; left: 8px; top: 22px; width: 13px; height: 13px; border-radius: 50%; background: var(--brand); border: 3px solid var(--cream); box-shadow: 0 0 0 1px var(--line-strong); }
.status { display: inline-flex; min-height: 28px; align-items: center; padding: 0 10px; border-radius: 999px; background: var(--soft); color: var(--dark); font-size: 12px; font-weight: 800; }
.note-list { display: grid; gap: 12px; }
.note { padding: 16px; background: var(--soft); border-left: 3px solid var(--brand); border-radius: 0 12px 12px 0; }
.prose { display: grid; gap: 18px; }
.prose-section { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.prose-section p:last-child { margin-bottom: 0; }
.content-index { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 24px; }
.content-index a { min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--soft); color: var(--title); border: 1px solid var(--line); }
.content-index a:hover, .content-index a:focus-visible { border-color: var(--line-strong); outline: 2px solid var(--line); }
.faq-list { display: grid; gap: 12px; }
.faq-item { padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.faq-item h2, .faq-item h3 { margin-bottom: 8px; }
.contact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.notice { background: var(--soft); border: 1px solid var(--line-strong); border-radius: 14px; padding: 18px; }
.site-footer { background: #3A1018; color: #FDEEF1; border-top: 1px solid rgba(247,200,208,.32); padding: 38px 0 22px; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 2fr; gap: 34px; }
.footer-brand-row { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer-brand-row strong, .footer-brand-row span { display: block; }
.footer-brand-row strong { font-size: 16px; color: var(--cream); }
.footer-brand-row span { color: var(--pink); font-size: 11px; letter-spacing: .08em; }
.footer-brand p { color: #F7DDE2; }
.footer-links { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.footer-links div { display: grid; align-content: start; gap: 6px; }
.footer-links strong { color: var(--cream); margin-bottom: 3px; }
.footer-links a { color: #F7DDE2; min-height: 28px; display: inline-flex; align-items: center; }
.footer-links a:hover, .footer-links a:focus-visible { color: #fff; text-decoration: underline; outline: none; }
.footer-bottom { padding-top: 18px; margin-top: 20px; border-top: 1px solid rgba(247,200,208,.18); color: #E9C6CE; }
.page-mask { position: fixed; inset: 0; z-index: 80; background: rgba(58,16,24,.36); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.page-mask.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.site-drawer { position: fixed; z-index: 90; inset: 0 auto 0 0; width: 400px; max-width: 86vw; background: var(--card); border-right: 1px solid var(--line-strong); box-shadow: 18px 0 40px rgba(90,20,32,.16); transform: translateX(-102%); visibility: hidden; pointer-events: none; transition: transform .24s ease, visibility .24s ease; display: flex; flex-direction: column; }
.site-drawer.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.drawer-head { min-height: 74px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.drawer-brand { display: flex; align-items: center; gap: 10px; color: var(--title); }
.drawer-close-btn, .search-head button { min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--cream); color: var(--title); }
.drawer-scroll { overflow-y: auto; padding: 16px; }
.drawer-scroll section + section { margin-top: 22px; }
.drawer-scroll h2 { font-size: 13px; color: var(--brand); margin-bottom: 8px; }
.drawer-scroll a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; }
.drawer-scroll a:hover, .drawer-scroll a:focus-visible { background: var(--soft); outline: 2px solid var(--line); }
.drawer-scroll b { color: var(--title); font-size: 14px; }
.drawer-scroll span { color: var(--muted); font-size: 12px; }
.site-search { position: fixed; z-index: 92; top: 82px; left: 0; right: 0; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.site-search.is-open { visibility: visible; opacity: 1; pointer-events: auto; }
.search-card { padding: 18px; background: #fff; border: 1px solid var(--line-strong); border-radius: 0 0 14px 14px; box-shadow: var(--shadow); }
.search-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--title); }
.search-label { display: block; margin: 12px 0 6px; color: var(--muted); font-size: 12px; }
.search-input { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--cream); color: var(--text); outline: none; }
.search-input:focus { box-shadow: 0 0 0 3px rgba(224,58,92,.12); }
.search-presets { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.search-presets a { min-height: 70px; padding: 12px; display: grid; align-content: center; gap: 3px; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; color: var(--title); font-weight: 800; }
.search-presets span { color: var(--muted); font-size: 12px; font-weight: 400; }
.search-presets a:hover, .search-presets a:focus-visible { border-color: var(--line-strong); outline: 2px solid var(--line); }
.mobile-bottom { display: none; }
@media (max-width: 800px) {
    .tag-bar { display: none; }
    .site-main { padding-top: 108px; padding-bottom: 84px; }
    .core-bar-inner { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 8px; }
    .brand-link { max-width: 130px; min-width: 0; }
    .brand-logo { max-width: 120px; height: 26px; }
    .brand-text { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .drawer-open-btn, .app-entry { min-height: 44px; padding: 0 11px; font-size: 13px; }
    .grid-2, .grid-3, .grid-4, .contact-grid, .footer-grid, .footer-links, .book-shelf { grid-template-columns: 1fr; }
    .media-banner { height: 260px; }
    .media-app { height: 320px; }
    .section { padding: 20px 0; }
    .site-search { inset: 0; background: var(--dark); color: var(--cream); }
    .search-card { width: 100%; min-height: 100vh; border: 0; border-radius: 0; background: var(--dark); padding: 28px 16px 80px; overflow-y: auto; }
    .search-head { color: var(--cream); }
    .search-head button { color: var(--cream); border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); }
    .search-label { color: var(--pink); }
    .search-input { background: var(--cream); }
    .search-presets { grid-template-columns: 1fr; }
    .search-presets a { background: rgba(255,248,246,.1); border-color: rgba(255,255,255,.16); color: var(--cream); }
    .search-presets span { color: var(--pink); }
    .mobile-bottom { position: fixed; z-index: 50; 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: rgba(255,255,255,.97); border-top: 1px solid var(--line-strong); }
    .mobile-bottom a { min-height: 48px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); }
    .mobile-bottom a.is-active { background: var(--brand); color: var(--cream); font-weight: 800; }
    .site-footer { padding-bottom: 78px; }
    .footer-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .footer-grid { gap: 24px; }
    .rank-item { grid-template-columns: 44px 1fr; }
}
@media (max-width: 430px) {
    .sugar-line-inner > span { max-width: 72%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .shell { width: min(calc(100% - 32px), var(--max)); }
    .card, .prose-section { padding: 18px; }
    .media-app { height: 300px; }
}

.app-icon-line { display:flex; align-items:center; gap:12px; min-height:64px; padding:10px 14px; background:#fff; border:1px solid var(--line); border-radius:14px; color:var(--muted); }
.app-icon-line img { width:48px; height:48px; object-fit:contain; object-position:center; }
