:root{
    --bg:#F6E7A8;
    --bg-deep:#E8D27A;
    --paper:#FFF8DC;
    --paper-2:#F3E6B0;
    --ink:#3A2E08;
    --text:#4A3C12;
    --muted:#7A6418;
    --soft:#9A8428;
    --yellow-deep:#8A6A12;
    --moss:#5A7A38;
    --border:rgba(58,46,8,.16);
    --focus:rgba(138,106,18,.48);
    --shadow:0 12px 28px rgba(58,46,8,.08);
    --top-h:146px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;background:var(--bg)}
body{margin:0;background:var(--bg);color:var(--text);font-family:"Noto Sans SC","Microsoft YaHei","PingFang SC",Arial,sans-serif;font-size:15px;line-height:1.7;overflow-x:hidden}
body.modal-open{overflow:hidden}
a{color:inherit;text-decoration:none}
a,button{touch-action:manipulation}
button{font:inherit}
img{display:block;max-width:100%;height:auto;object-fit:contain;object-position:center}
.shell{width:min(960px,calc(100% - 32px));margin:0 auto}
.skip-link{position:fixed;left:12px;top:-60px;z-index:1000;background:var(--ink);color:var(--bg);padding:10px 14px;border-radius:8px}
.skip-link:focus{top:10px}
.site-top{position:fixed;inset:0 0 auto 0;z-index:90;box-shadow:0 4px 18px rgba(58,46,8,.06)}
.bean-path{height:20px;background:var(--ink);color:var(--bg);font-size:12px;line-height:20px}
.bean-path-inner{display:flex;justify-content:space-between;align-items:center;height:20px}
.text-button{border:0;background:transparent;color:var(--bg);padding:0 0 0 12px;line-height:20px;cursor:pointer}
.bean-header{height:54px;background:var(--bg);border-bottom:1px solid var(--yellow-deep)}
.bean-header-inner{height:54px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand-link{display:inline-flex;align-items:center;min-height:44px;min-width:120px;color:var(--ink);font-weight:700}
.brand-image-slot{display:inline-flex;align-items:center;min-width:1px;min-height:24px}
.brand-logo{height:24px;width:auto;max-width:170px}
.brand-fallback{font-size:16px;margin-left:8px}
.brand-image-slot:empty + .brand-fallback{margin-left:0}
.bean-header-actions{display:flex;align-items:center;gap:8px}
.header-app-link,.menu-button,.close-button{height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;padding:0 14px;font-size:14px;cursor:pointer;white-space:nowrap}
.header-app-link{background:linear-gradient(135deg,#F6E7A8 0%,#8A6A12 100%);color:var(--ink);border:1px solid var(--focus)}
.menu-button,.close-button{background:var(--ink);color:var(--bg);border:1px solid var(--ink)}
.bean-grid{background:var(--bg);border-bottom:1px solid var(--border)}
.bean-grid-inner{display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:36px;border-left:1px solid var(--yellow-deep);border-top:1px solid var(--yellow-deep)}
.bean-grid-item{display:flex;align-items:center;justify-content:center;height:36px;color:var(--yellow-deep);font-size:13px;border-right:1px solid var(--yellow-deep);border-bottom:1px solid var(--yellow-deep);background:var(--bg)}
.bean-grid-item.is-active{background:var(--yellow-deep);color:var(--bg)}
.site-main{padding-top:calc(var(--top-h) + 24px);padding-bottom:32px;min-height:70vh}
.eyebrow{margin:0 0 6px;color:var(--muted);font-size:12px;letter-spacing:.12em;text-transform:uppercase}
h1,h2,h3{color:var(--ink);margin:0 0 12px;line-height:1.3}
h1{font-size:24px}h2{font-size:20px}h3{font-size:16px}
p{margin:0 0 14px}
.section{margin:0 auto 28px}
.section-card{background:var(--paper);border:1px solid var(--border);border-radius:10px;padding:24px;box-shadow:var(--shadow)}
.lead{font-size:16px;color:var(--ink);line-height:1.75}
.muted{color:var(--muted)}
.button-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.primary-button,.secondary-button,.text-link{min-height:44px;padding:0 16px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;font-size:14px;white-space:nowrap}
.primary-button{background:linear-gradient(135deg,#F6E7A8 0%,#8A6A12 100%);color:var(--ink);border:1px solid var(--focus);font-weight:700}
.secondary-button{background:var(--ink);color:var(--bg);border:1px solid var(--ink)}
.text-link{background:var(--paper);border:1px solid var(--yellow-deep);color:var(--yellow-deep)}
a:hover,.text-button:hover{text-decoration:underline;text-underline-offset:3px}
.primary-button:hover,.secondary-button:hover,.header-app-link:hover,.menu-button:hover,.close-button:hover{text-decoration:none;filter:brightness(.97)}
a:focus-visible,button:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.media-slot{background:var(--bg);border:1px solid var(--border);border-radius:10px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.media-slot img{width:100%;height:100%;object-fit:contain;object-position:center}

/* 首页 */
.home-indexes{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:18px}
.home-indexes a{min-height:44px;border:1px solid var(--yellow-deep);border-radius:8px;display:flex;align-items:center;justify-content:center;background:var(--paper);color:var(--yellow-deep);font-weight:700}
.hero-note{background:var(--paper);border:1px solid var(--border);border-radius:12px;padding:26px;box-shadow:var(--shadow)}
.hero-note .hero-sentence{font-size:18px;color:var(--yellow-deep);font-weight:700;margin-bottom:10px}
.center-frame{width:min(420px,100%);height:280px;margin:0 auto;background:var(--bg);border:1px solid var(--border);border-radius:12px;display:flex;align-items:center;justify-content:center}
.center-frame img{width:100%;height:100%}
.timeline{position:relative;margin-top:6px;padding-left:28px}
.timeline:before{content:"";position:absolute;left:9px;top:6px;bottom:6px;width:2px;background:var(--yellow-deep)}
.timeline-item{position:relative;background:var(--paper);border:1px solid var(--border);border-radius:10px;padding:18px;margin-bottom:14px}
.timeline-item:before{content:"";position:absolute;left:-24px;top:20px;width:10px;height:10px;border-radius:50%;background:var(--yellow-deep);border:3px solid var(--bg)}
.timeline-thumb{width:min(340px,100%);height:190px;margin:0 0 14px;background:var(--bg);border:1px solid var(--border);border-radius:8px;display:flex;align-items:center;justify-content:center}
.timeline-thumb img{width:100%;height:100%}
.fold-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.fold-card{background:linear-gradient(135deg,var(--paper) 0 80%,var(--paper-2) 80% 100%);border:1px solid var(--border);border-radius:10px;padding:20px;min-height:210px;box-shadow:var(--shadow)}
.fold-image{height:150px;margin-bottom:14px;background:var(--bg);border-radius:8px;display:flex;align-items:center;justify-content:center}
.fold-image img{width:100%;height:100%}
.shelf-head{height:180px;margin-bottom:14px;background:var(--bg);border:1px solid var(--border);border-radius:10px;display:flex;align-items:center;justify-content:center}
.shelf-head img{height:100%;width:100%}
.card-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.info-card{background:var(--paper);border:1px solid var(--border);border-radius:10px;padding:20px;box-shadow:var(--shadow)}
.week-row{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.week-box{background:var(--paper);border-top:4px solid var(--yellow-deep);border-radius:8px;padding:18px;min-height:170px}
.status-stack{display:grid;gap:10px}
.status-item{display:grid;grid-template-columns:108px 1fr;gap:12px;align-items:center;background:var(--paper);border:1px solid var(--border);padding:14px 16px;border-radius:8px}
.status-badge{display:inline-flex;min-height:40px;align-items:center;justify-content:center;background:var(--yellow-deep);color:var(--bg);border-radius:8px;padding:0 12px;font-weight:700}
.app-band{background:var(--ink);color:var(--bg);border-radius:12px;padding:24px;display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:24px;align-items:center}
.app-band h2,.app-band h3,.app-band .eyebrow{color:var(--bg)}
.app-visual{height:320px;background:var(--bg);border-radius:10px;display:flex;align-items:center;justify-content:center}
.app-visual img{height:100%;width:100%}
.app-icon-row{display:flex;align-items:center;gap:12px;margin:10px 0 16px}
.app-icon-slot{width:48px;height:48px;border-radius:10px;background:var(--bg);display:flex;align-items:center;justify-content:center}
.app-icon-slot img{width:48px;height:48px}
.faq-six{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.faq-six details{background:var(--paper);border:1px solid var(--border);border-radius:8px;padding:14px 16px}
.faq-six summary{cursor:pointer;color:var(--ink);font-weight:700}
.faq-six p{margin-top:10px;margin-bottom:0}

/* 内页通用但版式差异 */
.page-hero{margin-bottom:24px}
.page-hero .intro-box{background:var(--paper);border:1px solid var(--border);border-radius:12px;padding:24px;box-shadow:var(--shadow)}
.bean-index-layout{display:grid;grid-template-columns:190px 1fr;gap:18px;align-items:start}
.bean-index-nav{display:grid;gap:8px;position:sticky;top:166px}
.bean-index-nav a{background:var(--paper);border:1px solid var(--border);border-radius:8px;padding:10px 12px;color:var(--yellow-deep)}
.bean-index-content{display:grid;gap:14px}
.bean-index-content section{background:var(--paper);border:1px solid var(--border);border-radius:10px;padding:20px}
.vertical-story{display:grid;grid-template-columns:1fr minmax(260px,420px) 1fr;gap:16px;align-items:start}
.vertical-story .side-note{background:var(--paper);border:1px solid var(--border);border-radius:10px;padding:18px}
.vertical-image{height:360px;background:var(--bg);border:1px solid var(--border);border-radius:12px;display:flex;align-items:center;justify-content:center;position:sticky;top:166px}
.vertical-image img{width:100%;height:100%}
.fold-page{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.fold-page section{background:linear-gradient(135deg,var(--paper) 0 82%,var(--paper-2) 82% 100%);border:1px solid var(--border);border-radius:10px;padding:22px;min-height:220px}
.single-column{display:grid;gap:14px}
.single-column section{background:var(--paper);border-left:5px solid var(--yellow-deep);border-radius:8px;padding:20px 22px;box-shadow:var(--shadow)}
.week-layout{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.week-layout section{background:var(--paper);border:1px solid var(--border);border-radius:10px;padding:20px}
.status-bars{display:grid;gap:12px}
.status-bar{background:var(--paper);border:1px solid var(--border);border-radius:9px;padding:16px 18px;display:grid;grid-template-columns:130px 1fr;gap:18px;align-items:center}
.status-bar strong{background:var(--yellow-deep);color:var(--bg);min-height:44px;border-radius:8px;display:flex;align-items:center;justify-content:center}
.checklist{display:grid;gap:12px;counter-reset:checks}
.checklist section{background:var(--paper);border:1px solid var(--border);border-radius:10px;padding:18px 18px 18px 62px;position:relative}
.checklist section:before{counter-increment:checks;content:counter(checks);position:absolute;left:18px;top:18px;width:30px;height:30px;border-radius:50%;background:var(--yellow-deep);color:var(--bg);display:flex;align-items:center;justify-content:center;font-weight:700}
.method-layout{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.method-layout section{background:var(--paper);border:1px solid var(--border);border-radius:10px;padding:20px;min-height:200px}
.album-list{display:grid;gap:12px}
.album-item{background:var(--paper);border:1px solid var(--border);border-radius:10px;padding:18px;display:grid;grid-template-columns:150px 1fr;gap:18px;align-items:center}
.album-item .album-mark{min-height:90px;border-radius:8px;background:var(--bg-deep);color:var(--ink);display:flex;align-items:center;justify-content:center;font-weight:700;text-align:center;padding:12px}
.center-cards{display:grid;gap:16px;width:min(700px,100%);margin:0 auto}
.center-cards section{background:var(--paper);border:1px solid var(--border);border-radius:12px;padding:22px;text-align:center;box-shadow:var(--shadow)}
.bottom-band-page{display:grid;gap:18px}
.app-feature-row{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.app-feature{background:var(--paper);border:1px solid var(--border);border-radius:10px;padding:20px}
.terms{display:grid;gap:14px}
.terms section{background:var(--paper);border:1px solid var(--border);border-radius:10px;padding:20px}
.help-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.help-grid section{background:var(--paper);border:1px solid var(--border);border-radius:10px;padding:20px}
.faq-list{display:grid;gap:10px}
.faq-list details{background:var(--paper);border:1px solid var(--border);border-radius:9px;padding:15px 18px}
.faq-list summary{font-weight:700;color:var(--ink);cursor:pointer}
.faq-list p{margin-top:12px;margin-bottom:0}
.contact-layout{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.contact-layout section{background:var(--paper);border:1px solid var(--border);border-radius:10px;padding:20px}
.about-banner{height:200px;background:var(--bg);border:1px solid var(--border);border-radius:12px;display:flex;align-items:center;justify-content:center;margin-bottom:18px}
.about-banner img{width:100%;height:100%}
.about-statement{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.about-statement section{background:var(--paper);border:1px solid var(--border);border-radius:10px;padding:20px}
.about-brand-art{height:240px;background:var(--bg);border:1px solid var(--border);border-radius:10px;display:flex;align-items:center;justify-content:center}
.about-brand-art img{width:100%;height:100%}

/* 页脚与浮层 */
.site-footer{background:#2E2408;color:var(--bg);border-top:1px solid var(--bg);font-size:13px;padding:28px 0 calc(28px + env(safe-area-inset-bottom))}
.footer-brand-row{padding-bottom:18px;border-bottom:1px solid rgba(246,231,168,.3)}
.footer-brand{display:inline-flex;align-items:center;gap:10px}
.footer-logo-slot{display:flex;align-items:center;min-height:24px}.footer-logo{height:24px;width:auto}.footer-brand strong{display:block;font-size:16px}.footer-brand small{display:block;color:#F3E6B0}
.footer-groups{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;padding:22px 0}
.footer-groups h2{font-size:13px;color:var(--bg);margin-bottom:8px}.footer-groups a{display:block;padding:3px 0;color:var(--bg)}
.footer-note{border-top:1px solid rgba(246,231,168,.3);padding-top:16px;color:#F3E6B0}.footer-note p:last-child{margin-bottom:0}
.overlay{position:fixed;inset:0;background:rgba(46,36,8,.48);z-index:110;opacity:0;visibility:hidden;pointer-events:none;transition:.2s}
.overlay.is-open{opacity:1;visibility:visible;pointer-events:auto}
.bean-sheet{position:fixed;left:0;right:0;bottom:0;z-index:120;height:42vh;min-height:320px;max-height:560px;background:var(--paper);color:var(--text);border-radius:16px 16px 0 0;transform:translateY(105%);visibility:hidden;pointer-events:none;transition:transform .24s ease,visibility .24s}
.bean-sheet.is-open{transform:translateY(0);visibility:visible;pointer-events:auto}
.bean-sheet-head{height:62px;padding:8px max(16px,calc((100vw - 960px)/2));display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border)}
.sheet-brand{display:flex;align-items:center;gap:8px;color:var(--ink)}.sheet-logo{height:24px;width:auto}.sheet-logo-slot{min-height:24px;display:flex;align-items:center}
.bean-sheet-content{width:min(960px,calc(100% - 32px));height:calc(100% - 62px);margin:0 auto;padding:14px 0 24px;overflow-y:auto;display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.bean-sheet-content h2{font-size:14px;border-bottom:1px solid var(--border);padding-bottom:6px;margin-bottom:8px}.bean-sheet-content a{display:block;padding:7px 0}.bean-sheet-content strong{display:block;font-size:14px;color:var(--ink)}.bean-sheet-content span{display:block;font-size:12px;color:var(--muted);line-height:1.5}
.search-panel{position:fixed;left:0;right:0;top:74px;z-index:115;visibility:hidden;pointer-events:none;opacity:0;transition:.2s}
.search-panel.is-open{visibility:visible;pointer-events:auto;opacity:1}
.search-panel-card{width:min(960px,calc(100% - 32px));margin:0 auto;background:var(--paper);border:1px solid var(--border);border-radius:0 0 12px 12px;padding:22px;box-shadow:var(--shadow)}
.search-panel-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.search-panel-head h2{margin-bottom:8px}
.search-presets{display:flex;flex-wrap:wrap;gap:8px}.search-presets a{min-height:44px;padding:0 15px;border:1px solid var(--yellow-deep);border-radius:8px;display:inline-flex;align-items:center;color:var(--yellow-deep);background:var(--bg)}
.mobile-bottom{display:none}

@media (max-width:760px){
    :root{--top-h:74px}
    .bean-grid{display:none}
    .shell{width:calc(100% - 32px)}
    .site-main{padding-top:calc(var(--top-h) + 20px);padding-bottom:calc(76px + env(safe-area-inset-bottom))}
    .brand-link{min-width:0}.brand-fallback{font-size:15px}.brand-logo{max-width:130px}
    .header-app-link,.menu-button{padding:0 10px}
    .home-indexes{grid-template-columns:1fr 1fr}
    .fold-grid,.card-pair,.faq-six,.fold-page,.method-layout,.help-grid,.contact-layout,.about-statement,.app-feature-row{grid-template-columns:1fr}
    .week-row,.week-layout{grid-template-columns:1fr}
    .status-item,.status-bar{grid-template-columns:1fr}
    .app-band{grid-template-columns:1fr}.app-visual{height:280px}
    .bean-index-layout{grid-template-columns:1fr}.bean-index-nav{position:static;grid-template-columns:1fr 1fr}
    .vertical-story{grid-template-columns:1fr}.vertical-image{position:static;height:320px;order:-1}
    .album-item{grid-template-columns:1fr}.album-item .album-mark{min-height:70px}
    .footer-groups{grid-template-columns:1fr 1fr}
    .bean-sheet{height:42vh;min-height:300px}.bean-sheet-content{grid-template-columns:1fr 1fr;gap:12px}
    .search-panel{inset:0;top:0;background:var(--ink);color:var(--bg)}.search-panel-card{width:100%;height:100%;border:0;border-radius:0;background:var(--ink);color:var(--bg);padding:calc(24px + env(safe-area-inset-top)) 16px 24px;overflow-y:auto}.search-panel h2,.search-panel .eyebrow{color:var(--bg)}.search-panel .close-button{background:var(--bg);color:var(--ink);border-color:var(--bg)}.search-presets a{background:transparent;color:var(--bg);border-color:var(--bg)}
    .mobile-bottom{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;left:0;right:0;bottom:0;z-index:100;height:calc(48px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:var(--bg);border-top:1px solid var(--yellow-deep)}
    .mobile-bottom a{min-height:48px;display:flex;align-items:center;justify-content:center;font-size:13px;color:var(--yellow-deep)}.mobile-bottom a.is-active{background:var(--yellow-deep);color:var(--bg)}
}
@media (max-width:420px){
    .bean-path-brand{max-width:250px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
    .brand-fallback{display:none}
    .brand-image-slot:empty + .brand-fallback{display:inline}
    .header-app-link{padding:0 8px}.menu-button{padding:0 9px}
    .hero-note,.section-card{padding:20px}
    .footer-groups{grid-template-columns:1fr 1fr;gap:14px}
}
.media-h190{height:190px}
.media-h210{height:210px}
.media-h220{height:220px}
.media-gap{margin-bottom:14px}
.media-gap-lg{margin-bottom:16px}
.brand-image-slot:not(:empty)+.brand-fallback{display:none}
.grade-terms{grid-template-columns:1fr 1fr}
.grade-terms section:last-child{grid-column:1/-1}
.privacy-terms section{border-left:5px solid var(--moss);border-radius:8px}
@media (max-width:760px){.grade-terms{grid-template-columns:1fr}.grade-terms section:last-child{grid-column:auto}}
