:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --surface-1: #fafafd;
  --surface-2: #f3f4f9;
  --header-bg: #e9eaf3;
  --header-line: #d8dae6;
  --text: #1b1f2a;
  --text-2: #5a6270;
  --text-3: #8a93a1;
  --line: #e4e7ec;
  --line-strong: #d3d8e0;
  --accent: #5b4bc4;
  --accent-dark: #4a3ca8;
  --accent-soft: #f1effc;
  --amber: #f2b705;
  --radius: 10px;
  --radius-lg: 14px;
  --container: 1160px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-line);
}

.header-inner {
  position: relative;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { width: 32px; height: 32px; display: block; }
.brand-name { font-size: 17px; font-weight: 600; letter-spacing: .01em; }

.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav a { font-size: 14px; color: var(--text-2); transition: color .15s; }
.nav a:hover, .nav a.is-active { color: var(--accent); }

.nav-toggle { display: none; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}

.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-ghost { background: var(--bg); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 13px; }
.nav-cta { flex-shrink: 0; }

/* ---------- hero ---------- */

.hero {
  padding: 88px 0 96px;
  background: #fcfcfe;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.28;
  letter-spacing: -.02em;
}

.lead {
  margin-top: 22px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-2);
  max-width: 520px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 22px; font-size: 13px; color: var(--text-3); }

.browser-frame {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 14px 38px rgba(27, 31, 42, .07);
}

.browser-bar {
  height: 34px;
  background: #f1f2f5;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
}

.dot { width: 8px; height: 8px; border-radius: 50%; background: #c9cdd6; }
.browser-title { margin-left: 12px; font-size: 12px; color: var(--text-3); }
.browser-frame img { display: block; width: 100%; height: auto; }

/* ---------- sections ---------- */

.section {
  padding: 88px 0;
  background: var(--surface-1);
  border-bottom: 1px solid var(--line);
}
.section-tinted { background: var(--surface-2); }

.section-kicker { font-size: 13px; font-weight: 500; color: var(--accent); letter-spacing: .06em; }
.section-title { margin-top: 12px; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.4; letter-spacing: -.01em; }
.section-intro { margin-top: 16px; font-size: 15px; line-height: 1.8; color: var(--text-2); max-width: 720px; }

.card-grid { display: grid; gap: 16px; margin-top: 40px; }
.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color .15s;
}
.card:hover { border-color: #c9c2ef; }

.card-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { margin-top: 18px; font-size: 16px; }
.card p { margin-top: 10px; font-size: 14px; line-height: 1.75; color: var(--text-2); }

.compliance-note {
  margin-top: 28px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-2);
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 3px solid #c9c2ef;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ---------- features ---------- */

.feature-list { margin-top: 40px; border-top: 1px solid var(--line); }

.feature-row {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.feature-key .num { font-size: 12px; color: var(--accent); letter-spacing: .1em; }
.feature-key h3 { margin-top: 6px; font-size: 18px; }
.feature-body p { font-size: 15px; line-height: 1.8; color: var(--text-2); max-width: 780px; }

.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 16px 0 0; }
.tag-list li {
  font-size: 13px;
  color: var(--text-2);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 10px;
}

/* ---------- screenshots ---------- */

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

.shot {
  margin: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.shot-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--bg-soft);
  cursor: zoom-in;
}
.shot-btn img { display: block; width: 100%; height: auto; transition: opacity .15s; }
.shot-btn:hover img { opacity: .88; }

.shot figcaption { padding: 16px 18px; display: flex; flex-direction: column; gap: 3px; }
.shot figcaption strong { font-size: 15px; font-weight: 600; }
.shot figcaption span { font-size: 13px; color: var(--text-3); }

/* ---------- specs ---------- */

.spec-grid {
  display: grid;
  grid-template-columns: 1.6fr minmax(0, 1fr);
  gap: 28px;
  margin-top: 40px;
  align-items: start;
}

.spec-table-wrap {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table thead th { font-size: 13px; font-weight: 500; color: var(--text-3); background: var(--bg-soft); }
.spec-table tbody th { width: 132px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.spec-table tbody td { color: var(--text); line-height: 1.7; }

.spec-side {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.spec-side h3 { font-size: 15px; }
.spec-side p { margin-top: 10px; font-size: 14px; line-height: 1.8; color: var(--text-2); }
.spec-side h3 + p { margin-bottom: 22px; }
.spec-note { padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px !important; color: var(--text-3) !important; }

/* ---------- scenarios ---------- */

.scenario-card { padding: 26px; }
.scenario-num { font-size: 12px; color: var(--accent); letter-spacing: .1em; }
.scenario-card h3 { margin-top: 14px; font-size: 17px; }
.scenario-card p { margin-top: 10px; }

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-cards { display: grid; gap: 12px; }

.contact-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-label { font-size: 13px; color: var(--text-3); }
.contact-value { font-size: 18px; font-weight: 600; }
.contact-value.is-placeholder { color: var(--text-3); font-weight: 400; font-size: 15px; }
.contact-hint { font-size: 13px; color: var(--text-3); }

/* ---------- footer ---------- */

.site-footer { padding-top: 56px; background: #fcfcfe; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-brand p { margin-top: 16px; font-size: 14px; line-height: 1.8; color: var(--text-2); max-width: 330px; }
.footer-col h3 { font-size: 14px; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-2); margin-bottom: 10px; }
.footer-col a:hover { color: var(--accent); }
.footer-col p { font-size: 13px; line-height: 1.8; color: var(--text-2); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-3);
}
.trademark { max-width: 660px; line-height: 1.7; }

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 24, 34, .9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 1040px; }
.lightbox img { display: block; max-width: 100%; max-height: 78vh; background: #fff; border-radius: 8px; }
.lightbox figcaption { margin-top: 14px; text-align: center; font-size: 14px; color: #fff; }
.lightbox-close {
  position: absolute;
  top: 18px; right: 26px;
  width: 40px; height: 40px;
  border: 0; background: transparent;
  color: #fff; font-size: 30px; line-height: 1;
  cursor: pointer;
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .header-inner { gap: 16px; }
  .nav {
    display: none;
    position: absolute;
    top: 66px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
    box-shadow: 0 12px 24px rgba(27, 31, 42, .06);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-left: auto; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px; height: 36px;
    padding: 0 8px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--bg);
    cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--text-2); border-radius: 2px; }

  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .card-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-row { grid-template-columns: 1fr; gap: 12px; }
  .spec-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .section { padding: 64px 0; }
  .hero { padding: 52px 0 60px; }
  .hero h1 { font-size: 30px; }
  .lead { font-size: 15px; }
  .nav-cta { display: none; }
  .card-grid.four, .card-grid.three { grid-template-columns: 1fr; }
  .shot-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 24px; }
  .spec-table tbody th { width: auto; white-space: normal; }
  .spec-table th, .spec-table td { padding: 12px 14px; font-size: 13px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; }
  .lightbox { padding: 16px; }
}

.download-hint {
  margin-top: 18px;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius);
}

/* ---------- 深色主题（data-theme="dark"，由 <head> 内联脚本按系统/时间设置） ---------- */

[data-theme="dark"] {
  --bg: #20242e;
  --bg-soft: #262b36;
  --surface-1: #171a22;
  --surface-2: #1c2029;
  --header-bg: #101319;
  --header-line: #2a2f3b;
  --text: #e9ebf2;
  --text-2: #a8afbe;
  --text-3: #7c8494;
  --line: #2b3040;
  --line-strong: #3a4152;
  --accent: #9b8cff;
  --accent-dark: #b3a7ff;
  --accent-soft: #2a2647;
  --amber: #f2c230;
  color-scheme: dark;
}

[data-theme="dark"] .hero { background: #13161e; }
[data-theme="dark"] .site-footer { background: #13161e; }
[data-theme="dark"] .browser-bar { background: #292e3a; }
[data-theme="dark"] .dot { background: #555c6c; }
[data-theme="dark"] .card:hover { border-color: #6b5fd0; }
[data-theme="dark"] .compliance-note { border-left-color: #6b5fd0; }
[data-theme="dark"] .btn-primary { color: #14131f; }
[data-theme="dark"] .btn-primary:hover { color: #14131f; }
[data-theme="dark"] .lightbox { background: rgba(8, 10, 16, .92); }
[data-theme="dark"] .lightbox img { background: #20242e; }
[data-theme="dark"] .lightbox figcaption { color: #e9ebf2; }
[data-theme="dark"] .lightbox-close { color: #e9ebf2; }
