/* ============================================================
   喜悦车服 JOY AUTOCARE — 全站共享样式 · 视觉优化版
   ------------------------------------------------------------
   设计原则：
   1. 排版：流体字阶 clamp()，标题 800 字重，正文 16px/1.75
   2. 留白：模块间距 clamp(56~104px)，卡片内边距统一 26~28px
   3. 层级：eyebrow 英文小标 → 大标题 → 副标 → 内容，四段式节奏
   4. 色彩：红主题 = 红金白三色体系 + 渐变景深；蓝主题 = 白底浅灰蓝点缀
   5. 动效：滚动渐现 + 卡片悬浮 + 图标换色，尊重 prefers-reduced-motion
   6. 微交互：导航滚动投影 / 表单聚焦光环 / 一键复制 / 回到顶部
   ============================================================ */

/* ---------- 设计令牌 ---------- */
:root {
  --primary: #E60012;
  --primary-dark: #C1000F;
  --primary-deep: #A8000D;
  --primary-tint: rgba(230, 0, 18, 0.08);
  --primary-soft: #FFF1F0;

  /* ===== 主题语义变量（红色主题 = 大面积喜悦红） ===== */
  --nav-bg: #FFFFFF;
  --nav-border: #F0F2F5;
  --nav-text: #666666;              /* 导航文字：未选中为中性灰（选中/悬停走 --nav-active 主色） */
  --nav-active: #E60012;            /* 选中/悬停：主色，靠下划线+加粗区分 */
  --nav-shadow: 0 2px 12px rgba(16, 24, 40, 0.08);
  --hero-bg: #E60012;
  --hero-title: #FFFFFF;
  --hero-desc: rgba(255, 255, 255, 0.9);
  --hero-accent: #FFD666;           /* Banner 强调词 */
  --hero-eyebrow: rgba(255, 214, 102, 0.95);
  --footer-bg: #B8000F;
  --footer-border: rgba(255, 255, 255, 0.16);
  --footer-title: #FFFFFF;
  --footer-text: rgba(255, 255, 255, 0.78);
  --footer-link-hover: #FFD666;
  --pagehero-line: rgba(255, 255, 255, 0.28);

  /* 暖橙 — 仅用于标签/图标等小面积点缀（按钮已统一为品牌主色） */
  --accent: #FF7D2C;
  --accent-dark: #E8680F;
  --accent-tint: rgba(255, 125, 44, 0.10);
  --accent-shadow: 0 6px 16px rgba(232, 104, 15, 0.28);

  /* 正向青绿 — 状态/成功 */
  --teal: #14B8A6;
  --teal-dark: #0E9C8C;
  --teal-tint: rgba(20, 184, 166, 0.12);

  --bg-soft: #F5F7FA;
  --surface: #FFFFFF;
  --text-0: #1F2329;             /* 大标题 */
  --text-1: #333333;
  --text-2: #666666;
  --text-3: #999999;
  --border: #E7EBF1;
  --border-strong: #D9E0EA;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 6px 20px rgba(16, 24, 40, 0.06);
  --shadow-hover: 0 4px 12px rgba(16, 24, 40, 0.08), 0 16px 36px rgba(16, 24, 40, 0.12);

  --gap-section: clamp(56px, 7.5vw, 104px);
  --gap-card: 24px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.28s;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
          "Noto Sans SC", sans-serif;
}

/* ===== 蓝色主题（经典原版） ===== */
html[data-theme='blue'] {
  --primary: #1677FF;
  --primary-dark: #0E63DC;
  --primary-deep: #0A51BC;
  --primary-tint: rgba(22, 119, 255, 0.08);
  --primary-soft: #F0F6FF;

  --nav-bg: #FFFFFF;
  --nav-border: #F0F2F5;
  --nav-text: #666666;
  --nav-active: #1677FF;
  --nav-shadow: 0 2px 12px rgba(16, 24, 40, 0.08);
  --hero-bg: #F5F7FA;
  --hero-title: #1F2329;
  --hero-desc: #666666;
  --hero-accent: #FF7D2C;
  --hero-eyebrow: #1677FF;
  --footer-bg: #F5F7FA;
  --footer-border: #E7EBF1;
  --footer-title: #333333;
  --footer-text: #666666;
  --footer-link-hover: #1677FF;
  --pagehero-line: rgba(22, 119, 255, 0.22);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-1);
  background: #fff;
  padding-top: 64px;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

::selection { background: var(--primary); color: #fff; }

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

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

/* 数字统一等宽，避免跳动 */
.stat-card .num, .hero-trust b, .svc-no {
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 11px 28px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  cursor: pointer;
  text-align: center;
  transition: background-color var(--dur) ease,
              color var(--dur) ease,
              border-color var(--dur) ease,
              box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: 0.08s; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px var(--primary-tint);
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-outline {
  background: #fff;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary-soft); box-shadow: 0 4px 14px var(--primary-tint); }

/* 强调按钮：活力橙 — 「立即咨询/立即提交/预约服务」等转化入口 */
.btn-accent {
  background: var(--primary);
  color: #fff;
}
.btn-accent:hover { background: var(--primary-dark); box-shadow: 0 6px 16px var(--primary-tint); }

.btn-outline-accent {
  background: #fff;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline-accent:hover { background: var(--primary-tint); box-shadow: 0 4px 14px var(--primary-tint); }

.btn-sm { padding: 7px 18px; font-size: 14px; }
.btn-block { display: block; width: 100%; }

/* ---------- 通用卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid rgba(16, 24, 40, 0.05);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  transition: transform 0.32s var(--ease),
              box-shadow 0.32s var(--ease),
              border-color 0.32s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(16, 24, 40, 0.08);
}

/* ---------- 区块结构 ---------- */
.section { padding: var(--gap-section) 0; }
.section-soft { background: var(--bg-soft); }

.sec-head { text-align: center; margin-bottom: clamp(36px, 4.5vw, 60px); }
.sec-bar { display: none; }  /* 由 eyebrow 小标替代 */
.sec-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.sec-eyebrow::before,
.sec-eyebrow::after {
  content: "";
  width: 22px;
  height: 1.5px;
  background: currentColor;
  opacity: 0.45;
}
.sec-title {
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-0);
}
.sec-sub { margin-top: 12px; font-size: 16px; color: var(--text-2); }

/* ---------- 网格 ---------- */
.grid { display: grid; gap: var(--gap-card); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- 滚动渐现（main.js 添加 html.fx 后启用） ---------- */
html.fx [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  transition-delay: var(--rd, 0s);
  will-change: opacity, transform;
}
html.fx [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 固定导航 ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
.site-nav.is-scrolled { box-shadow: var(--nav-shadow); }
.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}
.logo:hover .logo-mark { transform: translateY(-1px); }

.nav-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 42px;
}
.nav-menu a {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--nav-text);
  padding: 6px 0;
  opacity: 0.86;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 0; height: 2px;
  border-radius: 1px;
  background: var(--nav-active);
  transform: translateX(-50%);
  transition: width 0.28s var(--ease);
}
.nav-menu a:hover { color: var(--nav-active); opacity: 1; }
.nav-menu a.active { color: var(--nav-active); font-weight: 600; opacity: 1; }
.nav-menu a.active::after,
.nav-menu a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 14px; }

/* ---------- 主题切换 ---------- */
.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.theme-toggle:hover {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
  transform: translateY(-1px);
}
.theme-toggle:active { transform: scale(0.95); }
.tt-swatch {
  position: relative;
  width: 14px; height: 14px;
  border-radius: 50%;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.25s var(--ease), box-shadow 0.25s ease;
}
.tt-red { background: #E60012; }
.tt-blue { background: #1677FF; }
.theme-toggle[data-theme='red'] .tt-red,
.theme-toggle[data-theme='blue'] .tt-blue {
  opacity: 1;
  transform: scale(1.22);
  box-shadow: 0 0 0 2.5px #fff, 0 0 0 4px currentColor;
}
.theme-toggle[data-theme='red'] .tt-red { color: #E60012; }
.theme-toggle[data-theme='blue'] .tt-blue { color: #1677FF; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 9px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--nav-text);
  border-radius: 1px;
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}
.nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 首页 Banner ---------- */
.hero {
  position: relative;
  background: var(--hero-bg);
  padding: clamp(72px, 9vw, 120px) 0;
  overflow: hidden;
}
/* 红主题：线条装饰静态图 + 对角渐变 + 顶部光晕，营造景深
   线条图（hero-lines.svg）为纯静态资源：参考波浪流线风格生成，
   含主波浪/伴线组/右上扬长弧/左上缓弧，纯线条无节点光点，零 DOM、零动画开销 */
html[data-theme='red'] .hero {
  background-image:
    url("../images/hero-lines.svg"),
    radial-gradient(120% 150% at 88% -12%, rgba(255, 255, 255, 0.16), transparent 52%),
    linear-gradient(128deg, #F5161F 0%, #E60012 44%, #C1000F 82%, #AB000D 100%);
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: cover, auto, auto;
  background-position: center center, 0 0, 0 0;
}
/* 移动端：竖构图专属线条图 */
@media (max-width: 768px) {
  html[data-theme='red'] .hero {
    background-image:
      url("../images/hero-lines-m.svg"),
      radial-gradient(120% 150% at 88% -12%, rgba(255, 255, 255, 0.16), transparent 52%),
      linear-gradient(128deg, #F5161F 0%, #E60012 44%, #C1000F 82%, #AB000D 100%);
  }
}
/* 蓝主题：浅蓝渐变 + 蓝色柔光 */
html[data-theme='blue'] .hero {
  background-image:
    radial-gradient(90% 130% at 85% -10%, rgba(22, 119, 255, 0.10), transparent 55%),
    linear-gradient(180deg, #F0F6FF 0%, #F5F7FA 100%);
}
/* 车道纹理：极低透明度斜线（红主题已由「线条静态图」替代，蓝主题本来就隐藏） */
.hero::before { display: none; }

/* 呼吸光斑：大尺寸柔光缓慢缩放/明暗，营造空气感（红=暖白光晕，蓝=蓝色柔光） */
.hero::after {
  content: "";
  position: absolute;
  width: 46vw; height: 46vw;
  right: -14vw; top: -20vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 62%);
  animation: hero-breath 9s ease-in-out infinite;
  pointer-events: none;
}
html[data-theme='blue'] .hero::after {
  background: radial-gradient(circle, rgba(22, 119, 255, 0.10), transparent 62%);
}
@keyframes hero-breath {
  0%, 100% { transform: scale(1); opacity: .7; }
  50% { transform: scale(1.14); opacity: 1; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--hero-eyebrow);
  margin-bottom: 18px;
}
.hero-eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  border-radius: 1px;
  background: currentColor;
}
.hero-title {
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 800;
  line-height: 1.3;
  color: var(--hero-title);
}
.hero-title .accent { color: var(--hero-accent); }
.hero-desc {
  margin-top: 20px;
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--hero-desc);
  max-width: 500px;
}
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions .btn { padding: 13px 32px; }

/* 信任数据条 */
.hero-trust {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(20px, 3vw, 40px);
}
.trust-item {
  display: flex;
  flex-direction: column;
  padding-right: clamp(20px, 3vw, 40px);
  border-right: 1px solid var(--pagehero-line);
}
.trust-item:last-child { border-right: 0; padding-right: 0; }
.trust-item b {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--hero-title);
  font-feature-settings: "tnum" 1;
}
.trust-item b i { font-style: normal; font-size: 15px; margin-left: 1px; }
.trust-item span {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--hero-desc);
  opacity: 0.9;
  white-space: nowrap;
}

/* Banner 配图：圆角相框 + 悬浮徽章 */
.hero-visual { position: relative; }
.hero-img {
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 56px rgba(90, 0, 6, 0.28);
  overflow: hidden;
  transform: translateZ(0);
  animation: visual-float 8s ease-in-out infinite;
}
/* 红主题：两层白色叠加（白底，同心版）—— 第一层白色宽边框 + 第二层外圈白色叠光（渐隐），
   照片如实体相片居中叠放在红底上；外圈深红投影保持悬浮层次 */
html[data-theme='red'] .hero-img {
  box-shadow:
    0 0 0 8px #FFFFFF,
    0 0 0 18px rgba(255, 255, 255, 0.35),
    0 34px 68px rgba(84, 0, 6, 0.42),
    0 8px 20px rgba(84, 0, 6, 0.22);
}
html[data-theme='blue'] .hero-img { box-shadow: 0 20px 48px rgba(22, 60, 120, 0.16); }
.hero-img img {
  width: 100%;
  height: clamp(280px, 24vw, 388px);
  object-fit: cover;
  transition: transform 8s var(--ease);
}
.hero-visual:hover .hero-img img { transform: scale(1.04); }

/* 首页主图轮播（2026-10-04）：三图淡入淡出 + 指示点 */
.hero-slider { position: relative; }
.hero-slider img { position: absolute; top: 0; left: 0; opacity: 0; z-index: 1; transition: opacity .9s ease, transform 8s var(--ease); }
.hero-slider img.on { position: relative; opacity: 1; z-index: 2; }
.hero-slider .hero-dots {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  gap: 6px;
  align-items: center;
  z-index: 3;
}
.hero-slider .hero-dots span {
  width: 7px; height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: all .3s ease;
}
.hero-slider .hero-dots span.on { background: #fff; width: 18px; }

.hero-badge {
  position: absolute;
  left: -18px;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.18);
  padding: 12px 18px 12px 14px;
  animation: badge-float 4.5s ease-in-out infinite;
}
.hero-badge b {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}
.hero-badge span {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.45;
}
@keyframes visual-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* 红主题深色底（Banner）按钮：主次拉开两级 —— 金黄实底（主）+ 透明描边（次）
   主按钮取自标题强调色同色系（--hero-accent #FFD666），在红底上是最跳的转化入口；
   次按钮为真·透明玻璃态 + 白描边，权重明显低于主按钮。导航栏白底走默认主色按钮，不受影响。 */
html[data-theme='red'] .hero .btn-accent {
  background: linear-gradient(180deg, #FFE08A 0%, #FFCC4D 56%, #F5B315 100%);
  color: #8A0009;
  font-weight: 700;
  border-color: transparent;
  box-shadow:
    0 10px 26px rgba(112, 56, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
html[data-theme='red'] .hero .btn-accent:hover {
  background: linear-gradient(180deg, #FFE9A3 0%, #FFD75E 56%, #FFC128 100%);
  box-shadow:
    0 14px 32px rgba(112, 56, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
}
html[data-theme='red'] .hero .btn-outline {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.72);
  color: #fff;
}
html[data-theme='red'] .hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #fff;
}
html[data-theme='blue'] .hero .btn-accent { box-shadow: 0 8px 22px rgba(22, 119, 255, 0.28); }

/* ---------- 核心服务卡片 ---------- */
.svc-card { position: relative; text-align: left; }
.svc-no {
  position: absolute;
  top: 24px; right: 26px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-3);
  opacity: 0.65;
  transition: color 0.3s ease, opacity 0.3s ease;
  font-feature-settings: "tnum" 1;
}
.svc-card:hover .svc-no { color: var(--primary); opacity: 0.9; }
.svc-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--primary-tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background-color 0.32s var(--ease), color 0.32s ease, transform 0.32s var(--ease);
}
.svc-icon svg { width: 28px; height: 28px; }
.svc-card:hover .svc-icon {
  background: var(--primary);
  color: #fff;
  transform: scale(1.06);
}
.svc-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.svc-card p { font-size: 14.5px; line-height: 1.75; color: var(--text-2); margin-bottom: 16px; }
.svc-more {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.svc-more .arr {
  display: inline-block;
  transition: transform 0.28s var(--ease);
}
.svc-more:hover .arr { transform: translateX(5px); }
.svc-more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 合作案例 ---------- */
.case-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.case-card .case-img { height: 200px; overflow: hidden; position: relative; }
.case-card .case-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.case-card:hover .case-img img { transform: scale(1.06); }
/* 首个案例横向大卡：打破均质网格 */
.case-card.featured .case-img { height: 100%; min-height: 240px; }
.case-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.case-tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-tint);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 4px;
}
.case-body h3 { font-size: 17px; font-weight: 600; }
.case-body p { font-size: 13.5px; line-height: 1.7; color: var(--text-2); }

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

/* 桌面端：案例区改为「通栏大卡 + 三卡一行」，打破均质网格 */
@media (min-width: 1025px) {
  .case-grid { grid-template-columns: repeat(3, 1fr); }
  .case-grid .case-card.featured { grid-column: 1 / -1; flex-direction: row; }
  .case-grid .case-card.featured .case-img { flex: 1.15; height: auto; min-height: 0; }
  .case-grid .case-card.featured .case-body { flex: 1; justify-content: center; padding: 26px 30px; }
  /* 优势分栏细线 */
  .adv-grid .adv-card + .adv-card { border-left: 1px solid var(--border); }
}

/* ---------- 品牌优势：去卡片化，细线分栏，与核心服务形成对比 ---------- */
.adv-grid { gap: 0; }
.adv-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 10px clamp(20px, 2.6vw, 36px);
  text-align: left;
}
.adv-card:hover { transform: none; box-shadow: none; }
.adv-icon {
  width: 48px; height: 48px;
  margin: 0 0 16px;
  border-radius: 12px;
  background: var(--primary-tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease);
}
.adv-card:hover .adv-icon { transform: translateY(-4px) scale(1.05); }
.adv-icon svg { width: 25px; height: 25px; }
.adv-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.adv-card p { font-size: 14px; line-height: 1.75; color: var(--text-2); }

/* ---------- 表单 ---------- */
.form-panel { max-width: 780px; margin: 0 auto; }
.form-panel .card { padding: clamp(24px, 3.4vw, 40px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-item { display: flex; flex-direction: column; }
.form-item.full { grid-column: 1 / -1; }
.form-item label { font-size: 14px; font-weight: 500; color: var(--text-1); margin-bottom: 8px; }
.form-item label i { font-style: normal; color: var(--primary); margin-left: 2px; }
.form-item input,
.form-item select,
.form-item textarea {
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text-1);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.form-item input::placeholder,
.form-item textarea::placeholder { color: #B4BCC9; }
.form-item textarea { resize: vertical; min-height: 110px; }
.form-item input:hover,
.form-item select:hover,
.form-item textarea:hover { border-color: var(--border-strong); }
.form-item input:focus,
.form-item select:focus,
.form-item textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3.5px var(--primary-tint);
}
.form-item input.is-error,
.form-item select.is-error {
  border-color: #F5222D;
  animation: shake 0.4s var(--ease);
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
}

.form-tip { font-size: 12.5px; color: var(--text-2); margin-top: 16px; text-align: center; }
.form-tip a { color: var(--primary); }
.form-msg {
  display: none;
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: var(--radius);
  background: var(--teal-tint);
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}
.form-msg.show { display: block; animation: msg-in 0.35s var(--ease); }
@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.form-msg.error { background: rgba(245, 34, 45, 0.06); color: #F5222D; }

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  padding: clamp(44px, 5vw, 64px) 0 0;
  margin-top: var(--gap-section);
}
html[data-theme='red'] .site-footer {
  background-image: linear-gradient(180deg, #C1000F 0%, #A8000D 100%);
}
html[data-theme='red'] .site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 214, 102, 0.55), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.25fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer-brand p {
  margin-top: 16px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--footer-text);
  max-width: 300px;
}
.footer-col h4 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  color: var(--footer-title);
}
.footer-col li { margin-bottom: 11px; }
.footer-col a, .footer-col span { font-size: 13.5px; color: var(--footer-text); }
.footer-col a {
  display: inline-block;
  transition: transform 0.22s var(--ease), color 0.22s ease;
}
.footer-col a:hover { color: var(--footer-link-hover); transform: translateX(3px); }
.footer-bottom {
  border-top: 1px solid var(--footer-border);
  padding: 18px 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--footer-text);
}
.footer-bottom a { color: inherit; white-space: nowrap; }
.footer-bottom a:hover { color: var(--footer-link-hover); }
/* 公安备案（全国互联网安全管理服务平台）：徽标 + 备案号，与 ICP 同一行 */
.footer-bottom a.beian-gongan { display: inline-block; white-space: nowrap; }
.footer-bottom a.beian-gongan::before { content: '｜'; margin: 0 5px; }
.footer-bottom a.beian-gongan img {
  display: inline-block;   /* 全局 img 是 display:block，这里必须改回行内，否则徽标会独占一行 */
  height: 20px;
  width: auto;
  vertical-align: -4px;
  margin-right: 4px;
}
@media (max-width: 600px) {
  /* 窄屏放不下：备案号整块换行，并隐去悬挂的「｜」 */
  .footer-bottom a.beian-gongan { display: block; margin-top: 5px; }
  .footer-bottom a.beian-gongan::before { content: none; }
}

/* ---------- 子页顶部标题区 ---------- */
.page-hero {
  position: relative;
  background: var(--hero-bg);
  padding: clamp(52px, 6.5vw, 84px) 0;
  text-align: center;
  overflow: hidden;
}
html[data-theme='red'] .page-hero {
  background-image:
    radial-gradient(110% 160% at 50% -30%, rgba(255, 255, 255, 0.16), transparent 55%),
    linear-gradient(140deg, #EF141F 0%, #E60012 50%, #C1000F 100%);
}
html[data-theme='red'] .page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, transparent 0 30px, rgba(255, 255, 255, 0.035) 30px 31px);
  pointer-events: none;
}
html[data-theme='blue'] .page-hero {
  background-image: linear-gradient(180deg, #F0F6FF 0%, #F5F7FA 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  color: var(--hero-title);
  line-height: 1.3;
}
.page-hero p {
  margin-top: 12px;
  font-size: 16px;
  color: var(--hero-desc);
}

/* ---------- 产品服务页 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.filter-btn {
  padding: 9px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.24s var(--ease);
}
.filter-btn:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-1px); }
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 6px 16px var(--primary-tint);
}

.svc-detail { margin: 0 0 14px; }
.svc-detail li {
  position: relative;
  padding-left: 17px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 7px;
}
.svc-detail li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.75;
}
.svc-meta {
  font-size: 13px;
  color: var(--text-2);
  padding: 12px 0 18px;
  border-top: 1px dashed var(--border);
  margin-top: 6px;
}
.svc-meta b { color: var(--text-1); font-weight: 600; }
.svc-card .btn { margin-top: 2px; }

/* ---------- 关于我们 ---------- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4.5vw, 56px);
  align-items: center;
}
.about-split + .about-split { margin-top: var(--gap-section); }
.about-split .about-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.about-split .about-img:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.about-split .about-img img { width: 100%; height: 340px; object-fit: cover; }
.about-text h2 { font-size: clamp(20px, 2vw, 26px); font-weight: 700; color: var(--text-0); margin-bottom: 16px; }
.about-text p { font-size: 15px; line-height: 1.85; color: var(--text-2); margin-bottom: 12px; }

/* 品牌历程时间线 */
.timeline {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  padding-left: 34px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 8px; bottom: 8px;
  width: 2px;
  border-radius: 1px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-tint) 100%);
}
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -32px; top: 9px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 4px var(--primary-tint);
  transition: transform 0.3s var(--ease);
}
.timeline-item:hover::before { transform: scale(1.2); }
.timeline-item .year {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.3;
}
.timeline-item p { font-size: 14.5px; color: var(--text-2); margin-top: 5px; }

/* 企业实力数据 */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-card); margin-top: 8px; }
.stat-card { text-align: center; padding: 32px 16px; }
.stat-card .num {
  font-size: 40px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
}
.stat-card .num i { font-style: normal; font-size: 18px; margin-left: 2px; }
.stat-card .label { margin-top: 8px; font-size: 14px; color: var(--text-2); }

/* 团队介绍 */
.team-card { text-align: center; }
.team-avatar {
  width: 76px; height: 76px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease);
}
.team-card:hover .team-avatar { transform: scale(1.08); }
.team-avatar svg { width: 34px; height: 34px; }
.team-card h3 { font-size: 17px; font-weight: 600; }
.team-card .role { font-size: 13px; font-weight: 500; color: var(--primary); margin: 5px 0 10px; }
.team-card p { font-size: 13.5px; line-height: 1.75; color: var(--text-2); }

/* ---------- 联系我们 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(32px, 4vw, 52px);
  align-items: start;
}
.contact-info {
  background: var(--surface);
  border: 1px solid rgba(16, 24, 40, 0.05);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px 28px;
}
.contact-info .info-item { display: flex; gap: 18px; padding: 20px 0; }
.contact-info .info-item + .info-item { border-top: 1px solid var(--border); }
.info-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--primary-tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease);
}
.info-item:hover .info-icon { transform: scale(1.08); }
.info-icon svg { width: 22px; height: 22px; }
.info-icon.orange { background: var(--accent-tint); color: var(--accent); }
.info-icon.teal { background: var(--teal-tint); color: var(--teal-dark); }
.info-item h3 { font-size: 15px; font-weight: 600; }
.info-item p { font-size: 14px; color: var(--text-2); margin-top: 3px; }
.copyable { cursor: pointer; transition: color 0.2s ease; }
.copyable:hover { color: var(--primary); }

.contact-form-card { padding: clamp(24px, 3vw, 34px); }

.map-panel {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-soft);
  position: relative;
}
.map-panel svg { display: block; width: 100%; height: 340px; }
.map-note {
  position: absolute;
  left: 50%; bottom: 18px;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow-hover);
  padding: 10px 20px;
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
}
.map-note b { color: var(--text-1); }

/* ---------- 回到顶部 / 轻提示（main.js 注入） ---------- */
.back-top {
  position: fixed;
  right: 26px; bottom: 30px;
  z-index: 90;
  width: 46px; height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 24px var(--primary-tint), 0 4px 10px rgba(16, 24, 40, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease), visibility 0.3s, background-color 0.2s ease;
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--primary-dark); transform: translateY(-3px); }
.back-top svg { width: 20px; height: 20px; }

.joy-toast {
  position: fixed;
  left: 50%; bottom: 44px;
  z-index: 200;
  transform: translateX(-50%) translateY(16px);
  background: rgba(31, 35, 41, 0.92);
  color: #fff;
  font-size: 13.5px;
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s var(--ease), visibility 0.3s;
}
.joy-toast.show { opacity: 1; visibility: visible; transform: translateX(-50%); }

/* ============================================================
   H5 移动端自适应
   ============================================================ */
@media (max-width: 1180px) {
  .hero-badge { left: 8px; }
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }

  /* 优势区 2×2：竖线 + 横线分隔 */
  .adv-grid .adv-card:nth-child(2n) { border-left: 1px solid var(--border); }
  .adv-grid .adv-card:nth-child(n+3) { border-top: 1px solid var(--border); }
  .adv-card { padding: 22px 26px; }

  /* 案例大卡恢复等高 */
  .case-card.featured .case-img { height: 200px; min-height: 0; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --gap-card: 16px; }

  body { padding-top: 56px; font-size: 14.5px; }
  .container { padding: 0 16px; }

  .sec-title { font-size: 23px; }
  .sec-sub { font-size: 14px; margin-top: 8px; }
  .sec-eyebrow { font-size: 11px; letter-spacing: 0.18em; margin-bottom: 10px; }
  .sec-head { margin-bottom: 28px; }
  .page-hero h1 { font-size: 24px; }
  .page-hero p { font-size: 14px; }

  /* 导航折叠竖向菜单 */
  .nav-inner { height: 56px; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    transform: none;
    display: none;
    top: 56px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 32px rgba(16, 24, 40, 0.1);
    padding: 8px 0;
  }
  .nav-menu.open { display: flex; animation: menu-in 0.28s var(--ease); }
  @keyframes menu-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
  }
  .nav-menu a {
    padding: 14px 24px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-1);
  }
  .nav-menu a::after { display: none; }
  .nav-menu a:hover { color: var(--primary); }
  .nav-menu a.active {
    background: var(--primary-tint);
    color: var(--primary);
  }

  /* Banner 上下排版 */
  .hero { padding: 36px 0 44px; }
  .hero-inner { grid-template-columns: 1fr; gap: 26px; }
  .hero-eyebrow { margin-bottom: 12px; font-size: 12px; }
  .hero-title { font-size: 25px; line-height: 1.42; }
  .hero-desc { font-size: 14px; margin-top: 14px; }
  .hero-actions { margin-top: 24px; gap: 12px; }
  .hero-actions .btn { flex: 1; padding: 12px 18px; }
  .hero-trust { margin-top: 28px; gap: 0 18px; }
  .trust-item { padding-right: 18px; }
  .trust-item b { font-size: 19px; }
  .trust-item span { font-size: 11.5px; }
  .hero-img { animation: none; }
  .hero-img img { height: 216px; }
  .hero-badge { padding: 9px 14px 9px 12px; bottom: 14px; }
  .hero-badge b { font-size: 17px; }
  .hero-badge span { font-size: 11px; }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .card { padding: 20px; }

  .case-card .case-img { height: 150px; }
  .case-body { padding: 15px 16px 17px; }
  .case-body h3 { font-size: 15px; }
  .case-body p { font-size: 12.5px; }

  .svc-card { padding: 18px; }
  .svc-no { top: 18px; right: 20px; font-size: 12px; }
  .svc-icon { width: 46px; height: 46px; border-radius: 12px; margin-bottom: 14px; }
  .svc-icon svg { width: 24px; height: 24px; }
  .svc-card h3 { font-size: 16px; }
  .svc-card p { font-size: 13px; margin-bottom: 12px; }
  .svc-more { font-size: 13px; }

  /* 优势区：单列，仅横线分隔 */
  .adv-grid { grid-template-columns: 1fr; gap: 0; }
  .adv-grid .adv-card { border-left: 0 !important; border-top: 1px solid var(--border); padding: 18px 4px; }
  .adv-grid .adv-card:first-child { border-top: 0; }

  /* 表单单列 */
  .form-grid { grid-template-columns: 1fr; gap: 14px; }
  .form-panel { max-width: 100%; }
  .contact-form-card { padding: 20px 16px; }

  /* 子页拆单列 */
  .about-split { grid-template-columns: 1fr; gap: 20px; }
  .about-split.reverse .about-img { order: -1; }
  .about-split .about-img img { height: 210px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .stat-card { padding: 22px 12px; }
  .stat-card .num { font-size: 28px; }
  .timeline { padding-left: 28px; }
  .timeline-item { padding-bottom: 24px; }

  .contact-grid { grid-template-columns: 1fr; gap: 22px; }
  .contact-info { padding: 6px 18px; }
  .map-panel svg { height: 220px; }
  .map-note { font-size: 12px; padding: 8px 14px; max-width: 92%; white-space: normal; text-align: center; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer-brand { grid-column: 1 / -1; }
  .site-footer { padding-top: 36px; }
  .footer-bottom { padding: 14px 0; line-height: 1.8; }

  .back-top { right: 16px; bottom: 20px; width: 42px; height: 42px; }
}

@media (max-width: 480px) {
  /* 文字密集型卡片转单列，保证可读性 */
  #svcGrid.grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-right: 0; }
}

/* ---------- 动效弱化偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.fx [data-reveal] { opacity: 1; transform: none; }
}
