:root {
  --bg: #f6f8f4;
  --ink: #16211c;
  --muted: #65736c;
  --line: rgba(22, 33, 28, .12);
  --panel: #ffffff;
  --brand: #2f8f68;
  --brand-2: #d6a84f;
  --accent: #b7463f;
  --soft: #edf5ef;
  --shadow: 0 18px 50px rgba(24, 38, 31, .12);
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 248, 244, .92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff7df;
  font-weight: 900;
}
.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}
.nav-links a:hover { color: var(--ink); }
.nav-toggle { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 16px;
  min-height: 42px;
  font-weight: 700;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.btn.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}
.btn.gold {
  border-color: #c6983e;
  background: #d6a84f;
  color: #211909;
}
.btn.ghost {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-color: rgba(255,255,255,.28);
}

.hero {
  min-height: 78vh;
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  color: #fff;
  background-image:
    linear-gradient(90deg, rgba(9, 15, 12, .90) 0%, rgba(9, 15, 12, .68) 44%, rgba(9, 15, 12, .16) 100%),
    url("../img/hero.png");
  background-size: cover;
  background-position: center;
}
.hero-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 116px 0 72px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffe2a5;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: #d6a84f;
}
h1 {
  max-width: 820px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  margin: 18px 0 20px;
  letter-spacing: 0;
}
.hero-copy {
  max-width: 700px;
  color: rgba(255,255,255,.84);
  font-size: 18px;
  margin: 0 0 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-metrics {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  max-width: 860px;
  border-top: 1px solid rgba(255,255,255,.24);
}
.metric {
  padding: 16px 18px 0 0;
}
.metric b {
  display: block;
  font-size: 28px;
  line-height: 1.1;
  color: #fff;
}
.metric span {
  color: rgba(255,255,255,.68);
  font-size: 13px;
}

.section {
  padding: 76px 0;
}
.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 26px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  margin: 0;
}
.section-head p {
  max-width: 520px;
  color: var(--muted);
  margin: 0;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: none;
}
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); }
.card h3,
.card p,
.doc-content td,
.doc-content li,
.risk-box {
  overflow-wrap: anywhere;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #1f6d4c;
  background: #e7f3eb;
  margin-bottom: 14px;
}

.ecosystem-links .link-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--brand);
  font-weight: 800;
  overflow-wrap: anywhere;
}
.link-arrow::after {
  content: "↗";
  font-size: 13px;
}
.band .link-arrow { color: #b7f2c8; }

.product-shot {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.feature-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}
.feature-line {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.feature-line i {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 13px;
  flex: 0 0 auto;
}
.feature-line span { color: var(--muted); }

.band {
  background: #15231c;
  color: #f8fff9;
}
.band .section-head p,
.band .card p { color: rgba(248,255,249,.70); }
.band .card {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
}
.band .tag { background: rgba(214,168,79,.16); color: #ffd68a; }

.calculator {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 22px;
  align-items: stretch;
}
.calc-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}
.calc-panel label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.calc-panel input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 18px;
}
.calc-result {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.calc-result div {
  background: var(--soft);
  border-radius: 8px;
  padding: 14px;
}
.calc-result b { display: block; font-size: 24px; }
.note {
  color: var(--muted);
  font-size: 13px;
  margin-top: 12px;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 14px;
}
.step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}
.step h3 { margin: 0 0 4px; }
.step p { margin: 0; color: var(--muted); }

.faq {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 800;
}
.faq p { color: var(--muted); margin-bottom: 0; }

.risk-box {
  border: 1px solid rgba(183, 70, 63, .25);
  background: #fff7f5;
  color: #5f211c;
  border-radius: 8px;
  padding: 18px 20px;
}

.footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}
.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.footer a { color: var(--ink); }
.friend-links {
  width: min(1180px, calc(100% - 40px));
  margin: 14px auto 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 13px;
}
.friend-links b {
  color: var(--ink);
  font-size: 13px;
}
.friend-links a {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.friend-links a:hover { color: var(--ink); }

.doc-page {
  padding: 58px 0 80px;
}
.doc-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
}
.doc-nav {
  position: sticky;
  top: 92px;
  align-self: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}
.doc-nav a {
  display: block;
  padding: 8px 0;
  color: var(--muted);
}
.doc-nav a:hover { color: var(--ink); }
.doc-content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px;
}
.doc-content h1 {
  color: var(--ink);
  font-size: clamp(32px, 4vw, 52px);
  margin-top: 0;
}
.doc-content h2 { margin-top: 34px; }
.doc-content p,
.doc-content li { color: var(--muted); }
.doc-content code {
  background: #f2f5f1;
  padding: 2px 5px;
  border-radius: 4px;
}
.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 4px;
}
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.info-table th,
.info-table td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  vertical-align: top;
}
.info-table th {
  width: 190px;
  background: #f2f6f0;
  color: var(--ink);
}
.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: 0;
}
.doc-note {
  border-left: 4px solid var(--brand);
  background: #f4faf6;
  padding: 14px 16px;
  border-radius: 0 8px 8px 0;
  color: var(--muted);
}
.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 16px 0;
}
.mini-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfdfb;
}
.mini-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}
.mini-card p {
  margin: 0;
}

.bind-panel {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 20px;
}
.bind-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}
.bind-card input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 8px 0 14px;
}
.qr-box {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: center;
}
.qr-box img {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #fff;
}
.status-ok { color: #1f7a4e; font-weight: 800; }
.status-bad { color: var(--accent); font-weight: 800; }

@media (max-width: 1180px) {
  .nav,
  .hero-inner,
  .wrap,
  .footer-inner,
  .friend-links {
    width: min(100% - 48px, 980px);
  }
  .nav-links { gap: 16px; }
  .hero-copy { max-width: 640px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-layout { grid-template-columns: 220px 1fr; gap: 22px; }
}

@media (max-width: 860px) {
  body.nav-open { overflow: hidden; }
  .nav {
    width: min(100% - 32px, 1180px);
    min-height: 60px;
    gap: 14px;
  }
  .brand span:last-child {
    max-width: 42vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    padding: 9px 12px;
    font-weight: 800;
  }
  .nav-links {
    position: fixed;
    top: 68px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    box-shadow: var(--shadow);
    color: var(--ink);
    max-height: calc(100vh - 88px);
    overflow: auto;
  }
  .nav-links a { padding: 10px 8px; }
  .nav-links .btn { width: 100%; }
  .nav-links.open { display: flex; }
  .hero {
    min-height: auto;
    background-position: 62% center;
  }
  .hero-inner {
    width: min(100% - 32px, 1180px);
    padding: 92px 0 38px;
  }
  .wrap { width: min(100% - 32px, 1180px); }
  h1 {
    font-size: clamp(36px, 11vw, 54px);
    line-height: 1.04;
    margin: 14px 0 16px;
  }
  .hero-copy {
    max-width: none;
    font-size: 16px;
    line-height: 1.72;
  }
  .hero-actions,
  .doc-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .btn { width: 100%; min-height: 46px; }
  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
    margin-top: 28px;
  }
  .metric { padding: 14px 8px 0 0; }
  .metric b { font-size: 23px; }
  .section { padding: 54px 0; }
  .section-head {
    display: block;
    margin-bottom: 20px;
  }
  .section-head h2 {
    font-size: clamp(28px, 8vw, 38px);
    margin-bottom: 10px;
  }
  .grid-3,
  .grid-2,
  .calculator,
  .doc-layout,
  .bind-panel,
  .mini-grid {
    grid-template-columns: 1fr;
  }
  .card,
  .bind-card,
  .calc-panel,
  .doc-content {
    padding: 20px;
    border-radius: 12px;
  }
  .card h3 { font-size: 19px; }
  .product-shot { border-radius: 12px; }
  .step {
    grid-template-columns: 34px 1fr;
    gap: 12px;
  }
  .step::before {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }
  .doc-page { padding: 34px 0 58px; }
  .doc-nav { position: static; }
  .doc-content h1 { font-size: clamp(30px, 9vw, 42px); }
  .info-table,
  .info-table tbody,
  .info-table tr,
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }
  .info-table tr {
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
  }
  .info-table tr:last-child { border-bottom: 0; }
  .info-table th,
  .info-table td {
    border-bottom: 0;
    padding: 4px 14px;
  }
  .info-table th {
    background: transparent;
    color: var(--muted);
    font-size: 13px;
  }
  .qr-box { grid-template-columns: 1fr; }
  .qr-box img { width: 180px; }
  .footer { padding: 26px 0; }
  .footer-inner {
    width: min(100% - 32px, 1180px);
    display: grid;
    gap: 8px;
  }
  .friend-links {
    width: min(100% - 32px, 1180px);
    display: grid;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .nav,
  .hero-inner,
  .wrap,
  .footer-inner,
  .friend-links {
    width: min(100% - 24px, 1180px);
  }
  .hero {
    background-image:
      linear-gradient(180deg, rgba(9, 15, 12, .94) 0%, rgba(9, 15, 12, .76) 58%, rgba(9, 15, 12, .52) 100%),
      url("../img/hero.png");
    background-position: 58% center;
  }
  .hero-inner { padding: 78px 0 30px; }
  .eyebrow { font-size: 12px; }
  .hero-metrics { grid-template-columns: 1fr; border-top: 0; }
  .metric {
    border-top: 1px solid rgba(255,255,255,.18);
    padding: 12px 0;
  }
  .section { padding: 44px 0; }
  .card,
  .bind-card,
  .doc-content {
    padding: 18px;
  }
  .tag { white-space: normal; }
}
