:root {
  --ink: #17201b;
  --muted: #66736b;
  --line: #dbe4dc;
  --paper: #f7f8f3;
  --panel: #ffffff;
  --amber: #d97706;
  --amber-dark: #92400e;
  --teal: #0f766e;
  --leaf: #e6f1e7;
  --shadow: 0 18px 50px rgba(23, 32, 27, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 118, 110, 0.05) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
  font-family:
    "Noto Serif SC",
    "Source Han Serif SC",
    "Songti SC",
    "Microsoft YaHei",
    serif;
  line-height: 1.75;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--teal);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 20;
  padding: 10px 14px;
  color: #fff;
  background: var(--teal);
  border-radius: 6px;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(219, 228, 220, 0.92);
  background: rgba(247, 248, 243, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner,
.hero,
.toc,
.chapter,
.notice,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border: 2px solid var(--amber);
  border-radius: 8px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.top-nav,
.footer-links,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.top-nav a,
.footer-links a,
.primary-action,
.secondary-action,
.nav-cta {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
}

.top-nav a {
  color: var(--ink);
  font-size: 14px;
}

.top-nav a:hover,
.footer-links a:hover {
  background: var(--leaf);
}

.top-nav .nav-cta,
.primary-action {
  color: #fff;
  background: var(--ink);
}

.secondary-action {
  color: var(--ink);
  border: 1px solid var(--line);
  background: #fff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.64fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  min-height: calc(100vh - 92px);
  padding: 56px 0 34px;
}

.hero-copy {
  padding: clamp(10px, 2vw, 24px) 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--amber-dark);
  font-family:
    "Noto Sans SC",
    "Microsoft YaHei",
    sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(38px, 6vw, 72px);
}

h2 {
  font-size: clamp(28px, 3.8vw, 46px);
}

h3 {
  font-size: clamp(22px, 2.5vw, 30px);
}

.lead {
  max-width: 680px;
  margin: 22px 0 26px;
  color: var(--muted);
  font-size: 18px;
}

.phone-shot {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.phone-shot img {
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  border-radius: 6px;
  background: #111;
}

.phone-shot figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.hero-shot {
  transform: rotate(1deg);
}

.notice {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid #f0c36a;
  border-radius: 8px;
  background: #fff8e6;
}

.notice p {
  margin: 0;
  color: #6f4a13;
}

.toc,
.chapter {
  margin-top: 28px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.toc {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
}

.toc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.toc-grid a {
  padding: 12px 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
}

.toc-grid a:hover {
  border-color: var(--teal);
  background: var(--leaf);
}

.chapter-head {
  max-width: 760px;
  margin-bottom: 24px;
}

.chapter-head p:last-child {
  color: var(--muted);
  font-size: 17px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.steps article,
.faq details {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.steps span {
  color: var(--amber);
  font-weight: 900;
}

.steps h3 {
  margin-top: 6px;
  font-size: 20px;
}

.steps p,
.feature-copy p,
.feature-copy li,
.check-list li,
.faq p {
  color: var(--muted);
}

.feature-block,
.media-split {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(300px, 1fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: start;
  margin-top: 36px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.feature-block:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.reverse {
  direction: rtl;
}

.reverse > * {
  direction: ltr;
}

.feature-copy {
  position: sticky;
  top: 94px;
}

.feature-copy p {
  margin: 14px 0;
}

.feature-copy ol,
.check-list {
  margin: 16px 0 0;
  padding-left: 22px;
}

.warning-text {
  padding: 12px 14px;
  border-left: 4px solid var(--amber);
  background: #fff8e6;
}

.shot-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wide-shot {
  width: min(100%, 520px);
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  padding: 0;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 800;
}

.faq p {
  margin: 0;
  padding: 0 18px 18px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding: 30px 0 42px;
  color: var(--muted);
}

.site-footer p {
  margin: 4px 0 0;
}

@media (max-width: 980px) {
  .header-inner,
  .hero,
  .toc,
  .feature-block,
  .media-split,
  .notice {
    grid-template-columns: 1fr;
  }

  .header-inner {
    align-items: flex-start;
  }

  .top-nav {
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .feature-copy {
    position: static;
  }

  .steps,
  .toc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .header-inner,
  .site-footer {
    display: block;
  }

  .top-nav,
  .footer-links,
  .hero-actions {
    margin-top: 14px;
  }

  .top-nav a {
    flex: 1 1 auto;
    text-align: center;
  }

  h1 {
    font-size: 36px;
  }

  .steps,
  .toc-grid,
  .shot-pair {
    grid-template-columns: 1fr;
  }

  .chapter,
  .toc {
    padding: 20px;
  }
}
