:root {
    --bg: #F3E8D4;
    --deep: #E2D2B4;
    --paper: #FBF3E4;
    --secondary: #EDE0C8;
    --ink: #1A140A;
    --text: #2C2214;
    --muted: #5C4A30;
    --soft: #7C6844;
    --gold: #7A5A20;
    --copper: #B88838;
    --border: rgba(26,20,10,0.12);
    --strong-border: 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; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",Arial,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 { cursor: pointer; }
img { display: block; max-width: 100%; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 9999; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 8px; }
.skip-link:focus { top: 8px; }
.old-edge { position: fixed; z-index: 1200; top: 0; left: 0; right: 0; height: 20px; background: var(--ink); color: var(--copper); display: flex; align-items: center; justify-content: space-between; padding: 0 max(16px,calc((100vw - var(--max))/2)); font-size: 12px; line-height: 20px; }
.edge-brand { font-weight: 700; letter-spacing: .08em; }
.edge-search { border: 0; background: transparent; color: var(--copper); min-width: 44px; height: 20px; padding: 0 4px; }
.brandbar { position: fixed; z-index: 1190; top: 20px; left: 0; right: 0; height: 54px; background: var(--paper); border-bottom: 1px solid var(--strong-border); display: flex; align-items: center; justify-content: space-between; padding: 0 max(16px,calc((100vw - var(--max))/2)); }
.brand-home { min-width: 52px; min-height: 44px; display: flex; align-items: center; }
.brand-logo,.drawer-logo,.footer-logo { height: 24px; width: auto; object-fit: contain; object-position: center; }
.brand-fallback { font-size: 16px; font-weight: 800; color: var(--ink); letter-spacing: .05em; }
.brand-actions { display: flex; align-items: center; gap: 8px; }
.app-link,.drawer-toggle { height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 13px; border-radius: 9px; font-size: 14px; }
.app-link { background: linear-gradient(135deg,#1A140A 0%,#B88838 100%); color: var(--paper); }
.drawer-toggle { border: 1px solid var(--strong-border); background: var(--paper); color: var(--ink); }
.dotnav { position: fixed; z-index: 1180; top: 74px; left: 0; right: 0; height: 42px; background: var(--paper); border-bottom: 1px solid var(--border); }
.dotnav-inner { width: min(var(--max),calc(100% - 32px)); height: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: flex-start; gap: 34px; }
.dot-item { height: 42px; min-width: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 13px; line-height: 1.05; color: var(--muted); }
.dot { width: 8px; height: 8px; border: 1px solid var(--ink); border-radius: 50%; }
.dot-item.is-current { color: var(--ink); font-weight: 700; }
.dot-item.is-current .dot { background: var(--copper); border-color: var(--copper); box-shadow: 0 0 0 3px rgba(184,136,56,.14); }
.site-main { min-height: 65vh; padding: 146px 16px 48px; }
.page,.home { width: min(var(--max),100%); margin: 0 auto; }
h1,h2,h3 { color: var(--ink); margin-top: 0; font-weight: 800; }
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(--muted); max-width: 780px; }
.kicker { display: inline-block; margin-bottom: 8px; color: var(--gold); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.section { margin-top: 30px; }
.card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: 0 5px 18px rgba(26,20,10,.05); }
.card + .card { margin-top: 14px; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn { min-height: 42px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; font-size: 14px; line-height: 1; white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg,#1A140A 0%,#B88838 100%); color: var(--paper); }
.btn-secondary { background: var(--paper); color: var(--ink); border: 1px solid var(--gold); }
a:hover,.edge-search:hover,.drawer-toggle:hover,.close-button:hover { filter: brightness(.96); }
a:focus-visible,button:focus-visible,input:focus-visible { outline: 3px solid rgba(184,136,56,.45); outline-offset: 2px; }
.media-slot { width: 100%; min-height: 120px; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.media-slot img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.slot-horizontal { height: 168px; }
.slot-banner { height: 200px; }
.slot-app { max-height: 320px; min-height: 220px; }
.slot-app img { max-height: 320px; width: 100%; }
.slot-icon { width: 64px; height: 64px; min-height: 64px; border-radius: 12px; }
.slot-icon img { width: 48px; height: 48px; }

.home-intro { background: var(--paper); border: 1px solid var(--border); border-radius: 12px; padding: 22px; }
.home-index { display: flex; gap: 16px; flex-wrap: wrap; margin: 0 0 18px; padding: 0; list-style: none; }
.home-index li { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; }
.home-index i { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: var(--copper); }
.home-cut { margin-top: 26px; background: var(--secondary); border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.home-cut .copy { padding: 18px; }
.home-triad { display: grid; grid-template-columns: 1.1fr .9fr .9fr; gap: 14px; align-items: stretch; }
.home-triad article { min-width: 0; }
.home-triad .featured { padding: 0; overflow: hidden; }
.home-triad .featured .copy { padding: 16px; }
.home-booklet { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.home-booklet article { background: var(--paper); padding: 18px; border-left: 4px solid var(--gold); border-radius: 8px; }
.home-shelf { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.home-shelf article { min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; }
.period-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--paper); }
.period-strip article { padding: 18px; border-right: 1px solid var(--border); }
.period-strip article:last-child { border-right: 0; }
.status-list { display: grid; gap: 10px; }
.status-row { background: var(--paper); border: 1px solid var(--border); border-radius: 9px; padding: 14px 16px; display: grid; grid-template-columns: 110px 1fr; gap: 18px; }
.status-tag { color: var(--gold); font-weight: 800; }
.app-stack { display: grid; gap: 16px; }
.app-visual { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: start; }
.tip-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.faq-six { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.faq-six details,.faq-list details { background: var(--paper); border: 1px solid var(--border); border-radius: 9px; padding: 14px 16px; }
.faq-six summary,.faq-list summary { cursor: pointer; color: var(--ink); font-weight: 800; }
.faq-six details p,.faq-list details p { margin: 10px 0 0; color: var(--muted); }

.layout-triad { display: grid; grid-template-columns: 1.2fr .9fr .9fr; gap: 14px; }
.layout-triad > article { background: var(--paper); border: 1px solid var(--border); border-radius: 10px; padding: 18px; }
.layout-triad > article:first-child { padding: 0; overflow: hidden; }
.layout-triad > article:first-child .copy { padding: 18px; }
.layout-cut section { border-top: 1px solid var(--strong-border); padding: 20px 0; display: grid; grid-template-columns: 170px 1fr; gap: 24px; }
.layout-cut section:last-child { border-bottom: 1px solid var(--strong-border); }
.layout-cut h2 { margin-bottom: 0; }
.layout-booklet { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.layout-booklet article { background: var(--paper); border: 1px solid var(--border); border-radius: 8px; padding: 20px; }
.layout-booklet article:nth-child(even) { margin-top: 44px; }
.single-flow .step { display: grid; grid-template-columns: 42px 1fr; gap: 14px; margin: 18px 0; }
.step-number { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--copper); font-weight: 800; }
.period-page { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 16px; align-items: start; }
.period-page article { background: var(--paper); border: 1px solid var(--border); border-radius: 10px; padding: 20px; }
.period-page article:nth-child(2) { margin-top: 28px; }
.memo-list { counter-reset: memo; display: grid; gap: 12px; }
.memo-item { counter-increment: memo; background: var(--paper); border: 1px solid var(--border); border-radius: 9px; padding: 16px 16px 16px 58px; position: relative; }
.memo-item:before { content: counter(memo,decimal-leading-zero); position: absolute; left: 16px; top: 15px; color: var(--copper); font-weight: 900; }
.method-flow section { padding: 18px 0; border-bottom: 1px solid var(--border); max-width: 780px; }
.topic-list { display: grid; gap: 14px; }
.topic-list article { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 18px; background: var(--paper); border: 1px solid var(--border); border-radius: 10px; }
.center-cards { max-width: 760px; margin-left: auto; margin-right: auto; display: grid; gap: 16px; }
.center-cards article { text-align: center; background: var(--paper); border: 1px solid var(--border); border-radius: 10px; padding: 22px 24px; }
.terms section { background: var(--paper); border-left: 4px solid var(--gold); padding: 18px 20px; margin: 14px 0; }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-paths { display: grid; gap: 12px; }
.contact-paths article { background: var(--paper); border: 1px solid var(--border); border-radius: 9px; padding: 18px; }
.brand-banner { margin-bottom: 20px; }
.brand-values { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mt-14 { margin-top: 14px; }
.center-lead { margin-left: auto; margin-right: auto; text-align: center; max-width: 720px; }
.button-row-center { justify-content: center; }
.notice { background: var(--secondary); border: 1px solid var(--strong-border); border-radius: 9px; padding: 15px 17px; color: var(--muted); }
.clean-list { margin: 0; padding-left: 20px; }
.clean-list li { margin: 7px 0; }

.site-footer { background: var(--ink); color: var(--bg); border-top: 1px solid var(--copper); padding: 34px 16px calc(34px + env(safe-area-inset-bottom)); font-size: 13px; }
.footer-inner { width: min(var(--max),100%); margin: 0 auto; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--paper); margin-bottom: 22px; }
.footer-brand strong { font-size: 16px; }
.footer-brand span { color: var(--copper); letter-spacing: .08em; }
.footer-groups { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.footer-groups section { display: flex; flex-direction: column; align-items: flex-start; }
.footer-groups h2 { font-size: 13px; color: var(--copper); margin: 0 0 8px; }
.footer-groups a { color: var(--bg); padding: 3px 0; }
.copyright-note { margin-top: 24px; max-width: 760px; color: #D8C9AD; }
.copyright { color: var(--copper); margin-bottom: 0; }
.screen-overlay { position: fixed; inset: 0; z-index: 1700; background: rgba(26,20,10,.52); opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.screen-overlay.is-visible { opacity: 1; pointer-events: auto; }
.site-drawer { position: fixed; z-index: 1800; left: 18px; bottom: 18px; width: 240px; max-height: 380px; background: var(--paper); border: 1px solid var(--strong-border); border-radius: 12px; box-shadow: var(--shadow); transform: translateY(calc(100% + 40px)); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .2s ease,opacity .2s ease,visibility .2s; overflow: hidden; }
.site-drawer.is-open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
.drawer-head { height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; border-bottom: 1px solid var(--border); }
.drawer-brand { display: flex; align-items: center; gap: 8px; }
.close-button { min-width: 44px; min-height: 40px; border: 1px solid var(--strong-border); background: var(--paper); color: var(--ink); border-radius: 8px; }
.drawer-scroll { overflow-y: auto; max-height: 326px; padding: 10px 12px 18px; }
.drawer-scroll section + section { margin-top: 14px; }
.drawer-scroll h2 { font-size: 13px; color: var(--gold); margin: 0 0 6px; }
.drawer-scroll a { display: block; padding: 8px 0; border-bottom: 1px solid var(--border); }
.drawer-scroll a b { display: block; font-size: 14px; color: var(--ink); }
.drawer-scroll a span { display: block; font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.search-panel { position: fixed; z-index: 1790; top: 74px; left: 0; right: 0; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px); transition: .18s ease; }
.search-panel.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.search-card { width: min(720px,calc(100% - 32px)); margin: 10px auto 0; background: var(--paper); border: 1px solid var(--strong-border); border-radius: 12px; box-shadow: var(--shadow); padding: 18px; }
.search-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; color: var(--ink); }
.search-card label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; }
.search-card input { width: 100%; height: 44px; border: 1px solid var(--strong-border); background: #fffaf0; color: var(--ink); border-radius: 8px; 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; border: 1px solid var(--border); border-radius: 8px; color: var(--ink); }
.search-empty { color: var(--muted); margin: 12px 0 0; }
.mobile-bottom { display: none; }

@media (max-width: 760px) {
    .dotnav { display: none; }
    .site-main { padding-top: 100px; padding-bottom: 76px; }
    .brandbar { padding-left: 16px; padding-right: 16px; }
    .old-edge { padding-left: 16px; padding-right: 16px; }
    .brand-actions { gap: 4px; }
    .app-link,.drawer-toggle { padding: 0 10px; }
    .home-triad,.layout-triad,.home-booklet,.home-shelf,.period-strip,.period-page,.tip-grid,.faq-six,.help-grid,.brand-values,.footer-groups { grid-template-columns: 1fr; }
    .period-strip article { border-right: 0; border-bottom: 1px solid var(--border); }
    .period-strip article:last-child { border-bottom: 0; }
    .layout-booklet { grid-template-columns: 1fr; }
    .layout-booklet article:nth-child(even),.period-page article:nth-child(2) { margin-top: 0; }
    .layout-cut section,.topic-list article { grid-template-columns: 1fr; gap: 8px; }
    .status-row { grid-template-columns: 1fr; gap: 4px; }
    .app-visual { grid-template-columns: 64px 1fr; }
    .site-drawer { width: 88%; left: 6%; bottom: calc(58px + env(safe-area-inset-bottom)); max-height: 380px; }
    .search-panel { inset: 0; top: 0; background: var(--ink); color: var(--copper); display: flex; align-items: flex-start; padding-top: 44px; }
    .search-card { width: calc(100% - 32px); max-height: calc(100vh - 88px); overflow-y: auto; background: var(--ink); border-color: rgba(184,136,56,.55); color: var(--copper); }
    .search-head,.search-card label { color: var(--copper); }
    .search-card input { background: var(--paper); color: var(--ink); }
    .search-presets a { color: var(--paper); border-color: rgba(184,136,56,.45); }
    .search-empty { color: var(--bg); }
    .search-panel .close-button { background: transparent; color: var(--copper); border-color: var(--copper); }
    .mobile-bottom { position: fixed; z-index: 1300; left: 0; right: 0; bottom: 0; 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(--ink); border-top: 1px solid var(--copper); }
    .mobile-bottom a { min-height: 48px; display: flex; align-items: center; justify-content: center; color: var(--bg); font-size: 13px; }
    .mobile-bottom a.is-current { background: var(--copper); color: var(--ink); font-weight: 800; }
    .site-footer { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
}
@media (max-width: 420px) {
    .site-main { padding-left: 16px; padding-right: 16px; }
    .home-intro,.card { padding: 16px; }
    h1 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    *,*:before,*:after { scroll-behavior: auto !important; transition: none !important; }
}


/* 第二版内容导航补充样式 */
.home-intro-v2 { background: var(--paper); border: 1px solid var(--strong-border); border-radius: 12px; padding: 24px; }
.guide-rail { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 18px; }
.guide-rail a { min-height: 58px; display: flex; align-items: center; justify-content: center; text-align: center; background: var(--secondary); border: 1px solid var(--border); border-radius: 10px; color: var(--ink); font-weight: 800; }
.feature-band { margin-top: 30px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; align-items: stretch; }
.feature-band .copy { background: var(--ink); color: var(--paper); border-radius: 12px; padding: 22px; }
.feature-band .copy h2,.feature-band .copy h3 { color: var(--copper); }
.feature-band .copy p { color: var(--bg); }
.stagger-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.stagger-list article { background: var(--paper); border: 1px solid var(--border); border-radius: 10px; padding: 18px; }
.stagger-list article:nth-child(2n) { margin-top: 34px; }
.progress-board { display: grid; gap: 12px; }
.progress-board article { display: grid; grid-template-columns: 110px 1fr; gap: 14px; background: var(--paper); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.progress-board strong { color: var(--gold); }
.info-pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.info-pairs article { background: var(--paper); border: 1px solid var(--border); border-radius: 10px; padding: 18px; }
.page-intro { margin-bottom: 22px; }
.page-intro p { max-width: 820px; }
.meta-note { font-size: 13px; color: var(--soft); }
@media (max-width: 760px) {
  .guide-rail,.feature-band,.stagger-list,.info-pairs { grid-template-columns: 1fr; }
  .stagger-list article:nth-child(2n) { margin-top: 0; }
  .progress-board article { grid-template-columns: 1fr; }
}
