:root {
  --bg: #f4f6f3;
  --surface: #ffffff;
  --surface-2: #eef1ec;
  --text: #1a2420;
  --text-body: #243028;
  --text-muted: #3d4a43;
  --accent: #1f5c4a;
  --accent-deep: #143d32;
  --accent-ink: #ffffff;
  --on-accent: #ffffff;
  --border: #d5ddd6;
  --ring: #2a7a62;
  --ok: #1f5c4a;
  --warn: #8a5a12;
  --danger: #8b2e2e;
  --info: #2a5570;
  --cta-bg: #143d32;
  --cta-bg-hover: #0e2c24;
  --font-sans: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "SimSun", "STSong", serif;
  --fs-h1: 34px;
  --fs-h2: 24px;
  --fs-h3: 18px;
  --fs-body: 17px;
  --fs-small: 13px;
  --lh-body: 1.7;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-1: 0 1px 0 rgba(26, 36, 32, 0.06);
  --container: 760px;
  --container-wide: 1120px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --dur: 180ms;
  --cta-loop: 2.7s;
  --cta-h: 60px;
  --space-cta: calc(var(--cta-h) + 40px + env(safe-area-inset-bottom, 0px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: 0;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: var(--space-cta);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-body);
  background: var(--bg);
  overflow-wrap: anywhere;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-deep);
}

a:focus-visible,
button:focus-visible,
.site-cta:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  z-index: 100;
}

.skip-link:focus {
  left: var(--space-3);
  top: var(--space-3);
}

.wrap {
  width: min(100% - 32px, var(--container-wide));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 64px;
  padding-block: var(--space-2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--text);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  color: var(--text);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  min-height: 44px;
  padding: 0 var(--space-4);
  cursor: pointer;
  font-size: 14px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
}

.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 15px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-nav a:hover {
  color: var(--accent);
}

.page {
  padding-block: var(--space-7) var(--space-6);
}

.masthead {
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-6);
}

.masthead .eyebrow {
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--space-3);
  font-family: var(--font-sans);
}

.masthead h1,
.prose h1 {
  font-family: var(--font-serif);
  font-size: var(--fs-h1);
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 var(--space-4);
}

.prose h2 {
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  line-height: 1.25;
  margin: var(--space-6) 0 var(--space-3);
  color: var(--text);
}

.prose h3 {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  margin: var(--space-5) 0 var(--space-2);
  color: var(--text);
}

.prose p,
.prose li {
  color: var(--text-muted);
}

.prose p {
  margin: 0 0 var(--space-4);
}

.prose ul {
  margin: 0 0 var(--space-4);
  padding-left: 1.2em;
}

.lead {
  font-size: 19px;
  color: var(--text-body) !important;
  max-width: 42em;
}

.catalog {
  list-style: none;
  margin: 0 0 var(--space-6);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}

.catalog a {
  display: block;
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}

.catalog strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--text);
  margin-bottom: var(--space-2);
}

.catalog span {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.catalog a:hover strong {
  color: var(--accent);
}

.region-board {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: var(--space-2);
}

.region-board a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.region-board a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.entry-rail {
  list-style: none;
  margin: 0 0 var(--space-6);
  padding: 0;
}

.entry-rail li {
  border-top: 1px solid var(--border);
}

.entry-rail a {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  text-decoration: none;
  color: var(--text);
}

.entry-rail a:hover {
  color: var(--accent);
}

.entry-rail .mark {
  color: var(--accent);
  font-weight: 700;
  margin-right: var(--space-2);
}

.entry-rail .meta {
  color: var(--text-muted);
  font-size: var(--fs-small);
  flex-shrink: 0;
}

.fact-list {
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
}

.fact-list li {
  padding: var(--space-4) 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

.fact-list li:last-child {
  border-bottom: 1px solid var(--border);
}

.fact-list strong {
  color: var(--text);
  font-family: var(--font-serif);
}

.table-wrap {
  overflow-x: auto;
  margin-bottom: var(--space-5);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.compare-table th,
.compare-table td {
  border: 1px solid var(--border);
  padding: var(--space-3) var(--space-4);
  text-align: left;
  vertical-align: top;
}

.compare-table th {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}

.compare-table td {
  background: var(--surface);
  color: var(--text-muted);
}

.related-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.related-grid a {
  display: block;
  padding: var(--space-4) 0;
  border-top: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-muted);
}

.related-grid strong {
  display: block;
  color: var(--text);
  font-family: var(--font-serif);
  margin-bottom: var(--space-1);
}

.faq details {
  border-top: 1px solid var(--border);
}

.faq details:last-child {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  cursor: pointer;
  padding: var(--space-4) 0;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  min-height: 48px;
  font-family: var(--font-serif);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq .faq-body {
  padding: 0 0 var(--space-4);
  color: var(--text-muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-6) 0 var(--space-5);
  background: var(--surface);
  text-align: left;
  font-size: var(--fs-small);
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-brand a {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.footer-brand a:hover {
  color: var(--accent);
}

.footer-links {
  margin: var(--space-3) 0;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin-right: var(--space-4);
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* CTA：木纹轻压 + 雾气洇开 */
.site-cta {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(520px, 38vw);
  min-width: 400px;
  min-height: 56px;
  padding: 14px 28px;
  background: var(--cta-bg);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 16px;
  font-weight: 700;
  border: 2px solid #0a221c;
  box-shadow: var(--shadow-1);
  overflow: hidden;
  isolation: isolate;
}

.site-cta:hover,
.site-cta:focus-visible {
  background: var(--cta-bg-hover);
  color: #fff !important;
}

.site-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(47, 110, 90, 0.28);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  animation: mist-bloom var(--cta-loop) var(--ease) infinite;
}

.site-cta::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 9px;
  height: 2px;
  background: rgba(255, 255, 255, 0.88);
  transform: translateX(0);
  transform-origin: center;
  pointer-events: none;
  z-index: 1;
  animation: wood-press var(--cta-loop) var(--ease) infinite;
}

@keyframes wood-press {
  0%,
  18% {
    transform: translateX(-10px);
    opacity: 0.25;
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
  42% {
    transform: translateX(0);
    opacity: 1;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.45);
  }
  68%,
  100% {
    transform: translateX(6px);
    opacity: 0.6;
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.2);
  }
}

@keyframes mist-bloom {
  0%,
  22% {
    opacity: 0;
  }
  48% {
    opacity: 1;
  }
  78%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-cta::before,
  .site-cta::after {
    animation: none;
  }

  .site-cta::before {
    opacity: 0.16;
  }

  .site-cta::after {
    animation: none;
    transform: none;
    opacity: 0.7;
    box-shadow: none;
  }
}

@media (max-width: 900px) {
  .site-cta {
    width: auto;
    min-width: 0;
    left: 16px;
    right: 16px;
    transform: none;
  }

  .catalog,
  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: var(--space-3);
  }

  .site-nav.is-open {
    display: flex;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .masthead h1,
  .prose h1 {
    font-size: 28px;
  }

  .prose h2 {
    font-size: 22px;
  }

  .site-cta {
    font-size: 15px;
    min-height: 52px;
    padding: 12px 16px;
  }
}
