:root {
    --bg: #F6E7A8;
    --bg-deep: #E8D27A;
    --paper: #FFF8DC;
    --paper-2: #F3E6B0;
    --ink: #3A2E08;
    --text: #4A3C12;
    --muted: #7A6418;
    --soft: #9A8428;
    --gold: #8A6A12;
    --moss: #5A7A38;
    --line: rgba(58,46,8,0.16);
    --line-strong: rgba(138,106,18,0.48);
    --shadow: 0 12px 28px rgba(58,46,8,0.08);
    --max: 960px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "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 { display: block; max-width: 100%; object-fit: contain; object-position: center; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(90,122,56,0.45); outline-offset: 3px; }

.top-path {
    position: fixed;
    inset: 0 0 auto 0;
    height: 20px;
    z-index: 120;
    background: var(--ink);
    color: var(--bg);
    font-size: 12px;
}
.top-path__inner, .masthead__inner, .quick-grid__inner, .site-footer__inner, .content-wrap {
    width: min(calc(100% - 32px), var(--max));
    margin: 0 auto;
}
.top-path__inner { height: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plain-control { border: 0; background: transparent; color: var(--bg); padding: 0 4px; min-width: 44px; height: 20px; cursor: pointer; }
.masthead {
    position: fixed;
    inset: 20px 0 auto 0;
    height: 54px;
    z-index: 118;
    background: var(--bg);
    border-bottom: 1px solid var(--line-strong);
}
.masthead__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand-link { min-height: 44px; display: inline-flex; align-items: center; }
.brand-logo, .footer-logo, .sheet-logo { height: 24px; width: auto; max-width: 160px; object-fit: contain; }
.brand-fallback { font-size: 16px; font-weight: 800; color: var(--ink); }
.masthead__actions { display: flex; gap: 8px; align-items: center; }
.mini-link, .menu-trigger { height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border-radius: 9px; font-size: 14px; white-space: nowrap; }
.mini-link { background: var(--ink); color: var(--bg); }
.menu-trigger { border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); cursor: pointer; }
.quick-grid {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    z-index: 116;
    background: var(--bg);
    border-bottom: 1px solid var(--line-strong);
}
.quick-grid__inner { display: grid; grid-template-columns: 1fr 1fr; }
.quick-grid__item { height: 36px; display: flex; align-items: center; justify-content: center; color: var(--ink); font-size: 13px; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.quick-grid__item:nth-child(2n) { border-right: 0; }
.quick-grid__item:nth-last-child(-n+2) { border-bottom: 0; }
.quick-grid__item:hover { background: var(--paper-2); }
.quick-grid__item.is-current { background: var(--gold); color: #FFF8DC; }
.site-main { padding-top: 166px; min-height: 70vh; }

.content-wrap { padding: 34px 0 64px; }
.eyebrow { margin: 0 0 8px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .06em; }
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.3; }
h1 { font-size: 24px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
p { margin: 0; }
.lead { margin-top: 14px; max-width: 780px; }
.sublead { margin-top: 8px; color: var(--muted); }
.section { margin-top: 34px; }
.section > h2 { margin-bottom: 14px; }
.section p + p { margin-top: 12px; }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn { min-height: 42px; padding: 0 16px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; white-space: nowrap; border: 1px solid transparent; }
.btn-primary { background: linear-gradient(135deg,#F6E7A8 0%,#8A6A12 100%); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary { background: var(--ink); color: var(--bg); }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.note { padding: 16px 18px; background: var(--paper-2); border-left: 4px solid var(--moss); color: var(--ink); border-radius: 0 9px 9px 0; }
.image-slot { background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.image-slot img { width: 100%; height: 100%; object-fit: contain; }

/* 首页 */
.home-intro { background: linear-gradient(180deg, rgba(255,248,220,.86), rgba(246,231,168,.55)); border-bottom: 1px solid var(--line); }
.home-intro__inner { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; padding: 34px 0 32px; }
.micro-index { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.micro-index a { min-height: 36px; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 13px; }
.home-kicker { margin-top: 10px; font-size: 18px; color: var(--gold); font-weight: 800; }
.center-frame { width: min(100%, 420px); height: 280px; margin: 16px auto 0; }
.timeline { position: relative; margin-top: 18px; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 5px; bottom: 8px; width: 2px; background: var(--line-strong); }
.timeline-item { position: relative; padding: 0 0 26px 18px; }
.timeline-item::before { content: ""; position: absolute; left: -24px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--bg); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item .image-slot { width: min(100%, 520px); height: 220px; margin: 12px 0; }
.fold-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fold-card { position: relative; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.fold-card::after { content: ""; position: absolute; right: 0; top: 0; width: 34px; height: 34px; background: linear-gradient(225deg, var(--bg-deep) 50%, transparent 51%); }
.fold-card .image-slot { height: 190px; margin: 14px 0; }
.shelf-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.shelf-card { padding: 20px; border-top: 4px solid var(--gold); }
.shelf-card .image-slot { height: 190px; margin: 12px 0; }
.week-strip { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.week-block { padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.week-block strong { display: block; color: var(--gold); margin-bottom: 6px; }
.status-list { display: grid; gap: 10px; }
.status-row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; }
.status-tag { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; border-radius: 999px; padding: 0 12px; background: var(--ink); color: var(--bg); font-size: 13px; }
.app-band { padding: 22px; background: var(--ink); color: var(--bg); border-radius: 12px; display: grid; grid-template-columns: minmax(0,1fr) 240px; gap: 24px; align-items: center; }
.app-band h2, .app-band h3 { color: #FFF8DC; }
.app-band p { color: #F6E7A8; }
.app-visual { height: 300px; background: var(--bg); border-radius: 10px; padding: 10px; display: flex; align-items: center; justify-content: center; }
.app-visual img { width: 100%; height: 100%; object-fit: contain; }
.icon-chip { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.icon-chip img { width: 48px; height: 48px; object-fit: contain; background: var(--bg); border-radius: 10px; }
.faq-compact { display: grid; gap: 10px; }
.faq-compact details { background: var(--paper); border: 1px solid var(--line); border-radius: 9px; padding: 12px 15px; }
.faq-compact summary { cursor: pointer; color: var(--ink); font-weight: 700; }
.faq-compact p { margin-top: 8px; }

/* 内页差异版式 */
.page-hero { padding: 24px 0 4px; }
.page-hero .lead { max-width: 760px; }
.page-timeline .timeline-item { background: transparent; }
.page-timeline .timeline-item h2 { font-size: 18px; }
.vertical-stage { display: grid; justify-items: center; text-align: center; }
.vertical-stage .image-slot { width: min(100%, 420px); height: 280px; margin: 18px auto; }
.vertical-stage .stage-copy { width: min(100%, 700px); text-align: left; padding: 20px; }
.fold-page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fold-page-grid .fold-card { min-height: 230px; }
.single-guide { display: grid; gap: 18px; }
.single-guide article { padding: 20px 22px; background: var(--paper); border-left: 4px solid var(--gold); border-radius: 0 10px 10px 0; }
.week-columns { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.week-columns article { min-height: 250px; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.week-columns article:nth-child(2) { background: var(--bg-deep); }
.week-columns article:nth-child(2) h2, .week-columns article:nth-child(2) p { color: var(--ink); }
.state-bars { display: grid; gap: 14px; }
.state-bars article { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: start; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; }
.memo-list { counter-reset: memo; display: grid; gap: 12px; }
.memo-list article { counter-increment: memo; position: relative; padding: 18px 18px 18px 58px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.memo-list article::before { content: counter(memo); position: absolute; left: 16px; top: 17px; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: #FFF8DC; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.method-stack { display: grid; gap: 18px; }
.method-stack article { display: grid; grid-template-columns: 170px 1fr; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line-strong); }
.album-list { display: grid; gap: 12px; }
.album-item { display: grid; grid-template-columns: 170px 1fr auto; gap: 16px; align-items: center; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.album-item span { color: var(--muted); }
.center-card-stack { width: min(100%, 760px); margin: 0 auto; display: grid; gap: 16px; }
.center-card-stack article { padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 11px; text-align: center; }
.center-card-stack article p { text-align: left; margin-top: 10px; }
.bottom-wide { padding: 24px; background: var(--ink); color: var(--bg); border-radius: 12px; }
.bottom-wide h2 { color: #FFF8DC; }
.bottom-wide p { color: #F6E7A8; }
.terms { display: grid; gap: 18px; }
.terms section { padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.help-grid article { padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.qa-list { display: grid; gap: 12px; }
.qa-list article { padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.qa-list h2 { font-size: 17px; margin-bottom: 8px; }
.contact-list { display: grid; gap: 12px; }
.contact-list article { padding: 18px 20px; background: var(--paper); border-left: 4px solid var(--moss); border-radius: 0 10px 10px 0; }
.about-banner { height: 200px; margin: 18px 0 22px; }
.about-manifesto { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.about-manifesto > div { padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }

.site-footer { background: #2E2408; color: var(--bg); border-top: 1px solid rgba(246,231,168,.35); }
.site-footer__inner { padding: 30px 0 76px; }
.footer-brand { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid rgba(246,231,168,.25); }
.footer-brand strong { display: block; color: #FFF8DC; }
.footer-brand span { display: block; font-size: 12px; color: var(--bg); }
.footer-links { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; padding: 20px 0; }
.footer-links h2 { font-size: 13px; color: #FFF8DC; margin-bottom: 8px; }
.footer-links a { display: block; min-height: 32px; font-size: 13px; color: var(--bg); }
.footer-links a:hover { text-decoration: underline; }
.footer-note, .footer-copy { font-size: 13px; color: var(--bg); }
.footer-copy { margin-top: 8px; opacity: .86; }

.page-overlay { position: fixed; inset: 0; z-index: 180; background: rgba(46,36,8,.42); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.page-overlay.is-active { opacity: 1; pointer-events: auto; }
.bottom-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; height: 42vh; min-height: 320px; background: var(--paper); border-radius: 16px 16px 0 0; transform: translateY(110%); visibility: hidden; pointer-events: none; transition: transform .24s ease, visibility .24s; box-shadow: 0 -16px 36px rgba(58,46,8,.18); overflow: auto; }
.bottom-sheet.is-open { transform: translateY(0); visibility: visible; pointer-events: auto; }
.bottom-sheet__head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--paper); border-bottom: 1px solid var(--line); }
.sheet-brand { display: flex; align-items: center; gap: 9px; }
.sheet-close, .search-close { min-height: 44px; min-width: 64px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); border-radius: 9px; cursor: pointer; }
.sheet-groups { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; padding: 16px 0 24px; display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.sheet-groups h2 { font-size: 14px; margin-bottom: 8px; }
.sheet-groups a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sheet-groups strong { display: block; color: var(--ink); font-size: 14px; }
.sheet-groups span { display: block; color: var(--muted); font-size: 12px; line-height: 1.55; margin-top: 2px; }
.search-layer { position: fixed; left: 0; right: 0; top: 74px; z-index: 195; visibility: hidden; pointer-events: none; transform: translateY(-12px); opacity: 0; transition: .2s ease; }
.search-layer.is-open { visibility: visible; pointer-events: auto; transform: translateY(0); opacity: 1; }
.search-card { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; padding: 18px; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 0 0 12px 12px; box-shadow: var(--shadow); }
.search-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.search-card label { display: block; margin: 12px 0 5px; color: var(--muted); font-size: 13px; }
.search-card input { width: 100%; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 9px; background: #fffdf3; color: var(--ink); padding: 0 12px; }
.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 12px; background: var(--ink); color: var(--bg); border-radius: 8px; }
.search-empty { margin-top: 12px; color: var(--muted); }
.mobile-tabbar { display: none; }

@media (max-width: 760px) {
    .quick-grid { display: none; }
    .site-main { padding-top: 74px; padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
    .content-wrap { padding-top: 24px; padding-bottom: 48px; }
    .masthead__inner { width: calc(100% - 24px); }
    .mini-link, .menu-trigger { padding: 0 10px; }
    .fold-grid, .shelf-pair, .week-strip, .fold-page-grid, .week-columns, .help-grid, .about-manifesto { grid-template-columns: 1fr; }
    .status-row, .state-bars article, .method-stack article, .album-item { grid-template-columns: 1fr; }
    .app-band { grid-template-columns: 1fr; }
    .app-visual { height: 280px; }
    .footer-links { grid-template-columns: 1fr 1fr; }
    .site-footer__inner { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
    .bottom-sheet { height: 42vh; min-height: 360px; }
    .sheet-groups { grid-template-columns: 1fr 1fr; }
    .search-layer { inset: 0; background: var(--ink); transform: none; }
    .search-layer.is-open { opacity: 1; }
    .search-card { width: 100%; height: 100%; border: 0; border-radius: 0; background: var(--ink); color: var(--bg); padding: calc(22px + env(safe-area-inset-top)) 16px 24px; }
    .search-card__head strong, .search-card p, .search-card label { color: var(--bg); }
    .search-card input { background: #FFF8DC; color: var(--ink); }
    .search-presets a { background: var(--bg); color: var(--ink); }
    .search-close { background: var(--bg); color: var(--ink); }
    .mobile-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; display: grid; grid-template-columns: repeat(4,1fr); min-height: calc(48px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--paper); border-top: 1px solid var(--line-strong); }
    .mobile-tabbar a { min-height: 48px; display: flex; align-items: center; justify-content: center; color: var(--ink); font-size: 13px; }
    .mobile-tabbar a.is-current { background: var(--gold); color: #FFF8DC; }
    .top-path__inner { width: calc(100% - 24px); }
}

@media (max-width: 420px) {
    .masthead__actions { gap: 4px; }
    .mini-link, .menu-trigger { font-size: 13px; }
    .footer-links, .sheet-groups { grid-template-columns: 1fr; }
    .center-frame, .vertical-stage .image-slot { height: 250px; }
}
.media-210 { height: 210px; margin: 14px 0; }
.media-230 { height: 230px; margin: 18px 0; }
.media-230-tight { height: 230px; margin: 14px 0; }
.media-230-tightest { height: 230px; margin: 12px 0; }
.media-220 { height: 220px; margin: 18px 0; }
.media-220-bottom { height: 220px; margin-bottom: 14px; }
.media-210-bottom { height: 210px; margin-bottom: 14px; }
.media-center-230 { height: 230px; width: min(100%,700px); margin: 18px auto; }
.card-20 { padding: 20px; }
.card-22 { padding: 22px; }
.mt-12 { margin-top: 12px; }
.minh-240 { min-height: 240px; }
.center { text-align: center; }
.lead-center { margin-left: auto; margin-right: auto; }
