:root {
  --ivory: #fbf8f3;
  --surface: #ffffff;
  --surface-warm: #f3ede4;
  --ink: #23262d;
  --muted: #61707f;
  --line: #e5ded4;
  --amber: #c77b25;
  --amber-dark: #975515;
  --slate: #647b8e;
  --shadow: 0 18px 48px rgba(52, 43, 33, 0.1);
  --radius: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--ivory);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.75;
}

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

a {
  color: inherit;
}

.site-header {
  background: rgba(251, 248, 243, 0.97);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner,
.hero-inner,
.section-inner,
.site-footer-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.brand-name {
  font-size: 17px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 160ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--amber-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 8px;
  padding: 8px 11px;
  font: inherit;
  cursor: pointer;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button-primary {
  background: var(--amber);
  color: #fffaf2;
  box-shadow: 0 8px 18px rgba(199, 123, 37, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--amber-dark);
}

.button-secondary {
  background: var(--surface);
  color: var(--slate);
  border-color: #cfd7dc;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--slate);
}

.hero {
  padding: 58px 0 54px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 56px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--amber-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: 0;
}

h1 {
  max-width: 470px;
  font-size: clamp(32px, 3.5vw, 48px);
  letter-spacing: -0.02em;
}

.hero-copy > p {
  max-width: 560px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 26px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
}

.hero-meta li {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffdf9;
  color: var(--slate);
  font-size: 12px;
}

.hero-media {
  position: relative;
  min-height: 350px;
  display: grid;
  align-items: center;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 18px 0 18px 48px;
  border: 1px solid #dccbb9;
  border-radius: 16px;
  transform: rotate(2deg);
}

.hero-frame {
  position: relative;
  z-index: 1;
  width: min(100%, 400px);
  margin-left: auto;
  padding: 13px;
  background: #1e252c;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.hero-frame img {
  width: 100%;
  height: auto;
  border-radius: 7px;
  object-fit: cover;
}

.hero-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 2px 0;
  color: #e8edf0;
  font-size: 11px;
}

.hero-index {
  position: absolute;
  right: 0;
  bottom: 14px;
  z-index: 2;
  display: grid;
  gap: 7px;
  color: var(--slate);
  font-size: 11px;
  text-align: right;
}

.hero-index span {
  display: inline-flex;
  min-width: 46px;
  justify-content: flex-end;
  border-bottom: 1px solid #cfd7dc;
  padding-bottom: 4px;
}

.section {
  padding: 76px 0;
}

.section-warm {
  background: var(--surface-warm);
  border-top: 1px solid #e9dfd2;
  border-bottom: 1px solid #e9dfd2;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(25px, 3vw, 34px);
}

.section-kicker {
  color: var(--amber-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.875fr 0.875fr;
  gap: 16px;
  align-items: stretch;
}

.gallery-card {
  display: flex;
  min-height: 188px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 9px 24px rgba(52, 43, 33, 0.06);
}

.gallery-card img {
  width: 100%;
  max-width: 400px;
  height: 180px;
  margin: 0 auto;
  object-fit: cover;
}

.gallery-card figcaption {
  padding: 12px 14px 14px;
  color: var(--muted);
  font-size: 13px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  min-height: 184px;
  padding: 22px;
  border-top: 3px solid var(--amber);
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(52, 43, 33, 0.06);
}

.feature-card:nth-child(2) {
  border-top-color: var(--slate);
}

.feature-card:nth-child(3) {
  border-top-color: #9a9d72;
}

.feature-card h3 {
  font-size: 19px;
}

.feature-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.feature-number {
  margin-bottom: 17px;
  color: var(--amber-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding: 22px 20px 22px 56px;
  border: 1px solid var(--line);
  background: #fffdf9;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 20px;
  top: 20px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #e7eee8;
  color: #50705a;
  font-weight: 800;
}

.checklist strong {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
}

.checklist span {
  color: var(--muted);
  font-size: 13px;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.scenario-card {
  margin: 0;
  padding: 20px 22px;
  border-left: 3px solid var(--slate);
  background: var(--surface);
  color: var(--muted);
}

.scenario-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 14px;
}

.faq-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 36px;
}

.faq-preview a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
}

.faq-preview a::after {
  content: "→";
  color: var(--amber-dark);
}

.deep-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.deep-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
}

.deep-link strong {
  display: block;
  margin-bottom: 3px;
  font-size: 16px;
}

.deep-link span {
  color: var(--muted);
  font-size: 13px;
}

.deep-link::after {
  content: "↗";
  color: var(--amber-dark);
  font-size: 20px;
}

.download-band {
  padding: 54px 0;
  background: #27323b;
  color: #f9f6ef;
}

.download-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.download-band h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.download-band p {
  margin: 9px 0 0;
  color: #c8d1d4;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  flex-shrink: 0;
  gap: 10px;
}

.download-band .button-secondary {
  border-color: #8fa0a7;
  background: transparent;
  color: #f9f6ef;
}

.site-footer {
  padding: 28px 0 34px;
  background: #202930;
  color: #dbe3e4;
}

.site-footer-inner {
  display: grid;
  gap: 10px;
  text-align: center;
}

.disclaimer,
.copyright {
  margin: 0;
  font-size: 12px;
}

.copyright {
  color: #9eafb4;
}

.page-hero {
  padding: 62px 0 48px;
  background: var(--surface-warm);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 780px;
  font-size: clamp(32px, 4vw, 48px);
}

.page-hero p {
  max-width: 760px;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: 48px;
}

.article h2 {
  margin-top: 40px;
  font-size: 27px;
}

.article h2:first-child {
  margin-top: 0;
}

.article h3 {
  margin-top: 26px;
  font-size: 19px;
}

.article p,
.article li {
  color: var(--muted);
  font-size: 15px;
}

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

.article li + li {
  margin-top: 8px;
}

.side-note {
  position: sticky;
  top: 104px;
  padding: 20px;
  border: 1px solid var(--line);
  background: #fffdf9;
}

.side-note strong {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
}

.side-note p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  background: var(--surface);
}

.faq-list summary {
  cursor: pointer;
  padding: 17px 20px;
  color: var(--ink);
  font-weight: 700;
}

.faq-list details p {
  margin: 0;
  padding: 0 20px 19px;
}

.article-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

@media (max-width: 900px) {
  .hero-inner {
    gap: 34px;
  }

  .feature-grid,
  .checklist,
  .scenario-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .side-note {
    position: static;
  }
}

@media (max-width: 720px) {
  .header-inner,
  .hero-inner,
  .section-inner,
  .site-footer-inner {
    width: min(100% - 32px, 560px);
  }

  .header-inner {
    min-height: 66px;
    gap: 12px;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 65px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

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

  .nav a {
    padding: 10px 12px;
  }

  .header-actions {
    display: none;
  }

  .hero {
    padding: 40px 0 38px;
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
  }

  h1 {
    font-size: 35px;
  }

  .hero-copy > p {
    font-size: 16px;
  }

  .hero-media {
    min-height: 0;
    padding-right: 8px;
  }

  .hero-media::before {
    left: 18px;
    inset-block: 12px;
  }

  .hero-frame {
    margin-left: 0;
  }

  .hero-index {
    right: -1px;
    bottom: 7px;
  }

  .section {
    padding: 54px 0;
  }

  .section-heading {
    display: block;
    margin-bottom: 20px;
  }

  .section-kicker {
    display: block;
    margin-bottom: 8px;
  }

  .gallery-grid,
  .feature-grid,
  .checklist,
  .scenario-grid,
  .faq-preview,
  .deep-links {
    grid-template-columns: 1fr;
  }

  .gallery-card img {
    height: auto;
  }

  .download-inner {
    display: block;
  }

  .download-actions {
    margin-top: 22px;
  }

  .page-hero {
    padding: 44px 0 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
