/* ============================================================
   灿凯科技 CANKAI · 设计系统
   浅色科技风 · 单一科技蓝强调色 · Framer 式留白
   三旋钮: VARIANCE=7  MOTION=6  DENSITY=3
   ============================================================ */

:root {
  /* 色彩：浅色系 + 单一强调色（科技蓝），无 AI 紫 */
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --bg-tint: #eef4fb;
  --surface: #ffffff;
  --ink: #0e1726;        /* 近黑，非纯黑 */
  --ink-soft: #46556b;   /* 正文 */
  --muted: #6b7a90;
  --line: #e4ebf3;
  --line-strong: #cdd9e6;

  --accent: #1f5fff;     /* 科技蓝（唯一强调色） */
  --accent-700: #1746c4;
  --accent-soft: #e9f0ff;
  --accent-ink: #ffffff;

  --ok: #1f9d57;

  /* 多业务品牌色：浅底 + 高饱和点缀，保持高级科技感 */
  --c-blue:#2563eb;   --c-blue-700:#1d4ed8;   --c-blue-soft:#e7f0ff;
  --c-cyan:#0891b2;   --c-cyan-700:#0e7490;   --c-cyan-soft:#e1f5fb;
  --c-green:#0d9488;  --c-green-700:#0f766e;  --c-green-soft:#e2f6f1;
  --c-indigo:#6366f1; --c-indigo-700:#4f46e5; --c-indigo-soft:#ebeafe;

  /* 形状一致性锁：统一圆角族 */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(14,23,38,.05), 0 1px 3px rgba(14,23,38,.06);
  --shadow: 0 10px 30px -12px rgba(20,40,80,.18);
  --shadow-lg: 0 24px 60px -20px rgba(20,40,80,.28);

  --maxw: 1180px;
  --nav-h: 68px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;

  /* 3D 视差变量（JS 实时更新） */
  --mx: 0;
  --my: 0;
  /* 滚动进度（0 = 顶部，1 = hero 滚出视口） */
  --scroll-p: 0;
}

/* ---------- 暗色模式（用户切换 + 系统偏好） ---------- */
:root[data-theme="dark"] {
  --bg: #0a1020;
  --bg-soft: #0f172a;
  --bg-tint: #131d33;
  --surface: #131d33;
  --ink: #e5ecf6;
  --ink-soft: #b9c4d4;
  --muted: #8392ab;
  --line: #1f2c40;
  --line-strong: #2c3a55;
  --accent-soft: #1a2a52;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3), 0 1px 3px rgba(0,0,0,.4);
  --shadow: 0 10px 30px -12px rgba(0,0,0,.5);
  --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.6);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1020;
    --bg-soft: #0f172a;
    --bg-tint: #131d33;
    --surface: #131d33;
    --ink: #e5ecf6;
    --ink-soft: #b9c4d4;
    --muted: #8392ab;
    --line: #1f2c40;
    --line-strong: #2c3a55;
    --accent-soft: #1a2a52;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3), 0 1px 3px rgba(0,0,0,.4);
    --shadow: 0 10px 30px -12px rgba(0,0,0,.5);
    --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.6);
  }
}

/* ---------- 无障碍：skip-to-main ---------- */
.skip-link {
  position: absolute; top: -100px; left: 8px; z-index: 999;
  background: var(--accent); color: #fff;
  padding: 12px 20px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 14px;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 8px; outline: 3px solid #fff; }

/* ---------- 数字计数动画初始状态 ---------- */
[data-countup] { font-variant-numeric: tabular-nums; }

/* ---------- 暗色模式切换按钮 ---------- */
.theme-toggle {
  width: 38px; height: 38px; border: 1px solid var(--line-strong);
  border-radius: var(--r-pill); background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink-soft);
  transition: background .2s, color .2s, border-color .2s;
}
.theme-toggle:hover { background: var(--accent-soft); color: var(--accent-700); border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }

/* ---------- 基础 ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-soft);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.08;
  margin: 0;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-700);
  background: var(--accent-soft); padding: 7px 13px; border-radius: var(--r-pill);
}
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.soft { background: var(--bg-soft); }
.section.tint { background: var(--bg-tint); }
.section-head { max-width: 720px; margin: 0 0 clamp(36px, 5vw, 60px); }
.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin: 18px 0 14px;
}
.section-head p { font-size: 17px; color: var(--muted); max-width: 60ch; }
.lead { font-size: 18px; color: var(--ink-soft); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; line-height: 1;
  padding: 14px 22px; border-radius: var(--r-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .2s ease, box-shadow .2s ease, border-color .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-700); box-shadow: var(--shadow); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-700); background: var(--accent-soft); }
.btn-ghost:active { transform: translateY(1px); }
:focus-visible { outline: 3px solid rgba(31,95,255,.45); outline-offset: 2px; border-radius: 6px; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.brand .mark { width: 32px; height: 32px; flex: 0 0 auto; }
.brand .name { font-size: 17px; }
.brand .name small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .22em; color: var(--muted); }
.brand-logo { height: 42px; width: auto; display: block; }
.footer .brand-logo { height: 46px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 13px; border-radius: var(--r-pill); font-size: 15px; font-weight: 600; color: var(--ink-soft);
  transition: background .18s, color .18s;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang { font-size: 14px; font-weight: 700; color: var(--accent-700); padding: 8px 12px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); }
.lang:hover { background: var(--accent-soft); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 7vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); margin: 18px 0 18px; }
.hero .sub { font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-soft); max-width: 52ch; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: flex; gap: 30px; margin-top: 38px; flex-wrap: wrap; }
.hero-stats .num { font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.hero-stats .lbl { font-size: 13px; color: var(--muted); }

/* Aurora 背景（仅装饰，蓝系同色族，绝不彩虹） */
.aurora { position: absolute; inset: -20% -10% auto -10%; height: 70%; z-index: 0; pointer-events: none; filter: blur(60px); opacity: .6; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: multiply; }
.aurora .a1 { width: 460px; height: 460px; left: -60px; top: -120px; background: radial-gradient(circle at 30% 30%, #bcd4ff, transparent 70%); animation: drift1 18s ease-in-out infinite; }
.aurora .a2 { width: 520px; height: 520px; right: -80px; top: -160px; background: radial-gradient(circle at 60% 40%, #c7eefe, transparent 70%); animation: drift2 22s ease-in-out infinite; }
.aurora .a3 { width: 380px; height: 380px; left: 42%; top: -40px; background: radial-gradient(circle at 50% 50%, #cfeede, transparent 70%); animation: drift1 26s ease-in-out infinite reverse; }
.aurora .a4 { width: 420px; height: 420px; left: 14%; top: -220px; background: radial-gradient(circle at 50% 50%, #e0e0fd, transparent 70%); animation: drift2 24s ease-in-out infinite reverse; }
@keyframes drift1 { 50% { transform: translate(40px, 30px) scale(1.08); } }
@keyframes drift2 { 50% { transform: translate(-50px, 24px) scale(1.05); } }
.hero .wrap { position: relative; z-index: 1; }

/* ---------- 全屏背景装饰：3D 视差（多层 CSS transform + 鼠标追踪） ---------- */
.bg-fx {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background: var(--bg);
  perspective: 1400px;
  perspective-origin: 50% 30%;
  transform-style: preserve-3d;
}

/* 浮动品牌色块（视差层内部） */
.brand-chip {
  width: 100%; height: 100%;
  border-radius: 22%;
  color: #fff;
  font-size: clamp(14px, 1.6vw, 24px);
  font-weight: 800;
  letter-spacing: -.02em;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 36px -8px rgba(20, 40, 80, 0.30),
              inset 0 1px 0 rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
/* 暗色模式：玻璃态（半透明品牌色 + 边框 + backdrop-filter） */
:root[data-theme="dark"] .brand-chip {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.10),
    rgba(255, 255, 255, 0.04)) !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    0 12px 36px -8px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}
/* 暗色模式：3 个 chip 加微妙品牌色调（顶部描边） */
:root[data-theme="dark"] .bg-layer-3 .brand-chip { box-shadow: 0 12px 36px -8px rgba(0,0,0,.55), inset 0 1px 0 rgba(37, 99, 235, 0.5), inset 0 0 0 1px rgba(37, 99, 235, 0.15); }
:root[data-theme="dark"] .bg-layer-3-2 .brand-chip { box-shadow: 0 12px 36px -8px rgba(0,0,0,.55), inset 0 1px 0 rgba(8, 145, 178, 0.5), inset 0 0 0 1px rgba(8, 145, 178, 0.15); }
:root[data-theme="dark"] .bg-layer-3-3 .brand-chip { box-shadow: 0 12px 36px -8px rgba(0,0,0,.55), inset 0 1px 0 rgba(99, 102, 241, 0.5), inset 0 0 0 1px rgba(99, 102, 241, 0.15); }
.bg-fx canvas { display: none; }   /* 旧力导向 canvas 保留 DOM 但禁用（兼容旧 HTML） */

/* 视差层 — 4 层由远到近，translate + rotate 强度递增 */
.bg-fx .bg-layer {
  position: absolute;
  will-change: transform;
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(.16, 1, .3, 1);
  transform-style: preserve-3d;
}
/* Layer 1 - 远景大圆（slowest, 0.10x translate） */
.bg-fx .bg-layer-1 {
  top: -18%; left: -12%;
  width: 70vw; max-width: 1100px; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(37, 99, 235, 0.18), transparent 65%);
  filter: blur(50px);
  /* 滚动时大圆随之下移 + 透明度降低 */
  transform: translate3d(calc(var(--mx) * -10px), calc(var(--my) * -10px + var(--scroll-p) * 80px), 0);
  opacity: calc(1 - var(--scroll-p) * 0.5);
}
/* Layer 2 - 中景六边形（0.20x translate + 微 rotate，围 hero-visual 右侧） */
.bg-fx .bg-layer-2 {
  top: 4%; right: -6%;
  width: 50vw; max-width: 780px; aspect-ratio: 1;
  opacity: calc(0.45 - var(--scroll-p) * 0.25);
  transform:
    translate3d(calc(var(--mx) * -22px), calc(var(--my) * -22px + var(--scroll-p) * 60px), 40px)
    rotate3d(1, 0, 0, calc(var(--my) * -2.5deg))
    rotate3d(0, 1, 0, calc(var(--mx) * 2.5deg));
}
/* Layer 3 - 浮动品牌色块（围 hero-visual 三个位置） */
.bg-fx .bg-layer-3 {
  /* MS（微软）— hero-visual 左上 */
  top: 8%; right: 28%;
  width: 6.5vw; max-width: 100px; min-width: 56px; aspect-ratio: 1;
  opacity: calc(1 - var(--scroll-p) * 0.7);
  transform:
    translate3d(calc(var(--mx) * -38px), calc(var(--my) * -38px + var(--scroll-p) * 40px), 90px)
    rotate3d(1, 0, 0, calc(var(--my) * -4deg))
    rotate3d(0, 1, 0, calc(var(--mx) * 4deg));
}
.bg-fx .bg-layer-3-2 {
  /* QAX（奇安信）— hero-visual 右侧中部 */
  top: 34%; right: 6%;
  width: 5vw; max-width: 78px; min-width: 48px; aspect-ratio: 1;
  opacity: calc(1 - var(--scroll-p) * 0.7);
  transform:
    translate3d(calc(var(--mx) * -50px), calc(var(--my) * -50px + var(--scroll-p) * 30px), 130px)
    rotate3d(1, 0, 0, calc(var(--my) * -5deg))
    rotate3d(0, 1, 0, calc(var(--mx) * 5deg));
}
.bg-fx .bg-layer-3-3 {
  /* DJ（鼎甲）— hero-visual 右下 */
  bottom: 14%; right: 20%;
  width: 5.5vw; max-width: 88px; min-width: 52px; aspect-ratio: 1;
  opacity: calc(1 - var(--scroll-p) * 0.7);
  transform:
    translate3d(calc(var(--mx) * -46px), calc(var(--my) * -46px + var(--scroll-p) * 50px), 110px)
    rotate3d(1, 0, 0, calc(var(--my) * -4.5deg))
    rotate3d(0, 1, 0, calc(var(--mx) * 4.5deg));
}

/* Aurora 光晕（保留原 CSS 动画，叠加在视差层上） */
.bg-fx .aurora-layer { position: absolute; inset: 0; pointer-events: none; filter: blur(60px); opacity: .4; mix-blend-mode: multiply; }
.bg-fx .aurora-layer i { position: absolute; border-radius: 50%; }
.bg-fx .aurora-layer .a1 { width: 460px; height: 460px; left: -60px; top: -120px; background: radial-gradient(circle at 30% 30%, #bcd4ff, transparent 70%); animation: drift1 18s ease-in-out infinite; }
.bg-fx .aurora-layer .a2 { width: 520px; height: 520px; right: -80px; top: -160px; background: radial-gradient(circle at 60% 40%, #c7eefe, transparent 70%); animation: drift2 22s ease-in-out infinite; }
.bg-fx .aurora-layer .a3 { width: 380px; height: 380px; left: 42%; top: -40px; background: radial-gradient(circle at 50% 50%, #cfeede, transparent 70%); animation: drift1 26s ease-in-out infinite reverse; }
@keyframes drift1 { 50% { transform: translate(40px, 30px) scale(1.08); } }
@keyframes drift2 { 50% { transform: translate(-50px, 24px) scale(1.05); } }

/* Hero 视觉：真实 SVG 插画（安全基础设施构图）+ 视差倾斜 */
.hero-visual {
  position: relative;
  transform-style: preserve-3d;
  transform:
    translate3d(calc(var(--mx) * -18px), calc(var(--my) * -18px - var(--scroll-p) * 30px), 0)
    rotate3d(1, 0, 0, calc(var(--my) * -2deg))
    rotate3d(0, 1, 0, calc(var(--mx) * 2deg));
  transition: transform 0.4s cubic-bezier(.16, 1, .3, 1);
  will-change: transform;
}
.hero-visual svg { width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(20,40,80,.12)); }

/* Shiny 关键词（React Bits: Shiny Text 等价 CSS） */
.shiny {
  background: linear-gradient(100deg, var(--c-blue) 25%, var(--c-cyan) 45%, #d6f0fb 50%, var(--c-cyan) 55%, var(--c-blue) 75%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shine 5.5s linear infinite; font-weight: 800;
}
@keyframes shine { to { background-position: -220% 0; } }

/* ---------- 合作伙伴条 ---------- */
.trust { padding: 30px 0 8px; }
.trust p { text-align: center; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 30px; align-items: center; }
.trust-row .chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; color: var(--ink); font-size: 15px;
  padding: 9px 16px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.trust-row .chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
.trust-row .chip:nth-child(4n+1) .dot { background: var(--c-blue); }
.trust-row .chip:nth-child(4n+2) .dot { background: var(--c-cyan); }
.trust-row .chip:nth-child(4n+3) .dot { background: var(--c-green); }
.trust-row .chip:nth-child(4n+4) .dot { background: var(--c-indigo); }

/* ---------- 核心业务 Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
  display: flex; flex-direction: column; gap: 12px;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; color: var(--accent-700); }
.card h3 { font-size: 19px; }
.card p { font-size: 14.5px; color: var(--muted); }
.card .tags { margin-top: auto; display: flex; flex-wrap: wrap; gap: 7px; }
.card .tags span { font-size: 12px; font-weight: 700; color: var(--accent-700); background: var(--accent-soft); padding: 5px 10px; border-radius: var(--r-pill); }
.card.span3 { grid-column: span 3; }
.card.span2 { grid-column: span 2; }
.card.tinted { background: var(--bg-tint); border-color: transparent; }
.card.accent { background: linear-gradient(160deg, #1f5fff, #1746c4); border-color: transparent; color: #fff; }
.card.accent h3, .card.accent p { color: #fff; }
.card.accent .ico { background: rgba(255,255,255,.18); color: #fff; }
.card.accent .tags span { background: rgba(255,255,255,.18); color: #fff; }

/* ---------- 关于我们 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.about-grid .visual svg { width: 100%; height: auto; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 26px; }
.value { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.value b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.value span { font-size: 13px; color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 8px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.stat .n { font-size: clamp(28px, 3.4vw, 36px); font-weight: 800; color: var(--accent-700); letter-spacing: -.03em; }
.stat:nth-child(1) .n { color: var(--c-blue-700); }
.stat:nth-child(2) .n { color: var(--c-cyan-700); }
.stat:nth-child(3) .n { color: var(--c-green-700); }
.stat:nth-child(4) .n { color: var(--c-indigo-700); }
.stat .t { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* ---------- 解决方案 / 案例 ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.case {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; display: flex; flex-direction: column; gap: 10px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.case .ind { font-size: 12px; font-weight: 700; color: var(--accent-700); background: var(--accent-soft); align-self: flex-start; padding: 5px 11px; border-radius: var(--r-pill); }
.case:nth-child(3n+1) .ind { color: var(--c-blue-700);   background: var(--c-blue-soft); }
.case:nth-child(3n+2) .ind { color: var(--c-cyan-700);   background: var(--c-cyan-soft); }
.case:nth-child(3n+3) .ind { color: var(--c-green-700);  background: var(--c-green-soft); }
.case h3 { font-size: 18px; }
.case p { font-size: 14.5px; color: var(--muted); }

/* ---------- 产品中心 ---------- */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column;
}
.product .top { height: 120px; background: linear-gradient(150deg, var(--bg-tint), #dbe7fb); display: flex; align-items: center; justify-content: center; color: var(--accent-700); }
.product:nth-child(1) .top { background: linear-gradient(150deg, var(--c-blue-soft), #d6e6fb); color: var(--c-blue-700); }
.product:nth-child(2) .top { background: linear-gradient(150deg, var(--c-cyan-soft), #d3f1f8); color: var(--c-cyan-700); }
.product:nth-child(3) .top { background: linear-gradient(150deg, var(--c-green-soft), #d3f1ec); color: var(--c-green-700); }
.product:nth-child(4) .top { background: linear-gradient(150deg, var(--c-indigo-soft), #e0e0fb); color: var(--c-indigo-700); }
.product .body { padding: 22px; display: flex; flex-direction: column; gap: 9px; }
.product h3 { font-size: 18px; }
.product p { font-size: 14px; color: var(--muted); }

/* ---------- 合作伙伴网格 ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.partner { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.partner .badge { width: 38px; height: 38px; border-radius: 10px; background: var(--bg-tint); display: flex; align-items: center; justify-content: center; color: var(--accent-700); font-weight: 800; font-size: 14px; flex: 0 0 auto; }
.partner:nth-child(4n+1) .badge { background: var(--c-blue-soft);   color: var(--c-blue-700); }
.partner:nth-child(4n+2) .badge { background: var(--c-cyan-soft);   color: var(--c-cyan-700); }
.partner:nth-child(4n+3) .badge { background: var(--c-green-soft);  color: var(--c-green-700); }
.partner:nth-child(4n+4) .badge { background: var(--c-indigo-soft); color: var(--c-indigo-700); }
.partner b { color: var(--ink); font-size: 15px; display: block; }
.partner span { font-size: 12px; color: var(--muted); }

/* ---------- 为什么选我们 ---------- */
.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.why .item { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.why .item .ico { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 11px; background: var(--accent-soft); color: var(--accent-700); display: flex; align-items: center; justify-content: center; }
.why .item:nth-child(6n+1) .ico { background: var(--c-blue-soft);   color: var(--c-blue-700); }
.why .item:nth-child(6n+2) .ico { background: var(--c-cyan-soft);   color: var(--c-cyan-700); }
.why .item:nth-child(6n+3) .ico { background: var(--c-green-soft);  color: var(--c-green-700); }
.why .item:nth-child(6n+4) .ico { background: var(--c-indigo-soft); color: var(--c-indigo-700); }
.why .item:nth-child(6n+5) .ico { background: var(--c-cyan-soft);   color: var(--c-cyan-700); }
.why .item:nth-child(6n+6) .ico { background: var(--c-blue-soft);   color: var(--c-blue-700); }
.why .item h3 { font-size: 16.5px; margin-bottom: 4px; }
.why .item p { font-size: 14px; color: var(--muted); }

/* ---------- CTA 横幅 ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(135deg, #2563eb, #0891b2 52%, #6366f1); border-radius: var(--r-lg); padding: clamp(40px, 6vw, 64px); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.6vw, 40px); }
.cta-band p { color: rgba(255,255,255,.86); font-size: 17px; margin: 14px auto 26px; max-width: 56ch; }
.cta-band .btn-primary { background: #fff; color: var(--accent-700); }
.cta-band .btn-primary:hover { background: #eef3ff; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.cta-band .glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px 300px at 80% -10%, rgba(255,255,255,.22), transparent 60%); }

/* ---------- FAQ（GEO 友好） ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 22px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--accent-700); font-weight: 700; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); font-size: 15px; padding-bottom: 18px; }

/* ---------- 二级案例页 ---------- */
.crumb { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); flex-wrap: wrap; padding-top: 6px; }
.crumb a { color: var(--accent-700); }
.crumb a:hover { text-decoration: underline; }
.crumb .sep { color: var(--line-strong); }
.case-hero { position: relative; overflow: hidden; padding: clamp(34px, 5vw, 56px) 0 clamp(30px, 4vw, 48px); }
.case-hero .wrap { position: relative; z-index: 1; }
.case-hero h1 { font-size: clamp(28px, 4.4vw, 48px); margin: 16px 0 14px; }
.case-hero .sub { font-size: clamp(16px, 1.4vw, 18px); color: var(--ink-soft); max-width: 60ch; }
.case-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.case-meta .m { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 8px 15px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.case-meta .m b { color: var(--muted); font-weight: 600; margin-right: 6px; }
.case-body h2 { font-size: clamp(23px, 3vw, 32px); margin: 6px 0 16px; }
.case-body p { font-size: 16.5px; color: var(--ink-soft); max-width: 74ch; }
.case-body p + p { margin-top: 12px; }
.case-list { display: grid; gap: 12px; margin-top: 6px; }
.case-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink-soft); max-width: 74ch; }
.case-list li i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 9px; flex: 0 0 auto; }
.quote { border-left: 4px solid var(--accent); padding: 4px 0 4px 22px; margin: 14px 0 0; font-size: 18px; line-height: 1.6; color: var(--ink); font-style: italic; }
.quote cite { display: block; margin-top: 10px; font-size: 14px; font-style: normal; color: var(--muted); }
.case .more { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--accent-700); font-size: 14px; }
/* 案例页按业务线着色 */
body.c-blue   .eyebrow { background: var(--c-blue-soft);   color: var(--c-blue-700); }
body.c-cyan   .eyebrow { background: var(--c-cyan-soft);   color: var(--c-cyan-700); }
body.c-green  .eyebrow { background: var(--c-green-soft);  color: var(--c-green-700); }
body.c-indigo .eyebrow { background: var(--c-indigo-soft); color: var(--c-indigo-700); }

/* ---------- 页脚 ---------- */
.footer { position: relative; background: linear-gradient(160deg, #0c1f3f, #0e1726); color: #b9c4d4; padding: clamp(48px, 6vw, 72px) 0 28px; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--c-blue), var(--c-cyan), var(--c-green), var(--c-indigo)); }
.footer a { color: #cdd8e8; }
.footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer .brand .name { color: #fff; }
.footer .brand .name small { color: #7e8da3; }
.footer h4 { color: #fff; font-size: 14px; letter-spacing: .04em; margin-bottom: 14px; }
.footer ul li { margin-bottom: 9px; font-size: 14px; }
.footer .contact li { display: flex; gap: 9px; align-items: flex-start; }
.footer .contact .k { color: #7e8da3; min-width: 42px; }
.foot-bottom { border-top: 1px solid #1f2c40; margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: #7e8da3; }

/* ---------- 滚动揭示 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 460px; }
  .about-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card.span3, .card.span2 { grid-column: span 1; }
  .cases, .products { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-right .lang { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px 20px; gap: 2px; box-shadow: var(--shadow);
  }
  .nav.open .nav-links a { padding: 12px 8px; }
  .bento, .cases, .products, .partner-grid, .values, .stat-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
}
@media (max-width: 460px) {
  .stat-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
}

/* ---------- 无障碍：尊重减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora, .shiny, .bg-fx i { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .001ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: rgba(255,255,255,.96); }
}

/* ---------- 客户信赖 logo 墙 ---------- */
.clients { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.client-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  min-height: 104px;
  display: flex; align-items: center; justify-content: center;
  padding: 22px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.client-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.client-logo {
  max-width: 100%; max-height: 48px; width: auto; height: auto; object-fit: contain;
  filter: grayscale(1) opacity(.55);
  transition: filter .25s ease;
}
.client-card:hover .client-logo { filter: grayscale(0) opacity(1); }
.client-name {
  font-weight: 800; color: var(--ink); font-size: 16px; letter-spacing: -.01em;
  text-align: center; line-height: 1.3; padding: 0 4px;
}
.clients-note { margin-top: 22px; font-size: 13px; color: var(--muted); text-align: center; }
@media (max-width: 980px) { .clients { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .clients { grid-template-columns: repeat(2, 1fr); } }
