:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --text: #16181d;
  --text-soft: #5b616e;
  --border: #e5e8ef;
  --primary: #6366f1;
  --primary-strong: #4f46e5;
  --accent: #22d3ee;
  --shadow: 0 10px 30px rgba(22, 24, 29, 0.08);
}

[data-theme="dark"] {
  --bg: #0f1117;
  --surface: #171a23;
  --text: #eef0f6;
  --text-soft: #9aa1b2;
  --border: #262b38;
  --primary: #818cf8;
  --primary-strong: #6366f1;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

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

/* ---------- 导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.nav-links { display: flex; gap: 22px; margin-left: 12px; }

.nav-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.15s, border-color 0.2s;
}

.icon-btn:hover { transform: translateY(-1px); border-color: var(--primary); }

.icon-btn svg { width: 18px; height: 18px; }

[data-theme="dark"] .icon-moon { display: none; }
:root:not([data-theme="dark"]) .icon-sun { display: none; }

.menu-btn { display: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 35%, transparent);
}

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

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface);
}

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

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 90px;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 520px;
  background:
    radial-gradient(600px 300px at 30% 20%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 70%),
    radial-gradient(500px 260px at 75% 30%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%);
  pointer-events: none;
}

.hero-inner { position: relative; }

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.85rem;
  margin-bottom: 22px;
}

.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.15; letter-spacing: 0.01em; }

.gradient-text {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 620px;
  margin: 22px auto 34px;
  color: var(--text-soft);
  font-size: 1.08rem;
}

.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.stats {
  margin-top: 64px;
  display: flex;
  justify-content: center;
  gap: clamp(28px, 8vw, 90px);
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-num { display: block; font-size: 2rem; font-weight: 700; color: var(--primary); }

.stat-label { color: var(--text-soft); font-size: 0.9rem; }

/* ---------- 通用区块 ---------- */
.section { padding: 90px 0; }

.section-alt { background: var(--surface); border-block: 1px solid var(--border); }

.section-title { font-size: clamp(1.6rem, 3.5vw, 2.2rem); text-align: center; }

.section-sub {
  text-align: center;
  color: var(--text-soft);
  margin: 12px auto 48px;
  max-width: 560px;
}

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

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, border-color 0.2s;
}

.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }

.card-icon { font-size: 1.7rem; margin-bottom: 14px; }

.card h3 { margin-bottom: 8px; font-size: 1.08rem; }

.card p { color: var(--text-soft); font-size: 0.95rem; }

/* ---------- 工作方式 ---------- */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.showcase .section-title { text-align: left; }

.steps { list-style: none; counter-reset: step; margin-top: 28px; }

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 26px 52px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 700;
}

.steps li strong { display: block; margin-bottom: 2px; }

.steps li span { color: var(--text-soft); font-size: 0.95rem; }

/* ---------- 模拟窗口 ---------- */
.mock-window {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow);
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.8rem;
  color: var(--text-soft);
}

.mock-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.mock-bar span { margin-left: 10px; }

.mock-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 18px; }

.mock-col h4 { font-size: 0.78rem; color: var(--text-soft); margin-bottom: 10px; font-weight: 600; }

.mock-card {
  height: 46px;
  border-radius: 10px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--primary) 14%, var(--surface)), var(--surface));
  border: 1px solid var(--border);
  margin-bottom: 10px;
}

.mock-card.short { height: 32px; }

/* ---------- 定价 ---------- */
.pricing { align-items: stretch; }

.price-card { display: flex; flex-direction: column; text-align: center; position: relative; }

.price-card h3 { font-size: 1.05rem; }

.price { font-size: 2.1rem; font-weight: 700; margin: 12px 0 18px; }

.price span { font-size: 0.95rem; color: var(--text-soft); font-weight: 400; }

.price-card ul {
  list-style: none;
  margin-bottom: 26px;
  color: var(--text-soft);
  font-size: 0.93rem;
  flex: 1;
}

.price-card li { padding: 5px 0; }

.tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.price-card.featured { border-color: var(--primary); }

/* ---------- 联系表单 ---------- */
.contact { text-align: center; }

.contact-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.contact-form input {
  width: min(360px, 100%);
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
}

.form-msg { margin-top: 18px; font-size: 0.95rem; color: var(--primary); min-height: 1.4em; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--border); padding: 26px 0; }

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.back-top { color: var(--text-soft); text-decoration: none; }

.back-top:hover { color: var(--primary); }

/* ---------- 滚动进入动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible { opacity: 1; transform: none; }

/* ---------- 子页面页头 ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 54px;
  text-align: center;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -50% -20% auto;
  height: 420px;
  background:
    radial-gradient(520px 260px at 35% 30%, color-mix(in srgb, var(--primary) 20%, transparent), transparent 70%),
    radial-gradient(460px 240px at 70% 25%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
  pointer-events: none;
}

.page-hero .container { position: relative; }

.page-hero h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); line-height: 1.25; }

.page-hero p:last-child {
  color: var(--text-soft);
  max-width: 640px;
  margin: 16px auto 0;
}

.crumb {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.85rem;
  color: var(--text-soft);
}

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

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

/* ---------- 导航选中态 ---------- */
.nav-links a.active { color: var(--primary); font-weight: 600; }

.more-link { text-align: center; margin-top: 36px; }

.more-link a { color: var(--primary); text-decoration: none; font-weight: 600; }

.more-link a:hover { text-decoration: underline; }

/* ---------- 特性详情行 ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 44px;
  align-items: center;
  padding: 44px 0;
}

.feature-row + .feature-row { border-top: 1px solid var(--border); }

.feature-row.reverse .feature-visual { order: -1; }

.feature-text h2 { font-size: 1.45rem; margin-bottom: 12px; }

.feature-text > p { color: var(--text-soft); }

.check-list { list-style: none; margin-top: 18px; }

.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.check-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.feature-visual {
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 12%, var(--surface)), color-mix(in srgb, var(--accent) 10%, var(--surface)));
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

.feature-visual span { font-size: 4rem; }

/* ---------- 对比表 ---------- */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow-x: auto;
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

.compare-table th,
.compare-table td {
  padding: 14px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.compare-table th:first-child,
.compare-table td:first-child { text-align: left; }

.compare-table thead th {
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
  font-size: 0.95rem;
}

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

.compare-table td { color: var(--text-soft); }

.compare-table td:first-child { color: var(--text); font-weight: 600; }

/* ---------- CTA 横幅 ---------- */
.cta-banner {
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 56px 24px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 8%, var(--surface)), color-mix(in srgb, var(--accent) 6%, var(--surface)));
}

.cta-banner h2 { font-size: 1.6rem; margin-bottom: 8px; }

.cta-banner p { color: var(--text-soft); margin-bottom: 26px; }

/* ---------- 团队卡片 ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.member { text-align: center; }

.avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 16%, var(--surface)), color-mix(in srgb, var(--accent) 14%, var(--surface)));
  border: 1px solid var(--border);
}

.member h3 { font-size: 1rem; }

.member p { color: var(--text-soft); font-size: 0.88rem; }

.about-stats { margin-top: 56px; }

/* ---------- 时间线 ---------- */
.timeline { max-width: 640px; margin: 0 auto; }

.timeline-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 20px;
  position: relative;
  padding-bottom: 34px;
}

.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 37px;
  top: 34px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-year {
  font-weight: 700;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border));
  border-radius: 999px;
  height: fit-content;
  padding: 4px 0;
  text-align: center;
  font-size: 0.9rem;
}

.timeline-item strong { display: block; margin-bottom: 2px; }

.timeline-item p { color: var(--text-soft); font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 720px; margin: 0 auto; }

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 12px;
  padding: 4px 22px;
  box-shadow: var(--shadow);
}

.faq-list summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 30px;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.3rem;
  transition: transform 0.2s;
}

.faq-list details[open] summary::after { content: "−"; }

.faq-list details p { padding-bottom: 16px; color: var(--text-soft); font-size: 0.95rem; }

.faq .section-sub a { color: var(--primary); text-decoration: none; }

.faq .section-sub a:hover { text-decoration: underline; }

/* ---------- 联系页 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 30px;
  align-items: start;
}

.contact-info { display: grid; gap: 18px; }

.contact-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.contact-panel h2 { font-size: 1.3rem; }

.panel-sub { color: var(--text-soft); font-size: 0.9rem; margin: 6px 0 22px; }

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 7px;
}

.req { color: #ef4444; }

.field input,
.field textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
}

/* ---------- 页脚链接 ---------- */
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

.footer-links a { color: var(--text-soft); text-decoration: none; }

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

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .showcase { grid-template-columns: 1fr; }

  .feature-row { grid-template-columns: 1fr; gap: 26px; padding: 36px 0; }
  .feature-row.reverse .feature-visual { order: 0; }
  .feature-visual { max-width: 420px; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
  }

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

  .nav-links a { padding: 12px 24px; }

  .menu-btn { display: inline-flex; }

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

  .hero { padding: 80px 0 64px; }

  .timeline-item { grid-template-columns: 64px 1fr; gap: 14px; }
  .timeline-item:not(:last-child)::before { left: 31px; }
}
