:root {
    --bg: #FFF6E8;
    --deep-bg: #F5E4C4;
    --paper: #FFFFFF;
    --secondary: #F8EAD0;
    --title: #4A2208;
    --text: #4A2C14;
    --muted: #8A5A28;
    --soft: #B07A40;
    --yellow: #E8B020;
    --yellow-bright: #F3C84A;
    --yellow-deep: #B88610;
    --red: #D43A2A;
    --red-bright: #E85A3A;
    --red-deep: #9A2418;
    --cream: #FFF8EC;
    --border: rgba(212,58,42,0.16);
    --accent-border: rgba(232,176,32,0.50);
    --shadow: 0 12px 28px rgba(74,34,8,0.08);
    --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif; font-size: 15px; line-height: 1.7; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
body.is-locked { overflow: hidden; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; background: var(--paper); color: var(--title); padding: 8px 12px; border-radius: 8px; border: 1px solid var(--accent-border); }
.skip-link:focus { top: 8px; }
.top-inner, .content-wrap { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }
.fruit-line { position: fixed; z-index: 120; top: 0; left: 0; right: 0; height: 22px; background: var(--red-deep); color: var(--cream); font-size: 12px; }
.fruit-line .top-inner { height: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; white-space: nowrap; }
.text-button { border: 0; background: transparent; color: var(--cream); min-height: 22px; padding: 0 4px; }
.mango-bar { position: fixed; z-index: 115; top: 22px; left: 0; right: 0; height: 60px; background: var(--paper); border-bottom: 1px solid var(--accent-border); }
.mango-inner { height: 60px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.brand-link { justify-self: start; display: flex; align-items: center; min-height: 44px; min-width: 44px; }
.brand-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; }
.mango-box-trigger { justify-self: center; min-height: 44px; min-width: 76px; border: 1px solid var(--accent-border); background: var(--cream); color: var(--title); border-radius: 999px; padding: 0 18px; font-weight: 700; }
.app-link { justify-self: end; min-height: 44px; display: inline-flex; align-items: center; border: 1px solid var(--red); color: var(--title); background: var(--paper); border-radius: 999px; padding: 0 18px; font-size: 14px; font-weight: 700; }
.short-sign { position: fixed; z-index: 110; top: 82px; left: 0; right: 0; height: 40px; background: var(--cream); border-bottom: 1px solid var(--accent-border); }
.short-sign-inner { height: 40px; display: flex; justify-content: center; align-items: center; gap: 8px; }
.short-sign a { min-height: 32px; min-width: 88px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; color: var(--title); font-size: 13px; font-weight: 700; }
.short-sign a.is-current { background: var(--red); color: var(--cream); }
.site-main { padding-top: 150px; padding-bottom: 48px; min-height: 70vh; }
.page-shell { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }
.page-head { display: grid; gap: 14px; margin-bottom: 24px; }
.eyebrow { display: inline-flex; align-items: center; width: fit-content; min-height: 28px; padding: 2px 10px; border-radius: 999px; background: var(--secondary); color: var(--red-deep); border: 1px solid var(--accent-border); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
h1, h2, h3 { color: var(--title); margin-top: 0; }
h1 { font-size: 24px; line-height: 1.3; margin-bottom: 0; letter-spacing: -.02em; }
h2 { font-size: 20px; line-height: 1.4; margin-bottom: 12px; }
h3 { font-size: 16px; line-height: 1.5; margin-bottom: 8px; }
p { margin: 0 0 14px; }
.lead { max-width: 860px; color: var(--muted); font-size: 16px; }
.section { margin-top: 28px; }
.card { background: var(--paper); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 22px; }
.soft-card { background: var(--secondary); border: 1px solid var(--accent-border); border-radius: 12px; padding: 20px; }
.red-card { background: var(--red); color: var(--cream); border-radius: 12px; padding: 22px; }
.red-card h2, .red-card h3 { color: var(--cream); }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 18px; }
.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)); }
.media-slot { width: 100%; min-height: 180px; background: var(--cream); border: 1px solid var(--accent-border); border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.media-slot img { width: 100%; height: 100%; max-height: 100%; object-fit: contain; object-position: center; }
.banner-slot { height: 260px; min-height: 260px; }
.small-media { height: 180px; min-height: 180px; }
.medium-media { height: 200px; min-height: 200px; }
.app-media { height: 360px; max-height: 360px; min-height: 260px; }
.home-cover { display: grid; gap: 18px; }
.home-copy { background: var(--paper); border: 1px solid var(--border); border-radius: 14px; padding: 24px; box-shadow: var(--shadow); }
.home-copy .brand-line { color: var(--red-deep); font-weight: 800; font-size: 13px; letter-spacing: .04em; }
.home-copy h1 { margin-top: 4px; }
.home-copy .tagline { font-size: 20px; color: var(--title); font-weight: 800; margin: 10px 0; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 800; white-space: nowrap; border: 1px solid transparent; }
.btn-primary { background: linear-gradient(135deg,#F3C84A 0%,#E8B020 40%,#D43A2A 100%); color: var(--title); }
.btn-secondary { background: var(--paper); color: var(--title); border-color: var(--red); }
a:hover, button:hover { filter: brightness(.98); }
a:focus-visible, button:focus-visible { outline: 3px solid rgba(184,134,16,.45); outline-offset: 3px; }
.feature-card { display: flex; flex-direction: column; gap: 14px; }
.feature-card p { color: var(--muted); }
.numbered { display: grid; gap: 12px; counter-reset: item; }
.number-row { display: grid; grid-template-columns: 54px minmax(0,1fr); gap: 14px; align-items: start; padding: 16px; border-radius: 12px; background: var(--paper); border: 1px solid var(--border); }
.num { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--yellow-bright); color: var(--title); font-weight: 900; font-size: 18px; }
.num.red { background: var(--red); color: var(--cream); }
.shelf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.shelf-card { min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; background: var(--paper); border: 1px solid var(--accent-border); border-top: 5px solid var(--yellow); border-radius: 10px; padding: 16px; }
.shelf-card:nth-child(even) { border-top-color: var(--red); }
.shelf-card span { color: var(--soft); font-size: 12px; font-weight: 800; }
.timeline { position: relative; display: grid; gap: 16px; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 8px; bottom: 8px; width: 2px; background: var(--accent-border); }
.timeline-item { position: relative; background: var(--paper); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.timeline-item::before { content: ""; position: absolute; left: -26px; top: 22px; width: 12px; height: 12px; border-radius: 50%; background: var(--red); border: 3px solid var(--bg); }
.status { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border-radius: 999px; background: var(--secondary); color: var(--red-deep); font-size: 12px; font-weight: 800; }
.note-list, .plain-list { margin: 0; padding-left: 20px; }
.note-list li, .plain-list li { margin-bottom: 10px; }
.faq-list { display: grid; gap: 14px; }
.faq-item { background: var(--paper); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.faq-item h2, .faq-item h3 { margin-bottom: 8px; }
.mt-14 { margin-top: 14px; }
.notice { padding: 16px 18px; background: var(--cream); border-left: 4px solid var(--yellow); border-radius: 0 10px 10px 0; color: var(--muted); }
.two-tone { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; align-items: stretch; }
.app-card { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px, .65fr); gap: 20px; align-items: center; }
.app-badge { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.app-badge img { width: 48px; height: 48px; object-fit: contain; border-radius: 12px; }
.definition-list { display: grid; gap: 14px; }
.definition-list > div { padding: 16px; border-radius: 12px; background: var(--paper); border: 1px solid var(--border); }
.definition-list dt { color: var(--title); font-weight: 800; margin-bottom: 6px; }
.definition-list dd { margin: 0; color: var(--muted); }
.site-footer { background: #3A1808; color: var(--cream); border-top: 1px solid var(--yellow); padding: 34px 0 26px; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 24px; }
.footer-brand-link { display: inline-flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.footer-brand-link img { height: 28px; width: auto; object-fit: contain; }
.footer-brand-link strong, .footer-brand-link small { display: block; }
.footer-brand-link small { color: #F5E4C4; margin-top: 2px; }
.footer-brand p { max-width: 420px; color: #F5E4C4; }
.footer-column h2 { color: var(--cream); font-size: 13px; margin-bottom: 8px; }
.footer-column a { display: block; color: #F5E4C4; min-height: 28px; }
.footer-bottom { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(243,200,74,.25); display: flex; justify-content: space-between; gap: 16px; color: #F5E4C4; }
.page-overlay { position: fixed; z-index: 190; inset: 0; background: rgba(58,24,8,.45); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.page-overlay.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
.mango-drawer { position: fixed; z-index: 210; top: 0; right: 0; width: min(400px, 86vw); height: 100dvh; background: var(--cream); transform: translateX(105%); visibility: hidden; pointer-events: none; transition: transform .24s ease, visibility .24s ease; box-shadow: -16px 0 40px rgba(58,24,8,.14); }
.mango-drawer.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.drawer-head { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--paper); border-bottom: 1px solid var(--accent-border); }
.drawer-brand { display: flex; align-items: center; gap: 10px; color: var(--title); font-weight: 800; }
.drawer-brand img { height: 28px; width: auto; object-fit: contain; }
.icon-button { min-height: 44px; min-width: 58px; border-radius: 999px; border: 1px solid var(--red); background: var(--paper); color: var(--title); padding: 0 14px; }
.drawer-scroll { height: calc(100dvh - 68px); overflow-y: auto; padding: 14px 16px 30px; }
.drawer-group { margin-bottom: 18px; }
.drawer-group h2 { font-size: 13px; color: var(--red-deep); margin-bottom: 8px; }
.drawer-group a { display: grid; gap: 2px; padding: 11px 12px; min-height: 58px; border-radius: 10px; border: 1px solid transparent; }
.drawer-group a:hover, .drawer-group a:focus-visible { background: var(--paper); border-color: var(--accent-border); }
.drawer-group strong { color: var(--title); font-size: 14px; }
.drawer-group span { color: var(--muted); font-size: 12px; }
.search-layer { position: fixed; z-index: 205; top: 82px; left: 0; right: 0; padding: 14px 16px; visibility: hidden; pointer-events: none; opacity: 0; transition: opacity .2s ease, visibility .2s ease; }
.search-layer.is-open { visibility: visible; pointer-events: auto; opacity: 1; }
.search-card { width: min(780px, 100%); margin: 0 auto; background: var(--paper); color: var(--text); border-radius: 14px; border: 1px solid var(--accent-border); box-shadow: var(--shadow); padding: 20px; }
.search-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.search-head h2 { margin: 4px 0 0; }
.preset-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.preset-links a { min-height: 42px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; background: var(--secondary); border: 1px solid var(--accent-border); color: var(--title); font-weight: 800; }
.mobile-bottom { display: none; }
@media (max-width: 860px) {
    .grid-3, .grid-4, .shelf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .two-tone, .app-card { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    body { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
    .top-inner, .content-wrap, .page-shell { width: calc(100% - 32px); }
    .short-sign { display: none; }
    .site-main { padding-top: 104px; padding-bottom: 34px; }
    .mango-inner { grid-template-columns: minmax(0,1fr) auto auto; gap: 8px; }
    .brand-logo { max-width: 128px; }
    .brand-fallback { font-size: 14px; white-space: nowrap; }
    .mango-box-trigger { min-width: 60px; padding: 0 12px; }
    .app-link { padding: 0 12px; }
    .grid-2, .grid-3, .grid-4, .shelf-grid { grid-template-columns: 1fr; }
    .card, .home-copy { padding: 18px; }
    .banner-slot { height: 220px; min-height: 220px; }
    .app-media { height: 320px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
    .footer-bottom { flex-direction: column; padding-bottom: 10px; }
    .search-layer { top: 0; inset: 0; padding: 0; background: var(--red-deep); }
    .search-card { width: 100%; min-height: 100dvh; border: 0; border-radius: 0; background: var(--red-deep); color: var(--cream); padding: 28px 16px 80px; box-shadow: none; }
    .search-card h2, .search-card .eyebrow { color: var(--cream); }
    .search-card .eyebrow { background: rgba(255,248,236,.12); border-color: rgba(255,248,236,.25); }
    .search-card .icon-button { background: var(--cream); }
    .preset-links a { background: var(--cream); color: var(--title); border-color: rgba(255,248,236,.35); }
    .mobile-bottom { position: fixed; z-index: 100; left: 0; right: 0; bottom: 0; min-height: 48px; padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, 1fr); background: var(--paper); border-top: 1px solid var(--accent-border); box-shadow: 0 -8px 24px rgba(74,34,8,.08); }
    .mobile-bottom a { min-height: 48px; display: flex; align-items: center; justify-content: center; color: var(--title); font-size: 12px; font-weight: 800; }
    .mobile-bottom a.is-current { background: var(--red); color: var(--cream); }
    .mango-drawer { width: min(86vw, 400px); }
    .number-row { grid-template-columns: 46px minmax(0,1fr); }
    .num { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
