/* From Uiverse.io by ElSombrero2 - `https://uiverse.io/ElSombrero2/tricky-robin-67`
   MIT License, Copyright (c) ElSombrero2 (Rakotondrasoa Nirilala) */
/* From Uiverse.io by gharsh11032000 - `https://uiverse.io/gharsh11032000/shy-ape-17`
   MIT License, Copyright (c) gharsh11032000 (Harsh Gupta) */
/* From Uiverse.io by AnthonyPreite - `https://uiverse.io/AnthonyPreite/tiny-shrimp-10`
   MIT License, Copyright (c) AnthonyPreite (Astoryon) */

/* ===== 艾尔科技官网 公共样式 ===== */
:root {
  --primary: #1a3a5c;
  --accent: #2b7fff;
  --accent-light: #e8f1ff;
  --text: #2c3e50;
  --text-light: #6b7c93;
  --bg: #ffffff;
  --bg-gray: #f5f7fa;
  --border: #e4e9f0;
  --success: #52c41a;
  --warning: #faad14;
  --danger: #f5222d;
  --shadow: 0 2px 12px rgba(26, 58, 92, 0.08);
  --shadow-hover: 0 8px 24px rgba(26, 58, 92, 0.15);
  --radius: 8px;
  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 顶部导航 ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.navbar.scrolled {
  box-shadow: var(--shadow);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}
.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--accent);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: #1a6be6;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(43, 127, 255, 0.3);
}
.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: #fff;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-ghost {
  color: var(--text-light);
  background: transparent;
}
.btn-ghost:hover {
  color: var(--accent);
}

/* 移动端菜单 */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary);
}

/* ===== Hero首屏 ===== */
.hero {
  padding: 140px 0 100px;
  background: linear-gradient(135deg, #f0f5ff 0%, #e8f1ff 50%, #f5f7fa 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(43, 127, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px 300px;
  gap: 24px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-text { grid-column: 2; grid-row: 1; }
.hero-visual { grid-column: 3; grid-row: 1; }
.hero h1 {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero h1 span {
  color: var(--accent);
}
.hero p {
  font-size: 17px;
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 1.8;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-visual {
  position: relative;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-hover);
  width: 100%;
  max-width: 380px;
}
.hero-card-title {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-card-title .dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-stat-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.hero-stat-row:last-child { border-bottom: none; }
.hero-stat-label { color: var(--text-light); font-size: 13px; }
.hero-stat-value { font-weight: 600; color: var(--primary); font-size: 14px; }

/* ===== 首页师傅风采：竖长条卡片横向层叠 ===== */
/* 卡片摆正不旋转，同一顶线；第 1 张在最左、最靠前（最上层），
   之后每张向右 42px 并被前一张压住，越往右越靠后；
   单卡 224×420px（8:15，与工程师工装照原图 1056×1980 同比例，高 420 不变反算宽 224）
   6 张全开时整体宽 224 + 42×5 = 434px，卡片列可用宽约 454px，不会挤压右侧文案 */
.mst-deck {
  --mst-w: 224px;
  --mst-h: 420px;
  --mst-dx: 42px;
  --mst-count: 3;
  /* 悬停发光半径（px）：读后台 home.master.glowRadius，JS 校验后写到 --mst-glow-r；
     默认 24。外层柔光与内发光都按这个变量缩放，0 时相当于关闭发光 */
  --mst-glow-r: 24px;
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  align-self: center;
  position: relative;
  width: calc(var(--mst-w) + var(--mst-dx) * (var(--mst-count) - 1));
  height: var(--mst-h);
  z-index: 2;
  /* 约束层叠卡片的堆叠上下文，外发光不和其他区块层级互相干扰 */
  isolation: isolate;
}
.mst-card {
  position: absolute;
  top: 0;
  left: calc(var(--mst-dx) * (var(--mst-i) - 1));
  width: var(--mst-w);
  height: var(--mst-h);
  aspect-ratio: 8 / 15;
  border-radius: 14px;
  overflow: hidden;
  /* 卡片默认底色：后台 home.masterN.bgColor 会以行内 style 覆盖这里，作为照片下方的底色
     （照片不透明时被照片盖住，透明 PNG / 无图时直接露出）；未配置或非法时统一走这档深蓝底 */
  background: linear-gradient(168deg, #1e3348 0%, #101b26 100%);
  box-shadow: 0 10px 24px rgba(26, 58, 92, 0.2);
  /* 悬停编排：离开时按“抽屉回落 → 卡片缩回 → 其余散开”倒序，延迟分别 0 / 0.6s / 1.05s。
     z-index 不做过渡：倒序全程由 .mst-card--focus 的 z-index:20 撑着，
     清类（1.6s）时立即回到 --mst-z，避免再延迟 1.45s 造成层叠顺序错乱 */
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.6s,
    opacity 0.3s ease-out 0.6s,
    box-shadow 0.3s ease-in-out;
  z-index: var(--mst-z);
  cursor: pointer;
}
/* 越往右越靠后：第 1 张（最左）在最上层，z-index 由左到右递减 */
.mst-card:nth-child(1) { --mst-i: 1; --mst-z: 6; }
.mst-card:nth-child(2) { --mst-i: 2; --mst-z: 5; }
.mst-card:nth-child(3) { --mst-i: 3; --mst-z: 4; }
.mst-card:nth-child(4) { --mst-i: 4; --mst-z: 3; }
.mst-card:nth-child(5) { --mst-i: 5; --mst-z: 2; }
.mst-card:nth-child(6) { --mst-i: 6; --mst-z: 1; }

/* 边框流光：参考 Uiverse 的 ElSombrero2「渐变边框旋转」方案
   （https://uiverse.io/ElSombrero2 的 gradient border 卡片，来源保留），
   改为伪元素只画四周 3px 的圆角边框环：整卡大小的 conic-gradient 亮段绕卡旋转，
   双层 mask 的 xor/exclude 挖掉中间，只留下边框一圈。
   这样既能保留“旋转渐变边框”的观感，又不会像整块旋转渐变那样从透明 PNG
   的透明区域透进卡片内部、也不会盖住照片和抽屉。
   默认 opacity:0 且动画暂停，只有被选中（JS 在收拢结束、放大启动时加 .mst-card--lit）才点亮并继续旋转；
   未选中的卡与收拢卡都不显示任何亮边。周期 5s，0 / 1.25 / 2.5 / 3.75s 亮段依次位于上 / 右 / 下 / 左四边。 */
@property --mst-ring-a {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
.mst-card::before {
  content: '';
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  padding: 3px;
  /* 跟随卡片圆角：桌面 14px，窄屏媒体查询里卡片改成 10px 时这里同步 */
  border-radius: inherit;
  background: conic-gradient(
    from calc(var(--mst-ring-a) - 25deg),
    #6d4c36 0deg,
    #6d4c36 8deg,
    #79563d 15deg,
    #c08d68 20deg,
    #e7bc97 23.5deg,
    #fff6ea 25deg,
    #e7bc97 26.5deg,
    #c08d68 30deg,
    #79563d 35deg,
    #6d4c36 42deg,
    #6d4c36 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 0.3s ease-in-out;
  animation: mst-ring-spin 5s linear infinite;
  /* 默认暂停：未选中时环既不显示也不推进，退选淡出时停在同一角度，不会跳回 0° */
  animation-play-state: paused;
  pointer-events: none;
  z-index: 4;
}
/* 只有“被选中”的焦点卡点亮：类由 JS 在收拢 0.35s 结束、放大启动的同一刻加上 */
.mst-card--lit::before {
  opacity: 1;
  animation-play-state: running;
}
@keyframes mst-ring-spin {
  from { --mst-ring-a: 0deg; }
  to { --mst-ring-a: 360deg; }
}
/* 有图时照片内缩 3px，让光带从四周 3px 缝隙透出。
   注意：绝对定位的替换元素（img）在 inset 四边都写死、width/height 为 auto 时，
   会被拉伸成整卡 224×420（右侧、底部各溢出 3px 后被 overflow 裁掉），
   于是 3px 缝只剩左边和上边，右边、底部看不到流光。
   这里显式按 100% - 6px 计算，四边缝隙才都是 3px。 */
.mst-card.is-photo .mst-card-img {
  inset: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  border-radius: 11px;
  z-index: 1;
  transition: filter 0.3s ease-in-out;
}
/* 整卡背光：照片下方一层暖米金径向 + 纵向渐变，默认不可见，hover 点亮；
   透明 PNG 的透明区域会透出这层光，形成背光剪影；不透明照片被照片覆盖，
   只参与边缘柔光（配合下方 hover 轮廓光与照片轻微提亮）。
   径向尺寸随 --mst-glow-r 一起扩大，半径越大背光扩散越开。 */
.mst-card.is-photo::after {
  content: '';
  position: absolute;
  inset: 3px;
  z-index: 0;
  pointer-events: none;
  border-radius: 11px;
  background:
    radial-gradient(
      calc(115% + var(--mst-glow-r) * 1.2) calc(72% + var(--mst-glow-r) * 1.2) at 50% 10%,
      rgba(255, 226, 200, 0.5) 0%,
      rgba(237, 184, 153, 0.26) 32%,
      rgba(201, 138, 82, 0.1) 62%,
      rgba(201, 138, 82, 0) 100%),
    linear-gradient(180deg,
      rgba(237, 184, 153, 0.14) 0%,
      rgba(201, 138, 82, 0.06) 60%,
      rgba(26, 58, 92, 0.18) 100%);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}
.mst-card.is-photo:hover::after,
.mst-card.is-photo:focus-within::after {
  opacity: 1;
}
/* 整卡内发光：照片之上、角标/抽屉之下的一层暖色 inset 辉光。
   与 ::after 的“照片背后背光”叠加，形成“内发光 + 外扩柔光”；
   inset 的模糊/扩散半径同样按 --mst-glow-r 缩放，0 时两层都为 0（等于关闭内发光）。
   放在独立元素上而不是伪元素，是因为 ::before/::after 已被流光和背光占用。 */
.mst-card-glow {
  position: absolute;
  inset: 3px;
  border-radius: 11px;
  z-index: 2;
  pointer-events: none;
  box-shadow:
    inset 0 0 calc(var(--mst-glow-r) * 1.15) calc(var(--mst-glow-r) * 0.1) rgba(237, 184, 153, 0.4),
    inset 0 0 calc(var(--mst-glow-r) * 2.4) rgba(201, 138, 82, 0.16);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}
.mst-card.is-photo:hover .mst-card-glow,
.mst-card.is-photo:focus-within .mst-card-glow {
  opacity: 1;
}
/* 透明 PNG：object-fit 改 contain 避免裁掉人物边缘。
   底色统一由卡片默认底色（或被 home.masterN.bgColor 覆盖后的行内背景）提供，
   未配置/非法时就是上面那档深蓝底，让白色工装人物和暖色背光都有对比 */
.mst-card--alpha .mst-card-img {
  object-fit: contain;
}
.mst-card.is-photo:hover .mst-card-img,
.mst-card.is-photo:focus-within .mst-card-img {
  filter: brightness(1.06);
}
/* 降低动效偏好：停掉边框环，改为静态 1px 细边 */
@media (prefers-reduced-motion: reduce) {
  .mst-card::before { display: none; }
  .mst-card.is-photo { border: 1px solid rgba(237, 184, 153, 0.45); }
  .mst-card.is-photo .mst-card-img { inset: 0; width: 100%; height: 100%; border-radius: 13px; }
  /* 不跑过渡，hover 只保留静态柔光与 1px 暖色微亮边 */
  .mst-card { transition: box-shadow 0s, z-index 0s 0.65s; }
  .mst-card.is-photo::after { transition: none; }
  .mst-card-glow { transition: none; }
  .mst-card.is-photo .mst-card-img { transition: none; }
  /* 减少动效：跳过收拢与放大编排，只保留抽屉 */
  .mst-deck--active .mst-card--gather { transform: none !important; opacity: 1 !important; }
  .mst-deck--active .mst-card--focus { transform: none !important; }
  .mst-card:hover .mst-card-details,
  .mst-card:focus-within .mst-card-details { transition-delay: 0.18s; }
  .mst-card:hover,
  .mst-card:focus-within {
    box-shadow:
      inset 0 0 calc(var(--mst-glow-r) * 1.1) rgba(237, 184, 153, 0.22),
      0 0 calc(var(--mst-glow-r) * 0.9) rgba(237, 184, 153, 0.3),
      0 20px 40px rgba(26, 58, 92, 0.3);
  }
}

/* 配置未取到时兜底只露出 3 张；取到配置后 JS 会加 .mst-deck--ready 并按 home.master.count 控制 */
.mst-card:nth-child(n+4) { display: none; }
.mst-deck--ready .mst-card { display: block; }
.mst-deck--ready .mst-card[hidden] { display: none; }

/* hover：卡片立即置顶并点亮层叠柔光，停顿 0.18s 后底部抽屉上推；移开时抽屉先回落、卡片保持置顶 */
.mst-card:hover,
.mst-card:focus-within {
  z-index: 20;
  /* 悬停背光 = 照片背后的 ::after 背光 + 照片之上的 .mst-card-glow 内发光 + 这里的外扩柔光。
     外扩为两层柔和光晕（不做 1px 描边）：模糊/扩散都乘 --mst-glow-r，
     半径 0 时两层都是 0 级阴影，等于关闭外发光；最后保留原有投影。 */
  box-shadow:
    0 0 calc(var(--mst-glow-r) * 0.55) calc(var(--mst-glow-r) * 0.05) rgba(237, 184, 153, 0.42),
    0 0 calc(var(--mst-glow-r) * 1.3) calc(var(--mst-glow-r) * 0.12) rgba(201, 138, 82, 0.22),
    0 20px 40px rgba(26, 58, 92, 0.28);
  transition-delay: 0s;
}

/* ===== hover 编排：其余卡收拢 → 选中卡放大 → 停顿 → 抽屉上推 ===== */
/* 收拢：向选中卡的横向位置平移（--mst-gx 由 JS 按索引差 × 42px 计算），
   同时下移 14px、缩到 0.94、透明度 0.4，层级保持默认（低于选中卡的 20） */
.mst-card--gather {
  transition:
    transform 0.35s ease-out 1.05s,
    opacity 0.3s ease-out 1.05s,
    box-shadow 0.3s ease-in-out;
}
.mst-deck--active .mst-card--gather {
  transform: translate(var(--mst-gx, 0), 14px) scale(0.94);
  opacity: 0.4;
  transition-delay: 0s, 0s, 0s;
}
/* 收拢堆叠的卡不跑边框流光：3 张 3px 光边叠在一起会互相压出多重亮线，显脏；
   背光 ::after 默认 opacity:0，本身不会叠光 */
.mst-deck--active .mst-card--gather::before { display: none; }
/* 选中卡：收拢 0.35s 后再放大；倍率由 home.master.hoverScale 配置并按可用空间夹紧 */
.mst-card--focus {
  z-index: 20;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.6s,
    box-shadow 0.3s ease-in-out;
}
.mst-deck--active .mst-card--focus {
  transform: scale(var(--mst-focus-scale, 1.5));
  transition-delay: 0.35s, 0s;
}
/* 离开收尾的层叠切换：等倒序动画走完（1.4s，位移与透明度都已到位）后，
   把要盖回上层的左侧卡先以 opacity:0 放到选中卡之上（层级由 JS 按左右顺序写成内联
   z-index，保证左压右的最终顺序），再 0.2s 淡入。
   淡入开始时画面与切换前完全一致（0 透明度不可见），z-index 的 20 → 原层级
   切换藏在淡入过程里，不再出现“啪”一下上下层互换。 */
.mst-card--cover {
  opacity: 0;
  transition: none;
}
.mst-card--cover.mst-card--cover-show {
  opacity: 1;
  transition: opacity 0.2s ease-out;
}
/* 抽屉：等收拢 0.35s + 放大 0.45s + 停顿 0.18s = 0.98s 后再上推 */

.mst-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.mst-card-img[hidden] { display: none; }
.mst-card-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  font-size: 56px;
  line-height: 1;
  opacity: 0.28;
  pointer-events: none;
  z-index: 1;
}
.mst-card-caption {
  position: absolute;
  /* 四周同样内缩 3px：否则角标的深色渐变会盖住卡片底部 3px 缝隙，底部流光看不到。
     内缩后与照片、抽屉同一内框，四边光带都能透出 */
  left: 3px;
  right: 3px;
  bottom: 3px;
  padding: 26px 14px 12px;
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(9, 18, 32, 0) 0%, rgba(9, 18, 32, 0.82) 100%);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* 层叠时只让最上层（最左）的卡显示姓名角标，避免被压住的卡只露出半截文字；
   hover 任一张时只显示被 hover 的那张，防止原最上层的角标从旁边露出 */
.mst-card:nth-child(1) .mst-card-caption { opacity: 1; }
.mst-deck--ready .mst-card .mst-card-caption { opacity: 0; }
.mst-deck--ready .mst-card--front .mst-card-caption { opacity: 1; }
.mst-deck--ready:hover .mst-card--front .mst-card-caption,
.mst-deck--ready:focus-within .mst-card--front .mst-card-caption { opacity: 0; }
.mst-deck--ready .mst-card:hover .mst-card-caption,
.mst-deck--ready .mst-card:focus-within .mst-card-caption { opacity: 0; }
.mst-card-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mst-card-role {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 文字抽屉：高度固定为卡片 50%（420 卡即 210px），默认整体藏在卡片下边界之外；
   hover 时按 cubic-bezier(0.23,1,0.320,1) 上推。左右下各内缩 3px，避开 3px 光边，
   抽屉 z-index:3 高于照片/角标；边框环在 z-index:4 但几何上只占外圈 3px，
   与抽屉/照片都不重叠，不会盖住它们。 */
.mst-card-details {
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 3px;
  height: 50%;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.8);
  /* 四角统一圆角：卡片 14px、抽屉内缩 3px → 11px；顶部细边 + 轻微上投影，强化“浮起的小卡片”层次 */
  border-radius: 11px;
  border: 1px solid rgba(237, 184, 153, 0.28);
  box-shadow: 0 -8px 16px -8px rgba(0, 0, 0, 0.45);
  /* 收起时多下移 14px：抽屉自带的 -8px 上投影会往回收起位置上方晕开，
     只下移 3px 会盖住卡片底部 3px 缝隙、把底部流光压暗；多让出 14px 后四边缝隙亮度一致 */
  transform: translateY(calc(100% + 14px));
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.320, 1) 0s;
  z-index: 3;
}
.mst-card:hover .mst-card-details,
.mst-card:focus-within .mst-card-details {
  transform: translateY(0);
  transition-delay: 0.98s;
  pointer-events: auto;
}
.mst-card-tag {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: #edb899;
  margin-bottom: 4px;
}
.mst-card-title {
  font-size: 12.5px;
  line-height: 1.35;
  color: #edb899;
  font-weight: 600;
  text-wrap: balance;
  /* 抽屉高度有限：标题最多 2 行，超出省略，避免溢出或出现滚动条 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* 师傅简介：最多 3 行，超出省略；无内容或残留占位符时由 JS 加 hidden 整段隐藏。
   选择器写成 .mst-card-details .mst-card-intro，优先于 .hero p（17px/1.8/32px 下边距），
   否则简介会被当成首屏正文放大，撑高抽屉并把底部按钮压扁裁切 */
.mst-card-details .mst-card-intro {
  margin-top: 6px;
  margin-bottom: 0;
  font-size: 11px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.mst-card-intro[hidden] { display: none; }
.mst-card-btn {
  flex: 0 0 auto;
  max-width: 100%;
  padding: 3px 6px;
  border-radius: 25px;
  background: #edb899;
  color: #000;
  font-weight: 600;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.2s;
}
.mst-card-btn:hover { background: #f5cdb3; }

/* 1200 及以下：卡片组移到文案下方，避免挤压标题与数据卡 */
@media (max-width: 1200px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) 300px; }
  .hero-text { grid-column: 1; grid-row: 1; }
  .hero-visual { grid-column: 2; grid-row: 1; }
  .mst-deck {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 32px;
    --mst-w: 184px;
    --mst-h: 345px;
    --mst-dx: 34px;
  }
}

/* 手机端：卡片与偏移同比缩小，仍按配置张数层叠 */
@media (max-width: 600px) {
  .mst-deck {
    --mst-w: 136px;
    --mst-h: 255px;
    --mst-dx: 26px;
  }
  .mst-card { border-radius: 10px; }
}

/* ===== 通用板块 ===== */
.section {
  padding: 80px 0;
}
.section-gray {
  background: var(--bg-gray);
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  display: inline-block;
  padding: 4px 16px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
}
.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-desc {
  font-size: 16px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== 核心业务卡片 ===== */
.business-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.business-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s;
  border: 1px solid var(--border);
}
.business-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}
.business-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--accent-light), #fff);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}
.business-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}
.business-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== 解决方案 ===== */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.solution-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
  border: 1px solid var(--border);
}
.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.solution-img {
  height: 180px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  color: rgba(255,255,255,0.9);
}
.solution-body {
  padding: 24px;
}
.solution-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}
.solution-body p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== 项目案例 ===== */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.case-card:hover {
  box-shadow: var(--shadow-hover);
}
.case-img {
  height: 200px;
  background: linear-gradient(135deg, #2c3e50, #34495e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: rgba(255,255,255,0.6);
  position: relative;
}
.case-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: rgba(43, 127, 255, 0.9);
  color: #fff;
  border-radius: 4px;
  font-size: 12px;
}
.case-body {
  padding: 20px 24px;
}
.case-body h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}
.case-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-light);
}

/* ===== 服务流程 ===== */
.process-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
  flex: 1;
}
.step-num {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: #fff;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  transition: all 0.3s;
}
.process-step:hover .step-num {
  background: var(--accent);
  color: #fff;
  transform: scale(1.1);
}
.process-step h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}
.process-step p {
  font-size: 13px;
  color: var(--text-light);
}

/* ===== 关于我们 ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}
.about-text p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 16px;
}
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}
.about-feature .check {
  width: 20px;
  height: 20px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 12px;
  flex-shrink: 0;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.about-stat {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
}
.about-stat .num {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}
.about-stat .label {
  font-size: 14px;
  color: var(--text-light);
}

/* ===== 联系我们 ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.contact-item h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}
.contact-item p {
  font-size: 14px;
  color: var(--text-light);
}
.contact-item a {
  color: inherit;
  text-decoration: none;
}
.contact-item a:hover {
  color: var(--accent);
}
.contact-form {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.contact-form h3 {
  margin-bottom: 14px;
}
.contact-form-desc {
  color: var(--text-light, #606266);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 18px;
}
.contact-form-btn {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  padding: 12px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
/* ===== 联系我们：验证码 / 蜜罐 / 提示 / 成功态 ===== */
.captcha-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.captcha-row input {
  max-width: 180px;
}
.captcha-img {
  height: 42px;
  width: 128px;
  border-radius: 6px;
  border: 1px solid var(--border);
  cursor: pointer;
  object-fit: cover;
  background: #f5f7fa;
}
.captcha-refresh {
  font-size: 13px;
  color: var(--accent);
  cursor: pointer;
  user-select: none;
}
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.field-tip {
  color: #909399;
  font-size: 12px;
  margin-top: 6px;
  line-height: 1.5;
}
.form-alert {
  display: none;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 14px;
}
.form-alert.show {
  display: block;
}
.form-alert.error {
  background: #fef0f0;
  color: #f56c6c;
  border: 1px solid #fde2e2;
}
.contact-submit {
  width: 100%;
  justify-content: center;
  padding: 12px;
}
.contact-success {
  display: none;
  text-align: center;
  padding: 24px 8px;
}
.contact-success.show {
  display: block;
}
.contact-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #f0f9eb;
  color: #67c23a;
  font-size: 34px;
  line-height: 64px;
}
.contact-success h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.contact-success p {
  color: #606266;
  line-height: 1.8;
}
.contact-lead-code {
  display: inline-block;
  margin: 14px 0;
  padding: 8px 16px;
  border-radius: 6px;
  background: #f5f7fa;
  color: #303133;
  font-size: 14px;
}
.contact-lead-code:empty {
  display: none;
}

/* ===== 页脚 ===== */
.footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand h3 {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand .logo-icon {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.15);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 16px;
}
.footer-col h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}
.footer-col ul li {
  margin-bottom: 12px;
}
.footer-col ul li a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}
.footer-col ul li a:hover {
  color: #fff;
}
.footer-qrcodes {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}
.qrcode-item {
  text-align: center;
}
.qrcode-box {
  width: 90px;
  height: 90px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-size: 11px;
  color: var(--text-light);
  text-align: center;
  padding: 8px;
}
.qrcode-item p {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}
.qrcode-box .qrcode-img,
.modal-qrcode .qrcode-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}
.qrcode-box .qrcode-placeholder,
.modal-qrcode .qrcode-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-align: center;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ===== 售后查询页 ===== */
.page-hero {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  text-align: center;
}
.page-hero h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}
.page-hero p {
  font-size: 16px;
  opacity: 0.85;
}
.query-section {
  padding: 60px 0;
  background: var(--bg-gray);
}
.query-box {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.query-box h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
  text-align: center;
}
.query-box .sub {
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 28px;
}
.query-input-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.query-input-row input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
}
.query-input-row input:focus {
  outline: none;
  border-color: var(--accent);
}
.query-tips {
  font-size: 13px;
  color: var(--text-light);
  text-align: center;
}
.query-tips a {
  color: var(--accent);
}
.device-result {
  margin-top: 32px;
  display: none;
}
.device-result.show { display: block; }
.device-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}
.device-header {
  padding: 20px 24px;
  background: var(--accent-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.device-header h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--primary);
}
.device-status {
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
}
.device-status.normal { background: #f6ffed; color: var(--success); }
.device-status.warning { background: #fffbe6; color: var(--warning); }
.device-status.error { background: #fff2f0; color: var(--danger); }
.device-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.device-detail-item {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}
.device-detail-item:nth-child(odd) {
  border-right: 1px solid var(--border);
}
.device-detail-item .label {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 4px;
}
.device-detail-item .value {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.device-actions {
  padding: 20px 24px;
  display: flex;
  gap: 12px;
}
.warranty-section {
  padding: 60px 0;
}
.warranty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.warranty-card {
  background: #fff;
  padding: 32px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.3s;
}
.warranty-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.warranty-card .icon {
  font-size: 40px;
  margin-bottom: 16px;
}
.warranty-card h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}
.warranty-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== 弹窗（二维码） ===== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  max-width: 360px;
  width: 90%;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-light);
}
.modal h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
}
.modal-qrcode {
  width: 200px;
  height: 200px;
  margin: 0 auto 16px;
  background: var(--bg-gray);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-light);
  text-align: center;
  padding: 20px;
}
.modal p {
  font-size: 14px;
  color: var(--text-light);
}

/* ===== 滚动动画 ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
  .hero-buttons { justify-content: center; }
  .business-grid { grid-template-columns: repeat(2, 1fr); }
  .solution-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { flex-wrap: wrap; gap: 24px; }
  .process-steps::before { display: none; }
  .process-step { flex: 0 0 33%; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px;
    box-shadow: var(--shadow);
    gap: 16px;
  }
  .hero h1 { font-size: 30px; }
  .section-title { font-size: 24px; }
  .business-grid { grid-template-columns: 1fr; }
  .solution-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .process-step { flex: 0 0 50%; }
  .form-row { grid-template-columns: 1fr; }
  .device-detail-grid { grid-template-columns: 1fr; }
  .device-detail-item:nth-child(odd) { border-right: none; }
  .warranty-grid { grid-template-columns: 1fr; }
  .query-box { padding: 24px; }
}

/* ===== 官网案例：6 位精选 + 抽屉 ===== */
.case-card-link { cursor: pointer; }
.case-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.case-more {
  text-align: center;
  margin-top: 32px;
}
.case-drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 39, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1050;
}
.case-drawer-mask.active {
  opacity: 1;
  pointer-events: auto;
}
.case-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 75vw;
  max-width: 1100px;
  height: 100vh;
  background: #fff;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -12px 0 32px rgba(16, 24, 39, 0.18);
}
.case-drawer.active {
  transform: translateX(0);
}
.case-drawer-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
}
.case-drawer-head h3 {
  font-size: 20px;
  color: var(--primary);
  font-weight: 600;
}
.case-drawer-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--bg-gray);
  color: var(--text-light);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
}
.case-drawer-close:hover {
  background: var(--accent-light);
  color: var(--accent);
}
.case-drawer-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 20px 28px 32px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  background: var(--bg-gray);
}
.drawer-case {
  display: flex;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s;
}
.drawer-case:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.drawer-thumb {
  flex: 0 0 112px;
  height: 96px;
  background: linear-gradient(135deg, #2c3e50, #34495e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 30px;
  overflow: hidden;
}
.drawer-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.drawer-info {
  flex: 1;
  min-width: 0;
  padding: 12px 12px 12px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.drawer-info h4 {
  font-size: 15px;
  color: var(--primary);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.drawer-info p {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.drawer-meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--text-light);
}

/* ===== 官网案例详情 ===== */
.case-page {
  padding: 96px 0 64px;
  background: var(--bg-gray);
  min-height: 100vh;
}
.case-back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  color: var(--text-light);
  font-size: 14px;
  transition: color 0.2s;
}
.case-back:hover { color: var(--accent); }
.case-loading,
.case-error {
  background: #fff;
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  color: var(--text-light);
  border: 1px solid var(--border);
}
.case-error h2 {
  color: var(--primary);
  font-size: 22px;
  margin-bottom: 8px;
}
.case-error p { margin-bottom: 20px; }
#caseContent {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 36px 40px 48px;
}
.case-detail-head {
  max-width: 860px;
}
.case-industry {
  display: inline-block;
  padding: 4px 14px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 14px;
}
.case-detail-head h1 {
  font-size: 34px;
  line-height: 1.3;
  color: var(--primary);
  margin-bottom: 14px;
}
.case-summary {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}
.case-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: var(--text-light);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.case-hero {
  margin: 26px 0;
  height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #2c3e50, #34495e);
}
.case-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.case-hero-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  color: rgba(255, 255, 255, 0.85);
}
.case-metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 26px 0 8px;
}
.case-metric {
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
}
.case-metric-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
  word-break: break-all;
}
.case-metric-label {
  font-size: 12px;
  color: var(--text-light);
}
.case-section {
  padding: 30px 0 6px;
  border-top: 1px solid var(--border);
  margin-top: 26px;
}
.case-section h2 {
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 18px;
}
.case-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.case-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text);
  line-height: 1.8;
}
.case-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.case-empty {
  color: #9aa9bb;
  padding-left: 0 !important;
}
.case-empty::before { display: none; }
.case-solution {
  color: var(--text);
  line-height: 1.9;
  margin-bottom: 16px;
}
.case-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.case-chip {
  padding: 6px 14px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 20px;
  font-size: 13px;
}
.case-timeline {
  position: relative;
  padding-left: 26px;
}
.case-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding: 0 0 20px 10px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -25px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  box-sizing: border-box;
}
.timeline-content {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.timeline-name {
  font-weight: 600;
  color: var(--primary);
  min-width: 44px;
}
.timeline-date {
  color: var(--text-light);
  font-size: 13px;
}
.case-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.case-gallery img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: zoom-in;
  transition: transform 0.25s, box-shadow 0.25s;
}
.case-gallery img:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.case-gallery .case-empty { grid-column: 1 / -1; }
.case-cta {
  margin-top: 34px;
  padding: 26px 30px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), #24527d);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.case-cta h3 {
  font-size: 20px;
  margin-bottom: 4px;
}
.case-cta p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}
.case-cta-actions {
  display: flex;
  gap: 12px;
}
.case-cta .btn-outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}
.case-grid-mini .case-img {
  height: 150px;
  font-size: 34px;
}
.case-grid-mini .case-body {
  padding: 16px 18px;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(12, 18, 28, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

@media (max-width: 900px) {
  .case-drawer { width: 86vw; }
  .case-drawer-body { grid-template-columns: 1fr; }
  .case-metrics { grid-template-columns: repeat(2, 1fr); }
  .case-gallery { grid-template-columns: repeat(2, 1fr); }
  #caseContent { padding: 24px 20px 32px; }
  .case-detail-head h1 { font-size: 26px; }
  .case-hero { height: 260px; }
}
@media (max-width: 600px) {
  .case-drawer { width: 100vw; }
  .case-gallery { grid-template-columns: 1fr; }
  .case-gallery img { height: 220px; }
  .case-cta { flex-direction: column; align-items: flex-start; }
}

/* ===== 官网在售服务产品 ===== */
.service-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}
.service-tab {
  padding: 8px 22px;
  border-radius: 20px;
  border: 1px solid transparent;
  background: transparent;
  color: #8a7d72;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.service-tab:hover {
  color: #c0763a;
  background: #fdf7f2;
}
.service-tab.active {
  background: #fdeee5;
  border-color: #f6d8c8;
  color: #5b4a3f;
  font-weight: 600;
}
/* 随数量自适应：居中换行，卡片宽度限制在 280-320px，不随列宽拉伸 */
#services .container {
  max-width: 1280px;
}
.service-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
}
.service-card {
  display: flex;
  flex-direction: column;
  background: #fffdfb;
  border: 1px solid #ece5dc;
  border-radius: 16px;
  padding: 24px 22px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 10px rgba(120, 95, 70, 0.06);
  min-width: min(280px, 100%);
  flex: 1 1 280px;
  max-width: 320px;
  height: auto;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(120, 95, 70, 0.12);
  border-color: #f3d3c2;
}
.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff6ea, #fdeedd);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.service-cat {
  padding: 3px 10px;
  border-radius: 4px;
  background: #f5efe6;
  color: #8a7358;
  font-size: 12px;
  white-space: nowrap;
}
.service-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #4a4038;
  line-height: 1.4;
  margin-bottom: 8px;
  word-break: break-word;
}
.service-positioning {
  font-size: 13px;
  color: #8a7d72;
  line-height: 1.65;
  margin-bottom: 14px;
  min-height: 42px;
}
.service-divider {
  height: 1px;
  background: #f1e9df;
  margin-bottom: 12px;
}
.service-audience {
  font-size: 12px;
  color: #8a7358;
  background: #faf6f0;
  border-radius: 6px;
  padding: 8px 10px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.service-audience strong {
  font-weight: 600;
  color: #6f5a42;
}
.service-highlights {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.service-highlights li {
  position: relative;
  padding-left: 14px;
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.service-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d8c3a5;
}
.service-facts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #8a7d72;
  padding-top: 12px;
  border-top: 1px dashed #eee4d8;
  margin-top: auto;
}
.service-price {
  font-size: 17px;
  font-weight: 700;
  color: #d97757;
  margin: 12px 0 16px;
  word-break: break-all;
}
.service-consult {
  width: 100%;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: #fff;
  color: var(--accent);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}
.service-consult:hover {
  background: var(--accent);
  color: #fff;
}
.service-empty {
  text-align: center;
  color: var(--text-light);
  padding: 40px 0;
  font-size: 14px;
}
.nav-logo span { white-space: nowrap; }

/* 服务详情弹层 */
.service-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 39, 0.55);
  z-index: 1150;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.service-modal-mask.active { display: flex; }
.service-modal {
  background: #fffdfb;
  border-radius: 16px;
  width: 100%;
  max-width: 720px;
  max-height: 86vh;
  overflow-y: auto;
  padding: 32px 34px 28px;
  position: relative;
  box-shadow: 0 24px 60px rgba(60, 45, 30, 0.26);
}
.service-modal:focus { outline: none; }
.service-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #f5efe6;
  color: var(--text-light);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.service-modal-close:hover {
  background: #efe3d3;
  color: #8a7358;
}
.service-modal-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-right: 36px;
  margin-bottom: 18px;
}
.service-modal-head .service-icon {
  width: 56px;
  height: 56px;
  font-size: 28px;
}
.service-modal-head h2 {
  font-size: 22px;
  color: var(--primary);
  line-height: 1.35;
  margin-bottom: 6px;
  word-break: break-word;
}
.service-modal-cat {
  font-size: 12px;
  color: #8a7358;
  background: #f5efe6;
  padding: 3px 10px;
  border-radius: 4px;
  display: inline-block;
}
.service-modal-positioning {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
  padding-bottom: 18px;
  border-bottom: 1px solid #efe8df;
  margin-bottom: 18px;
}
.service-modal-block { margin-bottom: 18px; }
.service-modal-block h4 {
  font-size: 14px;
  font-weight: 600;
  color: #4a4038;
  margin-bottom: 8px;
}
.service-modal-block p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.8;
}
.service-modal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-modal-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.75;
}
.service-modal-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d8c3a5;
}
.service-modal-excluded {
  background: #fdf7f2;
  border: 1px solid #f2e3d5;
  border-radius: 8px;
  padding: 12px 14px;
}
.service-modal-excluded h4 { color: #b5654a; }
.service-modal-flow {
  display: flex;
  flex-direction: column;
  gap: 8px;
  counter-reset: service-step;
}
.service-flow-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.service-flow-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f5efe6;
  color: #8a7358;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.service-flow-text {
  font-size: 14px;
  color: #5f554c;
  line-height: 1.7;
}
.service-faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-faq-item {
  background: #faf7f2;
  border-radius: 8px;
  padding: 12px 14px;
}
.service-faq-q {
  font-size: 13.5px;
  font-weight: 600;
  color: #4a4038;
  line-height: 1.6;
  margin-bottom: 4px;
}
.service-faq-a {
  font-size: 13px;
  color: #6b5f55;
  line-height: 1.7;
}
.service-modal-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.service-modal-fact {
  background: #faf6f0;
  border-radius: 8px;
  padding: 12px 14px;
}
.service-modal-fact .label {
  font-size: 12px;
  color: #8a7358;
  margin-bottom: 4px;
}
.service-modal-fact .value {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  word-break: break-word;
}
.service-modal-price {
  background: #fff6ea;
  border: 1px solid #f3e3cf;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 20px;
}
.service-modal-price .price {
  font-size: 18px;
  font-weight: 700;
  color: #d97757;
  margin-bottom: 4px;
  word-break: break-all;
}
.service-modal-price .note {
  font-size: 12.5px;
  color: var(--text-light);
  line-height: 1.7;
}
.service-modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.service-modal-actions .btn {
  flex: 1;
  justify-content: center;
  min-width: 160px;
}

@media (max-width: 1200px) {
  .service-card { flex: 0 1 320px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 14px; }
}
@media (max-width: 992px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px;
    box-shadow: var(--shadow);
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .service-modal { padding: 26px 20px 22px; }
  .service-modal-facts { grid-template-columns: 1fr; }
  .service-modal-head h2 { font-size: 19px; }
}
@media (max-width: 600px) {
  .nav-inner { padding: 0 12px; }
  .nav-logo { font-size: 17px; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn { padding: 6px 10px; font-size: 12px; white-space: nowrap; }
}
