/* ==========================================================================
   PCB / SMT / BOM / 现货 PCBA 模块 企业官网 — 设计系统
   规范来源：开发文档 8.1 UI 整体风格 / 8.2 技术约束 / 8.3 CSS 交互细节 / 8.4 响应式断点
   风格：现代 B2B 极简科技风 — 高留白、柔和层次、轻量微交互
   禁止：厚重阴影、浮雕、高饱和艳丽色块、老式立体按钮、全屏粒子/闪烁动画
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  /* 品牌色（文档 8.1 配色规范） */
  --brand: #165dff;
  --brand-strong: #0e4bd6;
  --brand-soft: #e8f1ff;
  --brand-line: #bed8ff;
  --accent: #36cfc9;
  --accent-soft: #e6fffb;
  --accent-line: #9ae6e2;

  /* 文字 */
  --text: #1d2129;
  --text-2: #4e5969;
  --text-3: #86909c;
  --text-inverse: #ffffff;

  /* 背景与表面 */
  --bg: #f7f8fa;
  --bg-alt: #eef2f8;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-line: rgba(228, 232, 238, 0.9);

  /* 描边 */
  --line: #e5e6eb;
  --line-soft: #eff0f2;
  --line-strong: #d5d9e0;

  /* 语义色 */
  --ok: #00b42a;
  --ok-soft: #e8ffea;
  --warn: #ff7d00;
  --warn-soft: #fff3e8;
  --danger: #f53f3f;

  /* 柔和轻量阴影（禁止厚重黑色阴影） */
  --sh-xs: 0 1px 2px rgba(29, 33, 41, 0.04);
  --sh-sm: 0 2px 8px rgba(29, 33, 41, 0.06);
  --sh-md: 0 6px 18px rgba(29, 33, 41, 0.07);
  --sh-lg: 0 12px 32px rgba(22, 93, 255, 0.1);
  --sh-brand: 0 8px 20px rgba(22, 93, 255, 0.16);

  /* 圆角：卡片统一 10px~14px（文档 8.1） */
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-pill: 999px;

  /* 排版 */
  --ff-zh: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "HarmonyOS Sans SC",
    "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --ff-en: "Inter", "SF Pro Display", -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  --ff: var(--ff-en), var(--ff-zh);
  --ff-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  /* 节奏 */
  --container: 1280px;
  --gutter: 24px;
  --nav-h: 68px;
  --t: all 0.25s ease;
}

/* 深色模式（文档 8.1 可选深色模式） */
html[data-theme="dark"] {
  --brand: #4080ff;
  --brand-strong: #1d63e6;
  --brand-soft: #14243f;
  --brand-line: #24406e;
  --accent: #36cfc9;
  --accent-soft: #10302f;
  --accent-line: #1d5c58;

  --text: #e9edf5;
  --text-2: #b3bdcc;
  --text-3: #8694a8;
  --text-inverse: #0f172a;

  --bg: #0f172a;
  --bg-alt: #131f36;
  --surface: #1e293b;
  --surface-2: #223044;
  --glass: rgba(30, 41, 59, 0.74);
  --glass-line: rgba(148, 163, 184, 0.18);

  --line: #2c3a52;
  --line-soft: #263349;
  --line-strong: #3a4b66;

  --sh-xs: 0 1px 2px rgba(2, 6, 23, 0.3);
  --sh-sm: 0 2px 10px rgba(2, 6, 23, 0.34);
  --sh-md: 0 6px 20px rgba(2, 6, 23, 0.4);
  --sh-lg: 0 14px 34px rgba(2, 6, 23, 0.5);
  --sh-brand: 0 8px 22px rgba(29, 99, 230, 0.34);

  color-scheme: dark;
}

/* ---------- 2. 重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--ff);
  font-size: 16px;
  line-height: 1.6; /* 正文行高 1.6（文档 8.1） */
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0 0 0.5em;
  font-weight: 700; /* 标题 700（文档 8.1） */
  line-height: 1.2; /* 标题行高 1.2 */
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(30px, 4.6vw, 50px);
}
h2 {
  font-size: clamp(24px, 3.2vw, 36px);
}
h3 {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 600; /* 小标题 600 */
}
h4 {
  font-size: 17px;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
  font-weight: 400; /* 正文 400 */
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.1em;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: var(--t);
}

a:hover {
  color: var(--brand-strong);
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}

::selection {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 10px 16px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--r-sm);
}
.skip-link:focus {
  left: 16px;
  top: 12px;
}

/* ---------- 3. 布局工具 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow {
  max-width: 880px;
}

.section {
  padding-block: 88px;
}
.section--tight {
  padding-block: 56px;
}
.section--alt {
  background: var(--surface);
}
.section--tint {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-alt) 100%);
}
.section:last-of-type {
  padding-bottom: 104px;
}

.grid {
  display: grid;
  gap: 24px;
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.center {
  text-align: center;
}
.mt-0 {
  margin-top: 0;
}
.mt-24 {
  margin-top: 24px;
}
.mt-32 {
  margin-top: 32px;
}
.mb-0 {
  margin-bottom: 0;
}
.muted {
  color: var(--text-2);
}
.small {
  font-size: 14px;
}
.tiny {
  font-size: 12.5px;
}
.strong {
  font-weight: 600;
}
.nowrap {
  white-space: nowrap;
}

/* 段落型区块标题：小标签 + 标题 + 说明 */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  border-radius: var(--r-pill);
}
.kicker--accent {
  color: #0b8f8a;
  background: var(--accent-soft);
  border-color: var(--accent-line);
}
html[data-theme="dark"] .kicker--accent {
  color: var(--accent);
}

.section-head {
  max-width: 720px;
  margin-bottom: 44px;
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head p {
  margin: 12px 0 0;
  color: var(--text-2);
  font-size: 16.5px;
}

.lead {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.7;
}

/* ---------- 4. 顶部导航（滚动切换样式 + 磨砂下拉 + 移动端汉堡） ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  background: transparent;
  transition: var(--t);
}
.nav::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  opacity: 0;
  transition: var(--t);
  pointer-events: none;
}
.nav.is-stuck::after,
.nav.is-solid::after {
  opacity: 1;
  border-bottom-color: var(--glass-line);
  box-shadow: var(--sh-sm);
}
.nav__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  height: var(--nav-h);
  /* 导航行比正文宽一档：9 个一级菜单 + 品牌 + 语言/主题按钮 */
  max-width: 1440px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.01em;
  flex: 0 0 auto;
}
.brand:hover {
  color: var(--text);
}
.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: var(--sh-brand);
}
.brand__sub {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-3);
  text-transform: uppercase;
}

.menu {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.menu__item {
  position: relative;
}
.menu__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px clamp(4px, 0.45vw, 10px);
  font-size: clamp(14px, 1vw, 15.5px);
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--r-sm);
  white-space: nowrap;
}
.menu__link:hover,
.menu__item.is-open > .menu__link {
  color: var(--brand);
  background: var(--brand-soft);
}
.menu__link[aria-current="page"] {
  color: var(--brand);
  font-weight: 600;
}
.menu__caret {
  width: 9px;
  height: 9px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: var(--t);
  opacity: 0.65;
}
.menu__item.is-open .menu__caret {
  transform: rotate(-135deg) translate(-1px, -1px);
}

/* 二级下拉：仅“现货 PCBA 模块” */
.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  width: min(660px, calc(100vw - 32px));
  padding: 18px;
  transform: translate(-50%, 8px);
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: var(--t);
}
.dropdown::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 13px;
  height: 13px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--glass);
  border-left: 1px solid var(--glass-line);
  border-top: 1px solid var(--glass-line);
  border-radius: 3px;
}
.menu__item.is-open > .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.dropdown__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.dropdown__item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--r-md);
  color: var(--text);
}
.dropdown__item:hover {
  background: var(--brand-soft);
  color: var(--brand-strong);
  transform: translateX(2px);
}
.dropdown__ico {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-soft), var(--accent-soft));
  color: var(--brand);
  font-size: 16px;
  font-weight: 700;
}
.dropdown__t {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}
.dropdown__d {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.5;
}
.dropdown__all {
  display: block;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  /* 菜单隐藏（紧凑模式/移动端）时，右侧按钮组仍然贴住行尾 */
  margin-left: auto;
}
/* 第 9 项「联系报价 / Get A Quote」不进菜单列表，固定在导航最右侧 */
.nav__actions .nav__cta {
  flex: 0 0 auto;
  padding: 7px 14px;
  font-size: 13.5px;
}
/* 紧凑导航：主菜单一行放不下时由 main.js 加 is-compact，改用抽屉
   （按实际排版宽度判定，因此中英文、字体缺失回退、浏览器缩放都不会溢出） */
.nav.is-compact .menu {
  display: none;
}
.nav.is-compact .burger {
  display: block;
}
.nav.is-compact .nav__inner {
  gap: 14px;
}
.nav.is-compact .brand__sub {
  display: none;
}
/* 禁用 JS 时无法按实际排版宽度判定，仅在平板/移动端改用抽屉。
   优化后的菜单间距更紧凑，1024px 以上中英文均可容纳 */
@media (max-width: 1024px) {
  html:not(.js) .menu {
    display: none;
  }
  html:not(.js) .burger {
    display: block;
  }
}
.langswitch {
  display: inline-flex;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}
.langswitch__btn {
  padding: 4px 11px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  background: transparent;
  border: 0;
  border-radius: var(--r-pill);
  cursor: pointer;
}
.langswitch__btn.is-active {
  color: #fff;
  background: var(--brand);
}
html[data-theme="dark"] .langswitch__btn.is-active {
  color: var(--text-inverse);
}
.theme-toggle {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}
.theme-toggle:hover {
  border-color: var(--brand-line);
  color: var(--brand);
  transform: translateY(-1px);
}

/* 汉堡按钮 + 侧滑抽屉（移动端） */
.burger {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
}
.burger span {
  position: relative;
  display: block;
  width: 17px;
  height: 1.8px;
  margin: 3.4px auto;
  background: var(--text);
  border-radius: 2px;
  transition: var(--t);
}
.nav.is-menu-open .burger span:nth-child(1) {
  transform: translateY(5.2px) rotate(45deg);
}
.nav.is-menu-open .burger span:nth-child(2) {
  opacity: 0;
}
.nav.is-menu-open .burger span:nth-child(3) {
  transform: translateY(-5.2px) rotate(-45deg);
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 120;
  width: min(340px, 86vw);
  height: 100dvh;
  padding: 18px 20px 28px;
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 48px rgba(15, 23, 42, 0.16);
  transform: translateX(102%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.nav.is-menu-open ~ .drawer,
.drawer.is-open {
  transform: translateX(0);
}
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.drawer__close {
  width: 34px;
  height: 34px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
}
.mnav {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mnav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
}
.mnav__link {
  flex: 1;
  display: block;
  padding: 14px 2px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text);
}
.mnav__link[aria-current="page"] {
  color: var(--brand);
  font-weight: 600;
}
.mnav__toggle {
  width: 34px;
  height: 34px;
  background: transparent;
  border: 0;
  color: var(--text-3);
  cursor: pointer;
  font-size: 18px;
  transition: var(--t);
}
.mnav__sub {
  list-style: none;
  margin: 0;
  padding: 0 0 10px 12px;
  display: none;
  border-bottom: 1px solid var(--line-soft);
}
.mnav__sub.is-open {
  display: block;
}
.mnav__sub a {
  display: block;
  padding: 9px 10px;
  font-size: 14.5px;
  color: var(--text-2);
  border-radius: var(--r-sm);
}
.mnav__sub a:hover {
  background: var(--brand-soft);
  color: var(--brand-strong);
}
.drawer__foot {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}
.overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(29, 33, 41, 0.34);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: var(--t);
}
.overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* ---------- 5. 按钮（主按钮 / 次按钮，hover 轻上浮） ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: var(--t);
  box-shadow: var(--sh-xs);
  text-align: center;
}
.btn:hover {
  color: var(--brand);
  border-color: var(--brand-line);
  transform: translateY(-2px);
  box-shadow: var(--sh-sm);
}
.btn:active {
  transform: translateY(0);
}
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  border-color: transparent;
  box-shadow: var(--sh-brand);
}
html[data-theme="dark"] .btn--primary {
  color: #0b1220;
}
.btn--primary:hover {
  color: #fff;
  box-shadow: 0 12px 26px rgba(22, 93, 255, 0.24);
}
html[data-theme="dark"] .btn--primary:hover {
  color: #0b1220;
}
.btn--accent {
  color: #08464a;
  background: linear-gradient(135deg, var(--accent) 0%, #7ee6e1 100%);
  border-color: transparent;
}
.btn--ghost {
  background: transparent;
  border-color: var(--line);
  box-shadow: none;
}
.btn--lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--r-md);
}
.btn--sm {
  padding: 8px 15px;
  font-size: 14px;
}
.btn--block {
  width: 100%;
}
.btn[disabled],
.btn.is-loading {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn.is-loading .spin {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.btn__arrow {
  transition: var(--t);
}
.btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* ---------- 6. 卡片与内容块 ---------- */
.card {
  position: relative;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xs);
  transition: var(--t);
}
.card:hover {
  border-color: var(--brand-line);
  box-shadow: var(--sh-md);
  transform: translateY(-4px);
}
.card--flat,
.card--flat:hover {
  transform: none;
  box-shadow: var(--sh-xs);
}
.card__link {
  display: block;
  color: var(--text);
  height: 100%;
}
.card__ico {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--brand-soft) 0%, var(--accent-soft) 100%);
  color: var(--brand);
  font-size: 19px;
  font-weight: 700;
}
.card h3,
.card h4 {
  margin-bottom: 8px;
}
.card p {
  margin-bottom: 0;
  color: var(--text-2);
  font-size: 14.5px;
}
.card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
}
.card--service {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card--service::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  opacity: 0;
  transition: var(--t);
}
.card--service:hover::before {
  opacity: 1;
}
.card--tint {
  background: linear-gradient(160deg, var(--surface) 0%, var(--brand-soft) 140%);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  transition: var(--t);
}
.chip--brand {
  color: var(--brand);
  background: var(--brand-soft);
  border-color: var(--brand-line);
}
.chip--accent {
  color: #0b8f8a;
  background: var(--accent-soft);
  border-color: var(--accent-line);
}
html[data-theme="dark"] .chip--accent {
  color: var(--accent);
}
.chip--stock {
  color: #2a7f37;
  background: var(--ok-soft);
  border-color: #b9e6c1;
}
html[data-theme="dark"] .chip--stock {
  color: #6ee7a0;
}
.chip--lead {
  color: #b25a00;
  background: var(--warn-soft);
  border-color: #ffd9a8;
}
html[data-theme="dark"] .chip--lead {
  color: #ffb266;
}

.tick {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.65;
}
.tick__i {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
}
.tick--accent .tick__i {
  background: var(--accent-soft);
  color: #0b8f8a;
}
ul.plain {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 数字统计 */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.stat__n {
  font-family: var(--ff-en);
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 700;
  color: var(--brand);
  line-height: 1.1;
}
.stat__l {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-2);
}

/* ---------- 7. 首页 Banner / 内页 Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 62px) 0 74px;
  overflow: hidden;
  background: radial-gradient(1200px 520px at 12% -10%, rgba(22, 93, 255, 0.1), transparent 60%),
    radial-gradient(900px 460px at 88% 8%, rgba(54, 207, 201, 0.12), transparent 62%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 56px;
  align-items: center;
}
.hero h1 {
  margin-bottom: 18px;
}
.hero h1 em {
  font-style: normal;
  color: var(--brand);
}
.hero__sub {
  max-width: 560px;
  margin-bottom: 28px;
  font-size: 17px;
  color: var(--text-2);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}
.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero__media {
  position: relative;
}
.hero__media img,
.hero__media svg {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
}
.float-card {
  position: absolute;
  left: -18px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  font-size: 13.5px;
  font-weight: 600;
}
.float-card--tr {
  left: auto;
  right: -14px;
  top: 18px;
  bottom: auto;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(0, 180, 42, 0.14);
}

/* 内页 hero（统一内页头部） */
.pagehero {
  padding: calc(var(--nav-h) + 46px) 0 40px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line-soft);
}
.pagehero h1 {
  font-size: clamp(26px, 3.6vw, 40px);
  margin-bottom: 10px;
}
.pagehero p {
  max-width: 760px;
  margin: 0;
  color: var(--text-2);
  font-size: 16.5px;
}
.pagehero--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
}

/* ---------- 8. 流程 / 步骤 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 22px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: var(--t);
}
.step:hover {
  border-color: var(--brand-line);
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}
.step__n {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  font-family: var(--ff-en);
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  border-radius: var(--r-pill);
}
.step h4 {
  margin-bottom: 6px;
  font-size: 15.5px;
}
.step p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-3);
  line-height: 1.6;
}
.step__arrow {
  position: absolute;
  top: 50%;
  right: -11px;
  width: 10px;
  height: 10px;
  transform: translateY(-50%) rotate(45deg);
  border-top: 1.6px solid var(--line-strong);
  border-right: 1.6px solid var(--line-strong);
}

/* ---------- 9. 产品卡片 ---------- */
.pcard {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xs);
  transition: var(--t);
  color: var(--text);
  height: 100%;
}
.pcard:hover {
  border-color: var(--brand-line);
  box-shadow: var(--sh-md);
  transform: translateY(-4px);
  color: var(--brand-strong);
}
.pcard__img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-soft);
}
.pcard__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transform: scale(1);
  transition: transform 0.25s ease; /* hover 轻微缩放，禁止 >1.1（文档 8.3-6） */
}
.pcard:hover .pcard__img img {
  transform: scale(1.02);
}
.pcard__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.pcard__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 20px;
}
.pcard__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}
.pcard__desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-3);
  line-height: 1.6;
}
.pcard__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.pcard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 13.5px;
  color: var(--text-3);
}
.price-hint {
  font-family: var(--ff-en);
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
}

.thumb {
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-2);
}
.thumb img {
  width: 100%;
  border-radius: var(--r-md);
  transition: var(--t);
}
.thumb:hover img {
  transform: scale(1.02);
}

/* 分类大卡片 */
.catcard {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 20px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xs);
  transition: var(--t);
  color: var(--text);
}
.catcard:hover {
  border-color: var(--brand-line);
  box-shadow: var(--sh-md);
  transform: translateY(-4px);
}
.catcard__ico {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: linear-gradient(140deg, var(--brand-soft), var(--accent-soft));
  overflow: hidden;
}
.catcard__ico img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.catcard h3 {
  margin-bottom: 6px;
  font-size: 18px;
}
.catcard p {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--text-2);
}
.catcard__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---------- 10. 表格 / 参数 / 规格 ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-xs);
}
table.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 520px;
}
table.spec caption {
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
table.spec th,
table.spec td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}
table.spec th {
  width: 32%;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface-2);
}
table.spec tr:last-child th,
table.spec tr:last-child td {
  border-bottom: 0;
}
table.grid-table th {
  width: auto;
  background: var(--surface-2);
  color: var(--text);
}

/* ---------- 11. 面包屑 / 分页 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  color: var(--text-3);
}
.crumbs a {
  color: var(--text-3);
}
.crumbs a:hover {
  color: var(--brand);
}
.crumbs li[aria-current] {
  color: var(--text);
}
.crumbs__sep::before {
  content: "/";
  opacity: 0.6;
}

.pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.pager a,
.pager span {
  min-width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0 10px;
  font-size: 14px;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: var(--t);
}
.pager a:hover {
  color: var(--brand);
  border-color: var(--brand-line);
  transform: translateY(-1px);
}
.pager .is-active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
  font-weight: 600;
}

/* ---------- 12. 手风琴 FAQ ---------- */
.faq {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--sh-xs);
}
.faq__item + .faq__item {
  border-top: 1px solid var(--line-soft);
}
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 17px 20px;
  text-align: left;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: var(--t);
}
.faq__q:hover {
  color: var(--brand);
  background: var(--surface-2);
}
.faq__icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 14px;
  line-height: 1;
  transition: var(--t);
}
.faq__item.is-open .faq__icon {
  transform: rotate(45deg);
}
.faq__a {
  display: none;
  padding: 0 20px 18px;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.75;
}
.faq__item.is-open .faq__a {
  display: block;
}
.faq__a p:last-child {
  margin-bottom: 0;
}

/* ---------- 13. 表单（细边框、聚焦主色高亮、禁用/加载态） ---------- */
.form-card {
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field--full {
  grid-column: 1 / -1;
}
.field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
}
.field .req {
  color: var(--danger);
  margin-left: 2px;
}
.control,
select.control,
textarea.control {
  width: 100%;
  padding: 11px 13px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  transition: var(--t);
  appearance: none;
}
textarea.control {
  min-height: 128px;
  resize: vertical;
  line-height: 1.65;
}
select.control {
  background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%),
    linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% + 1px), calc(100% - 13px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
.control::placeholder {
  color: var(--text-3);
}
.control:hover {
  border-color: var(--brand-line);
}
.control:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.13);
}
.control[disabled],
.control[readonly] {
  color: var(--text-3);
  background: var(--surface-2);
  border-color: var(--line);
  cursor: not-allowed;
}
.field.has-error .control {
  border-color: var(--danger);
}
.field__err {
  display: none;
  font-size: 12.5px;
  color: var(--danger);
}
.field.has-error .field__err {
  display: block;
}
.field__hint {
  font-size: 12.5px;
  color: var(--text-3);
}
.checkrow {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  color: var(--text-2);
}
.checkrow input {
  margin-top: 4px;
  accent-color: var(--brand);
}

.dropzone {
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 24px 18px;
  text-align: center;
  font-size: 14px;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: var(--t);
}
.dropzone:hover,
.dropzone.is-drag {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-strong);
}
.dropzone input {
  display: none;
}
.filelist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}
.fileitem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  font-size: 13.5px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
}
.fileitem button {
  background: none;
  border: 0;
  color: var(--text-3);
  cursor: pointer;
}
.fileitem button:hover {
  color: var(--danger);
}

/* 从产品详情页带入的询价型号 */
.form-ref {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  margin-bottom: 18px;
  font-size: 13.5px;
  color: var(--text-1);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.form-ref b {
  font-weight: 600;
  color: var(--brand);
}
.form-ref[hidden] {
  display: none;
}
.form-note {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 11px 14px;
  margin-bottom: 18px;
  font-size: 13.5px;
  color: var(--text-2);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  border-radius: var(--r-md);
}
/* 蜜罐字段：真实用户看不到，机器人填充后接口拒收 */
.hp {
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.hp label,
.hp input {
  pointer-events: none;
}
.form-status {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 15px;
  font-size: 14px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
}
.form-status.is-ok {
  display: flex;
  color: #2a7f37;
  background: var(--ok-soft);
  border-color: #b9e6c1;
}
.form-status.is-err {
  display: flex;
  color: #b71c1c;
  background: #ffece8;
  border-color: #ffc9c4;
}
html[data-theme="dark"] .form-status.is-ok {
  color: #6ee7a0;
}
html[data-theme="dark"] .form-status.is-err {
  color: #ff9a94;
  background: #3b1e22;
  border-color: #6b3033;
}

/* 侧边联系卡 */
.side-info {
  position: sticky;
  top: calc(var(--nav-h) + 22px);
  display: grid;
  gap: 14px;
}
.info-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 15px 17px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: var(--t);
}
.info-row:hover {
  border-color: var(--brand-line);
  box-shadow: var(--sh-sm);
}
.info-row__i {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 15px;
}
.info-row b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
}
.info-row span {
  font-size: 15px;
  color: var(--text);
  word-break: break-word;
}

/* ---------- 14. 媒体 / 图集 ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.shot {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface-2);
  transition: var(--t);
}
.shot:hover {
  border-color: var(--brand-line);
  box-shadow: var(--sh-md);
}
.shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.shot:hover img {
  transform: scale(1.02);
}
.shot figcaption {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-2);
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
}
.masked {
  filter: blur(3.2px) saturate(0.9);
  user-select: none;
}

/* 标签页 / 筛选条 */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}
.tab {
  padding: 8px 16px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: var(--t);
}
.tab:hover {
  color: var(--brand);
  border-color: var(--brand-line);
}
.tab.is-active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: var(--sh-brand);
}

/* 下载列表 */
.dl-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: var(--t);
}
.dl-item:hover {
  border-color: var(--brand-line);
  box-shadow: var(--sh-sm);
  transform: translateY(-2px);
}
.dl-item__ico {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--ff-en);
}
.dl-item h4 {
  margin: 0 0 4px;
  font-size: 15.5px;
}
.dl-item p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-3);
}

/* 引用 / 卖点条 */
.callout {
  display: grid;
  gap: 10px;
  padding: 24px 26px;
  background: linear-gradient(120deg, var(--brand-soft) 0%, var(--accent-soft) 100%);
  border: 1px solid var(--brand-line);
  border-radius: var(--r-lg);
}
.callout h3 {
  margin: 0;
  font-size: 19px;
}
.callout p {
  margin: 0;
  color: var(--text-2);
  font-size: 14.5px;
}

.band {
  position: relative;
  padding: 46px 40px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(120deg, #165dff 0%, #0e4bd6 52%, #12b6ae 100%);
  color: #fff;
  box-shadow: var(--sh-brand);
}
.band h2,
.band h3 {
  color: #fff;
}
.band p {
  color: rgba(255, 255, 255, 0.86);
}
.band::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.band .btn {
  color: var(--brand-strong);
  background: #fff;
  border-color: transparent;
}
.band .btn:hover {
  color: var(--brand);
}
.band__row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

/* 侧边浮动询价 */
.floatbar {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  gap: 8px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: var(--t);
}
.floatbar.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.floatbar a,
.floatbar button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  cursor: pointer;
  font-size: 16px;
  color: var(--text-2);
  transition: var(--t);
}
.floatbar a:hover,
.floatbar button:hover {
  color: var(--brand);
  border-color: var(--brand-line);
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}

/* ---------- 15. 页脚 ---------- */
.footer {
  padding: 64px 0 26px;
  color: var(--text-2);
  background: var(--surface);
  border-top: 1px solid var(--line);
}
html[data-theme="dark"] .footer {
  background: #0c1424;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line-soft);
}
.footer h4 {
  margin-bottom: 14px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--text);
}
.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}
.footer a {
  font-size: 14px;
  color: var(--text-2);
}
.footer a:hover {
  color: var(--brand);
}
.footer__about p {
  max-width: 340px;
  margin: 12px 0 16px;
  font-size: 14px;
  color: var(--text-3);
}
.footer__contact {
  display: grid;
  gap: 6px;
  font-size: 14px;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  font-size: 13px;
  color: var(--text-3);
}
.footer__bottom a {
  font-size: 13px;
}
.footer__bottom .icp {
  color: var(--text-3);
}

/* ---------- 16. 博客 ---------- */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 12.5px;
  color: var(--text-3);
  font-family: var(--ff-en);
}
.article {
  max-width: 780px;
}
.article h2 {
  margin: 40px 0 14px;
  font-size: 23px;
}
.article h3 {
  margin: 28px 0 10px;
  font-size: 18.5px;
}
.article p,
.article li {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.8;
}
.article ul li {
  margin-bottom: 6px;
}
.article img {
  border-radius: var(--r-lg);
  margin: 22px 0;
}
.article blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  color: var(--text-2);
  background: var(--brand-soft);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 15px;
}
.article code {
  padding: 2px 7px;
  font-family: var(--ff-mono);
  font-size: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
}

/* 详情页布局 */
.pd {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: start;
}
.pd__gallery {
  margin: 0;
}
.pd__gallery img {
  width: 100%;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.pd__thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.pd__thumbs img {
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--r-sm);
}
.kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin: 20px 0 26px;
}
.kv > div {
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
}
.kv b {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 3px;
}
.kv span {
  font-size: 14.5px;
  color: var(--text);
}
.related {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

/* ---------- 17. 图片懒加载 + 滚动渐入（文档 8.3-6/7） ---------- */
img[loading="lazy"] {
  background: var(--surface-2);
}
.lazy-img {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.lazy-img.is-loaded {
  opacity: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

html:not(.js) .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 18. 提示条 ---------- */
.notice {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 13px 16px;
  font-size: 14px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--text-2);
}
.notice svg {
  flex: 0 0 auto;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 200;
  padding: 12px 18px;
  font-size: 14px;
  color: #fff;
  background: rgba(29, 33, 41, 0.92);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  transform: translate(-50%, 20px);
  opacity: 0;
  visibility: hidden;
  transition: var(--t);
}
.toast.is-on {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* 阅读进度 & 回到顶部由 floatbar 承担 */
.divider-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 26px;
  font-size: 13px;
  color: var(--text-3);
}
.divider-label::before,
.divider-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---------- 18b. 卡片变体与图集 ---------- */
.card--post {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.card__thumb {
  display: block;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--surface-2);
}
.card__thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.card--post:hover .card__thumb img {
  transform: scale(1.02);
}
.catgrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.caselist > article,
.apps > .card,
.industries > .card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.industries .card { text-align: center; min-height: 92px; }
.pd__gallery figcaption { margin-top: 8px; }
.pd__thumb {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer;
  transition: var(--t);
}
.pd__thumb:hover,
.pd__thumb:focus-visible,
.pd__thumb.is-active {
  border-color: var(--brand-line);
  box-shadow: var(--sh-sm);
  outline: none;
}
.pd__thumb img { width: 100%; height: 100%; object-fit: cover; }
.kv dt {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 3px;
}
.kv dd {
  margin: 0;
  font-size: 14.5px;
  color: var(--text);
}

/* ---------- 19. 模板工具类（替代行内 style，文档 8.2 禁止大量行内样式） ---------- */
.h-full { height: 100%; }
.mx-auto { margin-inline: auto; }
.is-centered { text-align: center; }
.mt-6 { margin-top: 6px; }
.mb-28 { margin-bottom: 28px; }
.mb-36 { margin-bottom: 36px; }
.row--between { justify-content: space-between; }
.row--center { justify-content: center; }
.row--tight { gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.stack--case { gap: 10px; margin-top: 14px; }
.stack--dl { gap: 16px; }
.stack--post { gap: 18px; }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.steps--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.wrap--narrow { max-width: 880px; margin-inline: auto; }
.group-gap { height: 44px; }
.h1--post { font-size: clamp(24px, 3.4vw, 36px); }
.h2--sm { font-size: 24px; }
.is-num { font-family: var(--ff-en); letter-spacing: 0.02em; }
.mask-line { color: var(--text-3); letter-spacing: 0.04em; }
.result-line { color: var(--brand); font-weight: 600; }
.thumb--card { margin: 0 0 16px; }
.thumb--post { margin: 0 0 26px; }
.hero--short { min-height: 60vh; }
.minilist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.minilist--tight { gap: 9px; }
.minilist a { display: block; line-height: 1.45; }
.minilist a:hover { color: var(--brand); }
.layout-side {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: 40px;
  align-items: start;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 44px;
  align-items: start;
}
.chip svg,
.btn svg,
.notice svg,
.form-note svg,
.callout svg { width: 16px; height: 16px; }
.info-row__i svg,
.tick__i svg { width: 19px; height: 19px; }

/* ==========================================================================
   响应式断点（文档 8.4）
   移动端 <768px | 平板 768~1024px | PC 小屏 1024~1440px | 大屏 >1440px
   ========================================================================== */

/* PC 小屏 */
@media (max-width: 1440px) {
  .dropdown {
    width: min(600px, calc(100vw - 40px));
  }
}

/* 平板 */
@media (max-width: 1180px) {
  .grid-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid-4,
  .stats,
  .related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .step__arrow {
    display: none;
  }
  .hero__grid,
  .split,
  .pd,
  .layout-side,
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (max-width: 1024px) {
  :root {
    --gutter: 20px;
  }
  .section {
    padding-block: 64px;
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .catcard {
    grid-template-columns: 68px minmax(0, 1fr);
  }
  .catcard__ico {
    width: 68px;
    height: 68px;
  }
}

/* 移动端 */
@media (max-width: 768px) {
  :root {
    --nav-h: 60px;
    --gutter: 18px;
  }
  body {
    font-size: 15.5px;
  }
  .menu,
  .nav__actions .langswitch {
    display: none;
  }
  .burger {
    display: block;
  }
  .nav__inner {
    gap: 12px;
  }
  .brand__sub {
    display: none;
  }
  .section {
    padding-block: 48px;
  }
  .section:last-of-type {
    padding-bottom: 64px;
  }
  .section-head {
    margin-bottom: 28px;
  }
  .hero {
    padding: calc(var(--nav-h) + 34px) 0 44px;
  }
  .hero__cta .btn {
    flex: 1 1 auto;
  }
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5,
  .stats,
  .steps,
  .gallery,
  .related,
  .kv,
  .form-grid,
  .dropdown__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .float-card {
    position: static;
    margin-top: 12px;
    display: inline-flex;
  }
  .pagehero--split {
    grid-template-columns: minmax(0, 1fr);
  }
  .card {
    padding: 20px;
  }
  .form-card {
    padding: 20px;
  }
  .band {
    padding: 30px 22px;
  }
  .card--post {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .dl-item {
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .dl-item .btn {
    grid-column: 1 / -1;
  }
  .side-info {
    position: static;
  }
  .lead {
    font-size: 16.5px;
  }
}

/* 超小屏 */
/* 手机头部一行放不下 CTA，报价入口交给悬浮条与抽屉底部按钮 */
@media (max-width: 560px) {
  .nav__actions .nav__cta {
    display: none;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 27px;
  }
  .btn {
    padding: 10px 16px;
    font-size: 14.5px;
  }
  .pcard__body {
    padding: 16px;
  }
}

/* 大屏 PC */
@media (min-width: 1441px) {
  :root {
    --container: 1380px;
  }
  body {
    font-size: 16.5px;
  }
}

@media print {
  .nav,
  .floatbar,
  .footer,
  .drawer,
  .overlay {
    display: none !important;
  }
}
