:root {
  --bean-light: #F3E6C8;
  --bean-deep-bg: #E4D2A8;
  --paper: #FFF8E8;
  --paper-soft: #F7EDD4;
  --title: #3A2A12;
  --text: #4A3418;
  --muted: #7A5A28;
  --soft: #A08048;
  --deep: #5A3C16;
  --shell: #8A5A22;
  --sprout: #6A7A38;
  --border: rgba(90,60,22,0.16);
  --border-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; }
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; padding-top: 116px; }
body.ui-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; z-index: 3000; left: 12px; top: -70px; background: var(--paper); color: var(--deep); border: 1px solid var(--border-strong); border-radius: 8px; padding: 10px 14px; transition: top .2s ease; }
.skip-link:focus { top: 10px; }
.sprout-line { position: fixed; z-index: 1200; top: 0; left: 0; right: 0; height: 22px; background: var(--deep); color: var(--paper); font-size: 12px; }
.top-shell, .pod-shell, .ridge-shell, .footer-shell { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.top-shell { height: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand-mini { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.text-search-trigger { border: 0; background: transparent; color: var(--paper); min-height: 22px; padding: 0 4px; cursor: pointer; }
.pod-bar { position: fixed; z-index: 1190; top: 22px; left: 0; right: 0; height: 56px; background: var(--bean-light); border-bottom: 1px solid var(--border-strong); }
.pod-shell { height: 56px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.pod-logo { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; max-width: 180px; font-weight: 700; font-size: 16px; color: var(--title); }
.logo-image { height: 26px; width: auto; object-fit: contain; object-position: center; }
.pod-app { justify-self: center; min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; color: var(--deep); font-weight: 700; }
.pod-menu { justify-self: end; min-width: 58px; min-height: 44px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--paper); color: var(--deep); cursor: pointer; }
.ridge-tabs { position: fixed; z-index: 1180; top: 78px; left: 0; right: 0; height: 38px; background: var(--paper); border-bottom: 1px solid var(--border); }
.ridge-shell { height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ridge-left, .ridge-right { display: flex; align-items: center; gap: 8px; }
.ridge-tabs a { min-height: 30px; padding: 3px 12px; border-radius: 8px; color: var(--muted); font-size: 13px; display: inline-flex; align-items: center; }
.ridge-tabs a.active { background: var(--deep); color: var(--paper); }
.site-main { min-height: 60vh; }
.page-shell { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.page-hero { padding: 46px 0 28px; }
.page-hero.compact { padding-bottom: 18px; }
.eyebrow { margin: 0 0 10px; color: var(--sprout); font-weight: 800; letter-spacing: .08em; font-size: 13px; }
h1, h2, h3 { color: var(--title); margin-top: 0; }
h1 { font-size: 24px; line-height: 1.3; margin-bottom: 16px; }
h2 { font-size: 20px; line-height: 1.4; margin-bottom: 12px; }
h3 { font-size: 16px; line-height: 1.5; margin-bottom: 8px; }
p { margin: 0 0 14px; }
.lead { max-width: 780px; font-size: 16px; color: var(--text); }
.section-space { padding: 24px 0 34px; }
.section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-title p { margin: 0; color: var(--muted); max-width: 520px; }
.primary-btn, .secondary-btn { min-height: 42px; padding: 0 18px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; line-height: 1; border: 1px solid transparent; }
.primary-btn { background: linear-gradient(135deg,#8A5A22 0%,#5A3C16 100%); color: var(--paper); }
.secondary-btn { background: var(--paper); color: var(--deep); border-color: var(--shell); }
.primary-btn:hover, .secondary-btn:hover, .pod-menu:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid rgba(106,122,56,.42); outline-offset: 2px; }
.image-slot { width: 100%; min-height: 120px; border: 1px solid var(--border); 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; }
.slot-banner { height: 200px; }
.slot-grid { height: 140px; }
.slot-long { height: 180px; }
.slot-app { height: 340px; max-width: 360px; margin-inline: auto; }
.slot-brand { height: 180px; }
.home-intro { padding: 52px 0 28px; }
.home-intro .tagline { font-size: 20px; color: var(--deep); font-weight: 800; margin-bottom: 12px; }
.home-intro .intro-copy { max-width: 760px; }
.home-intro .primary-btn { margin-top: 8px; }
.home-banner { padding: 0 0 28px; }
.four-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.topic-card { background: var(--paper); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.topic-card .card-copy { padding: 16px; }
.topic-card p { color: var(--muted); margin-bottom: 0; }
.long-read { background: var(--paper); border: 1px solid var(--border); border-radius: 12px; padding: 22px; }
.long-read .image-slot { margin-bottom: 18px; }
.ordinal { color: var(--shell); font-weight: 800; }
.timeline { position: relative; margin-left: 9px; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--border-strong); }
.timeline-item { position: relative; padding: 0 0 22px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: -26px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--sprout); border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--border-strong); }
.timeline-item p { color: var(--muted); }
.split-notes { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.note-panel { background: var(--paper); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.note-panel ul, .memo-list, .plain-list { margin: 0; padding-left: 20px; }
.note-panel li, .memo-list li, .plain-list li { margin: 8px 0; }
.theme-bars { display: grid; gap: 12px; }
.theme-bar { display: grid; grid-template-columns: 150px 1fr auto; gap: 16px; align-items: center; background: var(--paper); border: 1px solid var(--border); border-left: 5px solid var(--shell); border-radius: 10px; padding: 15px 16px; }
.theme-bar strong { color: var(--title); }
.theme-bar span { color: var(--muted); }
.status { white-space: nowrap; color: var(--deep) !important; font-weight: 800; background: var(--bean-deep-bg); border-radius: 999px; padding: 4px 10px; font-size: 13px; }
.app-feature { display: grid; grid-template-columns: minmax(240px, 360px) 1fr; gap: 28px; align-items: center; }
.app-copy { background: var(--paper); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.app-icon-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.app-icon-row img { width: 48px; height: 48px; object-fit: contain; }
.info-stack { display: grid; gap: 16px; }
.info-block { background: var(--paper); border: 1px solid var(--border); border-radius: 10px; padding: 20px; }
.faq-mini { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.faq-mini article { background: var(--paper); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.faq-mini p { margin-bottom: 0; color: var(--muted); }
.brand-section { display: grid; grid-template-columns: 1fr 250px; gap: 24px; align-items: center; }
.page-card { background: var(--paper); border: 1px solid var(--border); border-radius: 12px; padding: 22px; box-shadow: var(--shadow); }
.single-column { max-width: 820px; margin: 0 auto; }
.single-column section { padding: 22px 0; border-bottom: 1px solid var(--border); }
.single-column section:last-child { border-bottom: 0; }
.observation-directory { display: grid; gap: 14px; }
.observation-row { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 20px; border: 1px solid var(--border); border-radius: 10px; background: var(--paper); }
.observation-row h2 { margin: 0; }
.observation-row .details { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.observation-row p { color: var(--muted); }
.quad-layout { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.quad-layout article { min-height: 220px; background: var(--paper); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.quad-layout .wide { grid-column: 1 / -1; min-height: 0; }
.journal-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.journal-column { background: var(--paper); border: 1px solid var(--border); border-radius: 12px; padding: 22px; }
.journal-entry { padding: 16px 0; border-bottom: 1px dashed var(--border-strong); }
.journal-entry:first-child { padding-top: 0; }
.journal-entry:last-child { border-bottom: 0; padding-bottom: 0; }
.timeline-page { max-width: 850px; margin: 0 auto; background: var(--paper); border: 1px solid var(--border); border-radius: 12px; padding: 26px; }
.topic-strips { display: grid; gap: 14px; }
.topic-strip { background: var(--paper); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.topic-strip header { padding: 12px 16px; background: var(--bean-deep-bg); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.topic-strip .strip-body { padding: 16px; }
.memo-board { display: grid; grid-template-columns: 240px 1fr; gap: 18px; }
.memo-index { position: sticky; top: 136px; background: var(--paper); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.memo-index a { display: block; padding: 8px 0; color: var(--muted); }
.memo-content { display: grid; gap: 16px; }
.memo-section { background: var(--paper); border: 1px solid var(--border); border-radius: 12px; padding: 20px; scroll-margin-top: 135px; }
.method-guide { display: grid; gap: 18px; }
.method-step { display: grid; grid-template-columns: 110px 1fr; gap: 18px; background: var(--paper); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.method-step .step-name { color: var(--deep); font-weight: 800; }
.collection-list { display: grid; gap: 12px; }
.collection-item { display: grid; grid-template-columns: 180px 1fr; gap: 18px; background: var(--paper); border: 1px solid var(--border); border-radius: 10px; padding: 18px; }
.collection-item h2 { margin-bottom: 0; }
.product-layout { display: grid; grid-template-columns: minmax(250px, 360px) 1fr; gap: 28px; align-items: start; }
.product-aside { background: var(--paper); border: 1px solid var(--border); border-radius: 12px; padding: 18px; position: sticky; top: 136px; }
.product-main { display: grid; gap: 16px; }
.product-main section { background: var(--paper); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.terms { display: grid; gap: 16px; }
.term-section { background: var(--paper); border: 1px solid var(--border); border-radius: 10px; padding: 20px; }
.help-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.help-grid article { background: var(--paper); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--paper); border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; }
.faq-item h2 { font-size: 17px; }
.contact-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.contact-card { background: var(--paper); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.contact-card .secondary-btn { margin-top: 8px; }
.about-flow { display: grid; gap: 20px; }
.about-flow article { background: var(--paper); border: 1px solid var(--border); border-radius: 12px; padding: 22px; }
.site-footer { background: #2E220E; color: var(--bean-light); border-top: 1px solid rgba(243,230,200,.3); margin-top: 48px; padding: 34px 0 28px; font-size: 13px; }
.footer-brand-link { display: inline-flex; align-items: center; gap: 12px; }
.footer-brand-link span { display: flex; flex-direction: column; }
.footer-brand-link strong { color: var(--paper); font-size: 16px; }
.footer-brand-link small { color: var(--bean-light); }
.footer-nav-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; margin: 26px 0; }
.footer-nav-grid h2 { color: var(--paper); font-size: 14px; margin-bottom: 8px; }
.footer-nav-grid a { display: block; color: var(--bean-light); padding: 3px 0; }
.footer-note { max-width: 860px; color: #E8D9B9; }
.copyright { color: #CDBB95; margin-bottom: 0; }
.page-overlay { position: fixed; inset: 0; z-index: 1600; background: rgba(46,34,14,.42); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.page-overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.pod-drawer { position: fixed; z-index: 1700; top: 0; right: 0; bottom: 0; width: 380px; max-width: 88vw; background: var(--paper); color: var(--text); transform: translateX(105%); visibility: hidden; pointer-events: none; transition: transform .25s ease, visibility .25s ease; box-shadow: -18px 0 40px rgba(46,34,14,.18); display: flex; flex-direction: column; }
.pod-drawer.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.drawer-head { min-height: 72px; padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.drawer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--title); }
.drawer-close, .search-head button { min-height: 44px; min-width: 56px; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--paper-soft); color: var(--deep); cursor: pointer; }
.drawer-body { overflow-y: auto; padding: 12px 16px 26px; }
.drawer-group { padding: 10px 0 14px; }
.drawer-group h2 { font-size: 14px; color: var(--shell); margin-bottom: 7px; }
.drawer-group a { display: block; border-top: 1px solid var(--border); padding: 10px 0; }
.drawer-group a strong { display: block; color: var(--title); }
.drawer-group a span { display: block; color: var(--muted); font-size: 13px; line-height: 1.55; }
.search-layer { position: fixed; z-index: 1680; left: 0; right: 0; top: 78px; padding: 12px 16px; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.search-layer.is-open { visibility: visible; opacity: 1; pointer-events: auto; }
.search-card { width: min(760px, 100%); margin: 0 auto; background: var(--paper); border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: var(--shadow); padding: 18px; }
.search-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.search-head div { display: flex; flex-direction: column; }
.search-head strong { color: var(--title); font-size: 17px; }
.search-head span { color: var(--muted); font-size: 13px; }
.search-label { display: block; color: var(--deep); margin: 14px 0 6px; font-weight: 700; }
#siteSearchInput { width: 100%; min-height: 44px; border: 1px solid var(--border-strong); border-radius: 9px; background: #fffdf6; color: var(--text); padding: 8px 12px; }
.search-results { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 12px; }
.search-results a { min-height: 58px; border: 1px solid var(--border); border-radius: 9px; padding: 9px 11px; display: flex; flex-direction: column; justify-content: center; }
.search-results a span { color: var(--muted); font-size: 12px; }
.search-empty { color: var(--muted); margin: 12px 0 0; }
.mobile-bottom { display: none; }
@media (max-width: 760px) {
  body { padding-top: 78px; padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
  .top-shell, .pod-shell, .footer-shell, .page-shell { width: calc(100% - 32px); }
  .ridge-tabs { display: none; }
  .pod-logo { max-width: 135px; }
  .pod-app { padding: 0 8px; font-size: 13px; }
  .pod-menu { min-width: 52px; }
  .home-intro { padding-top: 34px; }
  .page-hero { padding-top: 34px; }
  .four-grid, .split-notes, .faq-mini, .quad-layout, .journal-split, .help-grid, .contact-columns { grid-template-columns: 1fr; }
  .app-feature, .product-layout, .brand-section { grid-template-columns: 1fr; }
  .app-feature .image-slot { order: 0; }
  .app-copy { order: 1; }
  .theme-bar { grid-template-columns: 1fr; gap: 5px; }
  .observation-row { grid-template-columns: 1fr; }
  .observation-row .details { grid-template-columns: 1fr; }
  .memo-board { grid-template-columns: 1fr; }
  .memo-index, .product-aside { position: static; }
  .method-step, .collection-item { grid-template-columns: 1fr; gap: 8px; }
  .footer-nav-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .search-layer { inset: 0; top: 0; padding: 0; background: var(--deep); color: var(--paper); }
  .search-card { width: 100%; min-height: 100%; border: 0; border-radius: 0; background: var(--deep); color: var(--paper); box-shadow: none; padding: 20px 16px 72px; overflow-y: auto; }
  .search-head strong, .search-label { color: var(--paper); }
  .search-head span { color: var(--bean-light); }
  .search-head button { background: var(--paper); }
  #siteSearchInput { background: var(--paper); }
  .search-results { grid-template-columns: 1fr; }
  .search-results a { background: var(--paper); color: var(--deep); }
  .search-empty { color: var(--bean-light); }
  .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(5,1fr); background: var(--paper); border-top: 1px solid var(--border-strong); }
  .mobile-bottom a { display: flex; align-items: center; justify-content: center; min-width: 0; color: var(--muted); font-size: 12px; }
  .mobile-bottom a.active { background: var(--deep); color: var(--paper); }
  .site-footer { padding-bottom: 68px; }
  .slot-app { height: 300px; }
}
@media (max-width: 390px) {
  .brand-mini { max-width: 235px; }
  .footer-nav-grid { grid-template-columns: 1fr; }
}
.mb-16 { margin-bottom: 16px; }
.mb-18 { margin-bottom: 18px; }
.mb-22 { margin-bottom: 22px; }
.mt-14 { margin-top: 14px; }
.memo-index span { display: block; padding: 8px 0; color: var(--muted); }
