:root {
    --bg: #FFF5F6;
    --deep-bg: #F8E6EA;
    --card: #FFFFFF;
    --sub-bg: #FDEEF1;
    --title: #5A1420;
    --text: #4A2028;
    --muted: #8A4A58;
    --soft: #B07884;
    --brand: #E03A5C;
    --bright: #F05A78;
    --dark: #B01E3C;
    --rose: #F7C8D0;
    --cream: #FFF8F6;
    --border: rgba(224,58,92,0.18);
    --border-strong: rgba(224,58,92,0.46);
    --shadow: 0 12px 28px rgba(90,20,32,0.08);
    --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-width: 320px; 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; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
.top-shell, .content-shell { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }
.site-top { position: fixed; inset: 0 0 auto 0; z-index: 90; }
.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; }
.sugar-line-brand { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.text-search-btn { min-width: 52px; height: 22px; border: 0; padding: 0 8px; color: var(--cream); background: transparent; }
.core-bar { height: 60px; background: #fff; border-bottom: 1px solid var(--border); }
.core-bar-inner { height: 60px; display: grid; grid-template-columns: minmax(112px,1fr) auto minmax(112px,1fr); align-items: center; gap: 14px; }
.brand-link { display: inline-flex; width: max-content; max-width: 100%; align-items: center; min-height: 44px; }
.brand-logo, .drawer-logo, .footer-logo { height: 28px; width: auto; max-width: 180px; object-fit: contain; object-position: center; }
.brand-fallback { color: var(--title); font-size: 16px; font-weight: 800; white-space: nowrap; }
.drawer-trigger { min-width: 74px; height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--border-strong); color: var(--title); background: var(--cream); font-size: 14px; font-weight: 700; }
.app-link { justify-self: end; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 12px; background: linear-gradient(135deg,#F05A78 0%,#E03A5C 55%,#B01E3C 100%); color: var(--cream); font-size: 14px; font-weight: 700; white-space: nowrap; }
.tag-nav { height: 40px; background: var(--cream); border-bottom: 1px solid var(--border); }
.tag-nav-inner { height: 40px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.tag-nav a { min-height: 32px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border-radius: 10px; color: var(--text); font-size: 13px; }
.tag-nav a.is-active { background: var(--brand); color: var(--cream); }
.site-main { min-height: 60vh; padding-top: 138px; padding-bottom: 44px; }
.page-hero, .section-card, .feature-card, .timeline, .article-block, .faq-card, .shelf-card, .rank-card, .note-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); }
.page-hero { padding: 28px; margin-bottom: 22px; }
.eyebrow { color: var(--brand); font-size: 13px; font-weight: 800; letter-spacing: .06em; margin: 0 0 8px; }
h1, h2, h3 { color: var(--title); margin-top: 0; }
h1 { font-size: 24px; line-height: 1.3; margin-bottom: 12px; }
h2 { font-size: 20px; line-height: 1.4; margin-bottom: 12px; }
h3 { font-size: 16px; line-height: 1.45; margin-bottom: 8px; }
p { margin-top: 0; }
.lead { max-width: 860px; color: var(--text); margin-bottom: 0; }
.hero-actions, .button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn-primary, .btn-secondary { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border-radius: 12px; font-size: 14px; font-weight: 800; }
.btn-primary { color: var(--cream); background: linear-gradient(135deg,#F05A78 0%,#E03A5C 55%,#B01E3C 100%); }
.btn-secondary { color: var(--title); background: #fff; border: 1px solid var(--brand); }
.btn-primary:hover, .app-link:hover { filter: brightness(.96); }
.btn-secondary:hover, .drawer-trigger:hover { background: var(--sub-bg); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; }
.cover-block { background: var(--cream); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin-bottom: 22px; box-shadow: var(--shadow); }
.image-slot { display: flex; align-items: center; justify-content: center; width: 100%; background: var(--cream); border-bottom: 1px solid var(--border); overflow: hidden; }
.image-slot.cover { height: 260px; }
.image-slot.medium { height: 200px; }
.image-slot.card { height: 180px; }
.image-slot.app { height: 360px; max-height: 360px; }
.image-slot img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.cover-copy { padding: 24px 28px 28px; }
.brand-kicker { color: var(--brand); font-weight: 800; margin-bottom: 6px; }
.cover-copy h1 { margin-bottom: 12px; }
.grid-3, .grid-2, .info-grid, .faq-grid, .shelf-grid, .rank-grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.info-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.faq-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.shelf-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.rank-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }
.feature-card { overflow: hidden; }
.feature-copy, .section-card, .article-block, .faq-card, .shelf-card, .rank-card, .note-card { padding: 20px; }
.section-wrap { margin: 24px auto; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.section-title p { margin: 0; color: var(--muted); font-size: 13px; }
.number-list { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-top: 18px; }
.number-item { padding: 15px; border-radius: 12px; background: var(--sub-bg); border: 1px solid var(--border); }
.number-item strong, .rank-number { display: block; color: var(--brand); font-size: 22px; line-height: 1; margin-bottom: 8px; }
.shelf-card { min-height: 170px; }
.shelf-label { display: inline-flex; padding: 3px 8px; border-radius: 999px; background: var(--sub-bg); color: var(--brand); font-size: 12px; font-weight: 800; margin-bottom: 8px; }
.rank-card { min-height: 156px; }
.timeline { padding: 8px 20px; }
.timeline-item { position: relative; padding: 18px 0 18px 28px; border-left: 2px solid var(--rose); }
.timeline-item::before { content: ""; position: absolute; left: -7px; top: 26px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); border: 3px solid var(--cream); }
.status { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; background: var(--sub-bg); color: var(--brand); font-size: 12px; font-weight: 800; }
.article-stack { display: grid; gap: 16px; }
.article-block ul { margin: 10px 0 0; padding-left: 20px; }
.article-block li + li { margin-top: 6px; }
.mini-index { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.mini-index a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--cream); color: var(--title); }
.app-panel { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 24px; align-items: center; }
.app-icon-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.app-icon-row img { width: 48px; height: 48px; object-fit: contain; }
.site-footer { background: #3A1018; color: #FDEEF1; border-top: 1px solid var(--rose); font-size: 13px; }
.footer-top { padding: 34px 0 76px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.footer-brand strong, .footer-brand span { display: block; color: var(--cream); }
.footer-brand span { color: var(--rose); font-size: 12px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.footer-grid h2 { color: var(--cream); font-size: 14px; margin-bottom: 8px; }
.footer-grid a { display: block; color: #FDEEF1; min-height: 30px; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-notice { max-width: 850px; color: var(--rose); margin: 22px 0 8px; }
.copyright { margin: 0; color: #FDEEF1; }
.chip-drawer { position: fixed; z-index: 130; left: 0; top: 0; bottom: 0; width: 400px; max-width: 86vw; background: #fff; transform: translateX(-102%); visibility: hidden; pointer-events: none; transition: transform .22s ease, visibility .22s; box-shadow: 24px 0 50px rgba(58,16,24,.2); }
.drawer-open .chip-drawer { transform: translateX(0); visibility: visible; pointer-events: auto; }
.drawer-head { height: 68px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.drawer-brand { display: flex; align-items: center; gap: 10px; color: var(--title); }
.icon-close { min-height: 44px; min-width: 54px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--cream); color: var(--title); }
.drawer-scroll { height: calc(100% - 68px); overflow-y: auto; padding: 14px 18px 28px; }
.drawer-group { padding: 10px 0; }
.drawer-group + .drawer-group { border-top: 1px solid var(--border); }
.drawer-group h2 { font-size: 14px; margin-bottom: 6px; }
.drawer-group a { display: block; padding: 10px; border-radius: 10px; }
.drawer-group a:hover { background: var(--sub-bg); }
.drawer-group b, .drawer-group span { display: block; }
.drawer-group b { color: var(--title); font-size: 14px; }
.drawer-group span { color: var(--muted); font-size: 12px; margin-top: 2px; }
.page-mask { position: fixed; z-index: 120; inset: 0; background: rgba(58,16,24,.42); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s; }
.page-mask.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.search-layer { position: fixed; z-index: 140; left: 0; right: 0; top: 82px; visibility: hidden; pointer-events: none; opacity: 0; transform: translateY(-10px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
.search-open .search-layer { visibility: visible; pointer-events: auto; opacity: 1; transform: translateY(0); }
.search-card { width: min(calc(100% - 32px), 900px); margin: 14px auto 0; padding: 22px; border-radius: 14px; background: var(--cream); border: 1px solid var(--border); box-shadow: 0 24px 70px rgba(58,16,24,.2); color: var(--text); }
.search-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.search-head strong { color: var(--title); font-size: 18px; }
.search-head p { color: var(--muted); margin: 4px 0 0; }
.search-label { display: block; margin: 14px 0 6px; color: var(--title); font-weight: 700; }
.search-input { width: 100%; height: 46px; border: 1px solid var(--border-strong); border-radius: 12px; padding: 0 14px; background: #fff; color: var(--text); }
.search-presets { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.search-presets a { min-height: 64px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--title); font-weight: 800; }
.search-presets span { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.search-empty { margin: 12px 0 0; color: var(--muted); }
.mobile-bottom { display: none; }
.muted { color: var(--muted); }
.notice-box { padding: 16px 18px; border-left: 4px solid var(--brand); background: var(--sub-bg); border-radius: 10px; }
.clean-list { padding-left: 20px; }
.clean-list li + li { margin-top: 8px; }
.stateless-form-note { background: var(--cream); border: 1px dashed var(--border-strong); border-radius: 12px; padding: 16px; }
@media (max-width: 820px) {
    .top-shell, .content-shell { width: calc(100% - 32px); }
    .tag-nav { display: none; }
    .site-main { padding-top: 98px; padding-bottom: 74px; }
    .core-bar-inner { grid-template-columns: minmax(96px,1fr) auto minmax(96px,1fr); gap: 8px; }
    .brand-logo { max-width: 120px; }
    .drawer-trigger { min-width: 64px; padding: 0 12px; }
    .app-link { padding: 0 12px; }
    .page-hero, .cover-copy, .section-card, .article-block, .faq-card, .shelf-card, .rank-card, .note-card { padding: 18px; }
    .grid-3, .grid-2, .info-grid, .faq-grid, .shelf-grid, .rank-grid, .footer-grid, .app-panel { grid-template-columns: 1fr; }
    .number-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .search-layer { top: 0; bottom: 0; background: var(--dark); }
    .search-card { width: 100%; height: 100%; margin: 0; border: 0; border-radius: 0; padding: max(22px, env(safe-area-inset-top)) 16px 24px; background: var(--dark); color: var(--cream); overflow-y: auto; }
    .search-head strong, .search-label { color: var(--cream); }
    .search-head p { color: var(--rose); }
    .search-presets { grid-template-columns: 1fr 1fr; }
    .search-presets a { background: var(--cream); }
    .search-layer .icon-close { background: transparent; color: var(--cream); border-color: rgba(255,248,246,.4); }
    .search-input { background: var(--cream); }
    .mobile-bottom { position: fixed; z-index: 100; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5,1fr); min-height: 48px; padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--border); }
    .mobile-bottom a { min-height: 48px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--title); }
    .mobile-bottom a.is-active { background: var(--brand); color: var(--cream); }
    .drawer-open .mobile-bottom, .search-open .mobile-bottom { z-index: 110; }
    .footer-top { padding-bottom: 86px; }
    .image-slot.app { height: 320px; }
}
@media (max-width: 520px) {
    .sugar-line-brand { max-width: calc(100vw - 86px); }
    .brand-link { max-width: 110px; }
    .brand-logo { max-width: 110px; }
    .brand-fallback { font-size: 15px; }
    .core-bar-inner { grid-template-columns: minmax(88px,1fr) 64px minmax(88px,1fr); }
    .app-link { font-size: 13px; }
    .number-list, .search-presets { grid-template-columns: 1fr; }
    .image-slot.cover { height: 260px; }
    .image-slot.card { height: 180px; }
    h1 { font-size: 24px; }
}
