:root {
    --bg: #F6E7A8;
    --bg-deep: #E8D27A;
    --surface: #FFF8DC;
    --surface-2: #F3E6B0;
    --title: #3A2E08;
    --text: #4A3C12;
    --muted: #7A6418;
    --soft: #9A8428;
    --yellow: #F6E7A8;
    --gold: #8A6A12;
    --shell: #3A2E08;
    --moss: #5A7A38;
    --border: rgba(58,46,8,0.16);
    --border-strong: rgba(138,106,18,0.48);
    --shadow: 0 12px 28px rgba(58,46,8,0.08);
    --radius: 10px;
    --max: 960px;
    --top-offset: 146px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    overflow-x: hidden;
}
body.layer-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { display: block; max-width: 100%; }
.shell { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }
.shell-narrow { width: min(calc(100% - 32px), 720px); margin: 0 auto; }
.skip-link { position: fixed; top: 4px; left: 8px; z-index: 1000; transform: translateY(-140%); background: var(--surface); color: var(--shell); padding: 8px 12px; border-radius: 6px; }
.skip-link:focus { transform: none; }
.bean-path { position: fixed; z-index: 90; top: 0; left: 0; width: 100%; height: 20px; background: var(--shell); color: var(--yellow); font-size: 12px; }
.bean-path-inner { height: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bean-path-brand { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plain-button { border: 0; background: transparent; color: inherit; min-height: 20px; cursor: pointer; padding: 0 4px; }
.bean-header { position: fixed; z-index: 89; top: 20px; left: 0; width: 100%; height: 54px; background: var(--bg); border-bottom: 1px solid var(--border-strong); }
.bean-header-inner { height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand-lockup { min-width: 120px; min-height: 44px; display: inline-flex; align-items: center; }
.brand-logo, .footer-logo, .sheet-logo { height: 24px; width: auto; object-fit: contain; object-position: center; }
.brand-text { font-size: 16px; font-weight: 800; color: var(--title); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-app-link, .menu-open { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 9px; color: var(--shell); background: var(--surface); font-size: 14px; white-space: nowrap; }
.menu-open { cursor: pointer; }
.header-app-link:hover, .menu-open:hover, .preset-links a:hover, .action-secondary:hover { border-color: var(--gold); background: var(--surface-2); }
.bean-grid { position: fixed; z-index: 88; top: 74px; left: 0; width: 100%; background: var(--bg); border-bottom: 1px solid var(--border-strong); }
.bean-grid-wrap { display: grid; grid-template-columns: repeat(2, 1fr); }
.bean-grid-item { min-height: 36px; display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong); color: var(--gold); font-size: 13px; font-weight: 700; }
.bean-grid-item:nth-child(2n) { border-right: 0; }
.bean-grid-item:nth-last-child(-n+2) { border-bottom: 0; }
.bean-grid-item.is-current { background: var(--gold); color: var(--yellow); }
.site-main { padding-top: calc(var(--top-offset) + 20px); padding-bottom: 30px; min-height: 60vh; }
.page-section { padding: 34px 0; }
.page-section + .page-section { border-top: 1px solid var(--border); }
.eyebrow { margin: 0 0 7px; color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
h1, h2, h3 { color: var(--title); margin-top: 0; }
h1 { font-size: 24px; line-height: 1.3; margin-bottom: 14px; }
h2 { font-size: 20px; line-height: 1.4; margin-bottom: 12px; }
h3 { font-size: 16px; line-height: 1.45; margin-bottom: 8px; }
p { margin: 0 0 14px; }
.lead { font-size: 16px; color: var(--title); }
.muted { color: var(--muted); }
.section-head { max-width: 680px; margin-bottom: 22px; }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.action-primary, .action-secondary { min-height: 44px; padding: 0 17px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; white-space: nowrap; }
.action-primary { color: var(--shell); background: linear-gradient(135deg,#F6E7A8 0%,#8A6A12 100%); border: 1px solid var(--gold); }
.action-secondary { background: var(--shell); color: var(--yellow); border: 1px solid var(--shell); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--moss); outline-offset: 3px; }
.index-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.index-strip a { padding: 7px 10px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--gold); font-size: 13px; font-weight: 700; }
.hero-note { max-width: 720px; }
.center-frame-wrap { display: grid; place-items: center; }
.media-slot { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); min-height: 150px; overflow: hidden; }
.media-slot img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.frame-tall { width: min(100%, 420px); height: 280px; }
.frame-about { width: 100%; height: 200px; }
.frame-app { width: min(100%, 260px); height: 320px; }
.frame-wide { width: 100%; min-height: 210px; }
.frame-compact { width: 100%; min-height: 170px; }
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline:before { content: ""; position: absolute; left: 10px; top: 12px; bottom: 12px; width: 1px; background: var(--border-strong); }
.timeline-item { position: relative; padding: 0 0 28px 36px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item:before { content: ""; position: absolute; left: 5px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--gold); border: 2px solid var(--yellow); box-shadow: 0 0 0 1px var(--gold); }
.timeline-media { margin: 12px 0 14px; max-width: 520px; }
.fold-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.fold-card { position: relative; background: var(--surface); border: 1px solid var(--border-strong); padding: 20px; border-radius: 10px 10px 10px 3px; box-shadow: var(--shadow); }
.fold-card:after { content: ""; position: absolute; right: 0; top: 0; border-top: 22px solid var(--bg-deep); border-left: 22px solid transparent; }
.card-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.week-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.week-card { background: var(--surface); border-left: 4px solid var(--gold); border-radius: 8px; padding: 17px; }
.status-list { display: grid; gap: 12px; }
.status-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: 14px 16px; }
.status-badge { border-radius: 999px; padding: 5px 9px; background: var(--shell); color: var(--yellow); font-size: 12px; font-weight: 800; white-space: nowrap; }
.status-badge.moss { background: var(--moss); color: #fff; }
.check-list { display: grid; gap: 12px; counter-reset: item; }
.check-item { background: var(--surface); padding: 16px 18px 16px 52px; border: 1px solid var(--border); border-radius: 9px; position: relative; }
.check-item:before { counter-increment: item; content: counter(item); position: absolute; left: 16px; top: 15px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--yellow); font-size: 12px; font-weight: 800; }
.note-stack { display: grid; gap: 14px; }
.note-panel { background: linear-gradient(90deg, var(--surface), var(--surface-2)); border: 1px solid var(--border); border-radius: 9px; padding: 18px; }
.album-list { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.album-item { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 18px; padding: 18px; background: var(--surface); }
.album-kicker { color: var(--gold); font-size: 12px; font-weight: 800; }
.center-card { width: min(100%, 760px); margin: 0 auto; text-align: center; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; padding: 28px; box-shadow: var(--shadow); }
.center-card p { text-align: left; }
.app-band { background: var(--shell); color: var(--yellow); border-radius: 12px; padding: 24px; }
.app-band h2, .app-band h3, .app-band .eyebrow { color: var(--yellow); }
.app-layout { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 28px; align-items: center; }
.app-copy p { color: #FFF8DC; }
.app-icon-line { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.app-icon-slot { width: 48px; height: 48px; min-height: 48px; border-radius: 10px; flex: 0 0 48px; }
.app-icon-slot img { width: 48px; height: 48px; object-fit: contain; }
.definition-grid { display: grid; grid-template-columns: 170px minmax(0,1fr); border-top: 1px solid var(--border); }
.definition-grid dt, .definition-grid dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--border); }
.definition-grid dt { font-weight: 800; color: var(--title); padding-right: 20px; }
.rule-sections section { padding: 18px 0; border-bottom: 1px solid var(--border); }
.rule-sections section:last-child { border-bottom: 0; }
.qa-list { display: grid; gap: 14px; }
.qa-item { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 18px; }
.qa-item h2 { font-size: 17px; }
.contact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.contact-card { padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.warning-note { padding: 14px 16px; background: var(--surface-2); border-left: 4px solid var(--moss); border-radius: 8px; }
.about-lead { display: grid; gap: 20px; }
.site-footer { background: #2E2408; color: var(--yellow); border-top: 1px solid rgba(246,231,168,.35); font-size: 13px; padding: 30px 0 calc(30px + env(safe-area-inset-bottom)); }
.footer-brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.footer-brand strong { font-size: 16px; }
.footer-brand span { color: #FFF8DC; }
.footer-groups { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.footer-group h2 { color: var(--yellow); font-size: 13px; margin-bottom: 8px; }
.footer-links { display: grid; gap: 5px; }
.footer-links a { color: #FFF8DC; }
.footer-links a:hover { text-decoration: underline; }
.footer-note { margin-top: 24px; color: #FFF8DC; max-width: 780px; }
.footer-copy { margin-bottom: 0; color: var(--yellow); }
.site-overlay { visibility: hidden; pointer-events: none; position: fixed; inset: 0; z-index: 120; background: rgba(46,36,8,.42); opacity: 0; transition: opacity .18s ease, visibility .18s ease; }
.site-overlay.is-open { visibility: visible; pointer-events: auto; opacity: 1; }
.search-panel { visibility: hidden; pointer-events: none; position: fixed; z-index: 130; top: 74px; left: 0; right: 0; opacity: 0; transform: translateY(-12px); transition: .18s ease; }
.search-panel.is-open { visibility: visible; pointer-events: auto; opacity: 1; transform: translateY(0); }
.search-card { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); border-radius: 0 0 12px 12px; box-shadow: var(--shadow); padding: 22px; }
.search-head, .menu-sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.layer-close { min-width: 44px; min-height: 44px; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--surface); color: var(--shell); cursor: pointer; }
.preset-links { display: flex; flex-wrap: wrap; gap: 8px; }
.preset-links a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 13px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--bg); color: var(--shell); }
.menu-sheet { visibility: hidden; pointer-events: none; position: fixed; z-index: 140; left: 0; right: 0; bottom: 0; height: 42vh; min-height: 320px; max-height: 520px; background: var(--bg); color: var(--text); transform: translateY(100%); transition: transform .22s ease, visibility .22s ease; border-top: 1px solid var(--border-strong); }
.menu-sheet.is-open { visibility: visible; pointer-events: auto; transform: translateY(0); }
.menu-sheet-inner { height: 100%; overflow-y: auto; padding-top: 16px; padding-bottom: 18px; }
.sheet-brand { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.menu-columns { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-top: 10px; }
.menu-group h2 { font-size: 13px; color: var(--gold); margin-bottom: 8px; }
.menu-entry { display: block; padding: 8px 0; border-top: 1px solid var(--border); }
.menu-entry strong { display: block; color: var(--title); font-size: 14px; }
.menu-entry span { display: block; color: var(--muted); font-size: 12px; line-height: 1.45; }
.mobile-bottom { display: none; }
.notice-band { background: var(--bg-deep); border: 1px solid var(--border-strong); padding: 16px 18px; border-radius: 10px; }
.split-feature { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(250px,.85fr); gap: 24px; align-items: start; }
.stack-cards { display: grid; gap: 14px; }
.quote-box { border: 1px solid var(--border-strong); border-radius: 10px; padding: 18px; background: var(--surface); }
.flow-list { display: grid; gap: 16px; }
.flow-item { display: grid; grid-template-columns: 90px minmax(0,1fr); gap: 18px; align-items: start; }
.flow-item strong { color: var(--gold); }
.two-col-text { columns: 2 320px; column-gap: 32px; }
.two-col-text p { break-inside: avoid; }
@media (max-width: 720px) {
    :root { --top-offset: 74px; }
    .bean-grid { display: none; }
    .site-main { padding-top: calc(var(--top-offset) + 20px); padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
    .header-app-link, .menu-open { padding: 0 11px; }
    .brand-lockup { min-width: 0; }
    .brand-logo { max-width: 136px; }
    .fold-grid, .card-grid-2, .week-grid, .contact-grid, .footer-groups { grid-template-columns: 1fr; }
    .app-layout, .split-feature { grid-template-columns: 1fr; }
    .app-layout .frame-app { justify-self: center; }
    .album-item { grid-template-columns: 1fr; gap: 8px; }
    .definition-grid { grid-template-columns: 1fr; }
    .definition-grid dt { border-bottom: 0; padding-bottom: 0; }
    .definition-grid dd { padding-top: 5px; }
    .flow-item { grid-template-columns: 1fr; gap: 4px; }
    .menu-sheet { height: 42vh; min-height: 360px; }
    .menu-columns { grid-template-columns: 1fr 1fr; }
    .search-panel { inset: 0; background: var(--shell); color: var(--yellow); padding: 72px 16px 20px; overflow-y: auto; }
    .search-panel.is-open { transform: none; }
    .search-card { width: 100%; border-radius: 10px; background: var(--shell); color: var(--yellow); border-color: rgba(246,231,168,.35); }
    .search-card h2, .search-card .eyebrow { color: var(--yellow); }
    .search-card .layer-close { background: var(--yellow); color: var(--shell); }
    .preset-links a { color: var(--shell); background: var(--yellow); }
    .mobile-bottom { position: fixed; z-index: 80; left: 0; right: 0; bottom: 0; min-height: calc(48px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4,1fr); background: var(--surface); border-top: 1px solid var(--border-strong); padding-bottom: env(safe-area-inset-bottom); }
    .mobile-bottom a { min-height: 48px; display: grid; place-items: center; color: var(--shell); font-size: 13px; font-weight: 800; }
    .mobile-bottom a.is-current { background: var(--gold); color: var(--yellow); }
    .site-footer { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
    .two-col-text { columns: 1; }
}
@media (max-width: 460px) {
    .shell, .shell-narrow { width: calc(100% - 32px); }
    .bean-path-brand { max-width: calc(100vw - 94px); }
    .menu-columns { grid-template-columns: 1fr; }
    .menu-sheet { height: 42vh; }
    .index-strip { gap: 6px; }
    .page-section { padding: 28px 0; }
    .center-card { padding: 20px; }
}
