:root {
  --bg: #f4efe7;
  --surface: rgba(255, 252, 247, 0.9);
  --surface-strong: #fffaf2;
  --ink: #201916;
  --muted: #64554d;
  --line: rgba(61, 40, 24, 0.14);
  --accent: #c24f2e;
  --accent-dark: #8d341b;
  --accent-soft: #f7d4c5;
  --highlight: #114b45;
  --shadow: 0 18px 60px rgba(43, 23, 13, 0.08);
  --radius: 24px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(194, 79, 46, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(17, 75, 69, 0.14), transparent 22%),
    linear-gradient(180deg, #fff9f1 0%, var(--bg) 48%, #efe4d7 100%);
  font: 16px/1.75 "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(255, 250, 242, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand strong {
  display: block;
  font: 700 1rem/1.1 "Noto Serif SC", "Source Han Serif SC", serif;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, #e38b54 100%);
  color: #fff;
  font-weight: 800;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.main-nav a {
  color: var(--muted);
  font-weight: 600;
}

.nav-shell {
  display: flex;
  align-items: center;
}

.nav-toggle,
.menu-toggle {
  display: none;
}

.page-shell {
  min-height: 70vh;
}

.hero,
.page-hero {
  padding: 72px 0 42px;
}

.hero-grid,
.prose-layout,
.footer-grid,
.strip-grid,
.guide-grid,
.list-grid {
  display: grid;
  gap: 24px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  align-items: start;
}

.hero-home {
  padding-bottom: 28px;
}

.hero-home-stack {
  display: grid;
  gap: 22px;
}

.hero-copy-tight {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.hero-lead {
  max-width: 780px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 800;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 12px;
  font-family: "Noto Serif SC", "Source Han Serif SC", serif;
  line-height: 1.22;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
}

.lead {
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-actions,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #e18a52 100%);
  color: #fff;
  box-shadow: 0 14px 30px rgba(194, 79, 46, 0.22);
}

.button-secondary {
  border: 1px solid rgba(194, 79, 46, 0.28);
  background: rgba(255, 250, 242, 0.84);
  color: var(--accent-dark);
}

.check-list {
  padding-left: 20px;
  color: var(--muted);
}

.purchase-hub,
.process-card,
.rule-card,
.callout-card,
.confirm-card {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.purchase-hub,
.order-meta-grid,
.process-grid,
.purchase-hub-bottom {
  display: grid;
}

.purchase-hub {
  display: grid;
  gap: 24px;
  padding: 28px;
  text-align: center;
  border-color: rgba(194, 79, 46, 0.14);
  background:
    linear-gradient(180deg, rgba(194, 79, 46, 0.07), rgba(255, 251, 245, 0.98) 22%),
    rgba(255, 251, 245, 0.98);
}

.purchase-hub-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.overview-price p,
.process-card p,
.rule-card p,
.callout-card p,
.confirm-card p {
  color: var(--muted);
}

.order-price {
  display: block;
  margin: 8px 0 12px;
  font: 800 clamp(2.2rem, 4vw, 3.2rem)/1 "Noto Serif SC", "Source Han Serif SC", serif;
  color: var(--accent-dark);
}

.order-price-small {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  line-height: 1.1;
}

.purchase-hub-side {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.overview-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.purchase-hub .overview-actions .button {
  min-height: 56px;
  padding: 0 28px;
  font-size: 1.02rem;
}

.order-meta-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.order-fact {
  display: grid;
  gap: 6px;
  min-height: 84px;
  padding: 14px;
  border: 1px solid rgba(61, 40, 24, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.order-fact span {
  color: var(--muted);
  font-size: 0.9rem;
}

.order-fact strong {
  font-size: 1rem;
  line-height: 1.4;
}

.purchase-section-heading {
  display: grid;
  gap: 4px;
  padding-top: 4px;
  border-top: 1px solid rgba(61, 40, 24, 0.08);
}

.process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.purchase-hub-bottom {
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
  padding-top: 4px;
  border-top: 1px solid rgba(61, 40, 24, 0.08);
}

.process-card,
.rule-card,
.callout-card,
.confirm-card {
  padding: 22px;
  text-align: center;
}

.purchase-inline-notes {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.purchase-inline-notes h3 {
  margin-bottom: 12px;
}

.process-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 249, 243, 0.96));
}

.process-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(194, 79, 46, 0.12);
  color: var(--accent-dark);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.process-card h3,
.rule-card h3 {
  margin-top: 16px;
}

.process-card {
  position: relative;
  overflow: hidden;
}

.process-card::before,
.rule-card::before,
.callout-card::before,
.confirm-card::before {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0%, #efb07f 100%);
}

.callout-card-accent,
.confirm-card-accent {
  background: linear-gradient(180deg, rgba(194, 79, 46, 0.08), rgba(255, 251, 245, 0.96));
}

.check-list-compact {
  display: grid;
  gap: 12px;
  padding-left: 18px;
  margin: 0;
  text-align: left;
}

.quick-links {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.quick-links-compact {
  grid-template-columns: 1fr;
}

.quick-link {
  display: block;
  padding: 14px 16px;
  border: 1px solid rgba(61, 40, 24, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--highlight);
  font-weight: 700;
}

.quick-link:hover {
  border-color: rgba(194, 79, 46, 0.24);
  background: rgba(255, 255, 255, 0.92);
}

.section-heading-centered {
  max-width: 760px;
  margin: 0 auto 24px;
  text-align: center;
}

.sr-only-media {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-visual {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: rgba(255, 251, 245, 0.92);
  box-shadow: var(--shadow);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.metric-card,
.mini-card,
.sidebar-card,
.guide-card,
.toc-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.sidebar {
  display: grid;
  gap: 18px;
}

.metric-card strong,
.metric-card a {
  display: block;
  margin-top: 8px;
  font-size: 1.2rem;
  font-weight: 800;
}

.metric-label,
.guide-tag {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.strip,
.content-section {
  padding: 28px 0 56px;
}

.content-section.alt {
  background: rgba(255, 248, 240, 0.6);
  border-top: 1px solid rgba(61, 40, 24, 0.08);
  border-bottom: 1px solid rgba(61, 40, 24, 0.08);
}

.strip-grid,
.guide-grid,
.list-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.prose-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
}

.section-heading {
  margin-bottom: 24px;
}

.text-link,
.sidebar-link,
.prose a {
  color: var(--highlight);
}

.sidebar-link {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.sidebar-link:last-child {
  border-bottom: 0;
}

.prose {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.prose-home {
  padding-top: 8px;
}

.prose p,
.prose li,
.prose blockquote {
  color: #3d322d;
}

.prose h2 {
  margin-top: 36px;
  font-size: 2rem;
}

.prose h3 {
  margin-top: 24px;
  font-size: 1.35rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 24px;
  overflow: hidden;
}

.prose table th,
.prose table td {
  padding: 14px;
  border: 1px solid rgba(61, 40, 24, 0.12);
  vertical-align: top;
}

.prose table th {
  background: rgba(194, 79, 46, 0.09);
  text-align: left;
}

.prose code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(17, 75, 69, 0.08);
}

.prose blockquote {
  margin: 20px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: rgba(194, 79, 46, 0.06);
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.toc-card ul {
  padding-left: 18px;
}

.toc-card li {
  margin: 8px 0;
}

.faq-block {
  margin-top: 40px;
}

.faq-stack {
  display: grid;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 251, 245, 0.92);
  padding: 16px 18px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

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

.faq-item p {
  margin: 12px 0 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--muted);
}

.meta-row {
  color: var(--muted);
}

.cta-card {
  background: linear-gradient(180deg, rgba(194, 79, 46, 0.13), rgba(255, 252, 247, 0.92));
}

.site-footer {
  padding: 48px 0 56px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.site-footer a {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 18px;
}

.footer-links-grid a {
  margin-top: 0;
}

@media (max-width: 980px) {
  .hero-grid,
  .prose-layout,
  .footer-grid,
  .strip-grid,
  .guide-grid,
  .list-grid,
  .hero-home-grid,
  .process-grid,
  .purchase-hub-top,
  .purchase-hub-bottom {
    grid-template-columns: 1fr;
  }

  .header-inner {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 12px;
  }

  .nav-shell {
    position: relative;
    width: auto;
    display: block;
    flex: 0 0 auto;
  }

  .nav-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 92px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(61, 40, 24, 0.1);
    border-radius: 999px;
    background: rgba(255, 252, 247, 0.82);
    color: var(--ink);
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(43, 23, 13, 0.06);
  }

  .menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent-dark);
  }

  .menu-toggle strong {
    margin-left: 2px;
    font-size: 0.92rem;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 30;
    width: min(320px, calc(100vw - 20px));
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(61, 40, 24, 0.1);
    border-radius: 18px;
    background: rgba(255, 252, 247, 0.96);
    box-shadow: 0 16px 36px rgba(43, 23, 13, 0.12);
  }

  .main-nav a {
    display: block;
    padding: 10px 12px;
    border: 1px solid rgba(61, 40, 24, 0.1);
    border-radius: 14px;
    background: rgba(255, 252, 247, 0.74);
    text-align: center;
  }

  .nav-toggle:checked + .menu-toggle + .main-nav {
    display: grid;
  }

  h1 {
    font-size: clamp(2.2rem, 8vw, 3.6rem);
  }

  .lead {
    font-size: 1rem;
  }

  .purchase-hub {
    padding: 22px;
    gap: 18px;
  }

  .purchase-hub .overview-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .purchase-hub .overview-actions .button {
    width: 100%;
  }

  .order-meta-grid,
  .process-grid,
  .footer-links-grid {
    grid-template-columns: 1fr;
  }

  .prose {
    padding: 24px;
  }

  .prose table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .meta-row {
    flex-direction: column;
    gap: 6px;
  }

  .sidebar {
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .hero,
  .page-hero {
    padding-top: 48px;
    padding-bottom: 28px;
  }

  .container {
    width: min(calc(100% - 20px), var(--container));
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .brand small {
    font-size: 0.76rem;
  }

  .menu-toggle {
    min-width: 84px;
    min-height: 42px;
    padding: 0 12px;
  }

  .menu-toggle strong {
    font-size: 0.88rem;
  }

  .hero-home-stack {
    gap: 16px;
  }

  .purchase-hub {
    padding: 18px;
    border-radius: 20px;
  }

  .prose,
  .metric-card,
  .mini-card,
  .sidebar-card,
  .guide-card,
  .toc-card {
    padding: 18px;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .process-card,
  .confirm-card,
  .sidebar-card,
  .toc-card {
    padding: 18px;
  }

  .process-step {
    min-width: 46px;
    height: 30px;
    padding: 0 10px;
    font-size: 0.85rem;
  }

  .purchase-inline-notes {
    text-align: left;
  }

  .check-list-compact {
    padding-left: 16px;
    gap: 10px;
  }

  .breadcrumbs {
    gap: 6px;
    font-size: 0.9rem;
  }

  .site-footer {
    padding: 40px 0 44px;
  }
}
