/* =========================================================
   圆保科技官网 — 前台设计体系 style.css
   深色 AI 风 · 品牌渐变蓝紫 #3ea9ff → #5448dd → #6633d2
   class 清单与 CONVENTIONS.md「CSS class 约定」完全一致
   ========================================================= */

/* ---------------------------------------------------------
   1. 设计 Tokens（核心 tokens 与 CONVENTIONS.md 完全一致）
   --------------------------------------------------------- */
:root {
  /* 核心 tokens（约定值，不可改） */
  --bg: #0b0d19;              /* 页面底色 */
  --bg-card: #161a2e;         /* 卡片底色 */
  --grad-primary: linear-gradient(135deg, #3ea9ff, #5448dd, #6633d2);  /* 品牌渐变 */
  --accent: #7c6bff;          /* 强调紫 */
  --accent-2: #3ea9ff;        /* 强调蓝 */
  --text: #fff;
  --text-dim: rgba(255, 255, 255, .72);
  --radius: 10px;
  --radius-lg: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  /* 衍生 tokens（派生自核心 tokens，供组件使用） */
  --bg-deep: #070913;                       /* 页脚 / 移动端下拉面板 */
  --border: rgba(255, 255, 255, .08);       /* 通用描边 */
  --input-bg: #10142a;                      /* 输入框底色 */
  --glow: rgba(124, 107, 255, .35);         /* 渐变发光阴影色 */
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, .45);
  --nav-height: 72px;
  --success: #34d399;
  --error: #f87171;

  color-scheme: dark;
}

/* ---------------------------------------------------------
   2. 基础
   --------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 12px);   /* 锚点滚动不被固定导航遮挡 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

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

a {
  color: var(--accent-2);
  text-decoration: none;
  transition: color .2s ease;
}
a:hover { color: var(--accent); }

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(124, 107, 255, .35);
  color: var(--text);
}

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

/* ---------------------------------------------------------
   3. 布局
   --------------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 间距工具 mt-*（8px 步进） */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 40px; }
.mt-6 { margin-top: 48px; }
.mt-7 { margin-top: 56px; }
.mt-8 { margin-top: 64px; }

/* ---------------------------------------------------------
   4. 按钮
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease, color .25s ease;
}

.btn-primary {
  background: var(--grad-primary);
  color: var(--text);
  box-shadow: 0 8px 24px var(--glow);
}
.btn-primary:hover {
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(124, 107, 255, .5);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, .25);
  color: var(--text);
}
.btn-outline:hover {
  background: var(--grad-primary);
  border-color: transparent;
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px var(--glow);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 17px;
  border-radius: var(--radius-lg);
}

/* ---------------------------------------------------------
   5. 导航（fixed 顶部，滚动后毛玻璃）
   --------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.nav.scrolled {
  background: rgba(11, 13, 25, .78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .35);
}

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

.nav-logo {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--text);
}
.nav-logo:hover { color: var(--text); }
.nav-logo-accent {
  background-image: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color .2s ease, background-color .2s ease;
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .06);
}
.nav-links a.active {
  color: var(--text);
  background: transparent;
  background-image: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-primary);
}

.nav-cta {
  margin-left: 10px;
  padding: 9px 20px !important;
  border-radius: var(--radius) !important;
  background: var(--grad-primary);
  -webkit-text-fill-color: var(--text) !important;
  color: var(--text) !important;
  font-weight: 600;
  box-shadow: 0 6px 18px var(--glow);
  transition: transform .25s ease, box-shadow .25s ease !important;
}
.nav-cta:hover {
  -webkit-text-fill-color: var(--text) !important;
  background: var(--grad-primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(124, 107, 255, .5);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle:hover span { background: var(--accent-2); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------
   6. Hero（首屏，径向渐变光晕氛围）
   --------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-height) + 88px) 0 110px;
  text-align: center;
  background:
    radial-gradient(700px 420px at 18% 12%, rgba(62, 169, 255, .13), transparent 65%),
    radial-gradient(800px 500px at 82% 20%, rgba(102, 51, 210, .20), transparent 65%),
    radial-gradient(600px 400px at 50% 110%, rgba(124, 107, 255, .12), transparent 60%),
    var(--bg);
}

.hero-title {
  max-width: 900px;
  margin: 0 auto 22px;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  background-image: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-sub {
  max-width: 680px;
  margin: 0 auto 40px;
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  line-height: 1.8;
  color: var(--text-dim);
}

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

/* ---------------------------------------------------------
   7. 区块
   --------------------------------------------------------- */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 14px;
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.02em;
  background-image: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.section-title h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.02em;
}
.section-title p {
  margin-top: 12px;
  font-size: 16px;
  color: var(--text-dim);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section-sub {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dim);
}

/* ---------------------------------------------------------
   8. 卡片
   --------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  position: relative;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
/* 渐变描边（hover 发光）：content-box 叠 border-box 双背景 */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-primary);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.card:hover,
.card-hover {
  transform: translateY(-6px);
  border-color: rgba(124, 107, 255, .45);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .42), 0 0 24px rgba(124, 107, 255, .12);
}
.card:hover::before,
.card-hover::before { opacity: 1; }

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: rgba(124, 107, 255, .12);
  border: 1px solid rgba(124, 107, 255, .28);
  font-size: 24px;
  line-height: 1;
}
.card-icon img { width: 28px; height: 28px; }

.card-title {
  margin-bottom: 10px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}
.card-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-dim);
}

/* ---------------------------------------------------------
   9. 痛点（四字短语渐变标题 + 一句解释）
   --------------------------------------------------------- */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.pain-item {
  padding: 24px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.pain-item:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 107, 255, .45);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .35), 0 0 20px rgba(124, 107, 255, .1);
}

.pain-title {
  margin-bottom: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  background-image: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.pain-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-dim);
}

/* ---------------------------------------------------------
   10. 对比表（表头渐变文字，hover 行高亮，移动端横滚）
   --------------------------------------------------------- */
.compare-table {
  width: 100%;
  border-collapse: collapse;
}

.compare-th {
  padding: 16px 20px;
  text-align: left;
  font-size: 1.02rem;
  font-weight: 600;
  background: rgba(255, 255, 255, .04);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  background-image: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.compare-td {
  padding: 16px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: background-color .2s ease, color .2s ease;
}
.compare-table tbody tr:last-child .compare-td { border-bottom: none; }
.compare-table tbody tr:hover .compare-td {
  background: rgba(124, 107, 255, .07);
  color: var(--text);
}
.compare-td:first-child {
  font-weight: 500;
  color: var(--text);
}

/* ---------------------------------------------------------
   11. 服务流程（横排 5 步，渐变圆形数字 + 连接线）
   --------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  text-align: center;
}

.step {
  position: relative;
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 28px;                              /* 圆形数字圆心 */
  left: calc(50% + 34px);
  right: 6px;
  height: 1px;
  background: linear-gradient(90deg, rgba(124, 107, 255, .45), rgba(62, 169, 255, .12));
}

.step-num {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--grad-primary);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  box-shadow: 0 8px 24px var(--glow);
}

.step-title {
  margin-top: 16px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.step-desc {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
}

/* ---------------------------------------------------------
   12. 数据统计（大号渐变数字）
   --------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat {
  text-align: center;
  padding: 8px 0;
}

.stat-num {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  background-image: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.stat-label {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-dim);
}

/* ---------------------------------------------------------
   13. 服务承诺
   --------------------------------------------------------- */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.promise-item {
  padding: 28px 24px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.promise-item:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 107, 255, .45);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .35), 0 0 20px rgba(124, 107, 255, .1);
}

.promise-title {
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.promise-desc {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-dim);
}

/* ---------------------------------------------------------
   14. 表单
   --------------------------------------------------------- */
.form-card {
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.form {
  display: grid;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background:
    linear-gradient(var(--input-bg), var(--input-bg)) padding-box,
    linear-gradient(rgba(255, 255, 255, .12), rgba(255, 255, 255, .12)) border-box;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  transition: box-shadow .25s ease;
}
.form-input::placeholder,
.form-textarea::placeholder { color: rgba(255, 255, 255, .35); }
.form-input:focus,
.form-textarea:focus {
  outline: none;
  background:
    linear-gradient(var(--input-bg), var(--input-bg)) padding-box,
    var(--grad-primary) border-box;
  box-shadow: 0 0 0 4px rgba(124, 107, 255, .15), 0 0 20px rgba(124, 107, 255, .12);
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  padding: 15px 24px;
  border: none;
  border-radius: var(--radius);
  background: var(--grad-primary);
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px var(--glow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(124, 107, 255, .5);
}
.form-submit:active { transform: translateY(0); }

.form-hint {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
}

.form-success {
  margin-top: 16px;
  padding: 14px 18px;
  border: 1px solid rgba(52, 211, 153, .4);
  border-radius: var(--radius);
  background: rgba(52, 211, 153, .1);
  color: var(--success);
  font-size: 15px;
  line-height: 1.6;
}

.form-error {
  margin-top: 16px;
  padding: 14px 18px;
  border: 1px solid rgba(248, 113, 113, .4);
  border-radius: var(--radius);
  background: rgba(248, 113, 113, .1);
  color: var(--error);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------------------------------------------------------
   15. 新闻卡片
   --------------------------------------------------------- */
.news-card {
  display: block;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.news-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 107, 255, .45);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .42), 0 0 24px rgba(124, 107, 255, .12);
}
.news-card:hover .news-cover { transform: scale(1.05); }

.news-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .5s ease;
}

.news-card-body { padding: 22px 24px 24px; }

.news-title {
  margin-bottom: 10px;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card:hover .news-title { color: var(--accent-2); }

.news-summary {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
}

/* ---------------------------------------------------------
   16. 分页
   --------------------------------------------------------- */
.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination-a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14.5px;
  color: var(--text-dim);
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.pagination-a:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(124, 107, 255, .08);
}

.pagination-current {
  background: var(--grad-primary);
  border-color: transparent;
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 6px 18px var(--glow);
}
.pagination-current:hover {
  background: var(--grad-primary);
  border-color: transparent;
  color: var(--text);
}

/* ---------------------------------------------------------
   17. 页脚（更暗底色）
   --------------------------------------------------------- */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 48px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 32px;
}

.footer-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}
.footer-logo span {
  background-image: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.footer-brand p {
  max-width: 280px;
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .5);
}

.footer-col h4 {
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 14.5px;
  color: rgba(255, 255, 255, .55);
  transition: color .2s ease, transform .2s ease;
}
.footer-col a:hover {
  color: var(--accent-2);
  transform: translateX(3px);
}
.footer-contact p {
  margin: 6px 0;
  font-size: 14.5px;
  color: rgba(255, 255, 255, .55);
}
.footer-contact a { display: inline; padding: 0; }
.footer-contact a:hover { transform: none; }

.footer-bottom {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-bottom p {
  margin: 3px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, .4);
}
.footer-bottom a { color: rgba(255, 255, 255, .5); }
.footer-bottom a:hover { color: var(--accent-2); }

/* ---------------------------------------------------------
   18. 滚动动效（JS 检测 data-animate，进入视口加 .animated）
   --------------------------------------------------------- */
[data-animate] { opacity: 0; }
[data-animate="fadeInUp"] { transform: translateY(24px); }
[data-animate="slideInLeft"] { transform: translateX(-32px); }
[data-animate="slideInRight"] { transform: translateX(32px); }

.animated {
  opacity: 1;
  transform: none;
  transition: opacity .7s ease, transform .7s ease;
}

/* ---------------------------------------------------------
   19. 响应式（唯一断点 768px，px 书写，移动端单列重排）
   --------------------------------------------------------- */
@media (max-width: 768px) {
  /* 导航：汉堡显示，链接竖排下拉面板 */
  .nav-inner { height: 64px; }

  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 20px 22px;
    background: rgba(11, 13, 25, .95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 48px rgba(0, 0, 0, .5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-links a {
    padding: 13px 16px;
    font-size: 15px;
    border-radius: var(--radius);
  }
  .nav-links a.active::after { left: 16px; right: 16px; bottom: 4px; }
  .nav-links .nav-cta {
    margin: 10px 0 0;
    justify-content: center;
    padding: 13px 16px !important;
  }

  /* Hero：缩小内边距 */
  .hero { padding: 128px 0 72px; }
  .hero-sub { margin-bottom: 32px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 320px; }

  /* 区块 */
  .section { padding: 56px 0; }
  .section-sub { margin-bottom: 40px; }

  /* 卡片单列 */
  .card-grid { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 26px; }

  /* 痛点单列 */
  .pain-grid { grid-template-columns: 1fr; gap: 12px; }

  /* 对比表：横向滚动 */
  .compare-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .compare-th,
  .compare-td { white-space: nowrap; padding: 14px 16px; }

  /* 流程竖排（隐藏连接线） */
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step:not(:last-child)::after { display: none; }
  .step { text-align: center; }

  /* 统计单列 */
  .stats { grid-template-columns: 1fr; gap: 20px; }

  /* 承诺单列 */
  .promise-grid { grid-template-columns: 1fr; gap: 14px; }

  /* 表单单列 */
  .form-card { padding: 26px 20px; }
  .form-row { grid-template-columns: 1fr; }

  /* 页脚单列 */
  .footer-inner { grid-template-columns: 1fr; gap: 28px; padding: 48px 24px 36px; }
}

/* ---------------------------------------------------------
   20. 无障碍：用户偏好减少动效时全部关闭
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
  }
}
