:root {
  --ink: oklch(21% 0.018 155);
  --ink-soft: oklch(37% 0.016 155);
  --paper: #ffffff;
  --paper-2: #f6f7f5;
  --panel: #ffffff;
  --line: #e3e6e0;
  --gold: #f8d714;
  --green: oklch(72% 0.13 154);
  --red: oklch(58% 0.16 25);
  --shadow: 0 20px 55px rgb(20 32 27 / 12%);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

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

p {
  margin: 0;
  color: var(--ink-soft);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.5rem, 4.4vw, 4.8rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 780;
}

h3 {
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  font-weight: 760;
}

.site-shell {
  min-height: 100vh;
}

.skip-link {
  position: absolute;
  left: 18px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 18px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in oklch, var(--line) 76%, transparent);
}

.header-inner {
  width: min(var(--max), calc(100% - 36px));
  min-height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand span {
  white-space: nowrap;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 99px;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  font-size: .95rem;
  color: var(--ink-soft);
}

.site-nav a {
  padding: 10px 2px;
  border-bottom: 2px solid transparent;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

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

.header-actions .button {
  white-space: nowrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

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

.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.button.gold {
  background: var(--gold);
  color: var(--ink);
}

.button.green {
  background: var(--green);
  color: var(--ink);
}

.button.small {
  min-height: 40px;
  padding: 0 14px;
  font-size: .92rem;
}

.hero {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 116px) 0 clamp(46px, 6vw, 82px);
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(340px, 1.08fr);
  gap: clamp(32px, 6vw, 74px);
  align-items: center;
}

.hero.compact {
  grid-template-columns: 1fr;
  max-width: 980px;
  align-items: start;
}

.hero-copy {
  display: grid;
  gap: 26px;
  align-content: start;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: .88rem;
  font-weight: 800;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  background: var(--gold);
}

.lead {
  max-width: 62ch;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

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

.hero-media {
  margin: 0;
}

.hero-media img {
  display: block;
  filter: drop-shadow(0 24px 36px rgb(20 32 27 / 16%));
}

.trust-bar {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto clamp(46px, 6vw, 86px);
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.trust-item strong {
  display: block;
  font-size: 1rem;
  color: var(--ink);
}

.trust-item span {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: .92rem;
}

.section {
  padding: clamp(54px, 7vw, 104px) 0;
}

.section.alt {
  background: var(--paper-2);
}

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

.section-head {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, .8fr);
  gap: clamp(28px, 5vw, 66px);
  align-items: end;
  margin-bottom: clamp(30px, 5vw, 64px);
}

.section-head p {
  max-width: 58ch;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px);
}

.feature-line {
  min-height: 220px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in oklch, var(--panel) 92%, var(--gold) 8%);
  display: grid;
  align-content: space-between;
  gap: 30px;
}

.feature-line:nth-child(2n) {
  background: color-mix(in oklch, var(--panel) 90%, var(--green) 10%);
}

.feature-line .number {
  font-size: .85rem;
  font-weight: 900;
  color: var(--ink);
}

.feature-line p {
  max-width: 52ch;
}

.flow {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.flow-row {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 26px;
  background: var(--paper);
}

.flow-row strong {
  font-size: 1.08rem;
}

.flow-row span {
  color: var(--ink-soft);
}

.case-list {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
}

.case-item {
  min-height: 250px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  display: grid;
  align-content: start;
  gap: 28px;
}

.case-item.featured {
  grid-row: span 2;
  background: color-mix(in oklch, var(--gold) 22%, var(--panel));
}

.case-label {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: .86rem;
  font-weight: 800;
  background: color-mix(in oklch, var(--panel) 78%, var(--gold));
}

.case-item p {
  max-width: 56ch;
}

.case-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.case-point {
  padding: 14px 16px;
  border: 1px solid color-mix(in oklch, var(--gold) 45%, var(--line));
  border-radius: var(--radius);
  background: #fff;
}

.case-point strong {
  display: block;
  color: var(--ink);
  font-size: .98rem;
}

.case-point span {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: .9rem;
  line-height: 1.55;
}

.format-line {
  padding-top: 16px;
  border-top: 1px solid color-mix(in oklch, var(--gold) 45%, var(--line));
  color: var(--ink-soft);
  font-size: .95rem;
}

.format-line strong {
  color: var(--ink);
}

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

.link-tile {
  min-height: 210px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  display: grid;
  align-content: space-between;
  gap: 22px;
}

.link-tile:hover {
  border-color: color-mix(in oklch, var(--gold) 70%, var(--line));
  box-shadow: var(--shadow);
}

.visual-split {
  display: grid;
  grid-template-columns: minmax(320px, .8fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 66px);
  align-items: center;
}

.visual-split.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
}

.rich-list {
  display: grid;
  gap: 18px;
}

.rich-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.rich-item:last-child {
  border-bottom: 0;
}

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

.download-card {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  display: grid;
  gap: 20px;
}

.download-meta {
  display: grid;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .95rem;
}

.download-meta span {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.download-meta strong {
  color: var(--ink);
}

.note-box {
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid color-mix(in oklch, var(--gold) 55%, var(--line));
  border-radius: var(--radius);
  background: color-mix(in oklch, var(--paper) 82%, var(--gold) 18%);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--ink);
  background: color-mix(in oklch, var(--paper-2) 70%, var(--panel));
}

tr:last-child td {
  border-bottom: 0;
}

.guide-steps {
  counter-reset: guide;
  display: grid;
  gap: 18px;
}

.guide-step {
  counter-increment: guide;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 22px;
}

.guide-step::before {
  content: counter(guide, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  font-weight: 900;
}

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

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

.faq-list summary {
  min-height: 64px;
  padding: 18px 22px;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.faq-list p {
  padding: 0 22px 22px;
}

.site-footer {
  padding: 52px 0 34px;
  background: var(--ink);
  color: var(--paper);
}

.footer-inner {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
}

.site-footer p,
.site-footer a {
  color: color-mix(in oklch, var(--paper) 78%, var(--green));
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}

.modal.is-open {
  display: block;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgb(20 32 27 / 64%);
}

.modal__panel {
  position: relative;
  width: min(860px, calc(100% - 32px));
  max-height: calc(100vh - 36px);
  margin: 18px auto;
  padding: clamp(24px, 4vw, 42px);
  overflow: auto;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 32px 90px rgb(0 0 0 / 34%);
}

.modal__close {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.modal__panel h2 {
  padding-right: 68px;
}

.modal-intro {
  max-width: 58ch;
  margin-top: 16px;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.qr-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  display: grid;
  gap: 16px;
  text-align: center;
}

.qr-card img {
  width: min(210px, 100%);
  margin: 0 auto;
  border: 10px solid var(--paper);
  background: var(--paper);
}

.qr-card strong {
  color: var(--ink);
}

.modal-foot {
  margin-top: 22px;
  font-size: .92rem;
}

:focus-visible {
  outline: 3px solid color-mix(in oklch, var(--gold) 78%, var(--ink));
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

@media (max-width: 920px) {
  .header-inner {
    grid-template-columns: auto auto 1fr;
    gap: 12px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 72px;
    display: none;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
    justify-items: start;
  }

  .header-actions {
    justify-self: end;
  }

  .hero,
  .visual-split,
  .visual-split.reverse,
  .section-head {
    grid-template-columns: 1fr;
  }

  .trust-bar,
  .split-grid,
  .case-list,
  .page-links,
  .download-grid,
  .qr-grid {
    grid-template-columns: 1fr;
  }

  .case-item.featured {
    grid-row: auto;
  }

  .case-points {
    grid-template-columns: 1fr;
  }

  .flow-row {
    grid-template-columns: 1fr;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(2.2rem, 11.5vw, 3.35rem);
  }

  .brand {
    gap: 8px;
    font-size: .95rem;
  }

  .header-actions .secondary {
    display: none;
  }

  .header-actions .button {
    width: auto;
    min-width: 86px;
    padding: 0 14px;
  }

  .guide-step {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .download-card .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
