:root {
  --bg: #f7fafc;
  --surface: #ffffff;
  --surface-2: #eef7fb;
  --ink: #102033;
  --muted: #5e7082;
  --line: #dce7ee;
  --brand: #1277b8;
  --brand-dark: #075b91;
  --accent: #15a7a7;
  --code: #071827;
  --success: #18845f;
  --shadow: 0 18px 50px rgba(18, 54, 82, 0.12);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-dark);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(220, 231, 238, 0.86);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
}

.brand img {
  width: 154px;
  display: block;
}

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

.nav-links a {
  color: #263b4d;
  font-size: 15px;
  font-weight: 650;
  padding: 10px 12px;
  border-radius: 6px;
}

.nav-links a:hover,
.nav-links a.active {
  background: #edf6fb;
  color: var(--brand-dark);
}

.nav-action {
  white-space: nowrap;
}

.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.btn-primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 12px 26px rgba(18, 119, 184, 0.24);
}

.btn-primary:hover {
  color: #fff;
  background: var(--brand-dark);
}

.btn-secondary {
  color: var(--brand-dark);
  background: #eef8fd;
  border-color: #cce8f6;
}

.btn-light {
  color: #0d3150;
  background: #fff;
  border-color: rgba(255,255,255,0.72);
}

.section {
  padding: 84px 24px;
}

.section.tight {
  padding-top: 58px;
  padding-bottom: 58px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.hero {
  padding: 78px 24px 66px;
  background:
    radial-gradient(circle at 80% 16%, rgba(21, 167, 167, 0.16), transparent 30%),
    linear-gradient(135deg, #f7fbff 0%, #edf7fb 52%, #f9fbfd 100%);
  overflow: hidden;
}

.hero-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  align-items: center;
  gap: 54px;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 22px;
  color: #09233d;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: 0;
}

.lead {
  max-width: 740px;
  margin: 0 0 30px;
  color: #43586a;
  font-size: 19px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #4f6578;
  font-size: 14px;
  font-weight: 650;
}

.trust-line span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-line span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.terminal-card {
  background: var(--code);
  color: #d9f6ff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.terminal-top {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  background: #0d263c;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #55d6a5;
}

.terminal-dot:nth-child(2) {
  background: #ffd166;
}

.terminal-dot:nth-child(3) {
  background: #ef476f;
}

.terminal-body {
  margin: 0;
  padding: 24px;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 14px;
  line-height: 1.85;
  white-space: pre-wrap;
}

.terminal-body .cmd {
  color: #7de1ff;
}

.terminal-body .ok {
  color: #76e4b8;
}

.section-title {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-title.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-title h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.16;
  color: #102033;
}

.section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 10px 28px rgba(20, 60, 90, 0.06);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.32;
}

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

.icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 8px;
  background: #eaf7fb;
  color: var(--brand);
}

.icon svg {
  width: 23px;
  height: 23px;
  stroke-width: 2;
}

.band {
  background: #08243b;
  color: #fff;
}

.band .section-title h2,
.band h3 {
  color: #fff;
}

.band .section-title p,
.band p {
  color: #c7d8e5;
}

.scenario-list {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: start;
}

.scenario-panel {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 28px;
}

.scenario-panel ul {
  padding-left: 20px;
  margin: 14px 0 0;
}

.scenario-panel li {
  margin: 10px 0;
  color: #dbe9f2;
}

.step-list {
  counter-reset: steps;
  display: grid;
  gap: 16px;
}

.step {
  position: relative;
  padding: 20px 22px 20px 70px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
}

.step::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #06263e;
  background: #80e6e0;
  font-weight: 900;
}

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

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

.quote {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.quote blockquote {
  margin: 0 0 18px;
  color: #263b4d;
  font-size: 18px;
  line-height: 1.62;
}

.quote cite {
  color: var(--muted);
  font-style: normal;
  font-weight: 750;
}

.download-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  background: linear-gradient(135deg, #1277b8, #16a3a6);
  color: #fff;
  border-radius: var(--radius);
}

.download-strip h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

.download-strip p {
  margin: 0;
  color: rgba(255,255,255,0.86);
}

.page-hero {
  padding: 70px 24px 54px;
  background: linear-gradient(135deg, #eef8fd 0%, #ffffff 100%);
}

.page-hero .container {
  max-width: 980px;
}

.breadcrumb {
  margin-bottom: 16px;
  color: var(--brand-dark);
  font-weight: 800;
  font-size: 14px;
}

.feature-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.feature-row:last-child {
  border-bottom: 1px solid var(--line);
}

.feature-row h2 {
  margin: 0;
  font-size: 25px;
  color: #09233d;
}

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

.feature-row ul {
  margin: 0;
  padding-left: 20px;
  color: #3d5265;
}

.feature-row li {
  margin: 8px 0;
}

.download-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(20, 60, 90, 0.06);
}

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

.download-table th {
  background: #eef7fb;
  color: #23394c;
  font-size: 14px;
}

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

.download-table .btn {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
}

.faq {
  display: grid;
  gap: 14px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
}

.faq summary {
  cursor: pointer;
  color: #122a3f;
  font-weight: 800;
}

.faq p {
  margin: 12px 0 0;
  color: var(--muted);
}

.site-footer {
  background: #071827;
  color: #b9cad8;
  padding: 46px 24px;
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr repeat(2, 0.8fr);
  gap: 34px;
}

.footer-logo {
  width: 150px;
  margin-bottom: 14px;
}

.site-footer h2,
.site-footer h3 {
  color: #fff;
  margin-top: 0;
}

.site-footer a {
  display: block;
  color: #d7e7f3;
  margin: 7px 0;
}

.footer-bottom {
  max-width: var(--max);
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 14px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

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

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 20, 32, 0.64);
}

.modal-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(0,0,0,0.28);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  margin: 0 0 4px;
  font-size: 24px;
}

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

.modal-close {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.modal-body {
  padding: 26px 28px 30px;
}

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

.qr-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}

.qr-card img {
  width: 166px;
  border: 1px solid #edf2f5;
  border-radius: 6px;
}

.qr-card h3 {
  margin: 12px 0 4px;
  font-size: 17px;
}

.qr-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.download-links a {
  padding: 12px;
  border-radius: 6px;
  background: #eef8fd;
  color: var(--brand-dark);
  font-weight: 800;
  text-align: center;
}

.notice {
  padding: 16px 18px;
  background: #ecf8f4;
  border: 1px solid #cbeade;
  border-radius: var(--radius);
  color: #285d4b;
}

@media (max-width: 980px) {
  .hero-grid,
  .scenario-list,
  .footer-grid,
  .feature-row {
    grid-template-columns: 1fr;
  }

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

  .nav {
    min-height: 64px;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 64px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-action {
    display: none;
  }
}

@media (max-width: 720px) {
  .section,
  .hero,
  .page-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    padding-top: 46px;
  }

  .brand img {
    width: 132px;
  }

  .grid-3,
  .grid-2,
  .quote-grid,
  .qr-grid,
  .download-links {
    grid-template-columns: 1fr;
  }

  .download-strip {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
  }

  .download-table,
  .download-table tbody,
  .download-table tr,
  .download-table td {
    display: block;
    width: 100%;
  }

  .download-table thead {
    display: none;
  }

  .download-table tr {
    border-bottom: 1px solid var(--line);
  }

  .download-table td {
    border-bottom: 0;
    padding: 12px 16px;
  }

  .modal-head,
  .modal-body {
    padding-left: 20px;
    padding-right: 20px;
  }
}
