/* ==========================================================================
   康美洁官网 —— 一套代码，全设备响应式
   --------------------------------------------------------------------------
   设计源：Ardot 画布 739145496990327（分组 02 手机版 8 页 / 03 桌面 v2 6 页）
   两份设计稿信息有出入，本实现取「并集 + 桌面优先」，差异见
   02-开发记录/20261026_官网改响应式.md
   色板（像素采样）：主色 #0052D9 / 浅蓝 #F2F3FF / 页灰 #F7F8FA
   断点：<900 手机（抽屉 + 吸底条）｜≥900 桌面（顶部导航 + 三列 + AI 气泡）
   ========================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  --blue: #0052D9;
  --blue-press: #0043B0;
  --blue-tint: #F2F3FF;
  --ink: #181818;
  --ink-2: #666666;
  --ink-3: #999999;
  --line: #E5E7EB;
  --line-soft: #EEF0F3;
  --bg: #F7F8FA;
  --field: #F4F5F7;
  --ph: #E8EDF0;
  --ph-ink: #9AA6B2;
  --maxw: 1200px;
  --gutter: 20px;              /* 手机留白；桌面由媒体查询换成居中算式 */
  --radius: 12px;
  --footbar-h: 62px;
}

/* ---------- 2. 基础 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.app { min-height: 100vh; }

body[data-footbar] .app { padding-bottom: calc(var(--footbar-h) + env(safe-area-inset-bottom)); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. 站点头 ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 40px;
  padding-inline: var(--gutter);
}

.brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand-mark { display: flex; flex: none; }
.brand-mark svg { display: block; }

/* 品牌标记：真 logo 彩色版（圆形，自带透明外圈），不加圆角，否则会切掉叶子尖。
   彩色版细节多、视觉比等大方块轻，尺寸比原占位标放大一档补偿。 */
.brand-mark-img { display: block; height: 28px; width: 28px; flex: none; }
@media (min-width: 768px) { .brand-mark-img { height: 34px; width: 34px; } }
@media (min-width: 900px) { .brand-mark-img { height: 40px; width: 40px; } }

.brand-word {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
  color: var(--ink);
}
.brand-word b {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .4px;
}
.brand-word em {
  font-style: normal;
  margin-top: 3px;
  font-size: 7px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 1.4px;
  color: var(--ink-3);
}
@media (min-width: 768px) { .brand-word b { font-size: 16px; } .brand-word em { font-size: 7.5px; } }
@media (min-width: 900px) { .brand-word b { font-size: 18px; } .brand-word em { font-size: 8px; } }

/* 页脚深色底：用白色线稿版（彩色版银色圆环压 #1A1A1A 会发灰糊成一团） */
.foot-mark { display: block; height: 34px; width: 34px; flex: none; }
.foot-word { display: flex; flex-direction: column; line-height: 1; }
.foot-word b, .foot-word { font-size: 16px; font-weight: 600; letter-spacing: .6px; color: #fff; }
.foot-word em {
  font-style: normal;
  margin-top: 4px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 1.6px;
  color: rgba(255, 255, 255, .45);
}

/* 桌面导航（手机隐藏，用抽屉） */
.head-nav { display: none; }

.head-acts { display: flex; align-items: center; gap: 4px; }
.head-acts .head-cta { display: none; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--ink);
  border-radius: 8px;
}
.icon-btn:active { background: var(--field); }
.icon-btn svg { display: block; }

/* 搜索入口：轻量图标，不抢 CTA；手机与桌面同一套视觉 */
.search-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 8px;
  color: var(--ink-2);
  transition: background-color .16s ease, color .16s ease;
}
.search-btn svg { display: block; width: 19px; height: 19px; }
.search-btn:hover { background: var(--field); color: var(--ink); }
.search-btn:active { background: var(--line-soft); }
.search-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- 4. 抽屉（手机） ---------- */
.drawer-mask {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .26s ease;
}

.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  width: 288px;
  max-width: 82vw;
  padding: 12px 0 calc(16px + env(safe-area-inset-bottom));
  background: #fff;
  transform: translateX(-100%);
  transition: transform .26s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 4px 0 24px rgba(0, 0, 0, .1);
}

body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-mask { opacity: 1; pointer-events: auto; }
body.drawer-open { overflow: hidden; }

.drawer-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 20px 14px;
}
.drawer-top .drawer-name { font-size: 15px; font-weight: 700; letter-spacing: .5px; }
/* 抽屉顶部的标识：与站头同一个文件。原来是手绘的「蓝方块 + 水滴」，跟品牌 K 完全不是一回事 */
.drawer-logo { display: block; height: 28px; width: 28px; flex: none; }
.drawer-close {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--ink-2);
}

.drawer-nav { padding-top: 4px; }
.drawer-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 20px;
  font-size: 15px;
  color: var(--ink);
}
.drawer-nav a svg { color: var(--ink-2); flex: none; }
.drawer-nav a[aria-current="page"] { color: var(--blue); font-weight: 600; }
.drawer-nav a[aria-current="page"] svg { color: var(--blue); }

.drawer-tel {
  margin-top: 12px;
  padding: 14px 20px 0;
  border-top: 1px solid var(--line-soft);
}
.drawer-tel span { display: block; font-size: 12px; color: var(--ink-3); }
.drawer-tel a { display: inline-block; margin-top: 2px; font-size: 16px; font-weight: 600; color: var(--blue); }

.drawer-cta { margin: auto 20px 0; flex: none; }

/* ---------- 5. 按钮 / 标签 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-press); }
.btn-primary:active { background: var(--blue-press); }
.btn-ghost { background: #fff; border: 1px solid #D6DAE0; color: var(--ink); }
.btn-ghost:hover { border-color: #B9BFC7; }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: #EDF1FF; }
.btn-outline-w { border: 1px solid rgba(255, 255, 255, .55); color: #fff; }
.btn-outline-w:hover { background: rgba(255, 255, 255, .12); }
.btn-block { display: flex; width: 100%; }
.btn-sm { height: 36px; padding: 0 16px; border-radius: 8px; font-size: 14px; }
.btn-tel { font-size: 13.5px; padding: 0 10px; letter-spacing: -.2px; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.btn-row { display: flex; gap: 10px; margin-top: 20px; }
.btn-row .btn { flex: 1; padding: 0 8px; }

.chip {
  height: 34px;
  padding: 0 12px;
  border-radius: 17px;
  background: var(--field);
  color: var(--ink-2);
  font-size: 13.5px;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.chip[aria-pressed="true"] { background: var(--blue); color: #fff; font-weight: 600; }

/* ---------- 6. 页面标题区 ---------- */
.page-head { padding: 20px var(--gutter) 0; }
.page-head h1 {
  font-size: 28px;
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -.8px;
}
.page-head p { margin-top: 8px; font-size: 14px; color: var(--ink-2); }

/* ---------- 6b. 长文（隐私政策这类纯文字页） ---------- */
.prose {
  margin: 26px var(--gutter) 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-2);
}
.prose h2 {
  margin: 30px 0 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.2px;
}
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 12px; }
.prose ul { margin: 0 0 12px; padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.prose .prose-meta { margin-bottom: 22px; font-size: 12px; color: var(--ink-3); }
.prose .prose-hl {
  margin: 22px 0 0;
  padding: 14px 16px;
  background: var(--blue-tint);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-2);
}

/* ---------- 7. 图片占位 ---------- */
.ph {
  display: grid;
  place-items: center;
  background: var(--ph);
  color: var(--ph-ink);
  font-size: 13px;
  letter-spacing: .5px;
  overflow: hidden;
}
.ph--hero { aspect-ratio: 16 / 9; }
.ph--wide { aspect-ratio: 16 / 10; }
/* 厂区大门：图按桌面 2:1 横幅出（横着才装得下整块招牌），手机 16:10 会从
   左右裁，取景框往左压，别把「江西省…有限公司」的开头切掉 */
.ph--gate img { object-position: 6% center; }
.ph--4x3 { aspect-ratio: 4 / 3; }
.ph--1x1 { aspect-ratio: 1 / 1; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
/* 无产品图时的占位：品类图标 + 品类名，比一行「产品图」文字像样 */
.ph-ph { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ph-ph svg { width: 30px; height: 30px; opacity: .55; }
.ph-ph span { font-size: 12px; letter-spacing: .3px; }
.ph-ph--lg svg { width: 48px; height: 48px; }
.ph-ph--lg span { font-size: 13px; }
/* 详情页找不到产品：明确提示，不拿第一个产品顶替 */
.pd-empty { padding: 64px 24px; text-align: center; }
.pd-empty p { font-size: 15px; color: var(--ink-2); margin-bottom: 20px; }
/* 车间实拍图集：手机两列、桌面四列 */
.gallery { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.shot { margin: 0; }
.shot .ph { border-radius: 10px; }
.shot figcaption { margin-top: 8px; font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
@media (min-width: 900px) {
  /* 6 张实拍：3 列正好两行；4 列会剩半个空位 */
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .shot figcaption { font-size: 13px; }
}

/* ---------- 8. 首页 Hero ---------- */
.hero-body { padding: 22px var(--gutter) 24px; }
.eyebrow { font-size: 13px; color: var(--ink-2); }
.hero h1 {
  margin-top: 6px;
  font-size: 31px;
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -1.2px;
}
.hero p { margin-top: 10px; font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.hero-note { display: none; }

/* ---------- 9. 数据条 ---------- */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 12px;
  padding: 22px var(--gutter);
  background: var(--bg);
}
.stat b {
  display: block;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -.8px;
  line-height: 1.2;
}
.stat span { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-2); }

/* ---------- 10. 区块 ---------- */
.sec { padding: 28px var(--gutter) 0; }

.sec-head { display: flex; align-items: center; gap: 8px; }
.sec-idx { font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: .5px; }
.sec-dot { width: 6px; height: 6px; background: var(--blue); flex: none; }
.sec-head h2 { font-size: 18px; font-weight: 700; letter-spacing: -.3px; }
.sec-more {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  color: var(--blue);
}
.sec-body { margin-top: 14px; }

/* ---------- 11. 产品卡 ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.card-body { padding: 12px 12px 14px; }
.card-title { font-size: 15px; font-weight: 600; line-height: 1.35; }
.card-sub {
  display: -webkit-box;
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-ico { display: none; }
.card-desc { display: none; }
.card-tags { display: none; }

/* ---------- 12. 分块文案 ---------- */
.points { display: grid; gap: 16px; margin-top: 18px; }
.point { padding-top: 16px; border-top: 1px solid var(--line-soft); }
.point:first-child { padding-top: 0; border-top: 0; }
.point h3 { font-size: 15px; font-weight: 600; }
.point p { margin-top: 6px; font-size: 13px; color: var(--ink-2); line-height: 1.7; }

/* ---------- 13. 步骤 / 浅灰卡片 ---------- */
.steps { display: flex; flex-direction: column; gap: 18px; }
.step { display: grid; grid-template-columns: 34px 1fr; gap: 6px; }
.step-no { font-size: 14px; font-weight: 700; color: var(--blue); line-height: 1.5; }
.step h3 { font-size: 15px; font-weight: 600; line-height: 1.5; }
.step p { margin-top: 3px; font-size: 13px; color: var(--ink-2); line-height: 1.6; }

.soft-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.soft-card { padding: 14px 12px; background: var(--field); border-radius: 10px; }
.soft-card b { display: block; font-size: 15px; font-weight: 600; }
.soft-card span { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-3); line-height: 1.55; }

/* ---------- 14. 时间线 / 列表 ---------- */
.timeline { display: flex; flex-direction: column; gap: 16px; }
.tl-row { display: grid; grid-template-columns: 46px 1fr; gap: 10px; align-items: baseline; }
.tl-year { font-size: 14px; font-weight: 700; color: var(--blue); }
.tl-text { font-size: 14px; color: var(--ink-2); line-height: 1.65; }

.plain-list { display: grid; gap: 14px; font-size: 14px; color: var(--ink-2); }

/* 品牌矩阵：一个品牌一张卡，类目做成小标签 */
.brand-list { display: grid; gap: 12px; }
.brand-row { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; }
.brand-name { font-size: 15px; font-weight: 700; letter-spacing: -.2px; }
.brand-name em { font-style: normal; font-size: 12px; font-weight: 500; color: var(--ink-3); margin-left: 7px; letter-spacing: 0; }
.brand-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.brand-cats span { padding: 3px 9px; border-radius: 4px; background: var(--blue-tint); color: var(--blue); font-size: 12px; line-height: 1.6; }
.brand-note { margin: 14px var(--gutter) 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.75; }
@media (min-width: 900px) {
  .brand-list { grid-template-columns: 1fr 1fr; }
  .brand-note { margin-inline: 0; }
  /* 区块内的配图：跟 main > .ph 一样收到 620，图片源是视频抽帧，放大就糊 */
  .ph--inset { max-width: 620px; margin-inline: auto; }
}

.brands { display: flex; flex-wrap: wrap; gap: 10px; }
.brands span {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .5px;
}

/* 页首大图 + 右侧说明（制造实力） */
.split-lead { padding: 20px var(--gutter) 0; }
.lead-text { margin-top: 22px; }
.lead-text h2 { font-size: 19px; font-weight: 700; letter-spacing: -.4px; line-height: 1.4; }
.lead-text p { margin-top: 10px; font-size: 14px; color: var(--ink-2); line-height: 1.75; }

/* ---------- 15. 浅蓝块 / 蓝色 CTA ---------- */
.tint { background: var(--blue-tint); padding: 20px var(--gutter); }
.tint h2 { font-size: 18px; font-weight: 700; letter-spacing: -.3px; line-height: 1.4; color: var(--blue); }
.tint p { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); line-height: 1.75; }
.tint .btn { margin-top: 16px; }

/* 产品中心底部：找不到品类 → 定制 */
.tint-cta { text-align: center; margin-top: 32px; }
.tint-cta h2 { color: var(--ink); }
.tint-cta p { max-width: 40em; margin-inline: auto; }

.cta-block { background: var(--blue); color: #fff; padding: 26px var(--gutter) 28px; margin-top: 56px; }
.cta-block h2 { font-size: 23px; font-weight: 700; letter-spacing: -.6px; line-height: 1.3; }
.cta-block p { margin-top: 8px; font-size: 13px; color: rgba(255, 255, 255, .84); line-height: 1.7; }
.cta-block .btn-row { margin-top: 18px; }

/* ---------- 16. 页脚 ---------- */
.site-foot { background: #1A1A1A; color: #fff; padding: 22px var(--gutter) 26px; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand b { font-size: 15px; letter-spacing: .4px; }
.foot-brand em {
  font-style: normal; font-size: 10px; letter-spacing: 1px; color: rgba(255, 255, 255, .45);
}
.site-foot p { margin-top: 10px; font-size: 12px; line-height: 1.8; color: rgba(255, 255, 255, .5); }
.foot-col { display: none; }
.foot-bottom { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); }
.foot-bottom p { margin: 0; }
.foot-icp { display: none; }
/* 版本号由 app.js 从 /api/health 填，HTML 不写死——版本只在 server.js 改一处 */
.foot-ver { display: inline-block; margin-top: 6px; font-size: 11px; color: rgba(255, 255, 255, .3); letter-spacing: .3px; }

/* ---------- 16b. 证照索引（页脚） ----------
   页面里不下沉证件图——一排白纸压在深色页脚上像文档堆，缩略图又看不清。
   页脚只出证名：鼠标悬浮出小图（.cert-pop），点击在新标签页看原件。
   <a target="_blank"> 是真链接，JS 不跑也能开。九页共用同一份标记。 */
.foot-cert {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 26px;
  margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1);
}
.cert-title { font-size: 12px; font-weight: 600; letter-spacing: .4px; color: rgba(255, 255, 255, .9); }
.cert-links { display: flex; flex-wrap: wrap; gap: 7px 24px; min-width: 0; }
.cert-links a { font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, .55); transition: color .18s var(--ease); }
.cert-links a:hover,
.cert-links a:focus-visible {
  color: #fff; text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, .45);
}
.cert-more { margin-left: auto; font-size: 12px; color: rgba(255, 255, 255, .5); white-space: nowrap; transition: color .18s var(--ease); }
.cert-more:hover { color: #fff; }

/* 制造实力页：证照清单（一行一条，比图墙更像台账） */
.cert-sub { margin-top: 26px; font-size: 12px; letter-spacing: .6px; color: var(--ink-3); }
.cert-list { margin-top: 10px; border-top: 1px solid var(--line); }
.cert-row {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line-soft);
}
.cert-row-name { font-size: 14px; color: var(--ink); }
.cert-row-name em { margin-left: 8px; font-style: normal; font-size: 12.5px; color: var(--ink-3); }
.cert-row-no { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cert-row-go { margin-left: auto; font-size: 12.5px; color: var(--blue); white-space: nowrap; }
/* 下划线的样式统一在第 32 节，这里只管位置 */
.cert-note { margin-top: 16px; font-size: 12.5px; line-height: 1.75; color: var(--ink-2); }
/* 页脚「全部资质」跳过来时，别让吸顶导航盖住标题 */
.sec[id] { scroll-margin-top: 72px; }

/* ---------- 16c. 证照悬浮预览 ----------
   200px 宽的卡片，高度由 aspect-ratio 定死，图没加载完也不会跳位。 */
.cert-pop {
  position: fixed; left: 0; top: 0; z-index: 95;
  width: 200px; padding: 4px; pointer-events: none;
  background: #fff; border-radius: 4px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .38);
  visibility: hidden; opacity: 0; transform: translateY(6px);
  transition: opacity .14s var(--ease), transform .14s var(--ease);
}
.cert-pop[data-open] { visibility: visible; opacity: 1; transform: none; }
.cert-pop img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; background: #fff; border-radius: 2px; }

/* 手机上横向排会折成参差的三行，改成一条一行的竖排更好扫 */
@media (max-width: 899.98px) {
  .foot-cert { flex-direction: column; align-items: stretch; gap: 12px; }
  .cert-links { flex-direction: column; gap: 10px; }
  /* 触屏没有 hover，靠一道浅下划线告诉人「这是能点的」 */
  .cert-links a {
    font-size: 13px; align-self: flex-start;
    text-decoration: underline; text-underline-offset: 4px;
    text-decoration-color: rgba(255, 255, 255, .22);
  }
  .cert-more { align-self: flex-start; margin-left: 0; }
}

/* ---------- 17. 吸底条（手机） ---------- */
.footbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 20px calc(9px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line-soft);
}
.footbar-ask {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
  font-size: 13px;
  color: var(--ink-2);
}
.footbar-ask svg { flex: none; }
.footbar .btn { flex: 1; max-width: 190px; margin-left: auto; height: 42px; }
.footbar .btn + .btn { max-width: none; }
.footbar--detail .btn-ghost { flex: 0 0 auto; max-width: none; padding: 0 18px; }
.footbar--detail .btn-primary { flex: 1; max-width: none; }
.footbar--single .btn { flex: 1; max-width: none; }

/* ---------- 18. 产品筛选 ---------- */
.filter-row {
  display: flex;
  gap: 7px;
  padding: 18px var(--gutter) 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-row::-webkit-scrollbar { display: none; }

.product-grid { padding: 14px var(--gutter) 8px; }
.empty {
  padding: 40px var(--gutter) 56px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-3);
}

/* ---------- 19. 产品详情 ---------- */
.crumb { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 12.5px; color: var(--ink-3); }
.crumb a { color: var(--ink-2); }
.crumb a:hover { color: var(--blue); }
.crumb span[aria-current] { color: var(--ink-3); }

.detail-head { padding: 20px var(--gutter) 0; }
.detail-head h1 { font-size: 26px; font-weight: 700; letter-spacing: -.8px; line-height: 1.3; }
.detail-meta { margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.detail-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--blue-tint);
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 500;
}

.spec { margin: 18px var(--gutter) 0; border-top: 1px solid var(--line); }
.spec-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.spec-row dt { flex: none; font-size: 14px; color: var(--ink-2); }
.spec-row dd { font-size: 14px; font-weight: 500; text-align: right; }

.detail-tint { margin-top: 20px; }
.detail-tint h2 { font-size: 15px; font-weight: 600; }
.detail-tint p { margin-top: 6px; }
.detail-actions { display: none; }
.detail { padding-bottom: 32px; }

/* ---------- 20. 表单 ---------- */
.form-page { background: var(--field); }
.form-note {
  display: flex;
  gap: 6px;
  margin: 16px var(--gutter) 0;
  font-size: 12.5px;
  color: var(--blue);
  line-height: 1.6;
}
.form-note svg { flex: none; margin-top: 2px; }

.form-card {
  margin: 12px 16px 20px;
  padding: 18px 16px 20px;
  background: #fff;
  border-radius: 14px;
}

.field + .field { margin-top: 18px; }
.field > label,
.field-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
/* 「选填」跟在标签后面，别让它抢了字段名的注意力 */
.field-opt { margin-left: 6px; font-size: 11.5px; font-weight: 400; color: var(--ink-3); }

.control {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  background: var(--field);
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  appearance: none;
  outline: none;
}
.control::placeholder { color: #AAAAAA; }
.control:focus { background: #fff; border-color: var(--blue); }

.select-wrap { position: relative; }
.select-wrap select { padding-right: 38px; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #8A9099;
  border-bottom: 1.5px solid #8A9099;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--field);
  color: var(--ink-2);
  font-size: 14px;
}
.choice[aria-pressed="true"] { background: var(--blue); color: #fff; font-weight: 500; }

.field-err { margin-top: 6px; font-size: 12px; color: #D54941; }

/* 多行输入：.control 是固定 46px 高，textarea 要单独放开高度 */
textarea.control {
  height: auto;
  min-height: 88px;
  padding: 12px 14px;
  line-height: 1.65;
  resize: vertical;
}

/* 隐私同意：勾选框比文字先对齐，不然小字换行后看着像没对齐 */
.consent {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 18px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-3);
  cursor: pointer;
}
.consent input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--blue);
  cursor: pointer;
}
.consent a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.consent-err { margin-top: 6px; font-size: 12px; color: #D54941; }

.form-tip { margin-top: 16px; font-size: 12px; color: var(--ink-3); line-height: 1.7; }
.form-error { margin-top: 14px; font-size: 12.5px; color: #D54941; line-height: 1.7; }
.form-error a { color: #D54941; font-weight: 600; text-decoration: underline; }
.form-submit { display: none; margin-top: 22px; }

.form-done { padding: 48px 24px; text-align: center; }
.done-ico {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--blue);
}
.form-done h2 { font-size: 20px; font-weight: 700; }
.form-done p { margin-top: 10px; font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.form-done .btn { margin-top: 24px; }

/* ---------- 21. 联系页 ---------- */
.org { padding: 24px var(--gutter) 0; }
.org b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.2px; }
.org span { display: block; margin-top: 5px; font-size: 12px; color: var(--ink-3); }

.info-table { margin: 18px var(--gutter) 0; border-top: 1px solid var(--line); }
.info-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.info-row dt { flex: none; width: 40px; color: var(--ink-2); }
.info-row dd { flex: 1; text-align: right; }
.info-row dd a { color: var(--blue); font-weight: 600; }
.info-row dd button { color: var(--blue); font-weight: 500; }

.info-row--stack { flex-direction: column; align-items: flex-start; gap: 6px; }
.info-row--stack dt { width: auto; }
.info-row--stack dd { text-align: left; }

/* ---------- 22. 搜索（浮层） ---------- */
.search-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 9vh 20px 40px;
  background: rgba(16, 22, 32, .44);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  overflow-y: auto;
  animation: search-fade .18s ease both;
}
.search-sheet[data-open] { display: flex; }

@keyframes search-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes search-in {
  from { opacity: 0; transform: translateY(-10px) scale(.988); }
  to { opacity: 1; transform: none; }
}

.search-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 680px;
  max-height: min(74vh, 700px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 32px 80px rgba(15, 23, 42, .24), 0 4px 16px rgba(15, 23, 42, .08);
  overflow: hidden;
  animation: search-in .22s var(--ease) both;
}

.search-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  padding: 16px 18px 16px 20px;
  border-bottom: 1px solid var(--line-soft);
}
.search-head .ico { flex: none; color: var(--ink-3); }
.search-head input {
  flex: 1;
  min-width: 0;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.2px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.search-head input::-webkit-search-cancel-button { display: none; }
.search-head input::placeholder { font-weight: 400; color: #A2A9B4; letter-spacing: 0; }

.search-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  margin-left: 2px;
  border-radius: 8px;
  color: var(--ink-3);
  transition: background-color .15s ease, color .15s ease;
}
.search-close:hover { background: var(--field); color: var(--ink); }
.search-cancel { display: none; flex: none; font-size: 14px; color: var(--ink-2); }

.search-body {
  flex: 1;
  min-height: 0;
  padding: 2px 10px 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.search-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 10px 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2px;
  color: var(--ink-3);
}
.search-label em { font-style: normal; font-weight: 400; color: #A8AEB8; }
.search-label a { color: var(--blue); font-size: 12px; font-weight: 500; }
.search-label a:hover { text-decoration: underline; }
body.search-open { overflow: hidden; }

.search-tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 10px 6px; }
.search-tags--center { justify-content: center; padding-top: 12px; padding-bottom: 0; }
.search-tag {
  height: 30px;
  padding: 0 12px;
  border-radius: 15px;
  background: var(--field);
  color: var(--ink-2);
  font-size: 13px;
  transition: background-color .15s ease, color .15s ease;
}
.search-tag:hover { background: var(--blue-tint); color: var(--blue); }

.search-results { padding-top: 2px; }
.search-hit {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: 10px;
  transition: background-color .15s ease;
}
.search-hit:hover,
.search-hit.is-active { background: #F5F7FA; }
.search-hit .thumb {
  width: 52px;
  height: 52px;
  flex: none;
  overflow: hidden;
  border-radius: 10px;
  background: var(--ph);
}
.search-hit .thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-hit .hit-main { flex: 1; min-width: 0; }
.search-hit .hit-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.search-hit b {
  overflow: hidden;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-hit .hit-cat {
  flex: none;
  padding: 1px 7px;
  border-radius: 4px;
  background: var(--blue-tint);
  color: var(--blue);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.6;
}
.search-hit .hit-desc {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-3);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-hit .hit-arrow { flex: none; color: #C3CAD3; transition: color .15s ease, transform .15s ease; }
.search-hit:hover .hit-arrow,
.search-hit.is-active .hit-arrow { color: var(--blue); transform: translateX(2px); }
.search-hit mark { padding: 0 1px; border-radius: 3px; background: rgba(0, 82, 217, .1); color: var(--blue); }

.search-empty { padding: 34px 16px 40px; text-align: center; }
.search-empty .empty-ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--field);
  color: #A8B0BB;
}
.search-empty b { display: block; font-size: 15px; font-weight: 600; }
.search-empty p { margin-top: 7px; font-size: 13px; line-height: 1.7; color: var(--ink-3); }
.search-empty .btn { height: 38px; margin-top: 18px; padding: 0 18px; font-size: 13.5px; }

.search-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: none;
  padding: 11px 20px;
  border-top: 1px solid var(--line-soft);
  background: #FCFCFD;
  font-size: 12px;
  color: var(--ink-3);
}
.search-keys { display: flex; align-items: center; gap: 5px; }
.search-keys kbd {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border: 1px solid var(--line);
  border-bottom-color: #D5DAE1;
  border-radius: 4px;
  background: #fff;
  font: inherit;
  font-size: 10.5px;
  line-height: 1;
  color: var(--ink-2);
}
.search-foot a { color: var(--blue); font-weight: 500; }
.search-foot a:hover { text-decoration: underline; }

/* 手机 / 平板：全屏面板，去掉阴影与圆角 */
@media (max-width: 899.98px) {
  .search-sheet {
    padding: 0;
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    overflow: hidden;
  }
  .search-panel {
    width: 100%;
    height: 100%;
    height: 100dvh;
    max-width: none;
    max-height: none;
    padding-top: env(safe-area-inset-top);
    border-radius: 0;
    box-shadow: none;
    animation: search-up .24s ease both;
  }
  @keyframes search-up {
    from { opacity: .6; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
  .search-head { gap: 10px; padding: 10px 16px; }
  .search-head input { font-size: 15.5px; }
  .search-close { display: none; }
  .search-cancel { display: block; }
  .search-body { padding: 0 8px calc(14px + env(safe-area-inset-bottom)); }
  .search-hit {
    gap: 12px;
    padding: 12px 10px;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
  }
  .search-hit:last-child { border-bottom: 0; }
  .search-hit .thumb { width: 56px; height: 56px; }
  .search-hit .hit-arrow { display: none; }
  .search-empty { padding-top: 48px; }
  .search-foot { display: none; }
}

/* ---------- 23. 底部浮层 ---------- */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 65;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, .45);
}
.sheet[data-open] { display: flex; }
.sheet-panel {
  width: 100%;
  padding: 22px var(--gutter) calc(20px + env(safe-area-inset-bottom));
  background: #fff;
  border-radius: 16px 16px 0 0;
  animation: sheet-up .24s ease;
}
@keyframes sheet-up { from { transform: translateY(12px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet-panel h2 { font-size: 16px; font-weight: 700; }
.sheet-panel p { margin-top: 8px; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.sheet-panel .center { text-align: center; }
.sheet-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.sheet-close { margin-top: 10px; font-size: 13px; color: var(--ink-3); width: 100%; text-align: center; padding: 8px; }

.qr-box {
  width: 168px;
  height: 168px;
  margin: 18px auto 0;
  display: grid;
  place-items: center;
  border: 1px dashed #C6CCD4;
  border-radius: 10px;
  color: var(--ink-3);
  font-size: 12px;
  text-align: center;
  line-height: 1.6;
}

/* ---------- 24. AI 客服气泡（桌面） ---------- */
/* ---------- 客服未读提醒：桌面气泡 / 手机吸底条都点一颗红点 ---------- */
.ai-fab-btn,
.footbar-ask { position: relative; }
.ai-fab.has-unread .ai-fab-btn::after,
.footbar-ask.has-unread::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 9px;
  height: 9px;
  background: #D54941;
  border: 2px solid #fff;
  border-radius: 50%;
  pointer-events: none;
}

.ai-fab { display: none; }

.ai-fab-btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 82, 217, .3);
  transition: background-color .15s ease, transform .15s ease;
}
.ai-fab-btn:hover { background: var(--blue-press); transform: translateY(-1px); }

.ai-fab-tip {
  position: absolute;
  right: calc(100% + 10px);     /* 贴在按钮左侧 */
  bottom: calc(100% - 32px);    /* 再下移约一半，落点更贴近按钮中部 */
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity .32s var(--ease), transform .32s var(--ease);
}
/* 小尾巴指向按钮 */
.ai-fab-tip::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: 16px;
  width: 8px;
  height: 8px;
  background: #fff;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: rotate(-45deg);
}
.ai-fab-tip em { display: block; margin-top: 2px; font-style: normal; font-size: 11px; font-weight: 400; color: var(--ink-3); }
.ai-fab.is-open .ai-fab-tip { display: none; }

/* 提示语 6 秒后自动收起，只留圆按钮，避免长期压住页脚内容 */
.ai-fab.tip-off .ai-fab-tip { animation: none; opacity: 0; transform: translate(6px, 6px); pointer-events: none; }

/* 滚到页脚时整体让位，不遮挡备案号与版权 */
.ai-fab { transition: opacity .3s var(--ease), transform .3s var(--ease); }
.ai-fab.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; }

.ai-panel {
  position: fixed;
  right: 32px;
  bottom: 100px;
  z-index: 62;
  display: none;
  flex-direction: column;
  width: 360px;
  max-height: 480px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .18);
  overflow: hidden;
}
.ai-panel[data-open] { display: flex; animation: sheet-up .22s ease; }

.ai-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.ai-head em { font-style: normal; font-size: 11px; font-weight: 400; color: rgba(255, 255, 255, .75); }
.ai-head button { margin-left: auto; color: rgba(255, 255, 255, .85); line-height: 1; }

.ai-body { flex: 1; padding: 14px; background: #FAFBFC; overflow-y: auto; }
.ai-msg { max-width: 82%; margin-bottom: 10px; padding: 9px 12px; border-radius: 10px; font-size: 13px; line-height: 1.6; }
.ai-msg--bot { background: #fff; border: 1px solid var(--line); border-top-left-radius: 2px; }
.ai-msg--me { margin-left: auto; background: var(--blue); color: #fff; border-top-right-radius: 2px; }
.ai-msg a { color: var(--blue); font-weight: 600; }

.ai-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--line-soft); }
.ai-quick button { padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; color: var(--ink-2); }
.ai-quick button:hover { border-color: var(--blue); color: var(--blue); }

.ai-input { display: flex; gap: 8px; padding: 10px 14px 14px; border-top: 1px solid var(--line-soft); }
.ai-input input {
  flex: 1; height: 38px; padding: 0 12px; background: var(--field);
  border: 1px solid transparent; border-radius: 8px; font-size: 13px; outline: none;
}
.ai-input button {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  background: var(--blue); color: #fff; border-radius: 8px;
}

/* ---------- 25. 工具类 ---------- */
.mt-0 { margin-top: 0 !important; }
.mt-20 { margin-top: 20px; }
.sp-36 { height: 36px; }

/* ==========================================================================
   26. 桌面（≥900px）：同一套 DOM，换布局
   ========================================================================== */
@media (min-width: 900px) {
  :root { --gutter: max(24px, calc((100% - var(--maxw)) / 2)); }

  /* --- 头部 --- */
  .head-inner { height: 64px; }
  .brand-mark svg { width: 32px; height: 32px; }

  .head-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: auto;
    margin-right: 28px;
  }
  .head-nav a {
    position: relative;
    font-size: 14.5px;
    color: var(--ink-2);
    padding: 6px 0;
    transition: color .15s ease;
  }
  .head-nav a:hover { color: var(--ink); }
  .head-nav a[aria-current="page"] { color: var(--blue); font-weight: 500; }
  .head-nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 2px;
    background: var(--blue);
    border-radius: 1px;
  }

  .head-acts .head-cta { display: inline-flex; }
  .head-acts { gap: 10px; margin-left: 0; }
  .search-btn { width: 36px; height: 36px; }
  [data-drawer-open] { display: none; }
  .drawer, .drawer-mask { display: none; }

  /* --- 首屏 --- */
  .hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    background: var(--bg);
    padding: 56px var(--gutter) 64px;
  }
  .hero .ph { order: 2; aspect-ratio: 4 / 3; border-radius: 14px; }
  .hero-body { order: 1; padding: 0; }
  .eyebrow { font-size: 14px; color: var(--blue); }
  .hero h1 { margin-top: 12px; font-size: 46px; letter-spacing: -1.8px; line-height: 1.16; }
  .hero p { margin-top: 16px; font-size: 15px; line-height: 1.8; max-width: 30em; }
  .btn-row { margin-top: 28px; }
  .btn-row .btn { flex: 0 0 auto; padding: 0 26px; height: 46px; }
  .hero-note { display: block; margin-top: 16px; font-size: 12px; color: var(--ink-3); }

  /* --- 数据条 --- */
  .stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding-block: 34px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  .stat { padding-left: 28px; border-left: 1px solid var(--line); }
  .stat:first-child { padding-left: 0; border-left: 0; }
  .stat b { font-size: 30px; letter-spacing: -1px; }
  .stat span { font-size: 13px; margin-top: 6px; }

  /* --- 区块 --- */
  .sec { padding-top: 64px; }
  .sec-head h2 { font-size: 24px; letter-spacing: -.6px; }
  .sec-idx { font-size: 13px; }
  .sec-dot { width: 7px; height: 7px; }
  .sec-body { margin-top: 26px; }
  .sec-more { font-size: 14px; }

  .page-head { background: var(--bg); padding: 40px var(--gutter) 44px; }
  .page-head h1 { font-size: 40px; letter-spacing: -1.4px; }
  .page-head p { margin-top: 12px; font-size: 15px; }

  /* --- 卡片 --- */
  .grid-2 { gap: 20px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); padding-block: 28px 8px; }

  .card { border-radius: 10px; }
  .card:hover { border-color: #C9D2E0; box-shadow: 0 8px 24px rgba(24, 24, 24, .07); transform: translateY(-2px); }
  /* 有了实拍图就用图，比设计稿的纯图标卡片更有说服力 */
  .card-media { display: block; aspect-ratio: 4 / 3; }
  .card-body { padding: 18px 20px 22px; }
  .card-ico { display: none; }
  .card-title { font-size: 17px; }
  .card-sub { display: none; }
  .card-desc { display: block; margin-top: 10px; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
  .card-tags { display: block; margin-top: 14px; font-size: 12.5px; color: var(--blue); }

  /* --- 分块文案 --- */
  .points { gap: 24px; margin-top: 24px; }
  .point h3 { font-size: 16px; }
  .point p { font-size: 13.5px; }

  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
  .split .pts-wrap, .split .points { margin-top: 0; }
  .split .ph { border-radius: 12px; }

  .split-lead { padding-block: 48px 8px; grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .lead-text { margin-top: 0; }
  .lead-text h2 { font-size: 28px; letter-spacing: -.8px; }
  .lead-text p { font-size: 14.5px; margin-top: 12px; }

  /* 页面级独立大图不要铺满 1440（会变成 900px 高的巨图） */
  main > .ph { max-width: 760px; margin-inline: auto; border-radius: 14px; aspect-ratio: 16 / 7; }

  /* --- 步骤：横排 --- */
  .steps { flex-direction: row; gap: 28px; }
  .step { grid-template-columns: 1fr; gap: 8px; flex: 1; }
  .step-no { font-size: 13px; }
  .step h3 { font-size: 15px; }
  .step p { font-size: 13px; }

  /* --- 浅灰卡片 --- */
  .soft-grid { gap: 16px; }
  .soft-card { padding: 24px 22px; border-radius: 10px; }
  .soft-card b { font-size: 17px; }
  .soft-card span { margin-top: 10px; font-size: 13px; }

  .plain-list { gap: 16px; font-size: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .plain-list > span {
    padding: 18px 20px;
    background: var(--bg);
    border-radius: 8px;
    line-height: 1.7;
  }

  /* --- 时间线：两列 --- */
  .timeline { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 48px; }
  .tl-row { grid-template-columns: 60px 1fr; }

  /* --- 浅蓝块 / CTA --- */
  .tint { padding: 32px var(--gutter); }
  .tint h2 { font-size: 24px; }
  .tint p { font-size: 14px; max-width: 52em; }
  .tint-cta { margin-top: 48px; padding-block: 56px; }
  .tint-cta h2 { font-size: 26px; }

  .cta-block { padding: 64px var(--gutter); text-align: center; }
  .cta-block h2 { font-size: 32px; letter-spacing: -1px; }
  .cta-block p { font-size: 14px; }
  .cta-block .btn-row { justify-content: center; }
  .cta-block .btn-block { display: inline-flex; width: auto; padding: 0 32px; }

  /* --- 页脚 --- */
  .site-foot { padding: 48px var(--gutter) 24px; }
  .foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; }
  .foot-brand b { font-size: 17px; }
  .site-foot p { font-size: 13px; }
  .foot-col { display: block; }
  .foot-col b { display: block; margin-bottom: 14px; font-size: 13px; color: rgba(255, 255, 255, .92); font-weight: 600; }
  .foot-col a { display: block; margin-top: 10px; font-size: 13px; color: rgba(255, 255, 255, .55); }
  .foot-col a:hover { color: #fff; }
  .foot-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 44px; }
  .foot-icp { display: block; font-size: 12px; color: rgba(255, 255, 255, .4); }
  .foot-ver { margin: 0 0 0 12px; }

  /* --- 证照索引：一行铺开，证名之间留够气口 --- */
  .foot-cert { gap: 12px 34px; margin-top: 34px; padding-top: 26px; }
  .cert-title { font-size: 12.5px; }
  .cert-links { gap: 8px 26px; }
  .cert-links a { font-size: 13px; }
  .foot-cert + .foot-bottom { margin-top: 26px; }
  /* 五项资质横排一行，别让最后一项单独掉到第二行 */
  .sec[id] .plain-list { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
  .cert-row { padding: 15px 0; }
  .cert-row-name { font-size: 14.5px; }

  /* --- 吸底条换成 AI 气泡 --- */
  .footbar { display: none; }
  body[data-footbar] .app { padding-bottom: 0; }

  .ai-fab { display: block; position: fixed; right: 32px; bottom: 32px; z-index: 61; }

  /* --- 筛选：下划线 tab --- */
  .filter-row {
    gap: 32px;
    padding: 0 var(--gutter);
    border-bottom: 1px solid var(--line);
    background: #fff;
    overflow: visible;
  }
  .filter-row .chip {
    height: 56px;
    padding: 0;
    border-radius: 0;
    background: none;
    font-size: 14.5px;
    color: var(--ink-2);
  }
  .filter-row .chip[aria-pressed="true"] {
    color: var(--blue);
    font-weight: 500;
    box-shadow: inset 0 -2px 0 var(--blue);
  }

  /* --- 产品详情：两栏 --- */
  .detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
    padding: 48px var(--gutter) 64px;
  }
  .detail-media .ph { border-radius: 14px; aspect-ratio: 1 / 1; }
  .detail-head { padding: 0; }
  .detail-head h1 { font-size: 34px; }
  .detail-meta { font-size: 14px; }
  .spec { margin: 24px 0 0; }
  .detail-tint { border-radius: 10px; padding: 24px 22px; }
  .detail-actions { display: flex; gap: 12px; margin-top: 24px; }
  .detail-actions .btn { flex: 1; height: 46px; }

  /* --- 表单：居中卡片 --- */
  .form-page .page-head { background: transparent; padding: 48px var(--gutter) 0; text-align: center; }
  .form-page .page-head h1 { font-size: 34px; }
  .form-note { justify-content: center; margin-top: 14px; }
  .form-card { max-width: 640px; margin: 24px auto 64px; padding: 32px; border: 1px solid var(--line); }
  .form-submit { display: flex; }
  .form-done { max-width: 640px; margin: 0 auto 64px; }

  /* --- 联系页：两栏 --- */
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
    padding: 40px var(--gutter) 0;
  }
  .contact-grid .org { padding: 0; }
  .contact-grid .info-table { margin: 22px 0 0; }
  /* 桌面宽度够，地址回到「左标签右内容」的一行 */
  .contact-grid .info-row--stack { flex-direction: row; align-items: baseline; gap: 16px; }
  .contact-grid .info-row--stack dt { width: 40px; }
  .contact-grid .info-row--stack dd { text-align: right; }
  .tint .btn-block { display: inline-flex; width: auto; padding: 0 28px; }

  /* --- 浮层：桌面对话框 --- */
  .sheet { align-items: center; }
  .sheet-panel {
    width: 380px;
    border-radius: 12px;
    padding: 26px;
    animation: sheet-pop .2s ease;
  }
  @keyframes sheet-pop { from { transform: scale(.97); opacity: .7; } to { transform: none; opacity: 1; } }

}

/* ---------- 27. 大屏微调 ---------- */
@media (min-width: 1200px) {
  .hero { padding-block: 72px 80px; }
  .hero h1 { font-size: 52px; }
  .sec { padding-top: 76px; }
}

/* ==========================================================================
   28. 平板（768–899）：iPad 竖屏别长得像手机
   —— 顶部导航取代抽屉，首屏两栏，四列数据，页脚分栏；仍保留吸底条（触屏）
   ========================================================================== */
@media (min-width: 768px) and (max-width: 899.98px) {
  .head-inner { height: 56px; padding-inline: 24px; }

  .head-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; margin-right: 12px; }
  .head-nav a { position: relative; font-size: 13.5px; color: var(--ink-2); padding: 6px 0; }
  .head-nav a[aria-current="page"] { color: var(--blue); font-weight: 500; }
  .head-nav a[aria-current="page"]::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: -3px;
    height: 2px; background: var(--blue); border-radius: 1px;
  }
  [data-drawer-open] { display: none; }
  .drawer, .drawer-mask { display: none; }
  .head-acts .head-cta { display: none; }   /* 宽度不够，CTA 放在页面里 */

  .hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 32px;
    background: var(--bg);
    padding: 36px 24px 40px;
  }
  .hero .ph { order: 2; aspect-ratio: 4 / 3; border-radius: 12px; }
  .hero-body { order: 1; padding: 0; }
  .hero h1 { font-size: 34px; letter-spacing: -1.2px; }
  .hero p { font-size: 14px; }

  .stats { grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 24px; }
  .stat b { font-size: 21px; }

  .page-head { padding: 28px 24px 0; }
  .page-head h1 { font-size: 32px; }
  .sec { padding: 40px 24px 0; }
  .sec-head h2 { font-size: 21px; }
  .section-body, .sec-body { margin-top: 18px; }

  .grid-2 { gap: 16px; }
  .product-grid { padding: 18px 24px 8px; }

  .steps { flex-direction: row; flex-wrap: wrap; gap: 22px 28px; }
  .step { flex: 1 1 calc(33.333% - 20px); grid-template-columns: 1fr; gap: 6px; }

  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
  .split .points { margin-top: 0; }

  .tint { padding: 26px 24px; }
  .cta-block { padding: 44px 24px; text-align: center; }
  .cta-block .btn-row { justify-content: center; }
  .cta-block .btn-block { display: inline-flex; width: auto; padding: 0 28px; }

  .site-foot { padding: 32px 24px 22px; }
  .foot-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .foot-col { display: block; }
  .foot-col b { display: block; margin-bottom: 12px; font-size: 13px; color: rgba(255, 255, 255, .92); font-weight: 600; }
  .foot-col a { display: block; margin-top: 9px; font-size: 13px; color: rgba(255, 255, 255, .55); }
  .foot-bottom { margin-top: 28px; }

  main > .ph { max-width: 620px; margin-inline: auto; border-radius: 12px; aspect-ratio: 16 / 8; }
  .split-lead { padding: 24px 24px 0; }

  .detail { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 32px 24px 48px; }
  .detail-media .ph { border-radius: 12px; }
  .detail-head { padding: 0; }
  .spec { margin: 20px 0 0; }

  .form-card { max-width: 560px; margin-inline: auto; }
  .form-submit { display: flex; }

  .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 28px 24px 0; }
  .contact-grid .org { padding: 0; }
  .contact-grid .info-table { margin: 18px 0 0; }
  .contact-grid .info-row--stack { flex-direction: row; align-items: baseline; gap: 16px; }
  .contact-grid .info-row--stack dt { width: 40px; }
  .contact-grid .info-row--stack dd { text-align: right; }
  .tint .btn-block { display: inline-flex; width: auto; padding: 0 28px; }
}

/* ==========================================================================
   29. 可访问性与动效偏好
   ========================================================================== */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}
.ai-msg:focus-visible, .drawer a:focus-visible { outline-offset: -2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* 末段浅蓝色块直接接到页脚。曾经在这里留 56px 白边，结果页面上多出一条
   白带，像是页面没画完——浅蓝块和深色页脚本来就是两个色块的分界，不需要缝。
   入场动画的初始位移是 20px，贴着页脚时会让色块压到深色上滑出来，
   所以这一块只淡入、不上滑。 */
main > .tint:last-child { transform: none; }

@media (max-width: 899.98px) {
  .cta-block { margin-top: 40px; }
}

/* ---------- 30. 404 ---------- */
.nf { padding: 56px var(--gutter) 64px; text-align: center; }
.nf-code { font-size: 13px; font-weight: 600; letter-spacing: 2px; color: var(--blue); }
.nf h1 { margin-top: 8px; font-size: 26px; font-weight: 700; letter-spacing: -.8px; }
.nf p { margin-top: 12px; font-size: 14px; color: var(--ink-2); line-height: 1.8; }
.nf-acts { display: flex; gap: 10px; justify-content: center; margin-top: 24px; }
.nf-tel { margin-top: 22px; font-size: 13px; color: var(--ink-3) !important; }
.nf-tel a { color: var(--blue); font-weight: 600; }

/* ---------- 31. 在线客服（AI 先答，真人兜底） ---------- */
.ai-gate { display: grid; gap: 8px; margin-top: 12px; }
.ai-gate input {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  outline: none;
}
.ai-gate input:focus { border-color: var(--blue); }
.ai-gate button {
  height: 40px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.ai-gate button:active { background: var(--blue-press); }

.ai-note { margin-top: 10px; font-size: 12px; color: var(--ink-3); line-height: 1.65; }
.ai-note:empty { display: none; }
.ai-note a { color: var(--blue); font-weight: 600; }

.ai-meta { display: block; margin-top: 4px; font-size: 11px; opacity: .6; }
.ai-msg--bot a { color: var(--blue); font-weight: 600; }

/* AI 说的和客服说的必须一眼分得清：AI 用浅蓝底 + 左侧细线，客服保持白底 */
.ai-msg--ai {
  background: #F7F9FF;
  border-color: #DFE5F5;
  border-left: 2px solid var(--blue);
  border-top-left-radius: 2px;
}
.ai-msg--staff { border-left: 2px solid #C8D2E4; }

/* 系统提示（转人工、备注）：居中小字，不带气泡 */
.ai-msg--sys {
  margin: 12px auto;
  padding: 6px 10px;
  max-width: 92%;
  border-radius: 6px;
  background: #EEF1F6;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-3);
  text-align: center;
}

/* 正在输入：三个点依次亮，纯 transform/opacity，尊重减少动效偏好 */
.ai-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
  padding: 10px 14px;
  background: #F7F9FF;
  border: 1px solid #DFE5F5;
  border-left: 2px solid var(--blue);
  border-radius: 10px;
  border-top-left-radius: 2px;
}
.ai-typing span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  opacity: .35;
  animation: typingBlink 1.2s infinite;
}
.ai-typing span:nth-child(2) { animation-delay: .2s; }
.ai-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typingBlink {
  0%, 60%, 100% { opacity: .25; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}

/* 转接排队的提示：客户点了转人工、客服还没接入时显示。
   那几分钟是最容易走人的时候，得让人看见"有人在来的路上"。 */
.ai-queue {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 10px 0;
  padding: 10px 12px;
  background: #FFF9EC;
  border: 1px solid #FFE3AE;
  border-radius: 10px;
}
.ai-queue-dot {
  width: 7px;
  height: 7px;
  flex: none;
  margin-top: 6px;
  border-radius: 50%;
  background: #E8A020;
  animation: queuePulse 1.3s ease-in-out infinite;
}
@keyframes queuePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .3; transform: scale(.75); }
}
.ai-queue > div { min-width: 0; }
.ai-queue b { display: block; font-size: 12.5px; font-weight: 600; color: #8A5A00; }
.ai-queue em { display: block; margin-top: 2px; font-style: normal; font-size: 11.5px; line-height: 1.6; color: #A07830; }

/* 转人工表单：直接长在消息流里，不弹窗——弹窗会把人从对话里拽出来。
   尺寸刻意压紧：面板高度本来就有限，表单一高，上面的对话就看不见了。 */
.ai-handoff {
  display: grid;
  gap: 6px;
  margin: 10px 0;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.ai-handoff-h { display: flex; align-items: flex-start; gap: 8px; }
.ai-handoff-h .ai-handoff-t { flex: 1; }
/* 选择器要压过上面的 .ai-handoff button（主按钮），否则关闭键会变成第二个蓝色大按钮 */
.ai-handoff button.ai-handoff-x {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: -1px;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-3);
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
}
.ai-handoff button.ai-handoff-x:hover { background: #F0F2F5; color: var(--ink-1); }
.ai-handoff-t { font-size: 13px; font-weight: 600; color: var(--ink-1); }
.ai-handoff input {
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  outline: none;
}
.ai-handoff input:focus { border-color: var(--blue); }
.ai-handoff button {
  height: 38px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.ai-handoff button:active { background: var(--blue-press); }
.ai-handoff button:disabled { opacity: .6; }
.ai-handoff .ai-note { margin-top: 2px; font-size: 11px; }

/* 行内文字按钮：转人工就藏在这行小字里，不抢视觉但随时找得到 */
.ai-linkbtn {
  font-size: inherit;
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ai-flash { color: #C0392B; }

@media (prefers-reduced-motion: reduce) {
  .ai-typing span { animation: none; opacity: .6; }
}

.ai-compose { display: flex; gap: 8px; margin-top: 12px; }
.ai-compose input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  outline: none;
}
.ai-compose input:focus { border-color: var(--blue); }
.ai-compose button {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  border-radius: 8px;
}

@media (max-width: 899.98px) {
  /* 手机端必须有常驻客服入口。
     原来 .ai-fab 是 display:none，只靠吸底条里的「在线咨询」——
     但吸底条只在 7 个页面有，联系我们、404、隐私政策这些页面手机上根本点不到客服。 */
  .ai-fab {
    display: block;
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 61;
  }
  /* 有吸底条的页面往上让一让，别压住「立即询价」 */
  body[data-footbar] .ai-fab {
    bottom: calc(var(--footbar-h) + 16px + env(safe-area-inset-bottom));
  }
  .ai-fab-btn { width: 46px; height: 46px; }
  /* 手机端不做「滚到页脚就隐藏」：短页面（联系我们、404）footer 一进来就在视口里，
     IntersectionObserver 立刻判定 is-hidden，等于又把入口弄没了。
     46px 的圆按钮挡不了多少东西，常驻更划算。 */
  .ai-fab.is-hidden { opacity: 1; transform: none; pointer-events: auto; }
  /* 手机屏窄，左侧那条提示气泡会挡住正文，只留圆按钮 */
  .ai-fab-tip { display: none; }
  /* 气泡常驻了，页脚给它留出落脚点，不然压着备案号 */
  .site-foot { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }

  .ai-panel {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    max-height: 82vh;
    border-radius: 14px 14px 0 0;
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }
  .ai-body { max-height: calc(82vh - 60px); }
}

/* ==========================================================================
   32. 动效（滚入 / 数字 / 悬停 / 错开）
   —— 只动 transform 与 opacity；JS 失败时不加属性，内容照常可见
   ========================================================================== */
:root {
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .62s;
}

/* 滚入：由 JS 加 data-reveal，避免无 JS 时内容被藏 */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
  will-change: opacity, transform;
}
[data-reveal].in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* 首屏：图轻微推近 + 文案逐行上浮 */
.hero .ph img { animation: heroImg 1.15s var(--ease) both; }
@keyframes heroImg {
  from { transform: scale(1.06); opacity: .6; }
  to { transform: scale(1); opacity: 1; }
}
.hero-body > * { animation: riseIn .7s var(--ease) both; }
.hero-body > *:nth-child(1) { animation-delay: .05s; }
.hero-body > *:nth-child(2) { animation-delay: .13s; }
.hero-body > *:nth-child(3) { animation-delay: .21s; }
.hero-body > *:nth-child(4) { animation-delay: .29s; }
@keyframes riseIn {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to { opacity: 1; transform: none; }
}

/* 导航下划线：从中间展开 */
.head-nav a { position: relative; }
.head-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .26s var(--ease);
}
.head-nav a:hover::after { transform: scaleX(1); }
.head-nav a[aria-current="page"]::after { transform: scaleX(1); background: var(--blue); }

/* 顶栏滚动态：加一条极轻的投影 */
.site-head.is-stuck {
  box-shadow: 0 1px 0 rgba(24, 24, 24, .05), 0 8px 24px rgba(24, 24, 24, .045);
}

/* 按钮按下 */
.btn { transition: background-color .18s var(--ease), border-color .18s var(--ease), transform .14s var(--ease), box-shadow .2s var(--ease); }
.btn:active { transform: scale(.975); }
.btn-primary:hover { box-shadow: 0 6px 18px rgba(0, 82, 217, .18); }

/* 卡片：图片微推近 + hover 上浮已有，这里补图片与阴影过渡 */
.card-media { overflow: hidden; background: #f7f8fa; }
/* 有实拍图时底色转白：产品图是白底，容器留着 #f7f8fa 会在四周形成一圈灰边，
   看起来像图片和卡片之间有异色框。padding 不变，产品显示大小不动。 */
.card-media.has-img { background: #fff; }
.card-media img { object-fit: contain; padding: 16px; transition: transform .55s var(--ease); }
.card:hover .card-media img { transform: scale(1.045); }
.detail-media .ph { background: #f7f8fa; }
.detail-media .ph.has-img { background: #fff; }
.detail-media .ph img { object-fit: contain; padding: 24px; }
.card { transition: transform .28s var(--ease), box-shadow .32s var(--ease), border-color .22s var(--ease); }

/* 产品卡进场：筛选后重新渲染也会走一遍 */
.product-grid .card,
.grid-2 .card {
  animation: cardIn .48s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}
@keyframes cardIn {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to { opacity: 1; transform: none; }
}

/* 抽屉：链接逐条滑入 */
.drawer[data-open] .drawer-nav a {
  animation: dIn .34s var(--ease) both;
}
.drawer[data-open] .drawer-nav a:nth-child(1) { animation-delay: .04s; }
.drawer[data-open] .drawer-nav a:nth-child(2) { animation-delay: .08s; }
.drawer[data-open] .drawer-nav a:nth-child(3) { animation-delay: .12s; }
.drawer[data-open] .drawer-nav a:nth-child(4) { animation-delay: .16s; }
.drawer[data-open] .drawer-nav a:nth-child(5) { animation-delay: .20s; }
.drawer[data-open] .drawer-nav a:nth-child(6) { animation-delay: .24s; }
.drawer[data-open] .drawer-nav a:nth-child(7) { animation-delay: .28s; }
@keyframes dIn {
  from { opacity: 0; transform: translate3d(12px, 0, 0); }
  to { opacity: 1; transform: none; }
}

/* 客服面板：从小变大浮出 */
.ai-panel[data-open] { animation: panelIn .26s var(--ease) both; }
@keyframes panelIn {
  from { opacity: 0; transform: translate3d(0, 10px, 0) scale(.985); }
  to { opacity: 1; transform: none; }
}

/* 工序编号：悬停时轻微放大 */
.step .step-no { transition: transform .3s var(--ease), color .3s var(--ease); }
.step:hover .step-no { transform: scale(1.08); color: var(--blue); }

/* 数据条：滚入时数字由 JS 递进，这里只保证不抖动 */
.stat b { font-variant-numeric: tabular-nums; }

/* 浮动提示（桌面客服气泡）轻微浮现；只淡入，不改 transform（要保留垂直居中） */
.ai-fab-tip { animation: tipIn .5s var(--ease) .8s both; }
@keyframes tipIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==========================================================================
   30. 细节动效（2026-11-01）
   --------------------------------------------------------------------------
   进场动画 10-26 已经做完了。这一层补的是「操作有没有回应」：
     1) 图片加载完再淡入 —— 消除逐行刷出的廉价感
     2) 浮层关掉时给 160ms 退场 —— 不是"啪一下没了"
     3) 表单：聚焦过渡 / 报错抖一下 / 提交成功有落点
     4) 详情页：主图悬停微缩放、规格行逐条浮现
   仍然只碰 transform 与 opacity；prefers-reduced-motion 由全局规则统一关掉。
   ========================================================================== */

/* ---- 1. 图片淡入。类由 JS 加：JS 不跑就没有 opacity: 0，最坏是没动画而不是看不到图 ---- */
.ph img,
.card-media img,
.detail-media img,
.search-hit .thumb img { transition: opacity .45s var(--ease); }
img.is-loading { opacity: 0; }

/* ---- 2. 浮层退场：保持 data-open（display:flex）播反向动画，160ms 后再真正隐藏 ---- */
.search-sheet.is-leaving { animation: searchOut .16s ease both; }
@keyframes searchOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
.search-sheet.is-leaving .search-panel { animation: searchPanelOut .16s var(--ease) both; }
@keyframes searchPanelOut {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(-6px) scale(.99); }
}

.sheet.is-leaving,
.ai-panel.is-leaving { animation: sheetOut .16s var(--ease) both; }
@keyframes sheetOut {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(10px); }
}
/* 手机端抽屉：退场比进场快一点，符合"关掉"的心理预期 */
.drawer-mask.is-leaving { animation: maskOut .18s ease both; }
@keyframes maskOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* ---- 3. 表单反馈 ---- */
/* 聚焦时底色与描边一起变，原来是从灰底直接跳白 */
.control { transition: background-color .18s var(--ease), border-color .18s var(--ease); }

/* 报错：3px、两下。够被注意到，又不至于像弹窗警告 */
.control.shake { animation: fieldShake .34s var(--ease); }
@keyframes fieldShake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-3px); }
  35% { transform: translateX(3px); }
  55% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}
/* 空 → 非空时选择器重新匹配，所以纯 CSS 就能让提示"出现时"播动画 */
.field-err:not(:empty),
.consent-err:not(:empty) { animation: errIn .22s var(--ease) both; }
@keyframes errIn {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: none; }
}

/* 提交成功：卡片落位 + 对勾自己画出来。这一步是转化终点，值得一个有分量的反馈 */
.form-done { animation: doneIn .46s var(--ease) both; }
@keyframes doneIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.done-ico { animation: tickPop .42s var(--ease) both; }
@keyframes tickPop {
  from { opacity: 0; transform: scale(.78); }
  to { opacity: 1; transform: none; }
}
.done-ico svg path {
  stroke-dasharray: 28;
  stroke-dashoffset: 28;
  animation: tickDraw .46s var(--ease) .14s both;
}
@keyframes tickDraw {
  to { stroke-dashoffset: 0; }
}

/* ---- 4. 详情页：桌面悬停主图微推近，手机上不做（没有 hover） ---- */
@media (min-width: 900px) {
  .detail-media .ph img { transition: transform .6s var(--ease); }
  .detail-media .ph:hover img { transform: scale(1.02); }
}

/* ---- 5. "查看全部"箭头跟着动一下，指示方向 ---- */
.sec-more svg { transition: transform .22s var(--ease); }
.sec-more:hover svg { transform: translateX(3px); }

/* ==========================================================================
   31. 操作反馈气泡（2026-11-04）
   --------------------------------------------------------------------------
   A 类操作反馈（客服表单校验 / 提交失败）改 fixed 气泡，不再写进表单文档流。
   顶部居中、≤860px 底部通栏、错误常驻点 × 关闭、可堆叠、reduced-motion 瞬时。
   B 类业务内容（.form-done 提交成功落位卡片、.field-err 字段级校验）保留不动。
   ========================================================================== */
.ui-bubbles {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%);
  z-index: 100; width: 520px; max-width: 92vw;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
}
.ui-bubble {
  position: relative; box-sizing: border-box; width: 100%; max-width: 100%;
  padding: 11px 38px 11px 16px; border-radius: 10px;
  background: #8A1F1F; color: #fff; font-size: 13px; line-height: 1.6;
  text-align: center; word-break: break-word;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
  opacity: 0; transform: translateY(-8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  pointer-events: auto;
}
.ui-bubble.on { opacity: 1; transform: none; }
.ui-bubble-msg { display: block; }
.ui-bubble-x {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; line-height: 22px; text-align: center;
  padding: 0; border: 0; background: none; color: inherit;
  opacity: .7; font-size: 18px; cursor: pointer; border-radius: 6px;
}
.ui-bubble-x:hover { opacity: 1; background: rgba(255, 255, 255, .16); }
@media (max-width: 860px) {
  .ui-bubbles { top: auto; bottom: 14px; left: 14px; right: 14px; transform: none; width: auto; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ui-bubble { transition: none; }
}

/* ---------- 32. 行内标记（2026-11-05 撤掉箭头后） ----------
   这两处原来都挂着一个箭头，撤掉了，不再用任何符号：
   · 「查看原件」— 蓝色 + 浅下划线，hover 变实线。它本来就是蓝的，加符号是多余。
   · 「全部资质」— 页脚那行是淡灰，加一道浅下划线，触屏也能看出可点。
   为什么没换图标：图片 / 文档 / 网格图标在 12px 下糊成一团，放大镜又和站头的
   搜索按钮撞含义；这站整体几乎没有行内图标，加一枚反而比文字更扎眼。
   六种方案的实测对比留在 02-开发记录/20261105_箭头替换方案.html。 */
.cert-row-go {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(0, 82, 217, .3);
  text-underline-offset: 3px;
}
.cert-row:hover .cert-row-go,
.cert-row:focus-visible .cert-row-go { text-decoration-color: currentColor; }

.cert-more {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(255, 255, 255, .26);
  text-underline-offset: 4px;
}
.cert-more:hover { text-decoration-color: rgba(255, 255, 255, .6); }

/* 搜索面板那两处同样回到纯文字链接 */
.search-all:hover,
.search-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
