:root {
    --bean-light: #F3E6C8;
    --bean-deep-bg: #E4D2A8;
    --paper: #FFF8E8;
    --paper-soft: #F7EDD4;
    --title: #3A2A12;
    --text: #4A3418;
    --muted: #7A5A28;
    --soft: #A08048;
    --bean-deep: #5A3C16;
    --shell: #8A5A22;
    --sprout: #6A7A38;
    --footer: #2E220E;
    --line: rgba(90, 60, 22, 0.16);
    --line-strong: rgba(90, 60, 22, 0.42);
    --shadow: 0 12px 28px rgba(58, 42, 18, 0.08);
    --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bean-light); }
body {
    margin: 0;
    background: var(--bean-light);
    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.panel-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { max-width: 100%; }

.site-chrome { position: fixed; inset: 0 0 auto 0; z-index: 80; }
.chrome-inner { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.sprout-line { height: 22px; background: var(--bean-deep); color: var(--paper); font-size: 12px; }
.sprout-line-inner { height: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.text-button { border: 0; background: transparent; color: var(--paper); padding: 0 4px; height: 22px; cursor: pointer; }
.pod-bar { height: 56px; background: var(--bean-light); border-bottom: 1px solid var(--line-strong); }
.pod-bar-inner { height: 56px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.brand-link { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; max-width: 180px; }
.brand-logo, .drawer-logo, .footer-logo { height: 26px; width: auto; object-fit: contain; object-position: center; display: block; }
.brand-fallback { font-size: 16px; font-weight: 800; color: var(--title); letter-spacing: .04em; }
.app-quick-link { justify-self: center; min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; border-radius: 9px; color: var(--bean-deep); font-weight: 700; }
.app-quick-link:hover, .app-quick-link:focus-visible, .app-quick-link.is-current { background: var(--paper); outline: 1px solid var(--line-strong); }
.drawer-button { justify-self: end; min-width: 64px; height: 44px; border: 1px solid var(--shell); background: var(--paper); color: var(--bean-deep); border-radius: 9px; cursor: pointer; font-weight: 700; }
.ridge-tabs { height: 38px; background: var(--paper); border-bottom: 1px solid var(--line); }
.ridge-tabs-inner { height: 38px; display: flex; align-items: center; justify-content: space-between; }
.ridge-group { display: flex; gap: 8px; align-items: center; }
.ridge-link { height: 30px; min-width: 62px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 13px; color: var(--muted); }
.ridge-link:hover, .ridge-link:focus-visible { outline: 1px solid var(--line-strong); }
.ridge-link.is-current { background: var(--bean-deep); color: var(--paper); }

.site-main { padding: 142px 16px 72px; min-height: 70vh; }
.page-shell { width: min(var(--max), 100%); margin: 0 auto; }
.page-intro { max-width: 780px; margin-bottom: 30px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--sprout); font-weight: 800; letter-spacing: .08em; margin-bottom: 8px; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
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 1em; }
.lead { font-size: 16px; color: var(--muted); max-width: 760px; }
.section-block { margin-top: 38px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-heading p { max-width: 610px; color: var(--muted); margin: 0; }

.primary-link, .secondary-link {
    min-height: 42px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}
.primary-link { color: var(--paper); background: linear-gradient(135deg, #8A5A22 0%, #5A3C16 100%); border: 1px solid transparent; }
.secondary-link { color: var(--bean-deep); background: var(--paper); border: 1px solid var(--shell); }
.primary-link:hover, .secondary-link:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.primary-link:focus-visible, .secondary-link:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--sprout); outline-offset: 2px; }

.image-slot { width: 100%; border: 1px solid var(--line); background: var(--paper-soft); border-radius: 10px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.image-slot img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.banner-slot { height: 200px; }
.card-image { height: 140px; border-radius: 8px 8px 0 0; border: 0; border-bottom: 1px solid var(--line); }
.long-image { height: 180px; margin-bottom: 18px; }
.app-visual { height: min(340px, 62vw); max-height: 340px; }

.home-intro { padding: 12px 0 6px; max-width: 760px; }
.home-intro .tagline { font-size: 20px; font-weight: 900; color: var(--bean-deep); margin-bottom: 10px; }
.home-intro .primary-link { margin-top: 6px; }
.home-banner { margin-top: 24px; }
.four-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.feature-tile { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.feature-tile .tile-body { padding: 16px; }
.feature-tile p { color: var(--muted); margin-bottom: 12px; }
.inline-more { font-weight: 800; color: var(--bean-deep); }
.prose-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 22px; box-shadow: var(--shadow); }
.prose-steps p strong { color: var(--bean-deep); display: inline-block; min-width: 44px; }
.vertical-timeline { position: relative; padding-left: 24px; display: grid; gap: 14px; }
.vertical-timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: var(--line-strong); }
.timeline-item { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; padding: 15px 16px; }
.timeline-item::before { content: ""; position: absolute; left: -22px; top: 20px; width: 9px; height: 9px; border-radius: 50%; background: var(--sprout); border: 3px solid var(--bean-light); }
.timeline-item span { display: block; font-weight: 900; color: var(--bean-deep); margin-bottom: 4px; }
.split-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.note-column { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.note-column ul { margin: 0; padding-left: 18px; }
.theme-strips { display: grid; gap: 10px; }
.theme-strip { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.theme-strip strong { color: var(--title); }
.status { font-size: 13px; padding: 4px 9px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--bean-deep); white-space: nowrap; }
.app-band { display: grid; grid-template-columns: minmax(260px, .8fr) 1.2fr; gap: 24px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.app-icon { width: 48px; height: 48px; object-fit: contain; border-radius: 10px; margin-bottom: 10px; }
.point-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.point-card { background: var(--paper-soft); border: 1px solid var(--line); border-radius: 9px; padding: 16px; }
.faq-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.faq-mini article { background: var(--paper); border-left: 3px solid var(--shell); border-radius: 0 9px 9px 0; padding: 16px; }
.brand-story { background: var(--bean-deep); color: var(--paper); border-radius: 12px; padding: 24px; }
.brand-story h2, .brand-story h3 { color: var(--paper); }
.brand-story p { color: var(--bean-light); }

/* 单列长文 */
.longform { max-width: 820px; }
.longform section { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 22px; margin: 0 0 16px; }
.longform .opening { background: transparent; border: 0; padding: 0 0 8px; }
.longform .content-list { margin: 0; padding-left: 20px; }
.longform .content-list li { margin-bottom: 8px; }

/* 观察目录 */
.observation-index { display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: start; }
.observation-menu { position: sticky; top: 132px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.observation-menu a { display: block; padding: 10px 12px; border-radius: 7px; font-weight: 800; color: var(--muted); }
.observation-menu a:hover { background: var(--paper-soft); color: var(--title); }
.observation-content { display: grid; gap: 14px; }
.observation-content article { border-bottom: 1px solid var(--line); padding: 0 0 20px; }

/* 四宫格 */
.quad-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quad-layout article { min-height: 250px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.quad-layout article:nth-child(3) { background: var(--bean-deep-bg); }
.quad-layout article:nth-child(4) { border-color: var(--line-strong); }

/* 札记双栏 */
.journal-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: 20px; }
.journal-main article { background: var(--paper); border: 1px solid var(--line); padding: 20px; border-radius: 10px; margin-bottom: 14px; }
.journal-side { background: var(--paper-soft); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.journal-side ul { margin: 0; padding-left: 18px; }

/* 状态主题条 */
.topic-strip-list { display: grid; gap: 12px; }
.topic-strip-list article { display: grid; grid-template-columns: 150px 1fr auto; gap: 18px; align-items: start; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.topic-strip-list .topic-label { font-weight: 900; color: var(--bean-deep); }
.topic-strip-list .topic-copy p:last-child { margin-bottom: 0; }

/* 备忘清单 */
.memo-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.memo-board section { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding: 8px 0 8px 26px; border-bottom: 1px dashed var(--line); }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before { content: "✓"; position: absolute; left: 2px; top: 8px; color: var(--sprout); font-weight: 900; }

/* 方法说明 */
.method-flow { counter-reset: method; display: grid; gap: 18px; max-width: 880px; }
.method-flow article { position: relative; padding: 8px 0 20px 70px; border-bottom: 1px solid var(--line); }
.method-flow article::before { counter-increment: method; content: counter(method); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--bean-deep); color: var(--paper); display: grid; place-items: center; font-weight: 900; }

/* 主题列表 */
.collection-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.collection-list article { background: var(--paper); padding: 20px; display: grid; grid-template-columns: 180px 1fr; gap: 18px; }
.collection-list .collection-name { color: var(--bean-deep); font-weight: 900; }

/* 产品说明 */
.product-hero { display: grid; grid-template-columns: minmax(260px, .8fr) 1.2fr; gap: 28px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.product-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.product-sections article { background: var(--paper-soft); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }

/* 安装说明 */
.install-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.install-steps article { background: var(--paper); border-top: 4px solid var(--shell); border-radius: 9px; padding: 18px; }
.notice-box { background: var(--bean-deep); color: var(--paper); border-radius: 10px; padding: 18px; }
.notice-box h2 { color: var(--paper); }

/* 条款 */
.policy-sections { display: grid; gap: 14px; }
.policy-sections section { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.policy-sections section h2 { padding-bottom: 10px; border-bottom: 1px solid var(--line); }

/* 帮助 */
.help-hub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.help-hub article { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.help-hub article:nth-child(even) { background: var(--paper-soft); }

/* FAQ */
.faq-list { display: grid; gap: 12px; max-width: 900px; }
.faq-list details { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 0 18px; }
.faq-list summary { min-height: 52px; display: flex; align-items: center; cursor: pointer; font-weight: 900; color: var(--title); }
.faq-list details p { padding: 0 0 18px; margin: 0; color: var(--muted); }

/* 联系 */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.contact-grid article { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.contact-route { margin-top: 18px; background: var(--paper-soft); border-left: 4px solid var(--sprout); padding: 18px; border-radius: 0 10px 10px 0; }

/* 关于 */
.about-columns { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; }
.about-manifesto { background: var(--bean-deep); color: var(--bean-light); border-radius: 12px; padding: 24px; }
.about-manifesto h2 { color: var(--paper); }
.about-notes { display: grid; gap: 12px; }
.about-notes article { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }

.site-footer { background: var(--footer); color: var(--bean-light); border-top: 1px solid rgba(243, 230, 200, .24); }
.footer-inner { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; padding: 32px 0 26px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.footer-brand strong { display: block; color: var(--paper); font-size: 16px; }
.footer-brand span { display: block; font-size: 12px; color: var(--bean-light); }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.footer-grid h2 { color: var(--paper); font-size: 13px; margin-bottom: 8px; }
.footer-grid a { display: block; font-size: 13px; color: var(--bean-light); padding: 3px 0; }
.footer-grid a:hover { color: var(--paper); text-decoration: underline; }
.footer-note, .footer-copy { font-size: 13px; color: var(--bean-light); }
.footer-note { border-top: 1px solid rgba(243,230,200,.16); margin-top: 24px; padding-top: 16px; max-width: 860px; }
.footer-copy { margin-bottom: 0; opacity: .82; }

.screen-overlay { position: fixed; inset: 0; background: rgba(46,34,14,.38); z-index: 90; opacity: 0; visibility: hidden; pointer-events: none; transition: .2s ease; }
.screen-overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.site-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); background: var(--paper); z-index: 100; transform: translateX(102%); visibility: hidden; pointer-events: none; transition: transform .24s ease, visibility .24s; box-shadow: -20px 0 50px rgba(58,42,18,.16); display: flex; flex-direction: column; }
.site-drawer.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.drawer-head { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.drawer-brand { display: flex; align-items: center; gap: 10px; font-weight: 900; color: var(--title); }
.panel-close { min-width: 58px; min-height: 44px; border: 1px solid var(--shell); background: var(--paper); color: var(--bean-deep); border-radius: 8px; cursor: pointer; }
.drawer-scroll { overflow-y: auto; padding: 10px 14px 24px; }
.drawer-section { margin-bottom: 18px; }
.drawer-section h2 { font-size: 13px; color: var(--sprout); letter-spacing: .08em; margin: 10px 0 6px; }
.drawer-section a { display: block; border-bottom: 1px solid var(--line); padding: 10px 2px; }
.drawer-section strong { display: block; color: var(--title); }
.drawer-section span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }

.site-search { position: fixed; top: 78px; left: 0; right: 0; z-index: 96; visibility: hidden; pointer-events: none; opacity: 0; transform: translateY(-10px); transition: .18s ease; }
.site-search.is-open { visibility: visible; pointer-events: auto; opacity: 1; transform: translateY(0); }
.search-card { width: min(760px, calc(100% - 32px)); margin: 0 auto; background: var(--paper); border: 1px solid var(--line-strong); box-shadow: var(--shadow); border-radius: 0 0 12px 12px; padding: 16px; }
.search-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.search-head strong { display: block; color: var(--title); }
.search-head span { display: block; color: var(--muted); font-size: 13px; }
.search-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.search-presets a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--paper-soft); font-weight: 800; color: var(--bean-deep); }

.mobile-bottom { display: none; }

@media (max-width: 780px) {
    .chrome-inner { width: calc(100% - 24px); }
    .ridge-tabs { display: none; }
    .pod-bar-inner { grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; }
    .brand-link { min-width: 0; overflow: hidden; }
    .brand-fallback { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .app-quick-link { padding: 0 10px; font-size: 14px; }
    .drawer-button { min-width: 56px; }
    .site-main { padding: 102px 16px 84px; }
    .four-grid, .split-notes, .point-grid, .faq-mini, .quad-layout, .memo-board, .product-sections, .help-hub, .contact-grid { grid-template-columns: 1fr; }
    .theme-strip, .topic-strip-list article { grid-template-columns: 1fr; gap: 8px; }
    .app-band, .product-hero, .journal-layout, .about-columns { grid-template-columns: 1fr; }
    .app-band .image-slot, .product-hero .image-slot { order: 0; }
    .observation-index { grid-template-columns: 1fr; }
    .observation-menu { position: static; display: flex; overflow-x: auto; gap: 4px; padding: 8px; }
    .observation-menu a { white-space: nowrap; }
    .collection-list article { grid-template-columns: 1fr; gap: 7px; }
    .install-steps { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .site-search { inset: 0; background: var(--bean-deep); color: var(--paper); display: flex; align-items: flex-start; padding: max(18px, env(safe-area-inset-top)) 16px 72px; }
    .search-card { width: 100%; margin: 0; background: transparent; border: 0; box-shadow: none; border-radius: 0; padding: 0; }
    .search-head strong, .search-head span { color: var(--paper); }
    .search-presets a { color: var(--paper); background: rgba(255,248,232,.08); border-color: rgba(255,248,232,.38); }
    .site-search .panel-close { color: var(--paper); border-color: rgba(255,248,232,.5); background: transparent; }
    .mobile-bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 85; height: calc(48px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, 1fr); background: var(--paper); 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(--bean-deep); color: var(--paper); }
    .footer-inner { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

@media (max-width: 520px) {
    .home-intro .tagline { font-size: 18px; }
    .prose-panel, .note-column, .policy-sections section, .help-hub article, .contact-grid article { padding: 17px; }
    .install-steps { grid-template-columns: 1fr; }
    .footer-grid { gap: 16px 12px; }
}
