:root {
  --ink: #17201f;
  --muted: #56615f;
  --paper: #f7f9f7;
  --surface: #ffffff;
  --line: #d9e0dd;
  --primary: #087f70;
  --primary-dark: #056257;
  --signal: #b9dc4b;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, Helvetica, sans-serif;
  line-height: 1.7;
}

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

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

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

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

.header-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
}

.brand img,
.footer-brand img {
  border-radius: 8px;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}

.site-nav a {
  padding: 22px 0 18px;
  border-bottom: 3px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--primary-dark);
  border-color: var(--primary);
}

.header-download,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  font-weight: 700;
  line-height: 1.2;
}

.header-download,
.button.primary {
  color: #ffffff;
  background: var(--primary);
}

.header-download:hover,
.button.primary:hover {
  background: var(--primary-dark);
}

.button.secondary {
  color: var(--primary-dark);
  background: transparent;
}

.button.secondary:hover {
  background: #e9f4f1;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--surface);
  font-size: 22px;
}

.hero {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.hero-inner {
  min-height: 590px;
  padding: 48px 0 42px;
  display: grid;
  grid-template-areas: "copy media";
  grid-template-columns: minmax(0, 0.94fr) minmax(440px, 1.06fr);
  align-items: center;
  gap: 70px;
}

.hero-copy {
  grid-area: copy;
}

.hero-media {
  grid-area: media;
  min-height: 465px;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  grid-template-rows: 1fr 1fr;
  align-items: center;
  gap: 14px;
}

.eyebrow,
.section-number,
.article-no,
.faq-page-grid article > span {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 690px;
  margin-bottom: 20px;
  font-size: clamp(36px, 4.1rem, 62px);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-copy > p,
.inner-hero p {
  max-width: 640px;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin: 28px 0;
}

.hero-index {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.hero-index span {
  margin-right: 6px;
  color: var(--primary);
  font-weight: 800;
}

.hero-media figure {
  margin: 0;
}

.media-main {
  position: relative;
  grid-row: 1 / 3;
  align-self: center;
}

.media-main img {
  width: auto;
  max-width: 310px;
  max-height: 450px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 44px rgba(23, 32, 31, 0.14);
}

.media-main figcaption {
  position: absolute;
  right: 4px;
  bottom: 18px;
  padding: 6px 9px;
  border-radius: 4px;
  color: #ffffff;
  background: var(--primary-dark);
  font-size: 12px;
}

.media-small img {
  width: auto;
  max-width: 150px;
  max-height: 215px;
  margin: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(23, 32, 31, 0.1);
}

.category-band,
.task-section,
.faq-preview,
.faq-page {
  padding: 78px 0;
}

.category-layout,
.task-grid,
.faq-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 62px;
}

.section-heading h2 {
  margin: 4px 0 0;
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: 0;
}

.feature-ledger {
  border-top: 1px solid var(--ink);
}

.feature-ledger article {
  display: grid;
  grid-template-columns: 42px minmax(180px, 0.42fr) 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.feature-ledger h3,
.feature-ledger p {
  margin-bottom: 0;
}

.feature-ledger h3 {
  font-size: 18px;
}

.feature-ledger p,
.task-list p,
.preview-strip figcaption span,
.article-content p,
.faq-page-grid p {
  color: var(--muted);
}

.ledger-id {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--signal);
  font-size: 13px;
  font-weight: 800;
}

.preview-section {
  padding: 78px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.inline-heading {
  margin-bottom: 34px;
  display: grid;
  grid-template-columns: 46px auto 1fr;
  align-items: end;
  gap: 16px;
}

.section-note {
  justify-self: end;
  max-width: 500px;
  color: var(--muted);
}

.preview-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: end;
}

.preview-strip figure {
  margin: 0;
  min-width: 0;
}

.preview-strip img {
  width: auto;
  max-width: min(100%, 270px);
  max-height: 420px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.preview-strip figcaption {
  padding: 16px 0 0;
  display: grid;
  gap: 4px;
}

.preview-strip figcaption span {
  font-size: 14px;
}

.task-grid {
  grid-template-columns: 220px 1fr 280px;
}

.task-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.task-list li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.task-list li > span {
  color: var(--primary);
  font-weight: 800;
}

.task-list h3,
.task-list p {
  margin-bottom: 4px;
}

.deep-links {
  display: grid;
  align-content: start;
  gap: 12px;
}

.deep-links a {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.deep-links a:hover {
  border-color: var(--primary);
}

.deep-links span,
.deep-links strong {
  display: block;
}

.deep-links span {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
}

.faq-preview {
  background: #edf3f0;
}

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

.faq-list details {
  border-bottom: 1px solid #cbd7d2;
}

.faq-list summary {
  padding: 18px 34px 18px 0;
  cursor: pointer;
  font-weight: 700;
}

.faq-list details p {
  margin-bottom: 18px;
  color: var(--muted);
}

.text-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--primary-dark);
  font-weight: 800;
}

.download-band {
  padding: 44px 0;
  color: #ffffff;
  background: var(--ink);
}

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

.download-layout h2 {
  margin: 2px 0 4px;
}

.download-layout p,
.download-copy {
  margin-bottom: 0;
  color: #cdd6d3;
}

.download-band .section-number {
  color: var(--signal);
}

.download-band .button.secondary {
  color: #ffffff;
  border-color: #84918d;
}

.site-footer {
  padding: 42px 24px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  justify-content: center;
  margin-bottom: 14px;
}

.footer-inner p {
  margin: 6px 0;
  color: var(--muted);
  font-size: 13px;
}

.inner-hero {
  padding: 72px 0 58px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.narrow-inner {
  width: min(calc(100% - 48px), 1020px);
  margin: 0 auto;
}

.inner-hero h1 {
  margin: 8px 0 18px;
  font-size: clamp(34px, 4rem, 54px);
}

.article-layout {
  padding: 70px 0 90px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 70px;
}

.article-index {
  position: sticky;
  top: 102px;
  align-self: start;
  display: grid;
  border-top: 1px solid var(--ink);
}

.article-index a {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.article-index a:hover {
  color: var(--primary-dark);
}

.article-content section {
  scroll-margin-top: 100px;
  padding-bottom: 38px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.article-content h2 {
  margin: 4px 0 14px;
  font-size: 28px;
}

.article-content a,
.faq-page-grid a {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  border-top: 1px solid var(--ink);
}

.faq-page-grid article {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.faq-page-grid h2 {
  margin: 5px 0 10px;
  font-size: 21px;
}

.faq-page-grid p {
  margin-bottom: 0;
}

@media (max-width: 960px) {
  .header-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    padding: 8px 0 16px;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

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

  .site-nav a {
    padding: 7px 0;
  }

  .header-download {
    display: none;
  }

  .hero-inner {
    grid-template-areas: "copy" "media";
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero-media {
    min-height: 360px;
  }

  .task-grid {
    grid-template-columns: 200px 1fr;
  }

  .deep-links {
    grid-column: 2;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .header-inner,
  .section-inner,
  .hero-inner,
  .narrow-inner {
    width: min(calc(100% - 32px), var(--max));
  }

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

  .brand img {
    width: 38px;
    height: 38px;
  }

  .hero-inner {
    min-height: auto;
    padding: 30px 0 26px;
    gap: 22px;
  }

  h1,
  .inner-hero h1 {
    font-size: 34px;
    line-height: 1.18;
  }

  .hero-copy > p,
  .inner-hero p {
    font-size: 15px;
  }

  .hero-actions {
    margin: 20px 0;
  }

  .button {
    flex: 1 1 138px;
  }

  .hero-media {
    min-height: 248px;
    grid-template-columns: 1fr 0.7fr;
    gap: 10px;
  }

  .media-main img {
    max-width: 138px;
    max-height: 240px;
  }

  .media-main figcaption {
    display: none;
  }

  .media-small img {
    max-width: 82px;
    max-height: 112px;
  }

  .category-band,
  .task-section,
  .faq-preview,
  .faq-page,
  .preview-section {
    padding: 52px 0;
  }

  .category-layout,
  .task-grid,
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .feature-ledger article {
    grid-template-columns: 34px 1fr;
    gap: 12px;
  }

  .feature-ledger article p {
    grid-column: 2;
  }

  .inline-heading {
    grid-template-columns: 38px 1fr;
    align-items: center;
  }

  .section-note {
    grid-column: 1 / -1;
    justify-self: start;
  }

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

  .preview-strip img {
    max-width: 100%;
    max-height: 260px;
  }

  .preview-strip figcaption span {
    display: none;
  }

  .preview-strip figcaption strong {
    font-size: 13px;
  }

  .deep-links {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .download-layout {
    align-items: stretch;
    flex-direction: column;
  }

  .article-layout {
    padding: 48px 0 64px;
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .article-index {
    position: static;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 16px;
  }

  .faq-page-grid {
    grid-template-columns: 1fr;
  }
}
