:root {
  --primary: #10b981;
  --primary-dark: #059669;
  --primary-light: #e6f7f0;
  --ink: #0f172a;
  --muted: #64748b;
  --muted-light: #94a3b8;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.28);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-light {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-light:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: 14px;
}

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  transition: box-shadow 0.25s ease;
}

.site-header.scrolled {
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(900px 380px at 85% -10%, rgba(16, 185, 129, 0.14), transparent 60%),
    radial-gradient(700px 320px at -10% 10%, rgba(56, 189, 248, 0.10), transparent 55%),
    #ffffff;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 96px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
}

.hero-text h1 {
  font-size: 52px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero-text h1 em {
  font-style: normal;
  color: var(--primary);
}

.hero-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 30px;
}

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

.hero-trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted-light);
}

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

/* 手机模拟器 */
.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-mock {
  width: 300px;
  border-radius: 34px;
  background: #0b1220;
  padding: 14px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.28);
  transform: perspective(1100px) rotateY(-8deg) rotateX(3deg);
  transition: transform 0.4s ease;
}

.phone-mock:hover {
  transform: perspective(1100px) rotateY(0deg) rotateX(0deg);
}

.phone-status {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  padding: 2px 6px 10px;
}

.phone-title {
  text-align: center;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  background: #f1f3f5;
  padding: 5px 0;
  border-radius: 8px 8px 0 0;
}

.board-title {
  color: #0f172a;
  background: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px 8px;
  display: flex;
  justify-content: space-between;
}

.board-title::after {
  content: "编辑";
  font-size: 10px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 8px;
  border-radius: 5px;
}

.card-grid {
  background: #ffffff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 12px 12px;
  border-radius: 0 0 16px 16px;
}

.mini-card {
  border-radius: 10px;
  padding: 10px 12px;
}

.mini-card.green { background: #f0fdf4; }
.mini-card.orange { background: #fff7ed; }
.mini-card.blue { background: #eff6ff; }

.mini-card small {
  display: block;
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 4px;
}

.mini-card strong {
  font-size: 14px;
  color: #0f172a;
}

.mini-card i {
  font-style: normal;
  font-size: 10px;
  color: #94a3b8;
  font-weight: 500;
}

.phone-tab {
  display: flex;
  justify-content: space-around;
  padding: 10px 4px 4px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
}

.phone-tab .active {
  color: var(--primary);
  font-weight: 700;
}

/* ===== 通用 section ===== */
.section {
  padding: 96px 0;
}

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

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--muted);
  font-size: 16px;
}

/* ===== 功能特性 ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(16, 185, 129, 0.4);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}

.feature-icon.green { background: #ecfdf5; color: #059669; }
.feature-icon.blue { background: #eff6ff; color: #2563eb; }
.feature-icon.purple { background: #f5f3ff; color: #7c3aed; }
.feature-icon.orange { background: #fff7ed; color: #ea580c; }
.feature-icon.teal { background: #f0fdfa; color: #0d9488; }
.feature-icon.red { background: #fef2f2; color: #dc2626; }

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

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

/* ===== 支持指标 ===== */
.metrics-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.group-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}

.chip-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chip {
  font-size: 13px;
  color: var(--ink);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* ===== 双栏 split ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split.reverse .split-text {
  order: 1;
}

.split.reverse .split-visual {
  order: 2;
}

.split-text h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.7px;
  margin-bottom: 16px;
}

.split-text p {
  color: var(--muted);
  font-size: 15.5px;
  margin-bottom: 24px;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  font-size: 14.5px;
  color: var(--ink);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 图表 mock */
.chart-mock {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.chart-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.chart-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.chart-name {
  font-size: 14px;
  font-weight: 700;
  flex: 1;
}

.chart-badge {
  font-size: 11px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

.chart-legend {
  display: flex;
  gap: 18px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lg {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}

.lg.green { background: var(--primary); }
.lg.gray { background: #cbd5e1; }

/* 同步 mock */
.sync-mock {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.node {
  width: 200px;
  padding: 16px 0;
  text-align: center;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
}

.node.phone {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.node.cloud {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 16px;
}

.node.line {
  width: auto;
  padding: 4px 14px;
  background: var(--bg-alt);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  border: 1px dashed var(--border);
  border-radius: 999px;
}

/* ===== 隐私 ===== */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.privacy-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.privacy-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.privacy-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.privacy-card p {
  font-size: 13.5px;
  color: var(--muted);
}

/* ===== 下载 ===== */
.download {
  background:
    radial-gradient(800px 300px at 50% 0%, rgba(255, 255, 255, 0.12), transparent 60%),
    linear-gradient(135deg, #059669, #10b981);
}

.download-inner {
  text-align: center;
  color: #fff;
}

.download-inner h2 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 14px;
}

.download-inner p {
  font-size: 16px;
  opacity: 0.92;
  margin-bottom: 28px;
}

.download-actions {
  margin-bottom: 18px;
}

.download-note {
  font-size: 13px;
  opacity: 0.75;
  margin-bottom: 0;
}

/* ===== 页脚 ===== */
.site-footer {
  background: #0b1220;
  color: #94a3b8;
  padding: 40px 0;
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-copy {
  font-size: 13px;
  margin-bottom: 6px;
}

.footer-icp {
  font-size: 13px;
  margin-bottom: 6px;
}

.footer-icp a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-icp a:hover {
  color: #10b981;
}

.footer-disclaimer {
  font-size: 12px;
  opacity: 0.7;
}

/* 滚动渐显 */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .hero-inner,
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-text h1 {
    font-size: 40px;
  }

  .feature-grid,
  .metrics-wrap {
    grid-template-columns: 1fr;
  }

  .privacy-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 64px 0;
  }

  .section-head h2,
  .download-inner h2 {
    font-size: 27px;
  }

  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .nav-download {
    display: none;
  }
}
