:root {
  --bg: #f4f6f7;
  --bg-alt: #eef2f4;
  --surface: #f9fafb;
  --surface-strong: #fbfcfd;
  --panel-dark: #111821;
  --panel-dark-2: #17212b;
  --line: #d9e1e6;
  --line-strong: #c4ced6;
  --text: #18222c;
  --muted: #5c6874;
  --muted-strong: #44505b;
  --accent: #ff6c37;
  --accent-ink: #d95729;
  --accent-soft: #ffe7dc;
  --blue: #2f6fed;
  --teal: #0f766e;
  --green: #1e8a68;
  --shadow-sm: 0 8px 22px rgba(24, 34, 44, 0.06);
  --shadow-md: 0 18px 44px rgba(24, 34, 44, 0.10);
  --radius: 8px;
  --radius-sm: 6px;
  --shell: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

details {
  display: block;
}

summary {
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -96px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  transition: top 0.2s ease;
}

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

.shell {
  width: min(var(--shell), calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(244, 246, 247, 0.98);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.brand-icon svg,
.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-text strong {
  font-size: 1rem;
  line-height: 1.2;
  color: var(--text);
}

.brand-text span {
  font-size: 0.8rem;
  color: var(--muted);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted-strong);
  font-weight: 600;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease,
    color 0.18s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text);
  background: var(--surface-strong);
  border-color: var(--line);
  outline: none;
}

.nav-link[aria-current="page"] {
  color: var(--text);
  background: var(--surface-strong);
  border-color: var(--line);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
}

.mobile-panel {
  display: none;
  padding: 0 0 16px;
}

.mobile-panel[hidden] {
  display: none;
}

.mobile-nav {
  display: grid;
  gap: 6px;
  padding: 8px 0 0;
}

.mobile-nav .nav-link {
  width: 100%;
  justify-content: space-between;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.15s ease, background-color 0.18s ease,
    border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

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

.btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--accent);
  color: #f7f5f2;
  box-shadow: 0 10px 22px rgba(255, 108, 55, 0.18);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-ink);
  color: #f7f5f2;
}

.btn-secondary {
  background: var(--surface-strong);
  color: var(--text);
  border-color: var(--line);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--surface);
  border-color: var(--line-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--muted-strong);
  border-color: var(--line);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--surface-strong);
  color: var(--text);
}

.btn-small {
  min-height: 38px;
  padding: 0 14px;
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.btn.nav-toggle {
  display: none;
}

.page {
  padding-bottom: 44px;
}

.hero {
  padding: 36px 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: stretch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 0.84rem;
  font-weight: 700;
}

.hero h1,
.page-hero h1 {
  margin: 16px 0 14px;
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 800;
  font-size: 2.4rem;
}

.hero-lead,
.page-lead {
  margin: 0;
  color: var(--muted-strong);
  max-width: 62ch;
  font-size: 1rem;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  color: var(--muted-strong);
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--panel-dark);
  color: #eef4f8;
  border: 1px solid rgba(247, 241, 232, 0.08);
  box-shadow: var(--shadow-md);
}

.hero-panel img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid rgba(247, 241, 232, 0.08);
  background: var(--panel-dark-2);
}

.hero-panel h2 {
  margin: 0;
  font-size: 1.12rem;
}

.hero-panel p {
  margin: 0;
  color: #c7d1d8;
}

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

.mini-card {
  min-height: 104px;
  padding: 14px;
  border-radius: 7px;
  background: rgba(247, 241, 232, 0.04);
  border: 1px solid rgba(247, 241, 232, 0.08);
}

.mini-card span {
  display: block;
  color: #93a6b4;
  font-size: 0.84rem;
  margin-bottom: 6px;
}

.mini-card strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.35;
}

.workflow-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.workflow-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(247, 241, 232, 0.07);
  border: 1px solid rgba(247, 241, 232, 0.08);
  color: #eef4f8;
  font-size: 0.86rem;
  font-weight: 600;
}

.stats-band {
  padding: 14px 0 2px;
}

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

.stat {
  min-height: 94px;
  padding: 18px 16px;
  border-radius: var(--radius);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.stat strong {
  display: block;
  font-size: 1.6rem;
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat span {
  color: var(--muted-strong);
  font-size: 0.95rem;
}

.section {
  padding: 64px 0;
}

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

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

.section-heading h2,
.section-heading h3 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.15;
}

.section-heading p {
  margin: 0;
  max-width: 62ch;
  color: var(--muted-strong);
}

.section-subtitle {
  max-width: 68ch;
  color: var(--muted-strong);
  margin: 12px 0 0;
}

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

.feature-card {
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.feature-card .icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-ink);
  margin-bottom: 14px;
}

.feature-card .icon-box.blue {
  background: #e7f0ff;
  color: var(--blue);
}

.feature-card .icon-box.teal {
  background: #e2f3ef;
  color: var(--teal);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.3;
}

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

.feature-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted-strong);
}

.feature-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  flex: 0 0 auto;
  margin-top: 0.55rem;
}

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

.panel {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.panel h3 {
  margin: 0 0 12px;
  font-size: 1.12rem;
}

.panel p {
  margin: 0;
  color: var(--muted-strong);
}

.workflow-steps {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.step {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 800;
  flex: 0 0 auto;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.step p,
.step ul {
  margin: 0;
  color: var(--muted-strong);
}

.step ul {
  padding-left: 18px;
}

.step li + li {
  margin-top: 6px;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
}

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

.table th,
.table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.table thead th {
  background: #f2f5f7;
  color: var(--muted-strong);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

.table strong {
  color: var(--text);
}

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

.download-card {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.download-card h3 {
  margin: 0;
  font-size: 1.08rem;
}

.download-card p {
  margin: 0;
  color: var(--muted-strong);
}

.download-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  width: fit-content;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.download-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.link-inline {
  color: var(--blue);
  font-weight: 700;
}

.link-inline:hover,
.link-inline:focus-visible {
  text-decoration: underline;
}

.checklist {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
  margin: 0;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted-strong);
}

.checklist li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  border-radius: 999px;
  background: var(--green);
  box-shadow: inset 0 0 0 4px #dff4eb;
  flex: 0 0 auto;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  color: var(--muted-strong);
  font-size: 0.92rem;
  font-weight: 600;
}

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

.faq-item {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 18px;
  font-weight: 700;
  cursor: pointer;
}

.faq-item summary span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.faq-item summary svg {
  flex: 0 0 auto;
}

.faq-item .answer {
  padding: 0 18px 18px;
  color: var(--muted-strong);
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--line);
}

.source-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer small {
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  color: var(--muted-strong);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
  text-decoration: underline;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 33, 0.58);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(92vh, 860px);
  overflow: auto;
  padding: 22px;
  border-radius: 12px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.modal-panel h2 {
  margin: 6px 0 10px;
  font-size: 1.5rem;
  line-height: 1.2;
}

.modal-panel p {
  margin: 0;
  color: var(--muted-strong);
}

.modal-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--muted-strong);
  display: grid;
  place-items: center;
}

.modal-close:hover,
.modal-close:focus-visible {
  color: var(--text);
  border-color: var(--line-strong);
}

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

.qr-card {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line);
  display: grid;
  gap: 10px;
  justify-items: center;
}

.qr-card img {
  width: 180px;
  height: 180px;
  border-radius: 6px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.qr-card h3 {
  margin: 0;
  font-size: 1.02rem;
}

.qr-card p {
  margin: 0;
  color: var(--muted-strong);
}

.modal-footnote {
  margin-top: 14px;
  color: var(--muted-strong);
  font-size: 0.93rem;
}

.page-hero {
  padding: 34px 0 18px;
}

.page-hero .page-head {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 22px;
  align-items: start;
}

.page-hero .page-panel {
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.page-hero .page-panel h2 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.page-hero .page-panel p {
  margin: 0;
  color: var(--muted-strong);
}

.page-hero .page-panel ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.page-hero .page-panel li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted-strong);
}

.page-hero .page-panel li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: var(--accent);
  flex: 0 0 auto;
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.compact-card {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
}

.compact-card span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  margin-bottom: 6px;
}

.compact-card strong {
  display: block;
  line-height: 1.35;
}

.alert {
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid #f0d3c6;
  background: #fdf1ea;
  color: #8d3c1f;
}

.alert strong {
  display: block;
  margin-bottom: 4px;
}

.inline-note {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 1080px) {
  .hero-grid,
  .page-hero .page-head,
  .feature-grid,
  .download-grid,
  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .desktop-nav {
    display: none;
  }

  .btn.nav-toggle {
    display: inline-flex;
  }

  .mobile-panel {
    display: block;
  }

  .hero-grid,
  .page-hero .page-head,
  .feature-grid,
  .download-grid,
  .compact-grid,
  .split-grid,
  .modal-grid,
  .stats-strip {
    grid-template-columns: 1fr;
  }

  .section-heading {
    flex-direction: column;
    align-items: start;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 1.95rem;
  }

  .hero {
    padding-top: 26px;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(var(--shell), calc(100% - 24px));
  }

  .nav-inner {
    min-height: 66px;
  }

  .brand-text span {
    display: none;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 1.72rem;
  }

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

  .hero-actions .btn,
  .section-actions .btn {
    width: 100%;
  }

  .hero-panel,
  .feature-card,
  .download-card,
  .panel,
  .step,
  .stat,
  .compact-card,
  .faq-item summary,
  .qr-card,
  .modal-panel {
    padding-left: 16px;
    padding-right: 16px;
  }

  .modal-panel {
    padding-top: 18px;
  }
}

.theme-dark {
  --bg: #111821;
  --bg-alt: #17212b;
  --surface: #18222c;
  --surface-strong: #1b2631;
  --line: #2d3944;
  --line-strong: #40505f;
  --text: #eef4f8;
  --muted: #aab7c1;
  --muted-strong: #d6dee4;
}
