/* ============================================================
   沐桐云创 B2B 专业音频独立站 — 站点样式
   美学：深邃海军蓝主色 + 电光青核心强调（信号/频谱）+ 琥珀 CTA 点睛
        母题：精密声学（频谱分析仪 / 同心声学环 / 示波器波形）
   设计原则见 .impeccable.md
   ============================================================ */

:root {
  /* 深蓝主色体系（深邃海军蓝梯度，稳重可信） */
  --bg-900: #0A1124;   /* 深底 */
  --bg-850: #0c1730;
  --bg-800: #111f3d;
  --bg-700: #16294e;
  --bg-600: #1d3563;
  --line: #23406e;
  --line-soft: #1a2f52;

  /* 文本（冷蓝灰，专业、低刺激） */
  --text-100: #eaf1fb;
  --text-300: #b3c2dc;
  --text-500: #7d8fae;

  /* 核心强调色：电光青（音频信号 / 频谱 / 科技） */
  --accent: #1FC8E3;
  --accent-deep: #0fa8c4;
  --accent-soft: rgba(31, 200, 227, 0.12);
  --accent-glow: rgba(31, 200, 227, 0.35);

  /* 次级转化色：暖琥珀（仅主 CTA 点睛，占比 <8%） */
  --amber: #FFA94D;
  --amber-deep: #f0840f;
  --amber-soft: rgba(255, 169, 77, 0.14);

  /* 辅助装饰蓝（声学环/网格线） */
  --signal: #3da9fc;
  --signal-soft: rgba(61, 169, 252, 0.12);

  --danger: #e5484d;

  /* 字体 */
  --font-display: "Space Grotesk", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;

  /* 间距节奏（基于 4px 基线，非均匀） */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2.5rem;
  --s-5: 4rem;
  --s-6: 6.5rem;

  --radius: 14px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  /* 禁用平滑滚动：窄视口下 CSS 动画导致亚像素高度波动时，
     smooth 会触发持续的滚动追赶动画 → 用户看到"有频率跳动" */
  /* scroll-behavior: smooth; 已禁用防抖动 */
  /* 固定滚动条轨道：防止窄视口下动画导致滚动条出现/消失 → 内容宽度跳变 → 布局振荡 */
  overflow-y: scroll;
  scrollbar-gutter: stable;
  /* clip 比 hidden 更彻底：禁止滚动且不计算溢出尺寸，Safari 不会据此显示横向滚动条 */
  overflow-x: clip;
  /* 屏蔽移动端滚动回弹 / 滚动链导致的整体抖动 */
  overscroll-behavior: none;
}

body {
  margin: 0;
  background: var(--bg-900);
  color: var(--text-100);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* clip 彻底裁切横向溢出（不创建滚动容器，不影响 sticky），根除横向滚动条振荡 */
  overflow-x: clip;
  /* contain 隔离：子元素尺寸变化不会传播到 body 的 scrollWidth/scrollHeight 计算 */
  contain: layout style;
  overscroll-behavior: none;
}

[dir="rtl"] body { text-align: right; }

/* ---------- 排版 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-2);
}
h1 { font-size: clamp(2.2rem, 5vw + 1rem, 4rem); }
h2 { font-size: clamp(1.7rem, 3vw + 1rem, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.5vw + 0.8rem, 1.5rem); }
p  { margin: 0 0 var(--s-2); color: var(--text-300); max-width: 65ch; }
a  { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: var(--s-2);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  display: inline-block;
}

/* ---------- 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--s-2);
}
.section { padding-block: var(--s-5); }
.section-tight { padding-block: var(--s-4); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
/* 主转化 CTA：暖琥珀（温暖、引导行动），全站极少数 */
.btn-primary { background: var(--amber); color: #1a1206; }
.btn-primary:hover { background: var(--amber-deep); box-shadow: 0 12px 34px -12px var(--amber); }
.btn-cta { background: var(--amber); color: #1a1206; }
.btn-cta:hover { background: var(--amber-deep); box-shadow: 0 12px 34px -12px var(--amber); }
/* 次级：描边，hover 信号青 */
.btn-ghost { border-color: var(--line); color: var(--text-100); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 17, 36, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-2); padding-block: 0.85rem;
}
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--text-100); letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 0.45rem; }
.brand span { color: var(--accent); }
.brand .brand-mark { width: 9px; height: 18px; border-radius: 2px; background: linear-gradient(180deg, var(--accent), var(--accent-deep)); display: inline-block; }
.nav-links { display: flex; gap: var(--s-3); list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text-300); font-size: 0.92rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.lang-switch { display: flex; gap: 0.3rem; }
.lang-switch a {
  font-size: 0.78rem; padding: 0.25rem 0.5rem; border-radius: 6px;
  color: var(--text-500); border: 1px solid var(--line);
}
.lang-switch a.active { color: #06121a; background: var(--accent); border-color: var(--accent); }
.lang-switch a:hover { text-decoration: none; color: var(--text-100); }
.lang-switch a.active:hover { color: #06121a; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------- Hero（深蓝蓝图 + 精密声学视觉） ---------- */
.hero {
  position: relative;
  padding-block: var(--s-6);
  overflow: hidden;
  background-color: var(--bg-900);
  background-image:
    linear-gradient(rgba(31, 200, 227, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 200, 227, 0.04) 1px, transparent 1px),
    radial-gradient(1100px 540px at 84% -14%, rgba(31, 200, 227, 0.16), transparent 60%),
    radial-gradient(900px 480px at 6% 16%, rgba(61, 169, 252, 0.12), transparent 60%);
  background-size: 46px 46px, 46px 46px, cover, cover;
  background-repeat: repeat, repeat, no-repeat, no-repeat;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 16ch; }
.hero .lead { font-size: 1.15rem; color: var(--text-300); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2);
  margin-top: var(--s-5); border-top: 1px solid var(--line); padding-top: var(--s-3);
}
.stat .num { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); color: #ffffff; font-weight: 700; }
.stat .label { font-size: 0.82rem; color: #ffffff; }
@media (max-width: 720px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }

/* 声音视觉：同心声学测量环 + 频谱分析仪（精密、克制） */
.hero-sound {
  position: absolute; right: 5%; top: 50%; transform: translateY(-50%);
  width: 300px; height: 300px; display: grid; place-items: center;
  z-index: 0; pointer-events: none;
}
/* 同心声学环（细线、缓慢扩散，精密测量感） */
.sonar-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--accent); opacity: 0.4;
  animation: sonar 4.5s ease-out infinite;
}
.sonar-ring.d2 { border-color: var(--signal); animation-delay: 2.25s; opacity: 0.3; }
@keyframes sonar {
  0%   { transform: scale(0.5);  opacity: 0.45; }
  100% { transform: scale(1.55); opacity: 0; }
}
/* 频谱分析仪：细竖条，青色渐变，高度模拟频谱，轻微波动 */
.spectrum { display: flex; align-items: flex-end; gap: 5px; height: 130px; position: relative; z-index: 1; }
.spectrum span {
  width: 5px; border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  transform-origin: bottom;
  animation: spectrum 2.4s ease-in-out infinite;
}
/* 让频谱呈现“中间高、两侧低”的分析仪形态 */
.spectrum span:nth-child(1)  { height: 28%;  animation-delay: 0.0s;  }
.spectrum span:nth-child(2)  { height: 52%;  animation-delay: 0.18s; }
.spectrum span:nth-child(3)  { height: 74%;  animation-delay: 0.36s; }
.spectrum span:nth-child(4)  { height: 92%;  animation-delay: 0.10s; }
.spectrum span:nth-child(5)  { height: 100%; animation-delay: 0.42s; }
.spectrum span:nth-child(6)  { height: 84%;  animation-delay: 0.24s; }
.spectrum span:nth-child(7)  { height: 64%;  animation-delay: 0.52s; background: linear-gradient(180deg, var(--signal), #1e6fb0); }
.spectrum span:nth-child(8)  { height: 88%;  animation-delay: 0.30s; }
.spectrum span:nth-child(9)  { height: 100%; animation-delay: 0.06s; }
.spectrum span:nth-child(10) { height: 70%;  animation-delay: 0.48s; }
.spectrum span:nth-child(11) { height: 50%;  animation-delay: 0.20s; }
.spectrum span:nth-child(12) { height: 34%;  animation-delay: 0.40s; }
@keyframes spectrum {
  0%, 100% { transform: scaleY(0.55); }
  50%      { transform: scaleY(1); }
}
@media (max-width: 860px) { .hero-sound { display: none; } }

/* 示波器波形分隔线 — 七彩跑马灯 */
.wave-divider { width: 100%; height: 56px; display: block; line-height: 0; overflow: visible; }
.wave-divider svg { width: 100%; height: 100%; display: block; overflow: visible; }
.wave-divider .w-main { stroke: url(#rainbow); stroke-width: 2.5; fill: none; filter: drop-shadow(0 0 6px rgba(255,120,0,0.5)) drop-shadow(0 0 14px rgba(0,229,255,0.3)); }
.wave-divider .w-soft { stroke: url(#rainbow-soft); stroke-width: 1.5; fill: none; opacity: 0.55; }
@keyframes waveflow { to { stroke-dashoffset: -320; } }
.wave-divider path { stroke-dasharray: 8 12; animation: waveflow 1.2s linear infinite; }

/* ---------- 工厂轮播展示区 ---------- */
.factory-showcase {
  padding-block: var(--s-5);
  background: var(--bg-850);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.factory-showcase .container {
  display: grid; grid-template-columns: 1.12fr 1fr; gap: var(--s-4); align-items: center;
}
.fc-copy .eyebrow { margin-bottom: var(--s-1); }
.fc-copy h2 { margin-bottom: var(--s-2); }
.fc-copy p { color: var(--text-300); margin-bottom: var(--s-3); }
.fc-metrics { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-3); }
.fc-metric .num { font-family: var(--font-display); font-size: 1.5rem; color: var(--accent); font-weight: 700; }
.fc-metric .label { font-size: 0.78rem; color: var(--text-500); }
.fc-copy .hero-actions { margin-top: 0; }

/* 轮播本体 */
.factory-carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  background: var(--bg-800);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.7);
  /* 隔离内部 flex track（总宽超视口）不外溢影响 body scrollWidth 计算 */
  contain: layout style paint;
}
.factory-track { display: flex; height: 100%; transition: transform 0.6s var(--ease); }
.factory-slide {
  position: relative; flex: 0 0 100%; height: 100%; overflow: hidden;
}
.factory-slide .scene { position: absolute; inset: 0; }
.factory-slide .scene svg { width: 100%; height: 100%; display: block; }
.factory-slide .slide-tag {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  background: rgba(10, 17, 36, 0.6); border: 1px solid var(--line);
  padding: 0.3rem 0.7rem; border-radius: 999px; backdrop-filter: blur(4px);
}
.factory-slide .slide-cap {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem; z-index: 2;
  background: linear-gradient(0deg, rgba(10, 17, 36, 0.88), transparent);
  padding-top: 2rem;
}
.factory-slide .slide-cap h4 { color: var(--text-100); margin: 0 0 0.2rem; font-size: 1.05rem; }
.factory-slide .slide-cap p { color: var(--text-300); font-size: 0.84rem; margin: 0; }
.factory-slide img.factory-photo { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 控制 */
.factory-dots {
  position: absolute; bottom: 0.85rem; right: 1rem; z-index: 3;
  display: flex; gap: 0.4rem;
}
.factory-dots button {
  width: 8px; height: 8px; padding: 0; border: none; border-radius: 999px;
  background: rgba(234, 241, 251, 0.35); cursor: pointer; transition: all 0.25s var(--ease);
}
.factory-dots button.active { background: var(--amber); width: 22px; border-radius: 4px; }
.factory-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 38px; height: 38px; display: grid; place-items: center;
  background: rgba(10, 17, 36, 0.6); border: 1px solid var(--line); color: var(--text-100);
  border-radius: 50%; cursor: pointer; font-size: 1.1rem; line-height: 1;
  transition: all 0.2s var(--ease); backdrop-filter: blur(4px);
}
.factory-arrow:hover { border-color: var(--accent); color: var(--accent); }
.factory-arrow.prev { left: 0.6rem; }
.factory-arrow.next { right: 0.6rem; }

/* 认证证书卡片（带图片） */
.cert-card { display: flex; flex-direction: column; overflow: hidden; }
.cert-card .cert-img { width: 100%; height: 180px; object-fit: cover; border-bottom: 1px solid var(--line); }
.cert-card .cert-info { padding: 1rem 1.2rem 0.8rem; text-align: center; }

/* 扫码联系区块 */
.qr-section { background: var(--bg-800); border-top: 1px solid var(--line); }
.qr-grid { display: flex; gap: var(--s-3); flex-wrap: wrap; justify-content: center; margin-top: var(--s-2); }
.qr-card { background: var(--bg-600); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; text-align: center; width: 240px; }
.qr-card .qr-img { width: 160px; height: 160px; object-fit: contain; background: #fff; border-radius: 10px; padding: 8px; margin: 0 auto 0.9rem; display: block; }
.qr-card h4 { margin: 0 0 0.3rem; font-size: 1.05rem; color: var(--text-100); }
.qr-card p { margin: 0; font-size: 0.84rem; color: var(--text-500); }

@media (max-width: 920px) {
  .factory-showcase .container { grid-template-columns: 1fr; gap: var(--s-3); }
  .factory-carousel { order: -1; }
}

/* ---------- 网格/卡片 ---------- */
.grid { display: grid; gap: var(--s-3); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-3);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); background: var(--bg-700); box-shadow: 0 18px 40px -22px var(--accent-glow); }
.card .ico {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 10px; background: var(--accent-soft); color: var(--accent);
  font-size: 1.3rem; margin-bottom: var(--s-2);
}
.card h3 { color: var(--text-100); }
.card p { font-size: 0.92rem; margin-bottom: 0; }

/* 产品卡 */
.product-card { display: flex; flex-direction: column; gap: 0.6rem; }
.product-card .cover {
  aspect-ratio: 1/1; border-radius: 10px; background:
    linear-gradient(135deg, var(--bg-600), var(--bg-700));
  display: grid; place-items: center; font-family: var(--font-display);
  color: var(--text-500); font-size: 0.8rem; letter-spacing: 0.1em; overflow: hidden;
  position: relative;
}
.product-card .cover img,
.product-card .cover > img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.product-card .cover::after {
  content: ""; position: absolute; left: 50%; bottom: 16%; transform: translateX(-50%);
  width: 56%; height: 16px; opacity: 0.4;
  background: repeating-linear-gradient(90deg, var(--accent) 0 2px, transparent 2px 7px);
}
.product-card:has(.cover img) .cover::after { display: none; }
.product-card .type-tag {
  align-self: flex-start; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--accent); border: 1px solid var(--line);
  padding: 0.15rem 0.5rem; border-radius: 6px;
}
.product-card h3 { margin: 0; font-size: 1.1rem; }
.product-card .meta { font-size: 0.82rem; color: var(--text-500); }
.product-card .meta b { color: var(--text-300); font-weight: 600; }

/* 产品详情：方形主图 + 缩略图 + 变体 */
.pd-main { width: 100%; }
.pd-main img { background: var(--bg-700); }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pd-thumb { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; cursor: pointer; border: 2px solid transparent; background: var(--bg-700); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb.active { border-color: var(--accent); }
.pd-variants { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.pd-var { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-600); color: var(--text-300); cursor: pointer; font-size: 0.86rem; }
.pd-var:hover { border-color: var(--accent); }
.pd-var.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.pd-specs { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: var(--s-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pd-spec { display: flex; justify-content: space-between; gap: 16px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.pd-spec:last-child { border-bottom: none; }
.pd-spec-k { color: var(--text-500); font-size: 0.85rem; }
.pd-spec-v { font-family: var(--font-display); font-weight: 600; text-align: right; word-break: break-word; }

/* 博客详情封面图 */
.post-cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: 12px; margin-bottom: var(--s-3); display: block; }

/* 博客正文：标题由 show.blade.php 单独渲染为 h1（小号），
   正文内禁止再出现 h1，防止标题被放大。此处作为兜底，
   即使正文误带 h1 也约束为与正文标题一致的小号尺寸。 */
.blog-body h1 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); line-height: 1.4; margin-bottom: var(--s-2); }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-850); padding-block: var(--s-4); margin-top: var(--s-5); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s-3); }
.footer-grid h4 { font-size: 0.95rem; color: var(--text-100); }
.footer-grid a { color: var(--text-500); font-size: 0.88rem; display: block; margin-bottom: 0.4rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { margin-top: var(--s-3); padding-top: var(--s-2); border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--text-500); }

/* ---------- Footer Social Icons ---------- */
.footer-social {
  display: flex; gap: 0.7rem; margin-top: 1rem;
}
.social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  color: var(--text-400);
  text-decoration: none; transition: color .2s, transform .2s;
  position: relative;
}
.social-icon svg { width: 18px; height: 18px; flex-shrink: 0; transition: filter .2s; }
.social-icon:hover { color: var(--accent); transform: translateY(-2px) scale(1.15); }
.social-icon:hover svg { filter: drop-shadow(0 0 6px currentColor) drop-shadow(0 0 12px currentColor); }

@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- 移动端固定 CTA（防跳动：GPU 合成隔离 + 显式高度） ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; gap: 0.5rem; padding: 0.6rem var(--s-2);
  min-height: 56px; /* 显式高度，防止内容流变化导致重排 */
  background: rgba(10, 17, 36, 0.95); border-top: 1px solid var(--line);
  contain: layout style paint; /* 隔离：页面其他部分的重排/重绘不影响此栏 */
  will-change: transform; /* 提升到独立合成层 */
  -webkit-transform: translateZ(0); /* 强制 iOS Safari GPU 加速 */
  transform: translateZ(0);
}
.mobile-cta a { flex: 1; text-align: center; }
@media (max-width: 620px) {
  .mobile-cta { display: flex; }
  body {
    padding-bottom: 64px;
    overscroll-behavior-y: contain; /* 防止移动端弹性滚动回弹导致视口抖动 */
  }
}

/* ---------- 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: var(--s-2); }
.field label { font-size: 0.85rem; color: var(--text-300); font-weight: 500; }
.field input, .field select, .field textarea {
  background: var(--bg-700); border: 1px solid var(--line); color: var(--text-100);
  border-radius: 10px; padding: 0.7rem 0.9rem; font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field .hint { font-size: 0.75rem; color: var(--text-500); }
.form-success {
  background: var(--accent-soft); border: 1px solid var(--accent-deep);
  color: var(--accent); padding: var(--s-2); border-radius: 10px; margin-bottom: var(--s-2);
}
.form-error {
  background: rgba(229, 88, 77, 0.1); border: 1px solid var(--danger);
  color: #ff8a7a; padding: var(--s-2); border-radius: 10px; margin-bottom: var(--s-2);
}

/* ---------- 询盘引导 ---------- */
.inquiry-guide {
  background: var(--bg-800); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: 10px;
  padding: var(--s-3) var(--s-3) var(--s-2); margin-bottom: var(--s-3);
}
.ig-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.ig-head > div { min-width: 0; }
.ig-title { font-size: 1rem; color: var(--text-100); margin-bottom: 0.35rem; }
.ig-desc { font-size: 0.85rem; color: var(--text-300); margin-bottom: 0; }
.ig-copy { flex: 0 0 auto; padding: 0.45rem 0.9rem; font-size: 0.82rem; white-space: nowrap; }
.ig-copy.copied { border-color: var(--accent); color: var(--accent); }
.ig-sample {
  margin: 0.8rem 0 0; padding: 0.8rem 1rem; border-radius: 8px;
  background: var(--bg-900); border: 1px dashed var(--line);
  color: var(--text-200); font-size: 0.88rem; line-height: 1.6;
  white-space: pre-wrap; word-break: break-word; font-family: var(--font-body);
}

/* ---------- 筛选条 ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: var(--s-3); }
.chip {
  font-size: 0.82rem; padding: 0.4rem 0.8rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text-300); background: var(--bg-800);
  transition: all 0.2s var(--ease);
}
.chip:hover { border-color: var(--accent); color: var(--text-100); text-decoration: none; }
.chip.active { background: var(--accent); color: #06121a; border-color: var(--accent); }
.chip-sm { font-size: 0.76rem; padding: 0.3rem 0.65rem; }
.chip-clear { border-color: var(--danger); color: var(--danger); }
.chip-clear:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.filters-attrs { flex-direction: column; align-items: flex-start; gap: 0.75rem; margin-top: 0.5rem; }
.filter-group { padding: 0.6rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-850); width: 100%; }
.filter-group.active { border-color: var(--accent); }
.filter-label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-500); margin-bottom: 0.5rem; }
.filter-group .chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* ---------- 时间线（OEM 流程） ---------- */
.timeline { display: grid; gap: var(--s-2); }
.timeline li { display: flex; gap: var(--s-2); align-items: flex-start; list-style: none; }
.timeline .step {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-700); border: 1px solid var(--accent); color: var(--accent);
  font-family: var(--font-display); font-weight: 700;
}
.timeline .body strong { color: var(--text-100); }

/* ---------- 入场动效（遵守 reduced-motion） ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.reveal { animation: rise 0.6s var(--ease) both; }
.reveal:nth-child(2) { animation-delay: 0.06s; }
.reveal:nth-child(3) { animation-delay: 0.12s; }
.reveal:nth-child(4) { animation-delay: 0.18s; }
.reveal:nth-child(5) { animation-delay: 0.24s; }
.reveal:nth-child(6) { animation-delay: 0.30s; }

/* ---------- 工具类 ---------- */
.lead-lg { font-size: 1.2rem; color: var(--text-300); }
.muted { color: var(--text-500); }
.center { text-align: center; }
.stack > * + * { margin-top: var(--s-2); }
.badge {
  display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.78rem;
  padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--bg-700); color: var(--text-300);
  border: 1px solid var(--line);
}

/* ---------- 无障碍：减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal, .spectrum span, .sonar-ring, .wave-divider path { animation: none !important; }
  .spectrum span { transform: scaleY(0.7); }
  html { scroll-behavior: auto; }
  .btn:hover, .card:hover { transform: none; }
}
