:root {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #203c2d; background: #f4f6ef; font-synthesis: none;
  --green: #16764c; --green-dark: #175438; --paper: #fffefb; --line: #dce4d7; --muted: #708071;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; scrollbar-gutter: stable; }
body { margin: 0; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
button:disabled { opacity: .35; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #be7e24; outline-offset: 3px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 40; background: #fff; padding: 12px; }
.skip-link:focus { top: 8px; }
.site-header { min-height: 68px; padding: 12px 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.brand img { object-fit: contain; flex: none; }
.brand strong { font-size: 17px; font-weight: 650; letter-spacing: .4px; }
.header-actions { display: flex; gap: 8px; flex: none; }
.quiet-button { border: 1px solid var(--line); border-radius: 9px; background: transparent; min-height: 44px; min-width: 48px; padding: 8px 13px; font-size: 13px; }
.quiet-button:hover { background: #edf3e8; }
.reader-layout { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding: 28px 30px calc(110px + env(safe-area-inset-bottom)); align-items: start; }
.sidebar { position: sticky; top: 28px; padding: 14px 10px 20px 0; }
.eyebrow { margin: 0 12px 18px; font-size: 12px; color: var(--muted); letter-spacing: 2px; }
.nav-list { display: flex; flex-direction: column; gap: 6px; }
.nav-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; border: 0; background: transparent; padding: 12px; width: 100%; border-radius: 8px; text-align: left; font-size: 14px; }
.nav-item span:last-child { color: var(--muted); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nav-item:hover { background: #eaf0e4; }
.nav-item[aria-current="page"] { color: var(--green-dark); background: #e2ecdc; font-weight: 600; }
.sidebar-note { color: var(--muted); font-size: 11px; margin: 32px 12px; }
.reader-stage { min-width: 0; }
.reader-topline { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.reader-topline h1 { font-size: 22px; margin: 0; letter-spacing: 1px; font-weight: 650; }
#section-subtitle { color: var(--muted); font-size: 12px; text-align: right; }
.book-area { min-width: 0; overflow: clip; touch-action: pan-y pinch-zoom; outline: none; }
.page-images, .page-sheets, .catalog-page { min-width: 0; width: 100%; }
.page-dragging, .page-is-turning .page-images { will-change: transform, opacity; }
.catalog-products { display: flex; flex-direction: column; gap: 16px; }
.series-banner { width: 100%; height: clamp(140px, 20vw, 220px); border-radius: 8px; overflow: hidden; position: relative; background: #126d3c; }
.series-banner img { display: block; width: 100%; height: 100%; object-fit: contain; }
.series-intro { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 18px 20px 0; }
.series-intro .image-frame { width: 100%; max-width: 780px; margin: auto; }
.series-intro img { width: 100%; height: auto; max-height: 540px; display: block; object-fit: contain; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.product-card { min-width: 0; padding: 10px 10px 0; border: 1px solid var(--line); background: #fff; border-radius: 8px; display: flex; flex-direction: column; }
.product-card .image-frame { position: relative; aspect-ratio: 3 / 4; display: grid; place-items: center; width: 100%; }
.product-card.is-wide { grid-column: 1 / -1; justify-self: center; width: min(100%, 660px); }
.product-card.is-wide .image-frame { aspect-ratio: 1.85; }
.product-card img { width: 100%; height: 100%; object-fit: contain; display: block; min-height: 0; }
.image-frame { position: relative; }
.image-frame.is-error img { opacity: .15; }
.image-retry { position: absolute; left: 8px; right: 8px; top: 50%; transform: translateY(-50%); min-height: 48px; border: 1px solid var(--line); background: #f5f8f1; color: var(--green-dark); border-radius: 7px; padding: 8px; font-size: 12px; z-index: 1; }
.card-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-height: 44px; margin-top: 4px; }
.product-tag { color: var(--muted); font-size: 11px; margin-right: auto; }
.page-zoom-button { border: 0; background: transparent; min-width: 56px; min-height: 44px; padding: 9px 6px; color: var(--green-dark); font-size: 12px; border-radius: 6px; }
.page-zoom-button:hover { background: #eef4e8; }
.page-zoom-button::before { content: '⊕'; font-size: 16px; margin-right: 5px; vertical-align: -1px; }
.is-cover .reader-topline { display: none; }
.catalog-cover { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(240px, .8fr); gap: 28px; align-items: center; }
.cover-story { position: relative; overflow: hidden; background: #fffefb; border: 1px solid #d7e2cf; border-radius: 8px 24px 24px 8px; display: flex; flex-direction: column; min-height: 620px; box-shadow: inset 5px 0 #16764c, 0 12px 30px #234e3010; user-select: none; -webkit-user-select: none; }
.cover-heading { position: relative; isolation: isolate; padding: 38px 32px 28px; }
.cover-heading::after { content: ''; position: absolute; z-index: -1; pointer-events: none; top: 0; right: -8px; width: min(44%, 225px); aspect-ratio: 240 / 260; background: url('assets/cover/seedling.svg') right top / contain no-repeat; }
.cover-brand-mark { display: block; object-fit: contain; margin-bottom: 12px; mix-blend-mode: multiply; }
.cover-kicker { margin-bottom: 0; font-size: 10px; color: var(--green); letter-spacing: 2.8px; }
.cover-subtitle { margin: 14px 0 0; color: #77866f; font-size: 13px; letter-spacing: 3px; }
.cover-visual { margin: auto 0; padding: 0 0 0 5px; }
.cover-visual img { display: block; width: 100%; height: auto; object-fit: contain; }
.cover-signature { padding: 30px 32px 24px; }
.cover-signature strong { font-size: 14px; font-weight: 500; letter-spacing: 1px; }
.cover-signature p { margin: 9px 0 0; font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.cover-open-button { display: flex; align-items: center; justify-content: center; gap: 17px; margin: 0 24px 26px 28px; padding: 16px 10px; min-height: 80px; border: 1px solid #d9e5d0; border-radius: 12px; background: #f0f5e9; color: var(--green-dark); text-align: left; touch-action: pan-y pinch-zoom; }
.cover-open-button:hover { background: #e6efdc; }
.cover-open-label { display: grid; gap: 6px; }
.cover-open-label strong { font-size: 14px; font-weight: 600; }
.cover-open-label small { color: #75836e; font-size: 11px; }
.cover-swipe-track { flex: none; position: relative; width: 68px; height: 36px; }
.swipe-trail { position: absolute; left: 4px; right: 10px; top: 17px; height: 2px; border-radius: 2px; background: #c6d9b8; }
.swipe-finger { position: absolute; top: 6px; right: 0; width: 24px; height: 24px; border: 1px solid #16764c55; background: #e6efdc; border-radius: 50%; animation: cover-swipe 2.4s cubic-bezier(.3,.1,.25,1) .5s 3; }
.swipe-finger::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: #287c4f; }
.swipe-arrow { position: absolute; left: 0; top: 1px; font-size: 28px; line-height: 32px; letter-spacing: -4px; color: #5f8c4f; }
@keyframes cover-swipe { 0%, 12% { transform: translateX(0); opacity: .7; } 56%, 70% { transform: translateX(-31px); opacity: 1; } 84% { transform: translateX(-31px); opacity: 0; } 85% { transform: translateX(0); opacity: 0; } 100% { transform: translateX(0); opacity: .7; } }
.cover-directory-heading { display: flex; justify-content: space-between; align-items: center; margin: 0 2px 14px; }
.cover-directory-heading h2 { font-size: 17px; font-weight: 600; margin: 0; }
.cover-directory-heading > span { font-size: 11px; color: var(--muted); }
.category-list { display: grid; gap: 10px; }
.category-tile { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 17px 20px; min-height: 76px; text-align: left; border: 1px solid var(--line); border-radius: 9px; background: #fffefb; }
.category-tile:hover { background: #eaf2e3; }
.category-tile strong { display: block; font-size: 18px; font-weight: 600; }
.category-tile small { display: block; color: var(--muted); margin-top: 5px; font-size: 11px; }
.category-tile > span:last-child { color: var(--green); font-size: 23px; }
.contact-card { padding: clamp(20px, 4vw, 40px); background: #fffefb; border: 1px solid var(--line); border-radius: 12px; max-width: 760px; margin: auto; }
.contact-card h2 { font-size: 23px; line-height: 1.6; margin: 0 0 24px; }
.contact-label { margin: 24px 0 8px; color: var(--muted); font-size: 12px; }
.contact-phone { display: block; color: var(--green-dark); text-decoration-thickness: 1px; text-underline-offset: 5px; font-size: clamp(20px, 4vw, 27px); width: fit-content; padding: 8px 0; }
.contact-card p { line-height: 1.8; }
.contact-address { margin: 0; font-size: 17px; font-style: normal; line-height: 1.85; color: #203c2d; user-select: text; overflow-wrap: anywhere; }
.contact-address span { display: block; }
.reading-footer { position: fixed; bottom: 0; left: 0; right: 0; padding: 10px 20px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fffefbf5; z-index: 5; }
.page-navigation { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 620px; margin: auto; }
.arrow-button { border: 1px solid var(--line); border-radius: 9px; background: #f2f6ec; min-height: 46px; min-width: 104px; padding: 8px 14px; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.arrow-button > span { font-size: 22px; line-height: 1; }
.page-status { display: flex; flex-direction: column; align-items: center; gap: 3px; }
#page-progress { font-variant-numeric: tabular-nums; font-size: 16px; font-weight: 600; color: var(--green-dark); }
.swipe-hint { color: var(--muted); font-size: 10px; white-space: nowrap; }
dialog { background: var(--paper); color: #203c2d; border: 1px solid var(--line); border-radius: 14px; padding: 22px; width: 400px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); box-shadow: 0 18px 70px #12362630; }
dialog::backdrop { background: #10291dcc; }
html:has(dialog[open]) { overflow: hidden; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.dialog-heading h2 { font-size: 18px; font-weight: 600; margin: 0; }
.close-button { border: 0; background: transparent; min-width: 44px; min-height: 44px; font-size: 26px; border-radius: 8px; }
.zoom-dialog { width: 94vw; height: 92dvh; max-width: 1200px; padding: 0; overflow: hidden; }
.zoom-dialog[open] { display: flex; flex-direction: column; }
.zoom-header { margin: 0; padding: 6px 12px 6px 20px; border-bottom: 1px solid var(--line); flex: none; }
.zoom-controls { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px; flex: none; }
.zoom-controls button { border: 0; min-height: 44px; min-width: 44px; border-radius: 8px; background: #e8efdf; padding: 8px 12px; font-size: 13px; }
.zoom-controls output { min-width: 44px; text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; }
.zoom-scroll { position: relative; flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; background: #e9ede4; padding: 16px; touch-action: pan-x pan-y pinch-zoom; cursor: grab; }
.zoom-scroll.is-panning { cursor: grabbing; }
.zoom-scroll img { display: block; max-width: none; height: auto; margin: auto; user-select: none; -webkit-user-drag: none; }
.zoom-hint { flex: none; text-align: center; font-size: 11px; color: var(--muted); margin: 10px; }
.share-dialog label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 10px; }
.share-dialog input { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.primary-button { background: var(--green); color: white; border: 0; padding: 12px 20px; border-radius: 8px; margin-top: 16px; min-height: 44px; }
.toast { position: fixed; bottom: calc(90px + env(safe-area-inset-bottom)); left: 50%; transform: translate(-50%, 10px); opacity: 0; pointer-events: none; z-index: 30; background: #244a33; color: white; padding: 12px 18px; border-radius: 8px; max-width: calc(100vw - 24px); font-size: 13px; text-align: center; transition: opacity .16s, transform .16s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 1280px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 768px) {
  .series-banner { display: none; }
  .cover-visual img { max-height: 280px; }
}
@media (max-width: 960px) {
  .sidebar { display: none; }
  .reader-layout { grid-template-columns: minmax(0, 1fr); max-width: 900px; padding: 20px 24px calc(108px + env(safe-area-inset-bottom)); }
}
@media (max-width: 767px) {
  html { scrollbar-gutter: auto; }
  .site-header { min-height: 62px; padding: 8px 12px; gap: 8px; }
  .brand { gap: 7px; }
  .brand img { width: 29px; height: 32px; }
  .brand strong { font-size: 14px; letter-spacing: 0; }
  .header-actions { gap: 4px; }
  .quiet-button { min-width: 44px; padding: 8px 7px; font-size: 12px; }
  .reader-layout { padding: 15px 14px calc(100px + env(safe-area-inset-bottom)); }
  .reader-topline { margin-bottom: 12px; gap: 8px; }
  .reader-topline h1 { font-size: 18px; }
  #section-subtitle { font-size: 11px; max-width: 55%; }
  .catalog-products { gap: 12px; }
  .series-banner { height: auto; border-radius: 7px; }
  .series-banner img { height: auto; }
  .series-intro { padding: 12px 12px 0; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-card { padding: 7px 7px 0; border-radius: 7px; }
  .product-card:last-child:nth-child(odd):not(.is-wide) { grid-column: 1 / -1; width: calc((100% - 12px) / 2); justify-self: center; }
  .card-actions { gap: 3px; margin-top: 2px; }
  .page-zoom-button { font-size: 11px; min-width: 50px; }
  .catalog-cover { grid-template-columns: 1fr; gap: 28px; }
  .cover-story { min-height: clamp(390px, calc(100svh - 178px), 702px); border-radius: 6px 20px 20px 6px; }
  .cover-heading { padding: clamp(24px, 4svh, 38px) 24px 24px; }
  .cover-kicker { font-size: 9px; letter-spacing: 2.1px; }
  .cover-subtitle { margin-top: 12px; font-size: 12px; letter-spacing: 2px; }
  .cover-signature { padding: 24px 24px 20px; }
  .cover-signature strong { font-size: 13px; letter-spacing: .5px; }
  .cover-signature p { font-size: 10px; letter-spacing: .5px; }
  .cover-open-button { margin: 0 18px 22px 22px; min-height: 76px; gap: 13px; padding: 12px 8px; }
  .cover-open-label strong { font-size: 13px; }
  .cover-open-label small { font-size: 10px; }
  .category-list { gap: 8px; }
  .category-tile { min-height: 68px; padding: 12px 17px; }
  .category-tile strong { font-size: 17px; }
  .reading-footer { padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
  .arrow-button { min-width: 88px; min-height: 46px; padding: 8px 10px; font-size: 12px; gap: 6px; }
  .page-navigation { gap: 8px; }
  .swipe-hint { font-size: 9px; }
  .zoom-dialog { width: calc(100vw - 16px); max-width: calc(100vw - 16px); height: 94dvh; }
  .zoom-header h2 { font-size: 15px; }
  .zoom-controls { gap: 8px; }
  .zoom-scroll { padding: 10px; }
}
@media (max-width: 359px) {
  .brand strong { font-size: 12px; }
  .brand img { width: 24px; }
  .brand { gap: 4px; }
  .site-header { padding-left: 10px; padding-right: 10px; }
  .reader-layout { padding-left: 12px; padding-right: 12px; }
  .arrow-button { min-width: 80px; padding: 7px; }
  .swipe-hint { font-size: 8px; }
  .cover-heading { padding-left: 20px; padding-right: 16px; }
  .cover-signature { padding-left: 20px; padding-right: 16px; }
  .cover-open-button { margin-left: 16px; margin-right: 12px; gap: 9px; }
  .cover-swipe-track { width: 52px; }
  .cover-open-label strong { font-size: 12px; }
}
@media (max-width: 767px) and (max-height: 700px) {
  .cover-heading { padding-top: 22px; padding-bottom: 18px; }
  .cover-brand-mark { width: 42px; height: 42px; margin-bottom: 10px; }
  .cover-subtitle { margin-top: 8px; }
  .cover-signature { padding-top: 18px; padding-bottom: 16px; }
  .cover-open-button { margin-bottom: 16px; min-height: 66px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
