/* ---------- FILE: tokens.css ---------- */
/* ==========================================================================
   Design Tokens — 品牌数字化服务站点
   风格基线：参考 tzvip.cn —— 蓝紫渐变主色 + Tailwind slate 中性色
   ========================================================================== */

:root {
  /* ---------- 品牌主色 Brand（蓝 → 紫渐变体系） ---------- */
  --brand-50:  #eff6ff;
  --brand-100: #dbeafe;
  --brand-200: #bfdbfe;
  --brand-300: #93c5fd;
  --brand-400: #60a5fa;
  --brand-500: #3b82f6;
  --brand-600: #2563eb;  /* 主色起点 */
  --brand-700: #1d4ed8;
  --brand-800: #1e40af;
  --brand-900: #1e3a8a;

  --violet-50:  #f5f3ff;
  --violet-100: #ede9fe;
  --violet-200: #ddd6fe;
  --violet-300: #c4b5fd;
  --violet-400: #a78bfa;
  --violet-500: #8b5cf6;
  --violet-600: #7c3aed;  /* 主色终点 */
  --violet-700: #6d28d9;
  --violet-800: #5b21b6;
  --violet-900: #4c1d95;

  /* ---------- 业务分类色 Categorical（四大业务线） ---------- */
  --biz-tech:    #2563eb;  /* 网站 & 小程序开发 */
  --biz-tech-bg: #eff6ff;
  --biz-ops:     #f97316;  /* 电商运营 */
  --biz-ops-bg:  #fff7ed;
  --biz-brand:   #7c3aed;  /* 品牌策划 */
  --biz-brand-bg:#f5f3ff;
  --biz-ai:      #10b981;  /* 企业 AI 培训 */
  --biz-ai-bg:   #ecfdf5;

  /* ---------- 语义色 Semantic ---------- */
  --success:      #10b981;
  --success-bg:   #ecfdf5;
  --warning:      #f59e0b;
  --warning-bg:   #fffbeb;
  --danger:       #ef4444;
  --danger-text:  #b91c1c;    /* 文本用深红：白底 6.4:1，通过 AA（--danger 仅 3.76:1） */
  --danger-bg:    #fef2f2;
  --info:         #3b82f6;
  --info-bg:      #eff6ff;

  /* ---------- 中性色 Neutral（slate） ---------- */
  --n-0:   #ffffff;
  --n-50:  #f8fafc;
  --n-100: #f1f5f9;
  --n-200: #e2e8f0;
  --n-300: #cbd5e1;
  --n-400: #94a3b8;
  --n-500: #64748b;
  --n-600: #475569;
  --n-700: #334155;
  --n-800: #1e293b;
  --n-900: #0f172a;
  --n-950: #080f1d;

  /* ---------- 语义化应用变量 ---------- */
  --bg:            var(--n-0);
  --bg-subtle:     var(--n-50);
  --bg-muted:      var(--n-100);
  --bg-inverse:    var(--n-900);
  --border:        var(--n-200);
  --border-strong: var(--n-300);
  --text:          var(--n-800);      /* 正文：对比度 12.6:1 */
  --text-strong:   var(--n-900);      /* 标题 */
  --text-muted:    var(--n-500);      /* 辅助：对比度 4.76:1 ✅ AA */
  --text-inverse:  #ffffff;
  --text-on-brand: #ffffff;

  /* ---------- 渐变 Gradients ---------- */
  --grad-primary: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --grad-primary-hover: linear-gradient(135deg, #1d4ed8 0%, #6d28d9 100%);
  --grad-soft:    linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
  --grad-text:    linear-gradient(120deg, #1e40af 0%, #7c3aed 55%, #a855f7 100%);
  --grad-dark:    linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --grad-line:    linear-gradient(90deg, transparent, #2563eb, #7c3aed, transparent);

  /* ---------- 字体 Font ---------- */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* 字阶 Type Scale（8px 基线，1.25 主比例） */
  --fs-12: 0.75rem;    /* 12px 标签/版权 */
  --fs-14: 0.875rem;   /* 14px 辅助/表单 */
  --fs-16: 1rem;       /* 16px 正文 */
  --fs-18: 1.125rem;   /* 18px 大正文/导语 */
  --fs-20: 1.25rem;    /* 20px 小标题 */
  --fs-24: 1.5rem;     /* 24px 卡片标题 */
  --fs-30: 1.875rem;   /* 30px 区块标题 */
  --fs-36: 2.25rem;    /* 36px 主标题（桌面） */
  --fs-48: 3rem;       /* 48px Hero 标题（桌面） */

  --lh-tight: 1.2;
  --lh-snug:  1.4;
  --lh-base:  1.75;    /* 中文正文行高 */

  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 800;

  /* ---------- 间距 Spacing（4px 基线） ---------- */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px;
  --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-24: 96px;
  --s-30: 120px;

  /* 区块纵向节奏（移动优先，断点放大） */
  --section-y: var(--s-12);       /* 48px 手机 */
  --section-y-lg: var(--s-20);    /* 80px 桌面 */

  /* ---------- 圆角 Radius ---------- */
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-2xl: 20px;
  --r-full: 999px;

  /* ---------- 阴影 Shadow ---------- */
  --sh-xs: 0 1px 2px rgba(15, 23, 42, .05);
  --sh-sm: 0 2px 8px rgba(15, 23, 42, .06);
  --sh-md: 0 8px 24px rgba(15, 23, 42, .08);
  --sh-lg: 0 16px 40px rgba(15, 23, 42, .12);
  --sh-brand: 0 12px 28px rgba(37, 99, 235, .28);
  --sh-violet: 0 12px 28px rgba(124, 58, 237, .28);
  --sh-inset: inset 0 1px 0 rgba(255, 255, 255, .15);

  /* ---------- 动效 Motion ---------- */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --dur-fast: .18s;
  --dur-base: .28s;
  --dur-slow: .5s;
  --dur-xslow: .8s;

  /* ---------- 布局 Layout ---------- */
  --container: 1200px;
  --container-narrow: 800px;   /* 内容页正文宽度 */
  --gutter: var(--s-4);        /* 16px 手机 */
  --header-h: 60px;            /* 移动端头部 */
  --header-h-lg: 72px;         /* 桌面头部 */
  --hero-h: 700px;             /* Hero 统一高度（A/B/C 三套方案等高） */

  /* ---------- 层级 Z-index ---------- */
  --z-base: 1;
  --z-sticky: 100;
  --z-header: 200;
  --z-drawer: 300;
  --z-toast: 400;

  /* ---------- 玻璃拟态 ---------- */
  --glass-bg: rgba(255, 255, 255, .82);
  --glass-border: rgba(226, 232, 240, .8);
}

/* ≥768px 平板 */
@media (min-width: 768px) {
  :root {
    --gutter: var(--s-6);
    --section-y: var(--s-16);
  }
}

/* ≥1200px 桌面 */
@media (min-width: 1200px) {
  :root {
    --section-y: var(--s-20);
  }
}


/* ---------- FILE: base.css ---------- */
/* ==========================================================================
   Base —— Reset / 排版 / 栅格 / 工具类 / 无障碍
   移动优先：默认单列，断点逐级增强
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: clip;                  /* 视口级横向裁剪（渐进增强） */
}
@supports not (overflow: clip) {
  html { overflow-x: hidden; }
}
@media (min-width: 992px) {
  html { scroll-padding-top: calc(var(--header-h-lg) + 24px); }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  line-height: var(--lh-base);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--s-4);
  color: var(--text-strong);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  letter-spacing: -.01em;
}
h1 { font-size: var(--fs-30); }
h2 { font-size: var(--fs-24); }
h3 { font-size: var(--fs-20); }
h4 { font-size: var(--fs-18); }
h5, h6 { font-size: var(--fs-16); }

@media (min-width: 768px) {
  h1 { font-size: var(--fs-36); }
  h2 { font-size: var(--fs-30); }
  h3 { font-size: var(--fs-24); }
}
@media (min-width: 1200px) {
  h1 { font-size: var(--fs-48); }
  h2 { font-size: var(--fs-36); }
}

p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--brand-600);
  text-decoration: none;
  transition: color var(--dur-base) var(--ease-out);
}
a:hover { color: var(--violet-600); }

img, svg, video { max-width: 100%; height: auto; display: block; }
/* 列表：默认清零外边距（原 16px 下外边距会泄漏到顶栏/导航/页脚等 flex 列表，
   导致 flex 居中把 margin 一起算进去、内容视觉偏上）。需要间距的列表各自声明。 */
ul, ol { margin: 0; padding-left: 1.4em; }
ul { list-style: none; padding-left: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: var(--s-8) 0;
}

/* ---------- 无障碍：焦点可见 ---------- */
:focus-visible {
  outline: 3px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
.on-dark :focus-visible { outline-color: #fff; }

.skip-link {
  position: fixed;
  top: -100px; left: var(--s-4);
  z-index: var(--z-toast);
  padding: var(--s-3) var(--s-5);
  background: var(--brand-600);
  color: #fff;
  border-radius: var(--r-sm);
  font-weight: var(--fw-semibold);
  transition: top var(--dur-base) var(--ease-out);
}
.skip-link:focus { top: var(--s-4); color: #fff; }

.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;
}

/* ---------- 布局：容器 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

/* ---------- 布局：响应式栅格（免媒体查询 + 防轨道撑爆） ---------- */
.grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: minmax(0, 1fr);   /* 手机：单列；minmax(0,1fr) 防止 min-content 撑爆轨道 */
}
.grid > * { min-width: 0; }
@media (min-width: 576px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 通用自适应卡片网格 */
.grid-auto {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.grid-auto > * { min-width: 0; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--s-2); }
.gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); }
.gap-6 { gap: var(--s-6); }
.wrap { flex-wrap: wrap; }

/* ---------- 区块 ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section--subtle { background: var(--bg-subtle); }
.section--muted  { background: var(--bg-muted); }
.section--dark   { background: var(--grad-dark); color: var(--text-inverse); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: rgba(255,255,255,.72); }

/* ---------- 文本工具 ---------- */
.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-sm { font-size: var(--fs-14); }
.text-xs { font-size: var(--fs-12); }
.text-lg { font-size: var(--fs-18); }
.lead { font-size: var(--fs-18); color: var(--text-muted); line-height: 1.8; }

/* 区块标题组 */
.section-head { text-align: center; max-width: 720px; margin: 0 auto var(--s-10); }
.section-head .eyebrow { justify-content: center; }
@media (min-width: 768px) { .section-head { margin-bottom: var(--s-12); } }

/* ---------- 减弱动效偏好 ----------
   设计决策：本模板的循环动画（hero 轮播 / 跑马灯 / 悬浮卡片 / 描边旋转）
   是页面核心展示内容，在"减少动态效果"模式下保留播放；
   仅关闭平滑滚动（scroll-behavior）与视差（JS 内 reduceMotion 判断），
   这两项才是真正的晕动症风险源。 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


/* ---------- FILE: components.css ---------- */
/* ==========================================================================
   Components —— 组件层（设计 token 优先，零魔法数字）
   ========================================================================== */

/* ============================ 1. 按钮 Button ============================ */
.btn {
  --btn-bg: var(--brand-600);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 12px var(--s-5);
  min-height: 44px;                 /* 触控目标 ≥44px */
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-14);
  font-weight: var(--fw-semibold);
  line-height: 1;
  text-align: center;
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              background-color var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.btn:hover { transform: translate3d(0, -2px, 0); }
.btn:active { transform: scale(.96); }

/* 主按钮：蓝紫渐变 */
.btn--primary {
  --btn-bg: var(--grad-primary);
  box-shadow: var(--sh-brand);
}
.btn--primary:hover { box-shadow: 0 16px 34px rgba(37, 99, 235, .36); color: #fff; }

/* 描边按钮 */
.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--brand-600);
  border-color: var(--brand-200);
  background: #fff;
}
.btn--outline:hover {
  --btn-fg: var(--violet-600);
  border-color: var(--violet-300);
  background: var(--violet-50);
  color: var(--violet-600);
}

/* 幽灵按钮 */
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
}
.btn--ghost:hover { --btn-bg: var(--n-100); }

/* 深色底上的白色按钮 */
.btn--white { --btn-bg: #fff; --btn-fg: var(--brand-700); }
.btn--white:hover { color: var(--violet-700); box-shadow: var(--sh-lg); }

/* 尺寸 */
.btn--sm { padding: 8px var(--s-4); min-height: 36px; font-size: var(--fs-12); }
.btn--lg {
  padding: 16px var(--s-8);
  min-height: 54px;
  font-size: var(--fs-16);
  border-radius: var(--r-lg);
}
.btn--block { width: 100%; }
.btn--icon { padding: 0; width: 44px; min-height: 44px; border-radius: var(--r-md); }

.btn .icon { width: 18px; height: 18px; flex: none; }

/* ============================ 2. 徽章 / 标签 ============================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-3);
  padding: 6px var(--s-3) 6px 6px;
  border-radius: var(--r-full);
  background: var(--grad-soft);
  color: var(--brand-700);
  font-size: var(--fs-12);
  font-weight: var(--fw-semibold);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow .dot {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
}
.eyebrow .dot .icon { width: 13px; height: 13px; }
.eyebrow--light { background: rgba(255,255,255,.1); color: #fff; }
.eyebrow--light .dot { background: rgba(255,255,255,.2); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px var(--s-3);
  border-radius: var(--r-full);
  background: var(--n-100);
  color: var(--n-600);
  font-size: var(--fs-12);
  font-weight: var(--fw-medium);
}
.tag--brand { background: var(--brand-50); color: var(--brand-700); }
.tag--violet { background: var(--violet-50); color: var(--violet-700); }
.tag--success { background: var(--success-bg); color: #047857; }
.tag--warning { background: var(--warning-bg); color: #b45309; }

/* ============================ 3. 图标盒 Icon Box ============================ */
.icon-box {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: var(--r-lg);
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--sh-brand);
  flex: none;
}
.icon-box .icon { width: 26px; height: 26px; }
.icon-box--lg { width: 68px; height: 68px; border-radius: var(--r-xl); }
.icon-box--lg .icon { width: 34px; height: 34px; }
.icon-box--sm { width: 40px; height: 40px; border-radius: var(--r-md); box-shadow: none; }
.icon-box--sm .icon { width: 20px; height: 20px; }
.icon-box--round { border-radius: 50%; }

.icon-box--soft   { background: var(--brand-50);  color: var(--brand-600);  box-shadow: none; }
.icon-box--violet { background: var(--violet-50); color: var(--violet-600); box-shadow: none; }
.icon-box--orange { background: var(--biz-ops-bg); color: var(--biz-ops);   box-shadow: none; }
.icon-box--green  { background: var(--biz-ai-bg);  color: var(--biz-ai);    box-shadow: none; }
.icon-box--dark   { background: var(--grad-dark);  color: #fff; box-shadow: none; }
.icon-box--glass  { background: rgba(255,255,255,.14); color: #fff; box-shadow: none; }

/* 通用图标尺寸 */
.icon { width: 20px; height: 20px; flex: none; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 28px; height: 28px; }

/* ============================ 4. 卡片 Card ============================ */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--s-6);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xs);
  overflow: hidden;
}
.card::before {                     /* 顶部渐变细线（悬停展开） */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out);
}
.card:hover::before { transform: scaleX(1); }

.card__title {
  margin: var(--s-4) 0 var(--s-2);
  font-size: var(--fs-20);
  font-weight: var(--fw-semibold);
}
.card__desc { margin: 0; color: var(--text-muted); font-size: var(--fs-14); line-height: 1.7; }

/* 卡片右上角装饰角标 */
.card__corner {
  position: absolute;
  top: var(--s-4); right: var(--s-4);
  font-size: var(--fs-48);
  font-weight: var(--fw-black);
  line-height: 1;
  color: var(--n-100);
  transition: color var(--dur-base) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  pointer-events: none;
}
.card:hover .card__corner { color: var(--brand-100); transform: translateY(-4px); }

/* 服务卡片（带子链接列表） */
.service-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px dashed var(--border);
}
.service-card__links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px var(--s-3);
  border-radius: var(--r-full);
  background: var(--n-50);
  border: 1px solid var(--border);
  color: var(--n-600);
  font-size: var(--fs-12);
  transition: all var(--dur-base) var(--ease-out);
}
.service-card__links a:hover {
  background: var(--grad-soft);
  border-color: var(--brand-200);
  color: var(--brand-700);
  transform: translateY(-2px);
}

/* 案例 / 新闻卡片（带图片区） */
.media-card { padding: 0; }
.media-card__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--grad-soft);
}
.media-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.media-card:hover .media-card__thumb img { transform: scale(1.06); }
.media-card__thumb .thumb-icon {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: rgba(255,255,255,.9);
}
.media-card__thumb .thumb-icon .icon { width: 48px; height: 48px; }
.media-card__body { padding: var(--s-5); }
.media-card__meta {
  display: flex; align-items: center; gap: var(--s-3);
  margin-bottom: var(--s-2);
  color: var(--n-500);        /* 原 n-400 仅 2.56:1，不达标 */
  font-size: var(--fs-12);
}
.media-card__title {
  margin: 0 0 var(--s-2);
  font-size: var(--fs-18);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.media-card__excerpt {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--fs-14);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 数据卡片 */
.stat {
  padding: var(--s-6);
  border-radius: var(--r-xl);
  background: #fff;
  border: 1px solid var(--border);
  text-align: center;
}
.stat__num {
  font-size: var(--fs-36);
  font-weight: var(--fw-black);
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat__num .suffix { font-size: .55em; }
.stat__label { margin: var(--s-2) 0 0; color: var(--text-muted); font-size: var(--fs-14); }

/* ============================ 5. 头部 Header ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  /* 性能：不用 backdrop-filter（滚动每帧重模糊，低端机严重掉帧），用高不透明度底色替代 */
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              background-color var(--dur-base) var(--ease-out);
}
.site-header.is-stuck {
  box-shadow: var(--sh-md);
  border-bottom-color: var(--border);
}

/* 顶部工具条（≥992px 显示） */
.topbar {
  display: none;
  background: var(--n-900);
  color: rgba(255,255,255,.7);
  font-size: var(--fs-12);
}
@media (min-width: 992px) { .topbar { display: block; } }
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 40px;
}
.topbar a { color: rgba(255,255,255,.7); }
.topbar a:hover { color: #fff; }
/* 顶栏行：外边距清零 + line-height:1，确保文字在 40px 行内严格居中 */
.topbar__list {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  margin: 0;
}
.topbar__list li { display: flex; align-items: center; gap: 6px; line-height: 1; }
.topbar__list a,
.topbar__list span { display: inline-flex; align-items: center; line-height: 1; }
.topbar .icon { width: 14px; height: 14px; flex: none; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: var(--header-h);
}
@media (min-width: 992px) { .nav { min-height: var(--header-h-lg); } }

.logo {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-18);
  font-weight: var(--fw-black);
  color: var(--text-strong);
  letter-spacing: -.02em;
  white-space: nowrap;
}
.logo:hover { color: var(--text-strong); }
.logo__mark {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: var(--r-md);
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--sh-brand);
  transition: transform var(--dur-base) var(--ease-spring);
}
.logo:hover .logo__mark { transform: rotate(-8deg) scale(1.06); }
.logo__mark .icon { width: 20px; height: 20px; }
.logo__text small {
  display: block;
  font-size: var(--fs-12);
  font-weight: var(--fw-medium);
  letter-spacing: .14em;
  color: var(--n-600);        /* 浅底：n-400 仅 2.56、n-500 在玻璃底 3.75，均不达标 */
  line-height: 1;
}
/* 页脚是深底，副标必须用浅色，否则深灰压深底对比度不足 */
.site-footer .logo__text small { color: rgba(255,255,255,.75); }

/* 主导航（桌面 ≥1200px；992–1199 使用抽屉，避免菜单挤压溢出） */
.nav__menu { display: none; }
@media (min-width: 1200px) {
  .nav__menu { display: flex; align-items: center; gap: var(--s-1); }
}
.nav__menu > li { position: relative; }
.nav__link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: var(--s-3) var(--s-3);
  border-radius: var(--r-sm);
  color: var(--n-700);
  font-size: var(--fs-14);
  font-weight: var(--fw-medium);
  white-space: nowrap;
  transition: color var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}
.nav__link:hover { color: var(--brand-600); background: var(--n-50); }
/* 下拉触发是 <button>：重置浏览器默认外观，与纯文字链接视觉统一。
   注意：只用 font-family 重置字体（按钮默认不继承），
   绝不能用 font: inherit 简写——会连同覆盖 .nav__link 的字号/字重 */
.nav__menu button.nav__link {
  appearance: none;
  background: none;
  border: 0;
  font-family: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.nav__link[aria-current="page"] { color: var(--brand-700); }
.nav__link .caret-icon {
  width: 14px; height: 14px;
  transition: transform var(--dur-base) var(--ease-out);
}
.nav__item--open > .nav__link { color: var(--brand-600); }
.nav__item--open > .nav__link .caret-icon { transform: rotate(180deg); }

/* 下拉菜单 */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 560px;
  padding: var(--s-5);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              visibility var(--dur-base);
}
.nav__item--open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
.dropdown__item {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-3);
  border-radius: var(--r-md);
  color: var(--text);
  transition: background-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.dropdown__item:hover { background: var(--n-50); transform: translateX(3px); color: var(--text); }
.dropdown__item .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--brand-600); }
.dropdown__item strong { display: block; font-size: var(--fs-14); margin-bottom: 2px; }
.dropdown__item span { display: block; font-size: var(--fs-12); color: var(--text-muted); line-height: 1.6; }

/* 头部动作区 */
.nav__actions { display: flex; align-items: center; gap: var(--s-2); }
@media (max-width: 379px) {         /* 小屏：CTA 收为图标按钮，避免文字竖排 */
  .nav__actions .btn--sm .btn__label { display: none; }
  .nav__actions .btn--sm { min-width: 38px; width: 38px; min-height: 38px; padding: 0; }
  .nav__actions .btn--sm .icon { width: 17px; height: 17px; }
}

/* 汉堡按钮 */
.burger {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--n-700);
}
@media (min-width: 1200px) { .burger { display: none; } }
.burger__lines { position: relative; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: background-color .2s; }
.burger__lines::before,
.burger__lines::after {
  content: "";
  position: absolute; left: 0;
  width: 18px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out);
}
.burger__lines::before { top: -6px; }
.burger__lines::after  { top: 6px; }
.burger[aria-expanded="true"] .burger__lines { background: transparent; }
.burger[aria-expanded="true"] .burger__lines::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines::after  { transform: translateY(-6px) rotate(-45deg); }

/* 移动抽屉 */
.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  display: none;
}
.drawer.is-open { display: block; }
.drawer__backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, .5);
  animation: fade-in var(--dur-base) var(--ease-out);
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.drawer__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(88vw, 360px);
  padding: var(--s-5);
  background: #fff;
  overflow-y: auto;
  box-shadow: var(--sh-lg);
}
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-5); }
.drawer__group { border-bottom: 1px solid var(--border); }
.drawer__toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  padding: var(--s-4) 0;
  background: none; border: 0;
  font-size: var(--fs-16); font-weight: var(--fw-semibold);
  color: var(--text-strong);
}
.drawer__toggle .caret-icon { width: 18px; height: 18px; transition: transform var(--dur-base) var(--ease-out); }
.drawer__toggle[aria-expanded="true"] .caret-icon { transform: rotate(180deg); }
.drawer__sub { display: none; padding-bottom: var(--s-3); }
.drawer__sub.is-open { display: block; animation: slide-down var(--dur-base) var(--ease-out); }
.drawer__sub a {
  display: flex; align-items: center; gap: var(--s-3);
  padding: 10px var(--s-3);
  border-radius: var(--r-md);
  color: var(--n-600); font-size: var(--fs-14);
}
.drawer__sub a:hover { background: var(--n-50); color: var(--brand-600); }
.drawer__sub .icon { width: 18px; height: 18px; color: var(--brand-500); }
.drawer__cta { margin-top: var(--s-6); display: grid; gap: var(--s-3); }

/* ============================ 6. Hero ============================ */
.hero {
  position: relative;
  display: flex;              /* 三套方案等高：内容在统一高度内垂直居中 */
  align-items: center;
  min-height: var(--hero-h);
  padding-block: var(--s-16) var(--s-12);
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(37,99,235,.10), transparent 60%),
    radial-gradient(800px 500px at 85% 10%, rgba(124,58,237,.12), transparent 60%),
    var(--n-0);
  overflow: hidden;
}
@media (max-width: 767px) { .hero { min-height: 0; } }
.hero > .container { width: 100%; }
@media (min-width: 768px) { .hero { padding-block: var(--s-24) var(--s-20); } }

.hero__grid-bg {                    /* 网格底纹（性能：外扩 60px 供 transform 平移，不露边） */
  position: absolute; inset: -60px;
  background-image:
    linear-gradient(rgba(148,163,184,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.14) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero__blob {                       /* 渐变光斑（性能：径向渐变替代 blur 滤镜） */
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero__blob--1 { width: 520px; height: 520px; top: -180px; left: -160px; background: radial-gradient(closest-side, rgba(59,130,246,.30), transparent 70%); }
.hero__blob--2 { width: 500px; height: 500px; bottom: -160px; right: -140px; background: radial-gradient(closest-side, rgba(139,92,246,.30), transparent 70%); animation-delay: -6s; }

.hero__inner { position: relative; z-index: 1; text-align: center; }
.hero h1 { margin-bottom: var(--s-5); }
.hero__lead {
  max-width: 640px;
  margin: 0 auto var(--s-8);
  font-size: var(--fs-16);
  color: var(--n-600);
  line-height: 1.9;
}
@media (min-width: 768px) { .hero__lead { font-size: var(--fs-18); } }
.hero__actions { display: flex; flex-direction: column; gap: var(--s-3); align-items: stretch; }
@media (min-width: 576px) { .hero__actions { flex-direction: row; justify-content: center; } }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-2);
  max-width: 720px;
  margin: var(--s-12) auto 0;
  padding: var(--s-5);
  background: rgba(255, 255, 255, .88);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-md);
}
.hero__stat { text-align: center; }
.hero__stat b {
  display: block;
  font-size: var(--fs-24);
  font-weight: var(--fw-black);
  line-height: 1.1;
  color: var(--brand-700);
  font-variant-numeric: tabular-nums;
}
@media (min-width: 768px) { .hero__stat b { font-size: var(--fs-30); } }
.hero__stat > span { display: block; font-size: var(--fs-12); color: var(--text-muted); }
/* 计数数字继承 b 的字号与颜色，不被标签样式影响 */
.hero__stat b span { font: inherit; color: inherit; }
.hero__stat + .hero__stat { border-left: 1px solid var(--border); }
@media (max-width: 767px) {
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 479px) {        /* 小屏：收紧数据条，避免挤压 */
  .hero__stats { padding: var(--s-4); gap: var(--s-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__stat b { font-size: var(--fs-20); }
}

.hero__scroll {
  display: none;
  position: absolute;
  left: 50%; bottom: var(--s-6);
  transform: translateX(-50%);
  color: var(--n-400);
}
@media (min-width: 768px) { .hero__scroll { display: block; } }

/* 装饰 SVG 环 */
.hero__ring {
  position: absolute;
  opacity: .5;
  pointer-events: none;
}
@media (max-width: 991px) { .hero__ring { display: none; } }

/* ============================ 6.1 Hero 三套方案（等高 · 风格统一） ============================ */

/* 双栏骨架：A=左文右图 / C=左图右文 / B=居中通栏 */
.hero__grid {
  display: grid;
  gap: var(--s-10);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
@media (min-width: 992px) {
  .hero__grid      { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
  .hero__grid--rev { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
  .hero__grid--rev .hero__visual { order: -1; }
}
/* A / C：文案左对齐（覆盖基线 hero 的居中） */
.hero--a .hero__copy,
.hero--c .hero__copy { text-align: left; }
.hero--a .hero__lead,
.hero--c .hero__lead { margin-left: 0; margin-right: 0; max-width: 560px; }
@media (min-width: 576px) {
  .hero--a .hero__actions,
  .hero--c .hero__actions { justify-content: flex-start; }
}
.hero--a .hero__stats,
.hero--c .hero__stats { margin-left: 0; margin-right: 0; max-width: 560px; }

/* ---------- 动效画面容器 ---------- */
.hv { position: relative; }
.hv__glow {
  position: absolute;
  inset: -14% -8%;
  background: radial-gradient(closest-side, rgba(59,130,246,.20), transparent 72%);
  pointer-events: none;
}
.hero__visual { position: relative; }

/* 浏览器窗口（方案 A 主视觉） */
.mock {
  position: relative;
  border-radius: var(--r-xl);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--sh-xl);
  overflow: hidden;
}
.mock__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px var(--s-4);
  background: var(--n-50);
  border-bottom: 1px solid var(--border);
}
.mock__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--n-300); flex: none; }
.mock__dot:nth-child(1) { background: #f87171; }
.mock__dot:nth-child(2) { background: #fbbf24; }
.mock__dot:nth-child(3) { background: #34d399; }
.mock__url {
  margin-left: var(--s-2);
  flex: 1;
  padding: 3px var(--s-3);
  border-radius: var(--r-full);
  background: #fff;
  border: 1px solid var(--border);
  font-size: var(--fs-12);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock__body { padding: var(--s-5); display: grid; gap: var(--s-4); }
.mock__line {
  height: 10px;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--n-100), var(--n-200));
}
.mock__line--brand { background: linear-gradient(90deg, var(--brand-400), var(--violet-400)); }

/* 柱状图 */
.bars {
  display: flex;
  align-items: flex-end;
  gap: var(--s-2);
  height: 96px;
}
.bar {
  flex: 1;
  height: var(--h, 50%);
  min-width: 0;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--brand-400), var(--brand-600));
  transform-origin: bottom;
}
.bar:nth-child(even) { background: linear-gradient(180deg, var(--violet-300), var(--violet-500)); }

/* 浮动信息卡 */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: 10px var(--s-3);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  font-size: var(--fs-12);
  font-weight: var(--fw-semibold);
  color: var(--text-strong);
  white-space: nowrap;
  z-index: 2;
}
.float-card .icon { width: 16px; height: 16px; flex: none; color: var(--brand-500); }
.float-card small { display: block; font-size: var(--fs-12); font-weight: var(--fw-normal); color: var(--text-muted); }
.float-card--1 { top: 6%;  left: -10%; }
.float-card--2 { bottom: 14%; right: -8%; }
.float-card--3 { top: 46%; right: -14%; }
/* 小屏：收到视觉区内部，避免被 overflow 裁掉 */
@media (max-width: 991px) {
  .float-card--1 { top: -12px; left: 0; }
  .float-card--2 { bottom: -12px; right: 0; }
  .float-card--3 { display: none; }
}

/* 方案 C：看板上方留出浮动卡空间，卡片悬于看板外缘，避免遮挡标题/文案/指标 */
.hero--c .panel { margin-top: 44px; }
@media (min-width: 992px) {
  .hero--c .float-card--1 { top: -16px; left: -16px; }
  .hero--c .float-card--2 { top: -16px; right: -12px; bottom: auto; left: auto; }
  .hero--c .float-card--2 .donut-wrap { flex-direction: row; gap: var(--s-2); }
  .hero--c .float-card--2 .donut { width: 44px; height: 44px; }
}
@media (max-width: 991px) {
  .hero--c .float-card--1 { top: -14px; right: 0; left: auto; }
  .hero--c .float-card--2 { display: none; }
}

/* 环形进度（浮动卡内） */
.mini-ring { width: 34px; height: 34px; flex: none; }

/* 数据看板（方案 C 主视觉） */
.panel {
  position: relative;
  border-radius: var(--r-xl);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--sh-xl);
  padding: var(--s-5);
  overflow: hidden;
}
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.panel__title { font-size: var(--fs-14); font-weight: var(--fw-bold); color: var(--text-strong); }
.panel__chart { position: relative; }
.panel__chart svg { display: block; width: 100%; height: 130px; }
.panel__foot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px dashed var(--border);
}
.panel__metric { text-align: center; }
.panel__metric b {
  display: block;
  font-size: var(--fs-18);
  font-weight: var(--fw-black);
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}
.panel__metric span { font-size: var(--fs-12); color: var(--text-muted); }
.donut { width: 68px; height: 68px; }
.donut-wrap { display: flex; align-items: center; justify-content: center; gap: var(--s-3); flex-direction: column; }
.donut-wrap span { font-size: var(--fs-12); color: var(--text-muted); }

/* 方案 B：中央扩散波 + 服务标签 */
.hero__wave {
  position: absolute;
  left: 50%; top: 50%;
  width: min(760px, 120%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero__wave span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(37, 99, 235, .16);
  animation: wave-out 7s var(--ease-out) infinite;
}
.hero__wave span:nth-child(2) { animation-delay: 2.3s; }
.hero__wave span:nth-child(3) { animation-delay: 4.6s; }

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  justify-content: center;
  margin-top: var(--s-8);
}
/* 方案 B 比 A/C 多一行服务标签，收紧垂直节奏以保证三屏等高 */
@media (min-width: 768px) {
  .hero--b { padding-block: var(--s-20) var(--s-16); }
}
.hero--b .hero__chips { margin-top: var(--s-5); }
.hero--b .hero__stats { margin-top: var(--s-8); }
@media (max-width: 767px) {
  .hero--b .hero__chips { margin-top: var(--s-6); }
  .hero--b .hero__stats { margin-top: var(--s-10); }
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px var(--s-4);
  border-radius: var(--r-full);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--sh-sm);
  font-size: var(--fs-14);
  font-weight: var(--fw-medium);
  color: var(--n-700);
}
.chip .icon { width: 16px; height: 16px; color: var(--brand-500); }

/* 环绕轨道点（装饰） */
.orbit {
  position: absolute;
  inset: -8%;
  animation: spin-slow 30s linear infinite;
  pointer-events: none;
}
.orbit__dot {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--brand-400);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, .16);
}

/* ============================ 7. 步骤 / 时间轴 ============================ */
.steps { counter-reset: step; }
.step {
  position: relative;
  padding-left: var(--s-16);
  padding-bottom: var(--s-8);
}
.step:last-child { padding-bottom: 0; }
.step::before {                      /* 连接线 */
  content: "";
  position: absolute;
  left: 23px; top: 52px; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-300), var(--violet-200), transparent);
}
.step:last-child::before { display: none; }
.step__num {
  position: absolute;
  left: 0; top: 0;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  font-size: var(--fs-18);
  font-weight: var(--fw-black);
  box-shadow: var(--sh-brand);
}
.step h3 { margin-bottom: var(--s-2); }
.step p { margin: 0; color: var(--text-muted); font-size: var(--fs-14); line-height: 1.8; }

/* 横向流程（≥768px） */
.flow {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 768px) { .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.flow__item { position: relative; text-align: center; padding: 0 var(--s-2); }
.flow__item::after {                /* 连接箭头 */
  content: "";
  position: absolute;
  top: 34px; right: calc(var(--s-6) / -2 - 6px);
  width: 12px; height: 12px;
  border-top: 2px solid var(--brand-200);
  border-right: 2px solid var(--brand-200);
  transform: rotate(45deg);
}
@media (max-width: 767px) { .flow__item::after { display: none; } }
.flow__item:last-child::after { display: none; }
.flow__icon {
  position: relative;
  display: grid; place-items: center;
  width: 68px; height: 68px;
  margin: 0 auto var(--s-4);
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--brand-100);
  color: var(--brand-600);
  box-shadow: var(--sh-sm);
}
.flow__icon .icon { width: 30px; height: 30px; }
.flow__icon::after {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 2px dashed var(--brand-200);
  opacity: .7;
}
.flow__item h4 { margin-bottom: var(--s-2); font-size: var(--fs-18); }
.flow__item p { margin: 0; font-size: var(--fs-14); color: var(--text-muted); }

/* ============================ 8. 手风琴 FAQ ============================ */
.accordion { border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; background: #fff; }
.accordion__item + .accordion__item { border-top: 1px solid var(--border); }
.accordion__btn {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  width: 100%;
  padding: var(--s-5);
  background: none; border: 0;
  text-align: left;
  font-size: var(--fs-16); font-weight: var(--fw-semibold);
  color: var(--text-strong);
}
.accordion__btn:hover { background: var(--n-50); }
.accordion__btn .plus {
  position: relative;
  width: 22px; height: 22px; flex: none;
  border-radius: 50%;
  background: var(--grad-soft);
  color: var(--brand-600);
}
.accordion__btn .plus::before,
.accordion__btn .plus::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  background: currentColor;
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}
.accordion__btn .plus::before { width: 10px; height: 2px; }
.accordion__btn .plus::after  { width: 2px; height: 10px; }
.accordion__btn[aria-expanded="true"] .plus::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-slow) var(--ease-out);
}
.accordion__panel.is-open { grid-template-rows: 1fr; }
.accordion__panel > div { overflow: hidden; }
.accordion__panel p {
  padding: 0 var(--s-5) var(--s-5);
  margin: 0;
  color: var(--text-muted);
  font-size: var(--fs-14);
  line-height: 1.9;
}

/* ============================ 9. Tab ============================ */
.tabs__nav {
  display: flex;
  gap: var(--s-2);
  overflow-x: auto;
  padding-bottom: var(--s-2);
  scrollbar-width: none;
}
.tabs__nav::-webkit-scrollbar { display: none; }
.tabs__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: #fff;
  color: var(--n-600);
  font-size: var(--fs-14);
  font-weight: var(--fw-medium);
  white-space: nowrap;
  transition: all var(--dur-base) var(--ease-out);
}
.tabs__btn:hover { border-color: var(--brand-300); color: var(--brand-600); }
.tabs__btn[aria-selected="true"] {
  background: var(--grad-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--sh-brand);
}
.tabs__panel { display: none; }
.tabs__panel.is-active { display: block; animation: slide-down var(--dur-base) var(--ease-out); }

/* ============================ 10. 表单 ============================ */
.field { margin-bottom: var(--s-4); }
.field label {
  display: block;
  margin-bottom: var(--s-2);
  font-size: var(--fs-14);
  font-weight: var(--fw-medium);
  color: var(--n-700);
}
.field label .req { color: var(--danger-text); }
.input, .select, .textarea {
  width: 100%;
  padding: 12px var(--s-4);
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: #fff;
  font-size: var(--fs-14);
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.7; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand-400);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.input::placeholder, .textarea::placeholder { color: var(--n-400); }

/* 搜索框（列表页） */
.searchbar {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-2) var(--s-2) var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: #fff;
  box-shadow: var(--sh-xs);
  transition: box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.searchbar:focus-within { border-color: var(--brand-400); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.searchbar input {
  flex: 1; min-width: 0;
  border: 0; background: none;
  font-size: var(--fs-14);
}
.searchbar input:focus { outline: none; }
.searchbar .icon { color: var(--n-400); }

/* ============================ 11. 面包屑 ============================ */
.breadcrumb {
  padding-block: var(--s-4);
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-12);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin: 0; }
.breadcrumb li { display: flex; align-items: center; gap: var(--s-2); color: var(--text-muted); }
.breadcrumb li + li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--n-300);
}
.breadcrumb a { color: var(--n-600); }
.breadcrumb a:hover { color: var(--brand-600); }
.breadcrumb [aria-current="page"] { color: var(--brand-600); font-weight: var(--fw-medium); }

/* ============================ 12. 分页 ============================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  margin-top: var(--s-10);
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: grid; place-items: center;
  min-width: 40px; height: 40px;
  padding: 0 var(--s-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--n-600);
  font-size: var(--fs-14);
  transition: all var(--dur-base) var(--ease-out);
}
.pagination a:hover { border-color: var(--brand-300); color: var(--brand-600); transform: translateY(-2px); }
.pagination .is-current {
  background: var(--grad-primary);
  border-color: transparent;
  color: #fff;
  font-weight: var(--fw-semibold);
  box-shadow: var(--sh-brand);
}
.pagination .is-disabled { opacity: .45; pointer-events: none; }

/* ============================ 13. 列表页布局 ============================ */
.list-layout {
  display: grid;
  gap: var(--s-8);
  grid-template-columns: minmax(0, 1fr);
}
.list-layout > * { min-width: 0; }
@media (min-width: 992px) {
  .list-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s-10); align-items: start; }
}
.list-item {
  display: flex;
  gap: var(--s-4);
  padding: var(--s-4);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}
.list-item__thumb {
  flex: none;
  width: 120px; height: 90px;
  border-radius: var(--r-md);
  background: var(--grad-soft);
  display: grid; place-items: center;
  color: var(--brand-500);
  overflow: hidden;
}
@media (min-width: 576px) { .list-item__thumb { width: 180px; height: 120px; } }
.list-item__thumb .icon { width: 32px; height: 32px; }
.list-item__title { margin: 0 0 var(--s-2); font-size: var(--fs-18); line-height: 1.5; }
.list-item__title a { color: var(--text-strong); }
.list-item__title a:hover { color: var(--brand-600); }
.list-item__excerpt {
  margin: 0 0 var(--s-3);
  color: var(--text-muted);
  font-size: var(--fs-14);
  line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* 侧边栏挂件 */
.widget {
  padding: var(--s-5);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  margin-bottom: var(--s-5);
}
.widget__title {
  display: flex; align-items: center; gap: var(--s-2);
  margin: 0 0 var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-16);
}
.widget__title .icon { width: 18px; height: 18px; color: var(--brand-600); }
.widget--sticky { position: sticky; top: calc(var(--header-h) + var(--s-5)); }
@media (min-width: 992px) { .widget--sticky { top: calc(var(--header-h-lg) + var(--s-5)); } }
.widget__list a {
  display: flex; align-items: center; gap: var(--s-3);
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  color: var(--n-700);
  font-size: var(--fs-14);
}
.widget__list li:last-child a { border-bottom: 0; }
.widget__list a:hover { color: var(--brand-600); }
.widget__list .num {
  display: grid; place-items: center;
  width: 22px; height: 22px; flex: none;
  border-radius: var(--r-sm);
  background: var(--n-100);
  color: var(--n-600);        /* n-500 在此底色上仅 4.34:1，改 n-600 达标 */
  font-size: var(--fs-12); font-weight: var(--fw-bold);
}
.widget__list li:first-child .num { background: var(--grad-primary); color: #fff; }

/* ============================ 14. 内容页排版 ============================ */
.article-header { padding-block: var(--s-8) var(--s-6); background: var(--bg-subtle); border-bottom: 1px solid var(--border); }
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4);
  margin-top: var(--s-4);
  color: var(--text-muted);
  font-size: var(--fs-12);
}
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta .icon { width: 14px; height: 14px; }

.article-layout {
  display: grid;
  gap: var(--s-8);
  grid-template-columns: minmax(0, 1fr);
}
.article-layout > * { min-width: 0; }
@media (min-width: 992px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: var(--s-10); align-items: start; }
}
.prose { font-size: var(--fs-16); line-height: var(--lh-base); color: var(--n-700); }
.prose h2 {
  margin-top: var(--s-10);
  padding-left: var(--s-4);
  border-left: 4px solid var(--brand-600);
  font-size: var(--fs-24);
}
.prose h3 { margin-top: var(--s-8); font-size: var(--fs-20); }
.prose p { margin-bottom: var(--s-5); }
.prose ul, .prose ol { margin-bottom: var(--s-5); }
.prose ul li { position: relative; padding-left: var(--s-5); margin-bottom: var(--s-2); }
.prose ul li::before {
  content: "";
  position: absolute; left: 0; top: 12px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad-primary);
}
.prose ol { counter-reset: li; }
.prose ol li { position: relative; padding-left: var(--s-6); margin-bottom: var(--s-2); counter-increment: li; }
.prose ol li::before {
  content: counter(li);
  position: absolute; left: 0; top: 3px;
  display: grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: var(--fs-12); font-weight: var(--fw-bold);
}
.prose blockquote {
  margin: var(--s-8) 0;
  padding: var(--s-5) var(--s-5) var(--s-5) var(--s-6);
  border-left: 4px solid var(--violet-500);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  background: var(--violet-50);
  color: var(--n-700);
  font-style: normal;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose img { border-radius: var(--r-lg); box-shadow: var(--sh-md); }
.prose figure { margin: var(--s-8) 0; }
.prose figcaption { margin-top: var(--s-3); text-align: center; font-size: var(--fs-12); color: var(--text-muted); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text-strong); }
.prose table { width: 100%; border-collapse: collapse; margin: var(--s-6) 0; font-size: var(--fs-14); }
.prose th, .prose td { padding: var(--s-3); border: 1px solid var(--border); text-align: left; }
.prose th { background: var(--n-50); font-weight: var(--fw-semibold); color: var(--text-strong); }
.prose hr { border: 0; height: 1px; background: var(--grad-line); margin: var(--s-10) 0; }

/* 目录 TOC */
.toc a {
  display: block;
  padding: 8px var(--s-3);
  border-left: 2px solid var(--border);
  color: var(--n-600);
  font-size: var(--fs-14);
  transition: all var(--dur-base) var(--ease-out);
}
.toc a:hover, .toc a.is-active {
  border-left-color: var(--brand-600);
  background: var(--brand-50);
  color: var(--brand-700);
}
.toc a.sub { padding-left: var(--s-6); font-size: var(--fs-12); }

/* 分享条 */
.share { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.share a {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--n-100);
  color: var(--n-600);
  transition: all var(--dur-base) var(--ease-out);
}
.share a:hover { background: var(--grad-primary); color: #fff; transform: translateY(-3px); }
.share .icon { width: 18px; height: 18px; }

/* 上下篇 */
.post-nav {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-10);
}
@media (min-width: 576px) { .post-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.post-nav a {
  display: flex; flex-direction: column; gap: 6px;
  padding: var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: #fff;
  color: var(--n-700);
  font-size: var(--fs-14);
  transition: all var(--dur-base) var(--ease-out);
}
.post-nav a:hover { border-color: var(--brand-300); transform: translateY(-3px); box-shadow: var(--sh-md); }
.post-nav .label { font-size: var(--fs-12); color: var(--n-500); }
.post-nav .next { text-align: right; align-items: flex-end; }

/* 作者卡 */
.author-card {
  display: flex; gap: var(--s-4);
  padding: var(--s-5);
  margin-top: var(--s-8);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--bg-subtle);
}
.author-card__avatar {
  flex: none;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: grid; place-items: center;
  color: #fff; font-size: var(--fs-20); font-weight: var(--fw-bold);
}

/* ============================ 15. CTA 区块 ============================ */
.cta {
  position: relative;
  padding: var(--s-10) var(--s-6);
  border-radius: var(--r-2xl);
  background: var(--grad-primary);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
@media (min-width: 768px) { .cta { padding: var(--s-16) var(--s-12); } }
.cta::before, .cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  pointer-events: none;
}
.cta::before { width: 240px; height: 240px; top: -80px; right: -60px; }
.cta::after  { width: 180px; height: 180px; bottom: -70px; left: -40px; }
.cta h2 { color: #fff; position: relative; }
.cta p { position: relative; color: rgba(255,255,255,.85); max-width: 560px; margin-inline: auto; }
.cta__actions {
  position: relative;
  display: flex; flex-direction: column; gap: var(--s-3);
  margin-top: var(--s-8);
}
@media (min-width: 576px) { .cta__actions { flex-direction: row; justify-content: center; } }

/* ============================ 16. 客户 Logo 跑马灯 ============================ */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__item {
  flex: none;
  display: grid; place-items: center;
  width: 168px; height: 72px;
  margin-right: var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: #fff;
  color: var(--n-400);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-14);
  transition: all var(--dur-base) var(--ease-out);
}
.marquee__item:hover { color: var(--brand-600); border-color: var(--brand-200); box-shadow: var(--sh-sm); }

/* ============================ 17. 页脚 Footer ============================ */
.site-footer {
  background: var(--n-900);
  color: rgba(255,255,255,.68);
  font-size: var(--fs-14);
}
.site-footer a { color: rgba(255,255,255,.68); }
.site-footer a:hover { color: #fff; }
.footer-main {
  display: grid;
  gap: var(--s-8);
  grid-template-columns: minmax(0, 1fr);
  padding-block: var(--s-12);
}
@media (min-width: 576px) { .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .footer-main { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer-main > * { min-width: 0; }

.footer-brand .logo { color: #fff; }
.footer-brand p { margin: var(--s-4) 0; line-height: 1.9; font-size: var(--fs-14); }
.footer-title {
  margin: 0 0 var(--s-4);
  color: #fff;
  font-size: var(--fs-16);
  font-weight: var(--fw-semibold);
}
.footer-links li { margin-bottom: var(--s-3); }
.footer-links a {
  display: inline-flex; align-items: center; gap: 6px;
  transition: transform var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.footer-links a:hover { transform: translateX(4px); }
.footer-links .icon { width: 14px; height: 14px; opacity: .6; }

.footer-contact li { display: flex; align-items: flex-start; gap: var(--s-3); margin-bottom: var(--s-4); }
.footer-contact .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--brand-400); flex: none; }

.footer-qr { display: flex; gap: var(--s-4); margin-top: var(--s-5); }
.qr-box {
  width: 96px;
  padding: var(--s-2);
  background: #fff;
  border-radius: var(--r-md);
  text-align: center;
}
.qr-box .qr {
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  background:
    conic-gradient(from 0deg, var(--n-900) 0 25%, #fff 0 50%, var(--n-900) 0 75%, #fff 0) 0 0 / 20px 20px;
}
.qr-box span { display: block; margin-top: 6px; color: var(--n-600); font-size: var(--fs-12); }

.footer-bottom {
  padding-block: var(--s-5);
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: var(--fs-12);
}
.footer-bottom .container {
  display: flex; flex-direction: column; gap: var(--s-3);
  align-items: center; text-align: center;
}
@media (min-width: 768px) {
  .footer-bottom .container { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-social { display: flex; gap: var(--s-2); }
.footer-social a {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  transition: all var(--dur-base) var(--ease-out);
}
.footer-social a:hover { background: var(--grad-primary); transform: translateY(-3px); }
.footer-social .icon { width: 18px; height: 18px; }

/* ============================ 18. 回到顶部 ============================ */
.to-top {
  position: fixed;
  right: var(--s-4); bottom: var(--s-4);
  z-index: var(--z-sticky);
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--sh-brand);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 12px, 0);
  transition: opacity var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              visibility var(--dur-base);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translate3d(0, -3px, 0) scale(1.06); }
.to-top .icon { width: 20px; height: 20px; }

/* ============================ 19. Toast ============================ */
.toast-host {
  position: fixed;
  left: 50%; bottom: var(--s-8);
  transform: translateX(-50%);
  z-index: var(--z-toast);
  display: grid; gap: var(--s-2);
  width: min(92vw, 380px);
}
.toast {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-lg);
  background: var(--n-900);
  color: #fff;
  font-size: var(--fs-14);
  box-shadow: var(--sh-lg);
  animation: slide-down var(--dur-base) var(--ease-out);
}
.toast .icon { width: 20px; height: 20px; color: var(--success); }

/* ============================ 20. 特性清单 ============================ */
.check-list { margin-bottom: var(--s-4); }   /* 全局 ul 边距已清零，此处显式补回 */
.check-list:last-child { margin-bottom: 0; }
.check-list li {
  display: flex; align-items: flex-start; gap: var(--s-3);
  padding: var(--s-2) 0;
  font-size: var(--fs-14);
  color: var(--n-700);
}
.check-list .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--success); flex: none; }

/* ============================ 21. 定价卡 ============================ */
.price-card {
  display: flex; flex-direction: column;
  padding: var(--s-6);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: #fff;
}
.price-card--hot {
  border-color: var(--brand-300);
  box-shadow: var(--sh-lg);
  transform: scale(1);
}
@media (min-width: 992px) { .price-card--hot { transform: scale(1.04); } }
.price-card__badge {
  position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%);
  padding: 4px var(--s-3);
  border-radius: var(--r-full);
  background: var(--grad-primary);
  color: #fff; font-size: var(--fs-12); font-weight: var(--fw-semibold);
}
.price-card__name { font-size: var(--fs-18); font-weight: var(--fw-semibold); }
.price-card__value {
  margin: var(--s-4) 0;
  font-size: var(--fs-36); font-weight: var(--fw-black); color: var(--text-strong);
}
.price-card__value small { font-size: var(--fs-14); font-weight: var(--fw-normal); color: var(--text-muted); }

/* ============================ 移动端适配补充 ============================ */
/* 触控目标：触摸设备下所有可点击元素 ≥44px（WCAG 2.5.8 / 设计基线） */
@media (max-width: 767px) {
  /* 页脚链接列表：整块可点，高度从 25px 提升到 44px+ */
  .footer-links li { margin-bottom: 0; }
  .footer-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-block: 6px;
  }
  .footer-links a:hover { transform: none; }

  /* 标签胶囊：31px → 40px */
  .tag { padding: 9px var(--s-4); }

  /* 搜索框：27px → 44px */
  .searchbar { padding: var(--s-1) var(--s-1) var(--s-1) var(--s-4); }
  .searchbar input { min-height: 44px; }

  /* 步骤区：左内边距 64px 在小屏挤压正文，收到 56px */
  .step { padding-left: 56px; }
  .step h3 { font-size: var(--fs-16); }

  /* 服务卡内的快捷入口：34px → 44px */
  .service-card__links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-inline: var(--s-3);
  }

  /* 页脚联系方式（电话 / 邮箱）：19px → 44px */
  .footer-contact a { display: inline-flex; align-items: center; min-height: 44px; }

  /* 面包屑：21px → 36px（行内文本链接，取中间值保排版紧凑） */
  .breadcrumb a { display: inline-flex; align-items: center; min-height: 36px; }
}
@media (max-width: 479px) {
  /* 超小屏：序号徽标与间距同步收缩 */
  .step { padding-left: 48px; padding-bottom: var(--s-6); }
  .step__num { width: 40px; height: 40px; font-size: var(--fs-16); }
  .step::before { left: 19px; top: 44px; }
}

/* ============================ 24. Hero 方案切换器（hero-variants.html） ============================ */
.hero-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: var(--s-2);
}
.hero-switch__tab {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  flex: 1 1 210px;
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: #fff;
  font: inherit;
  color: var(--text-body);
  cursor: pointer;
  text-align: left;
  transition:
    box-shadow var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}
.hero-switch__tab:hover { transform: translate3d(0, -2px, 0); box-shadow: var(--sh-md); }
.hero-switch__tab-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-16);
  font-weight: var(--fw-bold);
  color: var(--text-strong);
}
.hero-switch__tab-title .icon { width: 18px; height: 18px; color: var(--brand-500); }
.hero-switch__tab-sub { font-size: var(--fs-12); color: var(--text-muted); }
.hero-switch__tab.is-active {
  border-color: transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--grad-primary) border-box;
  box-shadow: 0 10px 26px rgba(37, 99, 235, .18);
}
.hero-switch__tab.is-active .hero-switch__tab-title { color: var(--brand-600); }
.hero-switch__tab.is-active .hero-switch__tab-title .icon { color: var(--violet-500); }

.hero-switch__auto {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: #fff;
  font: inherit;
  font-size: var(--fs-14);
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
}
.hero-switch__auto::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--n-300);
  transition: background var(--dur-base) var(--ease-out);
}
.hero-switch__auto.is-on {
  border-color: transparent;
  background: var(--grad-primary);
  color: #fff;
}
.hero-switch__auto.is-on::before {
  background: #fff;
  animation: blink 1.2s step-end infinite;
}

/* 舞台与面板：切换时入场动画（display:none -> block 会自动重放 animation） */
.hero-stage { position: relative; transition: height .45s var(--ease-out); overflow: hidden; }
.hero-stage__panel[hidden] { display: none; }
.hero-stage__panel.is-entering { animation: heroStageIn var(--dur-xslow) var(--ease-out) both; }

/* ===== 纯 CSS 轮播兜底：JS 未执行时（html 无 .js 类）桌面端依然自动轮播 =====
   仅桌面启用（三屏等高 700px，可安全绝对定位）；移动端退化为仅显示第一屏。 */
html:not(.js) .hero-stage { height: 700px; }
html:not(.js) .hero-stage__panel[hidden] { display: block; }
html:not(.js) .hero-stage__panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  animation: cssHeroRotate 21s linear infinite;
  pointer-events: none;
}
html:not(.js) .hero-stage__panel:nth-child(1) { animation-delay: 0s; }
html:not(.js) .hero-stage__panel:nth-child(2) { animation-delay: -7s; }
html:not(.js) .hero-stage__panel:nth-child(3) { animation-delay: -14s; }
html:not(.js) .hero-stage__panel.is-entering { animation-name: cssHeroRotate; }
html:not(.js) .hero-dots__dot { animation: cssDotRotate 21s linear infinite; }
html:not(.js) .hero-dots__dot:nth-child(2) { animation-delay: -7s; }
html:not(.js) .hero-dots__dot:nth-child(3) { animation-delay: -14s; }
html:not(.js) .hero-stage:hover .hero-stage__panel,
html:not(.js) .hero-stage:hover .hero-dots__dot { animation-play-state: paused; }
@keyframes cssHeroRotate {
  0%    { opacity: 1; visibility: visible; pointer-events: auto; }
  30%   { opacity: 1; visibility: visible; pointer-events: auto; }
  33.3% { opacity: 0; visibility: hidden; pointer-events: none; }
  96.6% { opacity: 0; visibility: hidden; pointer-events: none; }
  100%  { opacity: 1; visibility: visible; pointer-events: auto; }
}
@keyframes cssDotRotate {
  0%   { width: 28px; background: #3b82f6; }
  30%  { width: 28px; background: #3b82f6; }
  33.4%{ width: 10px; background: rgba(30,41,59,.22); }
  96.6%{ width: 10px; background: rgba(30,41,59,.22); }
  100% { width: 28px; background: #3b82f6; }
}
@media (max-width: 991px) {
  html:not(.js) .hero-stage { height: auto; }
  html:not(.js) .hero-stage__panel { position: static; animation: none; opacity: 1; visibility: visible; pointer-events: auto; }
  html:not(.js) .hero-stage__panel:nth-child(n+2) { display: none; }
  html:not(.js) .hero-dots { display: none; }
}
@keyframes heroStageIn {
  from { opacity: 0; transform: translate3d(0, 28px, 0); }
  to   { opacity: 1; transform: none; }
}

/* ============================ 25. 首页增强：双向跑马灯 / 描边旋转 / 流程放大 ============================ */

/* 第二排跑马灯：反向滚动，形成“左右双向”效果 */
.marquee-track--rev { animation-direction: reverse; }
.marquee__item--brand { color: var(--brand-600); border-color: var(--brand-100); background: linear-gradient(180deg, #fff, var(--brand-50)); }

/* 业务范围卡片：悬停时描边光点绕边框转一圈（纯 CSS，@property 注册角度可动画） */
@property --orbit-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.card--orbit { position: relative; }
.card--orbit::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--orbit-angle),
    transparent 0deg, transparent 295deg,
    var(--brand-400) 320deg, var(--brand-600) 338deg, var(--violet-500) 352deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
  pointer-events: none;
  z-index: 1;
}
.card--orbit:hover::before,
.card--orbit:focus-within::before { opacity: 1; animation: orbit-spin 1.15s linear infinite; }
@keyframes orbit-spin { to { --orbit-angle: 360deg; } }
/* 不支持 @property 的浏览器：降级为静态描边高亮 */
@supports not (background: paint(x)) {
  .card--orbit:hover::before { background: linear-gradient(135deg, var(--brand-400), var(--violet-500)); }
}

/* 标准化服务流程：悬停只放大圆形图标（整卡不动） */
.flow__icon { transition: transform var(--dur-base) var(--ease-spring), box-shadow var(--dur-base) var(--ease-out); }

/* Hero 纯自动轮播指示点（无文字选项） */
.hero-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 6;
}
.hero-dots__dot {
  appearance: none;
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: var(--r-full);
  background: rgba(30, 41, 59, .22);
  cursor: pointer;
  transition: width var(--dur-base) var(--ease-spring),
              background var(--dur-base) var(--ease-out);
}
.hero-dots__dot:hover { background: rgba(30, 41, 59, .45); }
.hero-dots__dot.is-active {
  width: 28px;
  background: linear-gradient(90deg, var(--brand-500), var(--violet-500));
}

/* ============================ 26. 移动端触控热区修复（视觉不变，扩大可点区域） ============================ */

/* hero 指示点：10x10 视觉太小，用 ::after 扩到 ≥36px 热区 */
.hero-dots__dot { position: relative; }
.hero-dots__dot::after {
  content: "";
  position: absolute;
  inset: -14px -13px;
  border-radius: var(--r-full);
}

/* 面包屑链接：加内边距并用负外边距补偿，视觉布局不变，热区 ≥40px 高 */
.breadcrumb a {
  display: inline-block;
  padding: 10px 8px;
  margin: -10px -8px;
}

/* hero 方案切换器的自动轮播按钮：热区上下扩 8px（demo 页） */
.hero-switch__auto { position: relative; }
.hero-switch__auto::after {
  content: "";
  position: absolute;
  inset: -8px -4px;
  border-radius: var(--r-full);
}

/* 窄屏下顶栏 CTA 不换行：压缩内边距与字号，保持单行 */
@media (max-width: 767px) {
  .site-header .btn { white-space: nowrap; padding: 10px var(--s-4); font-size: var(--fs-14); }
}
@media (max-width: 379px) {
  .site-header .btn { padding: 10px var(--s-3); font-size: var(--fs-13); gap: 4px; }
}


/* ---------- FILE: motion.css ---------- */
/* ==========================================================================
   Motion —— 动效层
   原则：只动画 transform / opacity（GPU 加速），时长 0.2–0.8s，克制不打扰
   ========================================================================== */

/* ---------- 1. 滚动揭示（Scroll Reveal） ----------
   仅在 <html class="js"> 下生效：JS 未加载 / 出错时内容保持可见（渐进增强） */
html.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition:
    opacity var(--dur-xslow) var(--ease-out),
    transform var(--dur-xslow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
html.js [data-reveal="left"]  { transform: translate3d(-32px, 0, 0); }
html.js [data-reveal="right"] { transform: translate3d(32px, 0, 0); }
/* 小屏：位移量减半，避免 320px 屏上内容大幅偏移 */
@media (max-width: 575px) {
  html.js [data-reveal="left"]  { transform: translate3d(-16px, 0, 0); }
  html.js [data-reveal="right"] { transform: translate3d(16px, 0, 0); }
}
html.js [data-reveal="zoom"]  { transform: scale(.94); }
html.js [data-reveal="fade"]  { transform: none; }
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 2. 关键帧库 ---------- */

/* 上下浮动 */
@keyframes float-y {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -14px, 0); }
}
.anim-float { animation: float-y 5s var(--ease-in-out) infinite; }

/* 呼吸脉冲（含光环扩散） */
@keyframes pulse-ring {
  0%   { transform: scale(.85); opacity: .7; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}
.anim-pulse::after,
.anim-pulse::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: currentColor;
  animation: pulse-ring 2.6s var(--ease-out) infinite;
}
.anim-pulse::after { animation-delay: 1.3s; }

/* 渐变流动（标题 / 按钮 / 边框） */
@keyframes grad-flow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.anim-grad {
  background-size: 200% 200%;
  animation: grad-flow 8s ease infinite;
}

/* 缓慢旋转（装饰环 / 齿轮） */
@keyframes spin-slow { to { transform: rotate(360deg); } }
.anim-spin { animation: spin-slow 18s linear infinite; }
.anim-spin-rev { animation: spin-slow 24s linear infinite reverse; }

/* 光斑漂移（Hero 背景） */
@keyframes blob-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33%      { transform: translate3d(40px, -30px, 0) scale(1.12); }
  66%      { transform: translate3d(-30px, 24px, 0) scale(.94); }
}
.anim-blob { animation: blob-drift 18s var(--ease-in-out) infinite; }

/* 网格缓慢平移 */
@keyframes grid-pan {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(56px, 56px, 0); }
}
.anim-grid { animation: grid-pan 6s linear infinite; }

/* 无限跑马灯（客户 Logo / 标签） */
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* 向下滚动提示 */
@keyframes scroll-hint {
  0%   { transform: translateY(-6px); opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}
.anim-hint { animation: scroll-hint 1.8s var(--ease-in-out) infinite; }

/* 数字滚动占位闪烁 */
@keyframes shimmer {
  from { background-position: -200% 0; }
  to   { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--n-100) 25%, var(--n-200) 37%, var(--n-100) 63%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: var(--r-sm);
}

/* 加载旋转器 */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* 成功对勾描边绘制 */
@keyframes draw-check {
  to { stroke-dashoffset: 0; }
}
.anim-draw { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw-check .6s var(--ease-out) .2s forwards; }

/* 波纹（按钮点击） */
@keyframes ripple-out {
  to { transform: scale(2.4); opacity: 0; }
}
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  transform: scale(0);
  pointer-events: none;
  animation: ripple-out .6s var(--ease-out) forwards;
}

/* 视差（Hero 装饰） */
.parallax { transition: transform .18s linear; will-change: transform; }

/* 打字机光标 */
@keyframes blink { 50% { opacity: 0; } }
.caret { animation: blink 1s step-end infinite; font-weight: 300; }

/* ---------- 2.1 Hero 动效画面 ---------- */

/* 柱状图生长（transform 缩放，不触发重排） */
@keyframes bar-grow {
  from { transform: scaleY(.04); opacity: .35; }
  to   { transform: scaleY(1);   opacity: 1; }
}
.anim-bar {
  animation:
    bar-grow .9s var(--ease-spring) both,
    bar-pulse 5s var(--ease-in-out) infinite;
  animation-delay: var(--d, 0s), calc(var(--d, 0s) + 1.8s);
}
/* 生长完成后持续轻微起伏（transform 合成器动画，无重绘开销） */
@keyframes bar-pulse {
  0%, 100% { transform: scaleY(1); }
  40%      { transform: scaleY(.86); }
  70%      { transform: scaleY(.95); }
}

/* 折线描边绘制 */
@keyframes draw-path { to { stroke-dashoffset: 0; } }
.anim-line {
  stroke-dasharray: var(--len, 700);
  stroke-dashoffset: var(--len, 700);
  animation: draw-path 2.2s var(--ease-out) .5s forwards;
}

/* 环形进度填充 */
@keyframes ring-in {
  from { stroke-dashoffset: var(--circ, 176); }
  to   { stroke-dashoffset: var(--to, 44); }
}
.anim-ring {
  animation: ring-in 1.6s var(--ease-out) both;
  animation-delay: var(--d, .3s);
}

/* 面积图淡入 */
@keyframes fade-in { to { opacity: 1; } }
.anim-fill { opacity: 0; animation: fade-in .9s var(--ease-out) 1.1s forwards; }

/* 卡片弹入 */
@keyframes pop-in {
  from { opacity: 0; transform: scale(.94) translate3d(0, 14px, 0); }
  to   { opacity: 1; transform: none; }
}
.anim-pop { animation: pop-in .7s var(--ease-spring) both; }

/* 中央扩散波（方案 B） */
@keyframes wave-out {
  0%   { transform: scale(.45); opacity: .9; }
  100% { transform: scale(1.12); opacity: 0; }
}

/* 高光扫过 */
@keyframes sweep {
  0%        { transform: translateX(-120%); }
  55%, 100% { transform: translateX(320%); }
}
.anim-sweep { position: relative; overflow: hidden; }
.anim-sweep::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 38%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transform: translateX(-120%);
  animation: sweep 4.5s var(--ease-in-out) infinite;
  pointer-events: none;
}

/* 浮动（小幅度，用于标签） */
@keyframes float-sm {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -7px, 0); }
}
.anim-float-sm { animation: float-sm 4s var(--ease-in-out) infinite; }

/* ---------- 3. 悬停微交互（transform + shadow only） ---------- */
.hover-lift {
  transition:
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}
.hover-lift:hover,
.hover-lift:focus-within {
  transform: translate3d(0, -6px, 0);
  box-shadow: var(--sh-lg);
}
.hover-lift:active { transform: translate3d(0, -2px, 0) scale(.995); }

/* 关键：元素同时带 [data-reveal] 时，is-in 完成态（0,3,1）会压制上面的悬停规则（0,2,0），
   导致悬停抬升/缩放永远不生效。这里用 html .x.x:hover 形式拿到 (0,3,1) 且不依赖 .js 类——
   即使 JS 被禁用，悬停动效也必须生效（同优先级下靠后出现，必胜）。 */
html .hover-lift.hover-lift:hover,
html .hover-lift.hover-lift:focus-within {
  transform: translate3d(0, -6px, 0);
  box-shadow: var(--sh-lg);
}
html .hover-lift.hover-lift:active { transform: translate3d(0, -2px, 0) scale(.995); }

.hover-scale { transition: transform var(--dur-base) var(--ease-spring); }
.hover-scale:hover { transform: scale(1.05); }
.hover-scale:active { transform: scale(.95); }
html .hover-scale.hover-scale:hover { transform: scale(1.05); }
html .hover-scale.hover-scale:active { transform: scale(.95); }

/* 箭头位移（卡片 / 链接） */
.hover-arrow .arrow {
  display: inline-block;
  transition: transform var(--dur-base) var(--ease-out);
}
.hover-arrow:hover .arrow { transform: translateX(5px); }

/* 图标容器在悬停时的缩放与旋转 */
.hover-icon .icon-box {
  transition: transform var(--dur-base) var(--ease-spring),
              box-shadow var(--dur-base) var(--ease-out);
}
.hover-icon:hover .icon-box {
  transform: translate3d(0, -4px, 0) rotate(-6deg) scale(1.06);
}

/* 下划线由中间展开 */
.link-underline { position: relative; }
.link-underline::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 2px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.link-underline:hover::after,
.link-underline[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- 4. 顶部滚动进度条 ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px; width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--grad-primary);
  z-index: var(--z-toast);
  transition: transform .1s linear;
}

/* ---------- 5. 入场：导航 / 抽屉 ---------- */
@keyframes slide-down {
  from { opacity: 0; transform: translate3d(0, -12px, 0); }
  to   { opacity: 1; transform: none; }
}
.anim-drop { animation: slide-down var(--dur-base) var(--ease-out); }

@keyframes slide-in-right {
  from { transform: translate3d(100%, 0, 0); }
  to   { transform: none; }
}
.anim-drawer { animation: slide-in-right var(--dur-base) var(--ease-out); }

/* 流程卡片：悬停只放大圆形图标（规则需在 is-in 完成态之后声明才能获胜） */
html.js .flow__item:hover .flow__icon,
html.js .flow__item:focus-within .flow__icon {
  transform: scale(1.18);
  box-shadow: 0 0 0 10px rgba(37, 99, 235, .08), var(--sh-md);
}
html.js .flow__item:active .flow__icon { transform: scale(1.08); }



/* ===== zfkf 悬浮客服（自 professional_indigo 同步） ===== */
.zfkf-float{position:fixed !important;right:20px !important;bottom:120px !important;top:auto !important;left:auto !important;transform:none !important;z-index:99999 !important;display:flex !important;flex-direction:column !important;gap:10px !important}
.zfkf-item{position:relative;width:46px;height:46px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;text-decoration:none;box-shadow:0 4px 14px rgba(0,0,0,.18);transition:all .25s;cursor:pointer}
.zfkf-item:hover{transform:scale(1.08);color:#fff}
.zfkf-phone{background:#2563eb}
.zfkf-wechat{background:#07c160}
.zfkf-consult{background:#f59e0b}
.zfkf-top{background:#334155}
.zfkf-tip{position:absolute;right:calc(100% + 12px);top:50%;transform:translateY(-50%);white-space:nowrap;background:rgba(0,0,0,.78);color:#fff;font-size:12px;padding:5px 10px;border-radius:6px;opacity:0;pointer-events:none;transition:opacity .2s;z-index:10001}
.zfkf-item:hover .zfkf-tip{opacity:1}
.zfkf-wechat-mask{position:fixed !important;inset:0 0 0 0 !important;background:rgba(0,0,0,.5) !important;z-index:10000 !important;display:none !important;visibility:hidden !important;align-items:center;justify-content:center}
.zfkf-wechat-mask.zfkf-show{display:flex !important;visibility:visible !important}
.zfkf-wechat-box{background:#fff;border-radius:12px;padding:24px;text-align:center;position:relative;max-width:80vw}
.zfkf-wechat-box img{width:180px;height:180px;object-fit:contain;border:1px solid #eee;border-radius:8px}
.zfkf-wechat-noimg{width:180px;height:80px;display:flex;align-items:center;justify-content:center;background:#f6f7f9;border-radius:8px;font-size:16px;color:#07c160;font-weight:600}
.zfkf-wechat-box p{margin:12px 0 0;font-size:14px;color:#333}
.zfkf-wechat-close{position:absolute;top:8px;right:12px;font-size:22px;color:#666;cursor:pointer;line-height:1}
@media (max-width:768px){.zfkf-float{right:10px;bottom:100px}.zfkf-item{width:42px;height:42px}.zfkf-tip{display:none}}
