:root {
    --paper: #F3E8D4;
    --deep-paper: #E2D2B4;
    --content: #FBF3E4;
    --secondary: #EDE0C8;
    --ink: #1A140A;
    --body: #2C2214;
    --muted: #5C4A30;
    --soft: #7C6844;
    --gold: #7A5A20;
    --copper: #B88838;
    --line: rgba(26,20,10,0.12);
    --line-strong: rgba(122,90,32,0.50);
    --shadow: 0 12px 28px rgba(26,20,10,0.10);
    --radius: 10px;
    --max: 960px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
    margin: 0;
    min-width: 0;
    overflow-x: hidden;
    background: var(--paper);
    color: var(--body);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
}
body.ui-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
.wrap { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }
.skip-link {
    position: fixed; left: 16px; top: -80px; z-index: 1000;
    background: var(--ink); color: var(--content); padding: 9px 14px; border-radius: 8px;
}
.skip-link:focus { top: 8px; }

.site-head { position: fixed; inset: 0 0 auto 0; z-index: 80; box-shadow: 0 1px 0 var(--line); }
.meta-bar { height: 20px; background: var(--ink); color: var(--copper); font-size: 12px; line-height: 20px; }
.meta-inner { display: flex; align-items: center; justify-content: space-between; height: 20px; }
.meta-brand { letter-spacing: .04em; font-weight: 700; }
.text-action {
    min-width: 44px; height: 20px; padding: 0 0 0 10px; border: 0; background: transparent; color: var(--copper); font-size: 12px;
}
.brand-bar { height: 54px; background: var(--content); border-bottom: 1px solid var(--line-strong); }
.brand-inner { height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand-home { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: flex-start; }
.brand-home img, .footer-brand-link img, .drawer-brand img { width: auto; height: 24px; object-fit: contain; object-position: center; }
.brand-fallback { font-size: 16px; line-height: 1; font-weight: 800; color: var(--ink); letter-spacing: .04em; }
.brand-actions { display: flex; align-items: center; gap: 8px; }
.app-link, .drawer-toggle {
    min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 13px;
    border-radius: 9px; font-size: 14px; white-space: nowrap;
}
.app-link { background: linear-gradient(135deg,#1A140A 0%,#B88838 100%); color: var(--content); }
.drawer-toggle { border: 1px solid var(--gold); background: var(--content); color: var(--ink); }
.app-link:hover, .app-link:focus-visible { filter: brightness(1.06); }
.drawer-toggle:hover, .drawer-toggle:focus-visible { background: var(--secondary); }

.quick-nav { height: 42px; background: var(--content); border-bottom: 1px solid var(--line); }
.quick-nav-inner { height: 42px; display: flex; align-items: center; justify-content: center; gap: 46px; }
.quick-item { height: 42px; min-width: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: 13px; line-height: 1.1; }
.quick-dot { width: 8px; height: 8px; border: 1.5px solid var(--ink); border-radius: 50%; background: transparent; }
.quick-item.is-current .quick-dot { background: var(--copper); border-color: var(--copper); }
.quick-item.is-current { color: var(--ink); font-weight: 700; }
.quick-item:hover .quick-dot, .quick-item:focus-visible .quick-dot { border-color: var(--copper); }

.site-main { min-height: 70vh; padding-top: 116px; padding-bottom: 72px; }
.page-shell { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; padding-top: 34px; }
.page-kicker { margin: 0 0 6px; color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: .08em; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 800; letter-spacing: .01em; }
h1 { font-size: 24px; line-height: 1.3; }
h2 { font-size: 20px; line-height: 1.4; }
h3 { font-size: 16px; line-height: 1.5; }
p { margin: 0; }
.lead { margin-top: 12px; max-width: 760px; color: var(--muted); }
.section-space { margin-top: 32px; }
.section-title { margin-bottom: 14px; }
.section-note { color: var(--muted); margin-top: 8px; max-width: 760px; }
.eyebrow { color: var(--gold); font-size: 13px; font-weight: 700; }
.muted { color: var(--muted); }
.small-note { color: var(--soft); font-size: 13px; }

.primary-button, .secondary-button, .inline-link {
    min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px;
    border-radius: 9px; font-size: 14px; font-weight: 700; white-space: nowrap;
}
.primary-button { background: linear-gradient(135deg,#1A140A 0%,#B88838 100%); color: var(--content); }
.secondary-button { background: var(--content); border: 1px solid var(--gold); color: var(--ink); }
.inline-link { min-height: 44px; padding-inline: 0; color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
.primary-button:hover, .primary-button:focus-visible { filter: brightness(1.07); }
.secondary-button:hover, .secondary-button:focus-visible { background: var(--secondary); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid rgba(184,136,56,.35); outline-offset: 2px; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.media-slot { background: var(--content); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.media-slot img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.media-wide { height: 168px; }
.media-banner { height: 200px; }
.media-portrait { min-height: 220px; max-height: 320px; }
.media-portrait img { max-height: 320px; width: auto; max-width: 100%; }
.media-standard { min-height: 170px; max-height: 260px; }
.media-icon { width: 68px; height: 68px; border-radius: 14px; flex: 0 0 auto; }
.media-icon img { width: 48px; height: 48px; object-fit: contain; }
.media-slot:empty::before { content: ""; width: 26px; height: 1px; background: var(--line-strong); }

/* 首页 */
.home-intro { padding: 34px 0 22px; }
.home-points { display: flex; gap: 20px; margin-bottom: 20px; padding: 0; list-style: none; }
.home-points a { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.home-points i { width: 8px; height: 8px; border: 1px solid var(--ink); border-radius: 50%; display: inline-block; }
.home-points a:hover i, .home-points a:focus-visible i { background: var(--copper); border-color: var(--copper); }
.home-intro .home-slogan { margin-top: 8px; font-size: 20px; font-weight: 700; color: var(--gold); }
.home-intro .lead { max-width: 800px; margin-top: 12px; }
.home-slice { padding: 16px 0 0; }
.home-slice-copy { margin-top: 14px; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.home-slice-copy p { max-width: 700px; color: var(--muted); }
.home-triad { display: grid; grid-template-columns: 1.2fr .9fr .9fr; gap: 12px; }
.home-triad article { background: var(--content); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-width: 0; }
.home-triad article:first-child { padding: 0; overflow: hidden; }
.home-triad article:first-child .card-copy { padding: 18px; }
.home-triad .media-slot { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; height: 170px; }
.home-triad p { margin-top: 8px; color: var(--muted); }
.home-inserts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.home-inserts article { background: var(--deep-paper); border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); }
.home-inserts article:first-child { transform: translateY(10px); }
.home-inserts .media-slot { margin: -8px -8px 14px; height: 190px; }
.home-inserts p { margin-top: 8px; }
.home-shelf { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.home-shelf .shelf-visual { grid-column: 1 / -1; height: 180px; }
.home-shelf article { background: var(--content); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.home-shelf p { margin-top: 8px; color: var(--muted); }
.period-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.period-card { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 18px; min-height: 134px; }
.period-card h3 { color: var(--copper); }
.period-card p { margin-top: 8px; color: var(--paper); }
.period-visual { margin-top: 12px; height: 166px; }
.status-stack { display: grid; gap: 10px; }
.status-item { display: grid; grid-template-columns: 130px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; background: var(--content); border: 1px solid var(--line); border-radius: 9px; }
.status-item span:last-child { color: var(--gold); font-weight: 700; }
.status-visual { margin-top: 12px; height: 170px; }
.app-feature { background: var(--deep-paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.app-visuals { display: flex; align-items: center; justify-content: center; gap: 18px; }
.app-feature .app-copy { max-width: 760px; margin: 18px auto 0; }
.app-feature .app-copy p + p { margin-top: 10px; }
.home-late { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.home-late article { background: var(--content); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.home-late p { margin-top: 8px; }
.home-faq { display: grid; gap: 10px; }
.home-faq details { background: var(--content); border: 1px solid var(--line); border-radius: 9px; padding: 13px 15px; }
.home-faq summary { cursor: pointer; font-weight: 700; color: var(--ink); min-height: 32px; }
.home-faq p { margin-top: 8px; color: var(--muted); }
.brand-story { background: var(--ink); color: var(--paper); border-radius: 12px; padding: 24px; }
.brand-story h2 { color: var(--copper); }
.brand-story p { margin-top: 10px; color: var(--paper); max-width: 830px; }

/* 三联页 */
.triad-page .triad-intro { max-width: 760px; margin-top: 12px; }
.triad-layout { display: grid; grid-template-columns: 1.15fr .9fr .9fr; gap: 14px; margin-top: 24px; }
.triad-layout article { background: var(--content); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.triad-layout .content-pad { padding: 18px; }
.triad-layout p { margin-top: 9px; }
.triad-layout .media-slot { height: 190px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.note-band { margin-top: 18px; padding: 18px 20px; border-left: 4px solid var(--gold); background: var(--secondary); border-radius: 0 9px 9px 0; }
.note-band p + p { margin-top: 8px; }
.source-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 16px; }
.source-steps article { min-height: 150px; padding: 16px; border: 1px solid var(--line); background: var(--content); border-radius: 9px; }
.source-steps p { margin-top: 7px; color: var(--muted); }

/* 横切页 */
.slice-page .slice-hero { margin-top: 22px; }
.slice-page .slice-hero .media-slot { height: 210px; }
.slice-bands { margin-top: 18px; display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.slice-bands article { display: grid; grid-template-columns: 150px 1fr; gap: 22px; padding: 20px 4px; border-bottom: 1px solid var(--line); }
.slice-bands article:nth-child(even) { background: rgba(251,243,228,.45); padding-inline: 16px; }
.slice-bands p { color: var(--muted); }

/* 夹页 */
.insert-page .insert-stack { margin-top: 24px; display: grid; gap: 16px; }
.insert-sheet { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.25fr); gap: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--content); overflow: hidden; }
.insert-sheet:nth-child(even) { grid-template-columns: minmax(0,1.25fr) minmax(0,.95fr); }
.insert-sheet:nth-child(even) .insert-copy { order: -1; }
.insert-sheet .media-slot { border: 0; border-radius: 0; min-height: 230px; }
.insert-copy { padding: 24px; }
.insert-copy p + p { margin-top: 10px; }
.observation-list { margin-top: 18px; columns: 2; column-gap: 16px; }
.observation-list article { break-inside: avoid; margin-bottom: 16px; background: var(--deep-paper); border-radius: 9px; padding: 16px; }
.observation-list p { margin-top: 8px; }

/* 单列说明 */
.single-page .process-rail { margin-top: 24px; position: relative; padding-left: 30px; }
.single-page .process-rail::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 1px; background: var(--line-strong); }
.process-step { position: relative; padding: 0 0 24px 12px; }
.process-step::before { content: ""; position: absolute; left: -27px; top: 8px; width: 8px; height: 8px; background: var(--copper); border-radius: 50%; box-shadow: 0 0 0 5px var(--paper); }
.process-step p { margin-top: 7px; max-width: 760px; }
.single-image { height: 210px; margin: 20px 0; }

/* 旬旧 */
.period-page .period-columns { margin-top: 24px; display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.period-column { border-top: 4px solid var(--gold); background: var(--content); border-radius: 8px 8px 12px 12px; padding: 20px; min-height: 330px; }
.period-column p + p { margin-top: 10px; }
.period-page .period-image { margin-top: 16px; height: 190px; }
.recap-strip { margin-top: 18px; background: var(--ink); color: var(--paper); border-radius: 10px; padding: 18px; }
.recap-strip h2 { color: var(--copper); }
.recap-strip p { margin-top: 8px; }

/* 状态页 */
.status-page .status-board { margin-top: 24px; display: grid; gap: 10px; }
.status-row { display: grid; grid-template-columns: 1fr 150px; align-items: center; gap: 16px; padding: 17px 18px; border: 1px solid var(--line); background: var(--content); border-radius: 9px; }
.status-row div p { margin-top: 5px; color: var(--muted); }
.status-badge { justify-self: end; min-width: 84px; text-align: center; border: 1px solid var(--gold); border-radius: 999px; padding: 6px 10px; color: var(--gold); font-weight: 700; }
.status-page .status-image { height: 190px; margin-top: 18px; }
.status-explain { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.status-explain article { padding: 18px; background: var(--deep-paper); border-radius: 10px; }
.status-explain p { margin-top: 8px; }

/* 备忘 */
.check-page .check-intro { display: grid; grid-template-columns: 1fr .8fr; gap: 18px; margin-top: 22px; align-items: stretch; }
.check-page .check-intro .media-slot { min-height: 220px; }
.check-list { margin-top: 22px; display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.check-card { padding: 18px; background: var(--content); border: 1px solid var(--line); border-radius: 10px; }
.check-card ul { margin: 10px 0 0; padding-left: 20px; }
.check-card li + li { margin-top: 6px; }
.check-summary { margin-top: 18px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 18px; background: var(--secondary); }

/* 方法说明 */
.method-page .method-flow { margin-top: 24px; display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.method-tile { position: relative; min-height: 190px; padding: 18px; background: var(--content); border: 1px solid var(--line); border-radius: 10px; }
.method-tile::after { content: ""; position: absolute; right: -8px; top: 50%; width: 16px; height: 1px; background: var(--line-strong); }
.method-tile:last-child::after { display: none; }
.method-tile p { margin-top: 8px; color: var(--muted); }
.method-detail { margin-top: 22px; padding: 22px; background: var(--deep-paper); border-radius: 12px; }
.method-detail p + p { margin-top: 10px; }

/* 专题 */
.topic-page .topic-list { margin-top: 24px; display: grid; gap: 12px; }
.topic-item { display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; align-items: center; padding: 18px; background: var(--content); border: 1px solid var(--line); border-radius: 10px; }
.topic-no { font-weight: 800; font-size: 20px; color: var(--copper); }
.topic-item p { margin-top: 5px; color: var(--muted); }
.topic-tag { color: var(--gold); font-size: 13px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 9px; }
.topic-bottom { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.topic-bottom article { padding: 18px; background: var(--deep-paper); border-radius: 10px; }

/* 居中说明卡 */
.center-page .center-card { max-width: 720px; margin: 26px auto 0; text-align: center; background: var(--content); border: 1px solid var(--line); border-radius: 12px; padding: 24px; box-shadow: var(--shadow); }
.center-page .center-card .media-slot { height: 220px; margin-bottom: 18px; }
.center-page .center-card p + p { margin-top: 10px; }
.center-groups { max-width: 820px; margin: 20px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.center-groups span { padding: 8px 12px; background: var(--secondary); border: 1px solid var(--line); border-radius: 999px; }
.center-notes { max-width: 820px; margin: 20px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.center-notes article { text-align: left; padding: 18px; background: var(--deep-paper); border-radius: 10px; }
.center-notes p { margin-top: 7px; }

/* APP 下文上图 */
.app-page .app-top { margin-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.app-page .app-top .media-portrait { width: min(100%, 520px); }
.app-page .app-copy-main { max-width: 780px; margin: 0 auto; background: var(--content); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.app-page .app-copy-main p + p { margin-top: 10px; }
.app-page .app-features { margin-top: 18px; display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.app-feature-card { padding: 16px; background: var(--deep-paper); border-radius: 9px; }
.app-feature-card p { margin-top: 7px; }
.app-privacy-note { margin-top: 18px; background: var(--ink); color: var(--paper); border-radius: 10px; padding: 18px; }
.app-privacy-note h2 { color: var(--copper); }
.app-privacy-note p { margin-top: 8px; }

/* 安装 */
.install-page .install-steps { margin-top: 24px; counter-reset: install; display: grid; gap: 12px; }
.install-step { counter-increment: install; display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; padding: 18px; border: 1px solid var(--line); background: var(--content); border-radius: 10px; }
.install-step::before { content: counter(install); width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--copper); font-weight: 800; }
.install-step p { margin-top: 6px; color: var(--muted); }
.install-warning { margin-top: 18px; padding: 20px; background: var(--deep-paper); border-left: 4px solid var(--gold); }

/* 条款 */
.policy-page .policy-lead { margin-top: 14px; max-width: 790px; }
.policy-sections { margin-top: 24px; display: grid; gap: 14px; }
.policy-sections section { background: var(--content); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.policy-sections section:nth-child(even) { background: var(--secondary); }
.policy-sections p { margin-top: 8px; }
.policy-sections ul { margin: 10px 0 0; padding-left: 20px; }
.policy-sections li + li { margin-top: 6px; }

/* 帮助 */
.help-page .help-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.help-card { min-height: 210px; padding: 19px; background: var(--content); border: 1px solid var(--line); border-radius: 10px; }
.help-card p { margin-top: 8px; color: var(--muted); }
.help-card a { margin-top: 10px; }
.help-note { margin-top: 18px; padding: 20px; background: var(--ink); color: var(--paper); border-radius: 10px; }
.help-note h2 { color: var(--copper); }
.help-note p { margin-top: 8px; }

/* FAQ */
.faq-page .faq-list { margin-top: 24px; display: grid; gap: 10px; }
.faq-item { background: var(--content); border: 1px solid var(--line); border-radius: 10px; padding: 0 18px; }
.faq-item summary { min-height: 58px; display: flex; align-items: center; cursor: pointer; font-weight: 800; color: var(--ink); }
.faq-item p { padding: 0 0 18px; color: var(--muted); }

/* 联系 */
.contact-page .contact-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.contact-card { padding: 20px; background: var(--content); border: 1px solid var(--line); border-radius: 10px; }
.contact-card p { margin-top: 8px; }
.contact-card ul { margin: 10px 0 0; padding-left: 20px; }
.contact-card li + li { margin-top: 5px; }
.contact-path { margin-top: 18px; background: var(--deep-paper); border-radius: 10px; padding: 20px; }
.contact-path p + p { margin-top: 8px; }

/* 关于 */
.about-page .about-banner { margin-top: 22px; }
.about-body { margin-top: 18px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; align-items: start; }
.about-copy { background: var(--content); border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.about-copy p + p { margin-top: 10px; }
.about-side { display: grid; gap: 12px; }
.about-side article { background: var(--deep-paper); border-radius: 10px; padding: 18px; }
.about-side p { margin-top: 7px; }
.about-cover { height: 210px; }
.about-plan { margin-top: 18px; padding: 20px; border: 1px solid var(--line-strong); border-radius: 10px; }
.about-plan p + p { margin-top: 8px; }

/* 页脚 */
.site-footer { background: var(--ink); color: var(--paper); border-top: 1px solid var(--copper); padding: 30px 0 16px; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1.9fr; gap: 30px; }
.footer-brand-link { display: inline-flex; align-items: center; gap: 10px; color: var(--paper); }
.footer-brand-link span { display: flex; flex-direction: column; line-height: 1.2; }
.footer-brand-link strong { color: var(--copper); font-size: 16px; }
.footer-brand-link small { color: var(--paper); font-size: 11px; letter-spacing: .1em; }
.footer-fallback { color: var(--copper); }
.footer-brand p { margin-top: 12px; max-width: 360px; color: var(--paper); }
.footer-links { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.footer-links h2 { font-size: 13px; color: var(--copper); margin-bottom: 7px; }
.footer-links a { display: block; min-height: 30px; line-height: 30px; color: var(--paper); }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--copper); }
.footer-bottom { margin-top: 22px; padding-top: 12px; border-top: 1px solid rgba(184,136,56,.25); color: var(--paper); }

/* 遮罩、目录、搜索 */
.overlay { position: fixed; inset: 0; z-index: 88; background: rgba(26,20,10,.52); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .18s ease, visibility .18s ease; }
.overlay.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
.drawer { position: fixed; left: 18px; bottom: 18px; z-index: 92; width: 240px; max-height: 380px; background: var(--content); color: var(--body); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow); transform: translateY(calc(100% + 36px)); visibility: hidden; pointer-events: none; transition: transform .22s ease, visibility .22s ease; overflow: hidden; }
.drawer.is-open { transform: translateY(0); visibility: visible; pointer-events: auto; }
.drawer-head { height: 54px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.drawer-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.close-button { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--gold); font-size: 13px; }
.drawer-scroll { max-height: 325px; overflow-y: auto; overscroll-behavior: contain; padding: 10px 12px 14px; }
.drawer-scroll section + section { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.drawer-scroll h2 { font-size: 13px; color: var(--gold); margin-bottom: 3px; }
.drawer-scroll a { display: block; padding: 7px 5px; border-radius: 7px; }
.drawer-scroll a:hover, .drawer-scroll a:focus-visible { background: var(--secondary); }
.drawer-scroll strong { display: block; color: var(--ink); font-size: 13px; }
.drawer-scroll span { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 1px; }

.search-panel { position: fixed; left: 0; right: 0; top: 74px; z-index: 91; visibility: hidden; pointer-events: none; transform: translateY(-12px); opacity: 0; transition: transform .18s ease, opacity .18s ease, visibility .18s ease; }
.search-panel.is-open { visibility: visible; pointer-events: auto; transform: translateY(0); opacity: 1; }
.search-card { background: var(--content); border: 1px solid var(--line-strong); border-radius: 0 0 12px 12px; box-shadow: var(--shadow); padding: 18px; }
.search-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.search-head strong { display: block; color: var(--ink); font-size: 16px; }
.search-head span { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.search-label { display: block; margin-top: 12px; font-size: 13px; color: var(--muted); }
.search-input { width: 100%; height: 44px; margin-top: 5px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--paper); color: var(--ink); }
.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 13px; border: 1px solid var(--gold); border-radius: 999px; color: var(--ink); background: var(--content); }
.search-presets a:hover, .search-presets a:focus-visible { background: var(--secondary); }
.search-empty { margin-top: 10px; color: var(--muted); font-size: 13px; }

.mobile-bottom { display: none; }

@media (max-width: 760px) {
    .wrap, .page-shell { width: calc(100% - 32px); }
    .quick-nav { display: none; }
    .site-main { padding-top: 74px; padding-bottom: 82px; }
    .page-shell { padding-top: 24px; }
    .brand-actions { gap: 5px; }
    .app-link, .drawer-toggle { padding-inline: 10px; }
    .home-points { gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
    .home-triad, .period-row, .period-page .period-columns, .source-steps, .app-page .app-features, .method-page .method-flow { grid-template-columns: 1fr; }
    .home-inserts, .home-shelf, .home-late, .status-explain, .check-list, .center-notes, .topic-bottom, .help-page .help-grid, .contact-page .contact-grid { grid-template-columns: 1fr; }
    .home-inserts article:first-child { transform: none; }
    .status-item { grid-template-columns: 1fr; gap: 6px; }
    .status-item span:last-child { justify-self: start; }
    .triad-layout { grid-template-columns: 1fr; }
    .slice-bands article { grid-template-columns: 1fr; gap: 8px; padding-block: 17px; }
    .insert-sheet, .insert-sheet:nth-child(even) { grid-template-columns: 1fr; }
    .insert-sheet:nth-child(even) .insert-copy { order: 0; }
    .observation-list { columns: 1; }
    .status-row { grid-template-columns: 1fr; gap: 8px; }
    .status-badge { justify-self: start; }
    .check-page .check-intro, .about-body { grid-template-columns: 1fr; }
    .method-tile::after { display: none; }
    .topic-item { grid-template-columns: 60px 1fr; }
    .topic-tag { grid-column: 2; justify-self: start; }
    .footer-grid { grid-template-columns: 1fr; gap: 22px; }
    .footer-links { grid-template-columns: repeat(2,1fr); gap: 16px; }
    .site-footer { padding-bottom: 74px; }
    .drawer { width: 88%; left: 6%; bottom: calc(58px + env(safe-area-inset-bottom)); max-height: 72vh; }
    .drawer-scroll { max-height: calc(72vh - 54px); }
    .search-panel { top: 0; bottom: 0; background: var(--ink); color: var(--copper); transform: none; overflow-y: auto; }
    .search-card { min-height: 100%; width: 100%; border: 0; border-radius: 0; box-shadow: none; background: var(--ink); color: var(--copper); padding: calc(22px + env(safe-area-inset-top)) 16px 22px; }
    .search-head strong { color: var(--copper); }
    .search-head span, .search-label, .search-empty { color: var(--paper); }
    .search-panel .close-button { color: var(--copper); }
    .search-input { background: var(--content); color: var(--ink); }
    .search-presets a { background: transparent; color: var(--paper); border-color: var(--copper); }
    .search-presets a:hover, .search-presets a:focus-visible { background: rgba(184,136,56,.12); }
    .mobile-bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 86; height: calc(48px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(4,1fr); background: var(--content); border-top: 1px solid var(--line-strong); }
    .mobile-bottom a { min-height: 48px; display: grid; place-items: center; font-size: 13px; color: var(--muted); }
    .mobile-bottom a.is-current { background: var(--copper); color: var(--ink); font-weight: 800; }
}

@media (max-width: 420px) {
    h1 { font-size: 22px; }
    h2 { font-size: 19px; }
    .brand-home { max-width: 110px; }
    .app-link { font-size: 13px; padding-inline: 9px; }
    .drawer-toggle { font-size: 13px; padding-inline: 9px; }
    .home-slice-copy { flex-direction: column; align-items: flex-start; }
    .footer-links { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
