:root {
  --ink: #161616;
  --paper: #ffffff;
  --soft: #f2f4f3;
  --line: #202020;
  --teal: #078f88;
  --teal-dark: #066b67;
  --red: #d9362b;
  --yellow: #ffd447;
  --muted: #5e6462;
  --rail: min(1180px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

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.72;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 2px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
}

.header-inner {
  width: var(--rail);
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-size: 19px;
  font-weight: 800;
}

.brand img {
  width: 42px;
  height: 42px;
  border: 2px solid var(--line);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a:not(.download-button) {
  min-height: 42px;
  padding: 8px 13px;
  border-bottom: 3px solid transparent;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
}

.site-nav a[aria-current="page"] {
  border-color: var(--teal);
}

.download-button {
  min-height: 44px;
  padding: 9px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
  background: var(--red);
  color: #fff;
  font-weight: 800;
  box-shadow: 4px 4px 0 var(--line);
}

.download-button:hover,
.download-button:focus-visible {
  background: #bd2b22;
  transform: translate(1px, 1px);
  box-shadow: 3px 3px 0 var(--line);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 2px solid var(--line);
  background: var(--yellow);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.hero {
  border-bottom: 2px solid var(--line);
  background: linear-gradient(90deg, var(--paper) 0 72%, #e7f7f5 72% 100%);
}

.hero-inner {
  width: var(--rail);
  min-height: 590px;
  margin: 0 auto;
  padding: 42px 0 38px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(470px, 1.08fr);
  align-items: center;
  gap: 54px;
}

.eyebrow,
.page-kicker {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(42px, 4.3vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
}

.hero h1 span:last-child {
  color: var(--teal-dark);
}

.hero-copy > p:not(.eyebrow) {
  max-width: 610px;
  margin: 22px 0 0;
  color: #343837;
  font-size: 18px;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.text-link {
  border-bottom: 2px solid var(--teal);
  color: var(--teal-dark);
  font-weight: 800;
}

.search-ribbon {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 96px 1fr;
  max-width: 480px;
  border: 2px solid var(--line);
}

.search-ribbon strong,
.search-ribbon span {
  padding: 8px 12px;
}

.search-ribbon strong {
  background: var(--yellow);
  border-right: 2px solid var(--line);
}

.hero-media {
  height: 510px;
  position: relative;
  display: grid;
  grid-template-columns: 112px 252px 112px;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.hero-shot {
  margin: 0;
  overflow: hidden;
  border: 3px solid var(--line);
  background: var(--soft);
  box-shadow: 7px 7px 0 var(--line);
}

.hero-shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top;
}

.hero-shot.primary {
  width: 252px;
  height: 500px;
}

.hero-shot.reel {
  width: 112px;
  height: 360px;
}

.hero-shot.reel img {
  object-position: 50% 20%;
}

.hero-marker {
  position: absolute;
  right: 4px;
  top: 10px;
  width: 80px;
  padding: 7px 8px;
  border: 2px solid var(--line);
  background: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.band {
  border-bottom: 2px solid var(--line);
}

.band-inner,
.page-hero-inner,
.content-layout,
.footer-inner {
  width: var(--rail);
  margin: 0 auto;
}

.band-inner {
  padding: 58px 0;
}

.band.soft {
  background: var(--soft);
}

.band.teal {
  background: #dff4f1;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3.1vw, 42px);
  line-height: 1.15;
  letter-spacing: 0;
}

.section-heading::after {
  content: "";
  width: min(32vw, 320px);
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 28px, transparent 28px 38px);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--line);
  border-left: 2px solid var(--line);
}

.feature-item {
  min-height: 210px;
  padding: 24px;
  border-right: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  background: #fff;
}

.feature-index {
  display: block;
  margin-bottom: 28px;
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
}

.feature-item h3 {
  margin: 0 0 9px;
  font-size: 21px;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
}

.preview-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr 0.92fr;
  align-items: start;
  gap: 20px;
}

.preview-card {
  margin: 0;
  border: 2px solid var(--line);
  background: #fff;
}

.preview-frame {
  height: 510px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #e9eceb;
}

.preview-card:first-child .preview-frame {
  height: 590px;
  background: #dff4f1;
}

.preview-frame img {
  width: auto;
  max-width: 400px;
  height: 100%;
  object-fit: contain;
}

.preview-card figcaption {
  min-height: 108px;
  padding: 16px 18px;
  border-top: 2px solid var(--line);
}

.preview-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}

.preview-card span {
  color: var(--muted);
}

.checklist {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
}

.checklist-intro {
  padding: 28px;
  border: 2px solid var(--line);
  background: var(--yellow);
}

.checklist-intro h3 {
  margin: 0 0 12px;
  font-size: 28px;
}

.checklist-intro p {
  margin: 0;
}

.step-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--line);
}

.step-list li {
  padding: 18px 0;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  border-bottom: 2px solid var(--line);
}

.step-list b {
  color: var(--teal-dark);
  font-size: 22px;
}

.link-panels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.link-panel {
  min-height: 250px;
  padding: 30px;
  border: 2px solid var(--line);
  background: #fff;
  box-shadow: 6px 6px 0 var(--line);
}

.link-panel:nth-child(2) {
  background: #dff4f1;
}

.link-panel h3 {
  margin: 0 0 12px;
  font-size: 27px;
}

.link-panel p {
  margin: 0 0 24px;
  color: var(--muted);
}

.page-hero {
  border-bottom: 2px solid var(--line);
  background: #dff4f1;
}

.page-hero-inner {
  padding: 62px 0 54px;
}

.page-hero h1 {
  max-width: 900px;
}

.page-lead {
  max-width: 820px;
  margin: 20px 0 0;
  color: #313735;
  font-size: 18px;
}

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

.article-flow section {
  margin-bottom: 46px;
  scroll-margin-top: 92px;
}

.article-flow h2 {
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--line);
  font-size: 30px;
  line-height: 1.25;
}

.article-flow h3 {
  margin: 24px 0 8px;
  font-size: 21px;
}

.article-flow p {
  margin: 0 0 14px;
  color: #343837;
}

.article-flow ol,
.article-flow ul {
  margin: 0 0 18px;
  padding-left: 24px;
}

.article-flow li {
  margin-bottom: 10px;
}

.note {
  padding: 18px 20px;
  border: 2px solid var(--line);
  border-left: 10px solid var(--yellow);
  background: #fff;
}

.side-index {
  position: sticky;
  top: 96px;
  padding: 22px;
  border: 2px solid var(--line);
  background: var(--soft);
}

.side-index strong {
  display: block;
  margin-bottom: 10px;
  color: var(--teal-dark);
}

.side-index a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid #b8bfbd;
  font-weight: 700;
}

.faq-list {
  border-top: 2px solid var(--line);
}

.faq-item {
  border-right: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  border-left: 2px solid var(--line);
  background: #fff;
}

.faq-item summary {
  padding: 18px 54px 18px 20px;
  position: relative;
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--red);
  font-size: 26px;
}

.faq-item[open] summary {
  background: var(--yellow);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 18px 20px 22px;
  border-top: 2px solid var(--line);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.bottom-action {
  padding: 42px 0;
  border-bottom: 2px solid var(--line);
  background: var(--yellow);
}

.bottom-action-inner {
  width: var(--rail);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.bottom-action h2 {
  margin: 0 0 6px;
  font-size: 29px;
}

.bottom-action p,
.bottom-action .action-copy {
  margin: 0;
}

.site-footer {
  background: var(--ink);
  color: #fff;
}

.footer-inner {
  padding: 34px 0;
  text-align: center;
}

.footer-links {
  margin-bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #ccefeb;
}

.disclaimer,
.copyright {
  margin: 7px auto 0;
  max-width: 900px;
  color: #d2d2d2;
  font-size: 14px;
  text-align: center;
}

@media (max-width: 980px) {
  :root {
    --rail: min(100% - 32px, 760px);
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: fixed;
    inset: 72px 0 auto;
    padding: 18px 16px 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 2px solid var(--line);
    background: #fff;
  }

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

  .site-nav a:not(.download-button) {
    justify-content: center;
  }

  .hero {
    background: linear-gradient(180deg, var(--paper) 0 58%, #e7f7f5 58% 100%);
  }

  .hero-inner {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-media {
    order: 2;
  }

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

  .preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .preview-frame,
  .preview-card:first-child .preview-frame {
    height: 430px;
  }

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

  .side-index {
    position: static;
    order: -1;
  }
}

@media (max-width: 640px) {
  :root {
    --rail: calc(100% - 28px);
  }

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

  .brand {
    font-size: 17px;
  }

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

  .site-nav {
    inset-block-start: 64px;
  }

  .hero-inner {
    padding: 20px 0 16px;
    gap: 14px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 34px;
  }

  .hero-copy > p:not(.eyebrow),
  .page-lead {
    font-size: 16px;
  }

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

  .search-ribbon {
    display: none;
  }

  .hero-media {
    height: 280px;
    grid-template-columns: 60px 132px 60px;
    gap: 8px;
  }

  .hero-shot.primary {
    width: 132px;
    height: 274px;
  }

  .hero-shot.reel {
    width: 60px;
    height: 190px;
  }

  .hero-marker {
    display: none;
  }

  .band-inner {
    padding: 42px 0;
  }

  .section-heading {
    align-items: center;
  }

  .section-heading h2 {
    font-size: 30px;
  }

  .section-heading::after {
    width: 88px;
  }

  .feature-grid,
  .preview-grid,
  .checklist,
  .link-panels {
    grid-template-columns: 1fr;
  }

  .feature-item {
    min-height: 0;
  }

  .feature-index {
    margin-bottom: 12px;
  }

  .preview-frame,
  .preview-card:first-child .preview-frame {
    height: 540px;
  }

  .preview-card figcaption {
    min-height: 0;
  }

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

  .content-layout {
    padding: 38px 0 52px;
    gap: 34px;
  }

  .article-flow h2 {
    font-size: 26px;
  }

  .bottom-action-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .bottom-action .download-button {
    width: 100%;
  }
}

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