/* ============================================================
   BJSVS 企业官网可配置模板 — 全局样式
   设计基因来源：docs/DESIGN-DNA.md（bjsvs.com 实测）
   主题色由 src/data/site.yaml 的 theme 段注入为 CSS 变量
   ============================================================ */

:root {
  color-scheme: light; /* 仅亮色模式：阻止手机浏览器深色模式强制反色页面 */
  --c-primary: #0a6cff;
  --c-primary-light: #3d8bff;
  --c-primary-warm: #0052d9;
  --c-accent: #00a3ea;
  --c-band: #0a6cff;
  --c-info: #00a3ea;
  --c-dark: #181818;

  --c-text: #333333;
  --c-nav-text: #312b2b;
  --c-muted: #898989;
  --c-border: #e7e7e7;
  --c-dotted: #cccccc;
  --c-surface: #fafafa;
  --c-bg: #ffffff;

  --container: 1170px;
  --container-wide: 1440px;
  --topbar-h: 40px;
  --header-h: 90px;
  --banner-h: 484px;
  --page-banner-h: 484px;

  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;

  --radius: 0;
  --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-pop: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
  /* 文本输入光标统一为科技蓝（--c-info），子元素通过继承生效 */
  caret-color: var(--c-info);
}
img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: var(--c-text); text-decoration: none; transition: color .25s ease, background-color .25s ease, border-color .25s ease; }
a:hover { color: var(--c-primary); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; line-height: 1.35; }
p { margin: 0 0 10px; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select, [contenteditable] { font-family: inherit; caret-color: var(--c-info); }
:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 15px;
}
/* 列表页加宽容器：减少宽屏右侧留白（仅产品中心/项目案例列表页使用，头部横幅对齐不受影响） */
.container--wide {
  max-width: var(--container-wide);
}
.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;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 8px 22px;
  font-size: 14px;
  line-height: 1.5;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-align: center;
  transition: all .25s ease;
}
.btn-primary { background: var(--c-primary-warm); border-color: var(--c-primary-warm); color: #fff; font-weight: 600; }
.btn-primary:hover { background: var(--c-primary-light); border-color: var(--c-primary-light); color: #fff; }
.btn-outline { background: transparent; border-color: var(--c-accent); color: var(--c-accent); }
.btn-outline:hover { background: var(--c-accent); color: #fff; }
.btn-dark { background: var(--c-dark); border-color: var(--c-dark); color: #fff; }
.btn-dark:hover { background: #000; color: var(--c-primary); }

/* ---------- Top bar ---------- */
.topbar {
  height: var(--topbar-h);
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  font-size: 12px;
  color: var(--c-text);
  position: relative;
  z-index: 40;
}
.topbar .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-welcome { color: var(--c-text); font-size: 13px; }
.topbar-search { display: flex; flex: none; }
.topbar-search input {
  width: 220px; height: 26px; border: 1px solid var(--c-border); border-right: 0;
  background: #fff; color: var(--c-text); padding: 0 10px; font-size: 12px; font-family: inherit;
}
.topbar-search input::placeholder { color: var(--c-muted); }
.topbar-search button {
  height: 26px; padding: 0 16px; border: 0; cursor: pointer;
  background: var(--c-primary-warm); color: #fff; font-size: 12px; font-weight: 600; font-family: inherit;
}
.topbar-search button:hover { background: var(--c-primary-light); }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--c-border);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { height: 44px; width: auto; }
.brand-name { font-size: 20px; font-weight: 700; color: var(--c-info); letter-spacing: .5px; }
.brand-name:hover { color: var(--c-info); }

.main-nav { display: flex; align-items: stretch; height: 100%; }
.main-nav > li { position: relative; display: flex; }
.main-nav > li > a {
  display: flex;
  align-items: center;
  padding: 0 22px;
  font-size: 16px;
  font-weight: 600;
  color: var(--c-nav-text);
  white-space: nowrap;
}
.main-nav > li > a:hover,
.main-nav > li > a:focus,
.main-nav > li.current > a,
.main-nav > li:hover > a {
  background: var(--c-primary);
  color: #fff;
}
.main-nav .sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 168px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-top: 2px solid var(--c-primary);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 60;
}
.main-nav > li:hover .sub,
.main-nav > li:focus-within .sub { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .sub a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--c-nav-text);
  border-bottom: 1px solid #f2f2f2;
}
.main-nav .sub li:last-child a { border-bottom: 0; }
.main-nav .sub a:hover { background: var(--c-surface); color: var(--c-primary); padding-left: 22px; }
.main-nav .sub li.sub-child a { padding-left: 32px; font-size: 13px; color: var(--c-muted); }
.main-nav .sub li.sub-child a::before { content: "· "; color: var(--c-primary); font-weight: 700; }
.main-nav .sub li.sub-child a:hover { padding-left: 36px; color: var(--c-primary); }
.main-nav .sub { max-height: 72vh; overflow-y: auto; }
/* 侧栏子分类缩进 */
.side-nav li.side-sub a { padding-left: 30px; font-size: 13px; color: var(--c-muted); }
.side-nav li.side-sub a::before { content: "· "; color: var(--c-primary); font-weight: 700; }
.side-nav li.side-sub.current a { color: var(--c-primary); font-weight: 600; }
/* 移动端菜单子分类缩进 */
.mobile-menu .mm-sub li.mm-subchild a { padding-left: 40px; font-size: 13px; color: var(--c-muted); }
.mobile-menu .mm-sub li.mm-subchild a::before { content: "· "; color: var(--c-primary); font-weight: 700; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--c-border);
  background: #fff;
  border-radius: var(--radius);
  padding: 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--c-nav-text); margin: 5px 0; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 86vw);
  height: 100vh;
  background: #fff;
  box-shadow: var(--shadow-pop);
  z-index: 80;
  transform: translateX(100%);
  transition: transform .3s ease;
  overflow-y: auto;
  padding: 20px 0 40px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu .mm-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px 14px; border-bottom: 1px solid var(--c-border);
}
.mobile-menu .mm-close {
  width: 36px; height: 36px; border: 1px solid var(--c-border); background: #fff;
  font-size: 20px; line-height: 1; color: var(--c-nav-text);
}
.mobile-menu li { border-bottom: 1px solid #f2f2f2; }
.mobile-menu a.mm-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; font-size: 16px; font-weight: 600; color: var(--c-nav-text);
}
.mobile-menu a.mm-link:hover, .mobile-menu a.mm-link.active { color: var(--c-primary); }
.mobile-menu .mm-sub { display: none; background: var(--c-surface); }
.mobile-menu li.expanded .mm-sub { display: block; }
.mobile-menu .mm-sub a { display: block; padding: 11px 20px 11px 36px; font-size: 14px; color: #555; font-weight: 400; }
.mobile-menu .mm-sub a:hover { color: var(--c-primary); }
.mobile-menu .mm-caret { width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .25s ease; flex: none; }
.mobile-menu li.expanded > a .mm-caret { transform: rotate(-135deg); }
.mobile-menu .mm-contact { padding: 18px 20px; font-size: 13px; color: var(--c-muted); line-height: 2; }
.mm-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 70;
  opacity: 0; transition: opacity .3s ease;
}
.mm-backdrop.open { opacity: 1; }

/* ---------- Hero banner ---------- */
.hero { position: relative; width: 100%; height: var(--banner-h); overflow: hidden; background: #0b1b2b; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .8s ease, visibility .8s;
}
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide .mobile-img { display: none; }
.hero-caption {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff;
  padding: 0 20px 0 160px; /* 文字区右移70px，为放大的产品图让位 */
}
.hero-caption h2 { font-size: 40px; font-weight: 700; text-shadow: 0 2px 12px rgba(0,0,0,.45); letter-spacing: 2px; }
.hero-caption .hero-sub { font-size: 20px; margin-top: 8px; text-shadow: 0 2px 10px rgba(0,0,0,.45); letter-spacing: 6px; }
.hero-caption .hero-desc { font-size: 15px; margin-top: 18px; opacity: .92; letter-spacing: 2px; }
.hero-caption .hero-features { display: flex; gap: 34px; margin-top: 26px; flex-wrap: wrap; justify-content: center; }
.hero-caption .hero-feature { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; width: 96px; text-align: center; }
.hero-caption .hero-feature .hf-icon {
  width: 52px; height: 52px; border: 2px solid rgba(255,255,255,.85); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.hero-caption .hero-feature .hf-icon svg { width: 26px; height: 26px; fill: #fff; }
.hero-caption .hero-cta { margin-top: 30px; }
/* 大屏：文字+图标组随插画整体右移 136px（插画左缘对齐 LOGO 字母 C），窄屏恢复居中 */
@media (min-width: 1200px) { .hero-caption { transform: translateX(136px); } }
/* 无标题轮播（图内自带文案）：按钮固定在左下空白区，不遮挡图上文字 */
.hero-caption--btn-only { justify-content: flex-end; align-items: flex-start; text-align: left; padding: 0 20px 42px 10%; }
.hero-caption--btn-only h2 { display: none; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 10px; z-index: 5; }
.hero-dots button {
  width: 12px; height: 12px; border-radius: 50%; border: 1px solid #fff; background: transparent; padding: 0;
}
.hero-dots button.active { background: var(--c-primary); border-color: var(--c-primary); }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; background: rgba(0,0,0,.25); color: #fff;
  font-size: 22px; line-height: 42px; text-align: center; z-index: 5;
  opacity: 0; transition: opacity .25s ease, background .25s ease;
}
.hero:hover .hero-arrow { opacity: 1; }
.hero-arrow:hover { background: var(--c-primary); color: #fff; }
.hero-arrow.prev { left: 12px; }
.hero-arrow.next { right: 12px; }

/* ---------- Search bar（旧首页横条已弃用：搜索框移入顶栏） ---------- */

/* ---------- Sections ---------- */
.section { padding: 44px 0; }
.section-head { text-align: center; margin-bottom: 34px; }
.section-head h2 { font-size: 30px; font-weight: 700; color: var(--c-nav-text); letter-spacing: 1px; }
.section-head .sh-deco { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 10px; }
.section-head .sh-deco::before, .section-head .sh-deco::after { content: ""; width: 46px; height: 3px; background: var(--c-primary); }
.section-head .sh-deco span { width: 8px; height: 8px; background: var(--c-primary); transform: rotate(45deg); }
.section-head p { color: var(--c-muted); margin-top: 8px; }
.section-head.on-dark h2 { color: #fff; }
.section-head.on-dark .sh-deco::before, .section-head.on-dark .sh-deco::after { background: var(--c-primary); }
.section-head.on-dark p { color: rgba(255,255,255,.75); }

/* ---------- Culture grid ---------- */
.culture-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.culture-card { text-align: center; padding: 26px 18px; border: 1px solid #f0f0f0; background: #fff; transition: box-shadow .25s ease, transform .25s ease; }
.culture-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-3px); }
.culture-card .cc-icon {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--c-primary); display: flex; align-items: center; justify-content: center;
}
.culture-card .cc-icon svg { width: 32px; height: 32px; fill: #fff; }
.culture-card h3 { font-size: 18px; margin-bottom: 6px; }
.culture-card .cc-sub { color: var(--c-primary-warm); font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.culture-card p { color: var(--c-muted); font-size: 13px; margin: 0; }

/* ---------- Card grids ---------- */
.grid { display: grid; gap: 26px 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: #fff; border: 1px solid #f0f0f0; transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease; }
.card:hover { box-shadow: var(--shadow-soft); transform: translateY(-3px); border-color: #e6e6e6; }
.card-media { display: block; overflow: hidden; background: #fafafa; }
.card-media img { width: 100%; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 14px 16px 18px; text-align: center; }
.card-body h3 { font-size: 15px; font-weight: 600; }
.card-body h3 a { color: var(--c-text); }
.card-body h3 a:hover { color: var(--c-primary); }
.card-body .card-summary { font-size: 13px; color: var(--c-muted); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* 无摘要的产品卡片：标题贴卡片底部（弹性布局把剩余空白移到图与标题之间） */
.card:has(> .card-media.ratio-square) { display: flex; flex-direction: column; }
.card:has(> .card-media.ratio-square) .card-body { margin-top: auto; }
.card-media.ratio-cover img { aspect-ratio: 4 / 3; object-fit: cover; }
.card-media.ratio-square img { aspect-ratio: 1 / 1; object-fit: contain; padding: 10px; }
/* 卡片图上的椭圆形名称标签（仅卡片，详情页不显示） */
.card-media { position: relative; }
.card-badge {
  position: absolute; top: 28px; left: 50%; transform: translateX(-50%); z-index: 2;
  background: var(--c-band); color: #fff; font-size: 12px; font-weight: 600; line-height: 1;
  padding: 6px 14px 7px; border-radius: 999px; white-space: nowrap; pointer-events: none;
}
/* 带 badge 的卡片：图片整体下移，避开顶部标签（badge 底部约 60px，留出间隙） */
/* 带 badge 卡片不再缩图（2026-10-20）：标签空间已预留于图片白底内（内容 top≥280px），画布与无标签卡片等大 */
/* 相关内容小卡（图窗约198px，封面预留区等比缩至约46px）：标签缩小上移，避免贴住产品图（2026-10-27） */
.related .card-badge { top: 10px; font-size: 10.5px; padding: 4px 11px 5px; }

/* ---------- About band (ice blue) ---------- */
.about-band { background: #D9EEF7; padding: 56px 0; }
.about-band .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.about-band h2 { font-size: 28px; color: #0B3C68; margin-bottom: 18px; letter-spacing: 1px; }
.about-band .ab-en { color: rgba(11, 60, 104, .72); font-size: 13px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 16px; }
.about-band p { color: #17456E; line-height: 2; font-size: 14px; }
.about-band .ab-img { overflow: hidden; position: relative; }
.about-band .ab-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.about-band .ab-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(11, 27, 43, .72);
  color: #fff; text-align: center;
  font-size: 15px; letter-spacing: 2px;
  padding: 10px 12px; margin: 0;
}
.about-band .btn-outline { border-color: var(--c-primary); color: var(--c-primary); margin-top: 10px; }
.about-band .btn-outline:hover { background: var(--c-primary); color: #fff; }

/* ---------- News list ---------- */
.news-list { border-top: 1px solid #f0f0f0; }
.news-list li { display: flex; align-items: center; gap: 16px; padding: 15px 4px; border-bottom: 1px dashed #e3e3e3; }
.news-list li:hover { background: var(--c-surface); }
.news-list .nl-date {
  flex: none; width: 74px; text-align: center; background: var(--c-surface);
  border: 1px solid var(--c-border); padding: 6px 0;
}
.news-list .nl-date .d-day { display: block; font-size: 20px; font-weight: 700; color: var(--c-primary-warm); line-height: 1.1; }
.news-list .nl-date .d-ym { display: block; font-size: 11px; color: var(--c-muted); }
.news-list .nl-main { flex: 1; min-width: 0; }
.news-list .nl-main a { font-size: 15px; font-weight: 600; color: var(--c-text); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-list .nl-main a:hover { color: var(--c-primary); }
.news-list .nl-main p { font-size: 13px; color: var(--c-muted); margin: 4px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-list .nl-tag { flex: none; font-size: 12px; color: var(--c-primary-warm); border: 1px solid var(--c-primary-warm); padding: 1px 8px; }
/* FAQ 列表：问题与回答完整换行显示（新闻列表默认单行省略，FAQ 回答较长需多行） */
.news-list--faq li { align-items: flex-start; }
.news-list--faq .nl-main a,
.news-list--faq .nl-main p { white-space: normal; overflow: visible; text-overflow: clip; display: block; }
.news-list--faq .nl-tag { margin-top: 3px; }

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  height: var(--page-banner-h);
  margin-top: 0;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: #0b1b2b;
}
.page-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.page-banner .pb-title { position: relative; color: #fff; font-size: 40px; font-weight: 700; letter-spacing: 4px; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.page-banner .pb-en { position: relative; display: block; text-align: center; color: rgba(255,255,255,.8); font-size: 13px; letter-spacing: 4px; margin-top: 8px; text-transform: uppercase; }
/* 带分类图标的头部（新闻动态）：标题对齐首页轮播第二行（横幅内 y≈153） */
.page-banner--caption { align-items: flex-start; }
.page-banner--caption .pb-inner { padding-top: 71px; }
/* 标题中心对齐图标行中心（pb-inner 宽度=图标行宽，block+center 自动居中，各页图标数量自适应） */
.page-banner--caption .pb-title { display: block; text-align: center; }
/* 桌面端整体水平位移（groupShift：标题+图标组右移，与左侧插画关于背景中心对称） */
@media (min-width: 1200px) {
  .page-banner--caption .pb-inner { transform: translateX(var(--pb-group-shift, 0px)); }
}
.page-banner--caption .pb-en { transform: none; }
.page-banner--caption .pb-cats { position: relative; display: flex; gap: var(--pb-cat-gap, 34px); margin-top: 94px; }
.page-banner--caption .pb-cat { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #fff; font-size: 13px; width: var(--pb-cat-w, 96px); text-align: center; }
.page-banner--caption .pb-cat:hover { color: var(--c-primary-warm); }
.page-banner--caption .pb-cat-icon {
  width: 52px; height: 52px; border: 2px solid rgba(255,255,255,.85); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.page-banner--caption .pb-cat:hover .pb-cat-icon { border-color: currentColor; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { background: var(--c-surface); border-bottom: 1px solid var(--c-border); font-size: 13px; color: var(--c-muted); }
.breadcrumb .container { display: flex; align-items: center; gap: 8px; height: 44px; }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb .sep { color: #bbb; }
.breadcrumb .current { color: var(--c-primary-warm); }

/* ---------- Layout with sidebar ---------- */
.layout { display: grid; grid-template-columns: 270px 1fr; gap: 36px; padding: 36px 0 48px; align-items: start; }

.sidebar { font-size: 14px; }
.side-block { margin-bottom: 26px; }
.side-block > h3 {
  font-size: 18px; padding-bottom: 10px; margin-bottom: 6px;
  border-bottom: 2px solid var(--c-primary); color: var(--c-nav-text);
}
.side-nav li { border-bottom: 1px solid #f2f2f2; }
.side-nav a { display: flex; align-items: center; justify-content: space-between; padding: 11px 4px 11px 16px; color: #555; position: relative; }
.side-nav a::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 6px; height: 6px; background: #ccc; }
.side-nav a:hover { color: var(--c-primary); }
.side-nav a:hover::before { background: var(--c-primary); }
.side-nav li.current a { color: var(--c-primary); font-weight: 600; }
.side-nav li.current a::before { background: var(--c-primary); }
/* 侧栏主分类折叠组：默认只显示主分类（+号），悬停 +号变右箭头，点击展开子分类 */
.side-nav .cat-toggle {
  display: flex; align-items: center; gap: 9px; width: 100%;
  background: none; border: 0; padding: 11px 4px 11px 16px;
  font-family: inherit; font-size: inherit; color: #555;
  text-align: left; cursor: pointer; position: relative;
}
.side-nav .cat-toggle::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 6px; height: 6px; background: #ccc; }
.side-nav .cat-toggle:hover { color: var(--c-primary); }
.side-nav .cat-toggle:hover::before { background: var(--c-primary); }
.side-nav .cat-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 13px; height: 13px; flex: none;
  color: var(--c-primary-warm); font-size: 15px; font-weight: 700; line-height: 1;
}
.side-nav .cat-ico::before { content: "+"; transition: transform .18s ease; }
/* 悬停：+ 变向右箭头 */
.side-nav .cat-group:not(.open) .cat-toggle:hover .cat-ico::before { content: "\203A"; }
/* 展开：箭头转向下 */
.side-nav .cat-group.open .cat-ico::before { content: "\203A"; transform: rotate(90deg); }
.side-nav .cat-children { list-style: none; margin: 0; padding: 0; display: none; }
.side-nav .cat-group.open .cat-children { display: block; }
.side-nav .cat-children a {
  display: block; padding: 10px 4px 10px 38px; font-size: 13px;
  color: #666; text-decoration: none;
}
.side-nav .cat-children a::before { content: none; }
.side-nav .cat-children a:hover { color: var(--c-primary); }
.side-nav .cat-children li.current a { color: var(--c-primary); font-weight: 600; }
/* 当前所在主分类高亮 */
.side-nav .cat-group.current > .cat-toggle { color: var(--c-primary); font-weight: 600; }
.side-nav .cat-group.current > .cat-toggle::before { background: var(--c-primary); }
.side-news li { padding: 9px 0; border-bottom: 1px dashed #e8e8e8; font-size: 13px; }
.side-news a { color: #666; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-news a:hover { color: var(--c-primary); }
.side-contact { background: var(--c-surface); border: 1px solid var(--c-border); padding: 16px; line-height: 2; font-size: 13px; }
.side-contact .sc-row { display: flex; gap: 8px; }
.side-contact .sc-label { color: var(--c-muted); flex: none; }
.side-contact a { color: var(--c-primary-warm); font-weight: 600; }

/* ---------- Content area ---------- */
/* 联系我们页：无侧栏通栏布局的上下留白 */
.contact-page { padding: 36px 0 48px; }
/* 联系方式卡片与二维码卡片比例优化（通栏后每张约555px宽） */
.contact-page .contact-grid { grid-template-columns: 1.1fr 0.9fr; }
.content-title {
  font-size: 22px; color: #000; padding-bottom: 12px; margin-bottom: 22px;
  border-bottom: 1px solid var(--c-border);
  background-image: linear-gradient(to right, var(--c-primary) 60px, transparent 60px);
  background-size: 100% 3px; background-repeat: no-repeat; background-position: 0 100%;
}

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 36px; height: 36px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--c-border); background: #fff; color: #555; font-size: 13px;
}
.pagination a:hover { border-color: var(--c-primary); color: var(--c-primary); }
.pagination .current { background: var(--c-dark); border-color: var(--c-dark); color: #fff; }
.pagination .disabled { color: #bbb; background: var(--c-surface); }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 30px; }
.pd-gallery { position: relative; background: #fff; border: 1px solid #f0f0f0; }
.pd-gallery .pd-main { position: relative; height: auto; min-height: 0; aspect-ratio: 1 / 1; overflow: hidden; }
.pd-gallery .pd-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pd-gallery .pd-thumbs { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #f0f0f0; overflow-x: auto; }
.pd-gallery .pd-thumbs button {
  flex: none; width: 64px; height: 64px; border: 1px solid #e5e5e5; background: #fff; padding: 3px;
}
.pd-gallery .pd-thumbs button.active { border-color: var(--c-primary); }
.pd-gallery .pd-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pd-info h1 { font-size: 20px; color: var(--c-primary); padding-bottom: 12px; border-bottom: 1px dotted var(--c-dotted); line-height: 1.4; }
.pd-meta { margin: 16px 0 20px; }
.pd-meta li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed #f0f0f0; font-size: 14px; }
.pd-meta .m-label { color: var(--c-muted); flex: none; width: 76px; }
.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
/* 电话咨询按钮：悬停显示联系方式提示卡（效果同右侧悬浮栏） */
.pd-call { position: relative; cursor: pointer; font-family: inherit; }
.pd-call:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.pd-call .pd-call-tip {
  position: absolute; left: 50%; bottom: calc(100% + 10px);
  background: #fff; color: var(--c-text); border-radius: 8px; padding: 9px 14px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .16); white-space: nowrap;
  display: flex; align-items: center; gap: 9px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateX(-50%) translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 30;
}
.pd-call .pd-call-tip::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: #fff;
}
.pd-call:hover .pd-call-tip,
.pd-call:focus-visible .pd-call-tip {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.pd-call .pd-call-tip .ico {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: linear-gradient(180deg, var(--c-primary) 0%, var(--c-primary-warm) 100%);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.pd-call .pd-call-tip .ico svg { width: 15px; height: 15px; }
.pd-call .pd-call-tip .txt { display: flex; flex-direction: column; gap: 3px; text-align: left; }
.pd-call .pd-call-tip .txt b { font-size: 13px; font-weight: 600; line-height: 1; }
.pd-call .pd-call-tip .txt span { font-size: 12px; color: var(--c-muted); line-height: 1; }

.prose { line-height: 1.9; font-size: 14px; overflow-wrap: break-word; }
.prose h2 { font-size: 20px; margin: 28px 0 14px; padding-left: 12px; border-left: 4px solid var(--c-primary); }
.prose h3 { font-size: 17px; margin: 22px 0 10px; }
.prose p { margin: 0 0 12px; }
.prose img { max-width: 100%; height: auto; display: block; margin: 14px auto; }
.prose ul, .prose ol { margin: 0 0 12px; padding-left: 22px; }
.prose ul li { list-style: disc; margin-bottom: 6px; }
.prose ol li { list-style: decimal; margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13px; display: table; border: 1px solid #999999; }
.prose th, .prose td { border: 1px solid #999999; padding: 8px 10px; text-align: left; }
.prose th { background: var(--c-surface); }
.prose blockquote { margin: 14px 0; padding: 10px 16px; border-left: 3px solid var(--c-primary); background: var(--c-surface); color: #666; }
.prose a { color: var(--c-info); }
.prose a:hover { color: var(--c-accent); text-decoration: underline; }

.detail-nav { display: flex; justify-content: space-between; gap: 16px; border-top: 1px dashed #ddd; padding-top: 16px; margin: 26px 0; font-size: 14px; }
.detail-nav a { color: #666; max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-nav a:hover { color: var(--c-primary); }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--c-border); margin-bottom: 12px; background: #fff; }
.faq-item .faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 18px; background: #fff; border: 0; text-align: left;
  font-size: 15px; font-weight: 600; color: var(--c-nav-text);
}
.faq-item .faq-q:hover { color: var(--c-primary); }
.faq-item .faq-q .fq-icon { flex: none; width: 22px; height: 22px; position: relative; }
.faq-item .faq-q .fq-icon::before, .faq-item .faq-q .fq-icon::after {
  content: ""; position: absolute; background: var(--c-primary-warm); transition: transform .25s ease;
}
.faq-item .faq-q .fq-icon::before { left: 0; top: 10px; width: 22px; height: 2px; }
.faq-item .faq-q .fq-icon::after { left: 10px; top: 0; width: 2px; height: 22px; }
.faq-item.open .faq-q .fq-icon::after { transform: scaleY(0); }
.faq-item .faq-a { display: none; padding: 0 18px 16px; color: #555; line-height: 1.9; font-size: 14px; }
.faq-item.open .faq-a { display: block; }

/* ---------- Downloads ---------- */
.download-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.download-table th, .download-table td { border: 1px solid #e8e8e8; padding: 11px 14px; text-align: left; }
.download-table th { background: var(--c-surface); font-weight: 600; }
.download-table tr:hover td { background: #fffdf3; }
.download-table a { color: var(--c-info); font-weight: 600; }
.download-table a:hover { color: var(--c-accent); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.contact-card { border: 1px solid var(--c-border); padding: 26px; }
.contact-card h3 { font-size: 18px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--c-primary); }
.contact-rows li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed #eee; font-size: 14px; }
.contact-rows .cr-icon { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--c-primary); display: flex; align-items: center; justify-content: center; }
.contact-rows .cr-icon svg { width: 16px; height: 16px; fill: #fff; }
.contact-rows .cr-label { color: var(--c-muted); font-size: 12px; }
.contact-rows .cr-value { font-weight: 600; }
.contact-rows a.cr-value:hover { color: var(--c-primary); }
.contact-qr { text-align: center; }
.contact-qr img { width: 160px; height: 160px; border: 1px solid var(--c-border); }
.contact-qr .qr-row { display: flex; gap: 28px; justify-content: center; }
.contact-qr .qr-row figure { margin: 0; }
.contact-qr .qr-row figcaption { font-size: 13px; color: var(--c-muted); margin-top: 8px; }
.contact-qr > p { font-size: 13px; color: var(--c-muted); margin-top: 8px; }
.contact-map { margin-top: 16px; border: 1px solid var(--c-border); background: var(--c-surface); padding: 26px; text-align: center; color: var(--c-muted); font-size: 13px; }
.contact-map .map-img { display: block; width: 100%; height: auto; margin: 0 auto; border-radius: 6px; border: 1px solid var(--c-border); }
/* contact-form-note（留言未开启提示）已按需求移除 */

/* ---------- CTA ---------- */
.cta-band { background: var(--c-dark); padding: 46px 0; text-align: center; }
.cta-band h2 { color: #fff; font-size: 26px; }
.cta-band p { color: rgba(255,255,255,.72); margin: 10px 0 22px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-dark); color: #fff; padding: 44px 0 0; }
.footer-cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; padding-bottom: 34px; }
.footer-col h3 { font-size: 17px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid #3a3a3a; position: relative; }
.footer-col h3::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 56px; height: 3px; background: var(--c-primary); }
.footer-contact li { display: flex; gap: 10px; padding: 7px 0; font-size: 13px; color: #c9c9c9; align-items: flex-start; }
.footer-contact svg { width: 15px; height: 15px; fill: var(--c-primary); flex: none; margin-top: 3px; }
.footer-contact a { color: #c9c9c9; }
.footer-contact a:hover { color: var(--c-primary); }
.footer-qr-row { display: flex; gap: 22px; }
.footer-qr-row figure { margin: 0; }
.footer-qr-row img { display: block; height: 110px; width: auto; background: #fff; padding: 6px; }
.footer-qr-row figcaption { margin-top: 8px; font-size: 12px; color: #9a9a9a; }
.footer-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-tags a { border: 1px solid #4a4a4a; color: #b5b5b5; padding: 4px 12px; font-size: 12px; }
.footer-tags a:hover { border-color: var(--c-primary); color: var(--c-primary); }
.footer-form p { color: #b5b5b5; font-size: 13px; }
.footer-form .ff-row { display: flex; gap: 8px; margin-top: 10px; }
.footer-form input { flex: 1; height: 34px; border: 1px solid #444; background: #222; color: #eee; padding: 0 10px; font-size: 13px; }
.footer-form input::placeholder { color: #777; }
.footer-form button { height: 34px; padding: 0 18px; border: 0; background: var(--c-primary-warm); color: #fff; font-weight: 600; }
.footer-form button:hover { background: var(--c-primary-light); }
.footer-form-note { font-size: 12px; color: #888; margin-top: 8px; }
.friendlinks { border-top: 1px solid #2c2c2c; padding: 14px 0; font-size: 12px; color: #888; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.friendlinks a { color: #999; }
.friendlinks a:hover { color: var(--c-primary); }
.footer-bar { border-top: 1px solid #2c2c2c; padding: 16px 0; text-align: center; color: #999; font-size: 12px; line-height: 2; }
.footer-bar a { color: #999; }
.footer-bar a:hover { color: var(--c-primary); }
.footer-bar .fb-icp { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------- Floating: back to top / mobile tabbar ---------- */
.back-to-top {
  position: fixed; right: 14px; bottom: 70px; z-index: 60;
  width: 50px; height: 50px; border: 0; border-radius: var(--radius);
  background: var(--c-primary-light); color: #fff; font-size: 13px; line-height: 1.2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s, background .25s;
  box-shadow: var(--shadow-soft);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--c-primary-warm); }
.back-to-top svg { width: 16px; height: 16px; fill: #fff; }

.mobile-tabbar { display: none; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero-slide { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .main-nav > li > a { padding: 0 14px; font-size: 15px; }
  .main-nav .nav-caret { display: none; }
}
@media (max-width: 1100px) {
  .main-nav > li > a { padding: 0 11px; font-size: 14px; }
  .brand-name { font-size: 18px; }
  .brand img { height: 38px; }
}
@media (max-width: 991px) {
  :root { --banner-h: 380px; --header-h: 64px; }
  .hero-caption { padding: 0 16px; } /* 恢复居中：小屏产品图仍为原尺寸 */
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .mobile-menu { display: block; }
  .hero-caption h2 { font-size: 30px; }
  .hero-caption .hero-sub { font-size: 16px; letter-spacing: 4px; }
  .culture-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .about-band .container { grid-template-columns: 1fr; }
  .about-band .ab-img { max-width: 560px; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .product-detail { grid-template-columns: 1fr; gap: 24px; }
  /* .contact-page .contact-grid 特异性更高（448行），这里需同级选择器才能在小屏覆盖为单列 */
  .contact-grid, .contact-page .contact-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .page-banner { height: 380px; }
  .page-banner img[src*="banner-news"],
  .page-banner img[src*="banner-about"],
  .page-banner img[src*="banner-products"],
  .page-banner img[src*="banner-solutions"],
  .page-banner img[src*="banner-cases"],
  .page-banner img[src*="banner-contact"],
  .page-banner img[src*="banner-faq"] { object-position: 8% center; }
  /* FAQ 头图平板区间：完整缩放显示（上下露出的底色与头图深蓝一致），避免卡片与标题重叠 */
  .page-banner img[src*="banner-faq"] { object-fit: contain; object-position: center center; }
  .page-banner--caption .pb-inner { padding-top: 88px; }
  .page-banner .pb-title { font-size: 26px; }
}
@media (max-width: 767px) {
  :root { --banner-h: 210px; }
  body { padding-bottom: 56px; }
  /* 手机端顶栏：搜索框收起，欢迎语独占 */
  .topbar-search { display: none; }
  .hero-caption h2 { font-size: 22px; letter-spacing: 1px; }
  .hero-caption .hero-sub { font-size: 13px; letter-spacing: 2px; margin-top: 4px; }
  .hero-caption .hero-desc { font-size: 12px; margin-top: 8px; }
  .hero-caption .hero-features, .hero-caption .hero-cta { display: none; }
  .hero-slide .desktop-img { display: none; }
  .hero-slide .mobile-img { display: block; }
  .hero-arrow { display: none; }
  .section { padding: 32px 0; }
  .section-head h2 { font-size: 22px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
  .card-body { padding: 10px 10px 14px; }
  .card-body h3 { font-size: 13px; }
  .card-body .card-summary { display: none; }
  /* 手机端卡片标签：允许长名换行、限宽不超图框（2026-10-28 修复超格） */
  .card-badge {
    top: 4px; font-size: 10px; padding: 3px 9px 4px;
    width: max-content; max-width: calc(100% - 12px);
    white-space: normal; line-height: 1.3; border-radius: 10px; text-align: center;
  }
  /* 手机端相关内容小卡（图窗约160px）：标签进一步缩小上移 */
  .related .card-badge { top: 3px; font-size: 9.5px; padding: 3px 8px 4px; max-width: calc(100% - 10px); }
  /* 手机端带 badge 卡片：图片同步下移避开标签（badge 底部约 34px） */
  /* 移动端同上：badge 卡片图片不缩进，与统一画布一致（原 56px 缩进已停用） */
  .culture-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .culture-card { padding: 18px 10px; }
  .culture-card h3 { font-size: 15px; }
  .culture-card .cc-icon { width: 48px; height: 48px; }
  .culture-card .cc-icon svg { width: 24px; height: 24px; }
  .news-list li { flex-wrap: wrap; gap: 8px; padding: 12px 2px; }
  .news-list .nl-tag { display: none; }
  .news-list .nl-date { width: 60px; }
  .news-list .nl-date .d-day { font-size: 17px; }
  .page-banner { height: 210px; }
  .page-banner--caption { align-items: center; }
  .page-banner--caption .pb-inner { justify-content: center; padding-top: 0; }
  .page-banner--caption .pb-title,
  .page-banner--caption .pb-en { transform: none; }
  .page-banner--caption .pb-cats { display: none; }
  .page-banner .pb-title { font-size: 20px; letter-spacing: 2px; }
  .page-banner .pb-en { display: none; }
  /* FAQ 头图手机端：左移取景让人物与 FAQ 卡片进入画面 */
  .page-banner img[src*="banner-faq"] { object-position: 22% center; }
  .breadcrumb .container { height: 38px; font-size: 12px; }
  .layout { padding: 22px 0 36px; gap: 0; }
  .content-title { font-size: 18px; }
  .prose { font-size: 14px; }
  .footer-cols { grid-template-columns: 1fr; gap: 26px; }
  .footer-form .ff-row { flex-wrap: wrap; }
  .cta-band h2 { font-size: 20px; }
  .detail-nav { font-size: 13px; }
  .pd-gallery .pd-main { height: auto; min-height: 0; aspect-ratio: 1 / 1; }

  /* mobile tabbar */
  .mobile-tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 65;
    background: #fff; border-top: 1px solid var(--c-border);
    box-shadow: 0 -2px 10px rgba(0,0,0,.06);
  }
  .mobile-tabbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    padding: 8px 0 6px; font-size: 11px; color: #666;
  }
  .mobile-tabbar a svg { width: 20px; height: 20px; fill: currentColor; }
  .mobile-tabbar a.highlight { color: var(--c-primary-warm); font-weight: 700; }
  .back-to-top { bottom: 68px; right: 10px; width: 42px; height: 42px; }
}

/* ── 资质荣誉（about/honors）── */
.honors-intro { color: var(--c-muted); font-size: 14px; margin: 0 0 20px; }
.honors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.honor-card {
  margin: 0; border: 1px solid var(--c-border); background: var(--c-surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 14px; text-align: center; aspect-ratio: 3 / 4; overflow: hidden;
}
.honor-card--empty { border: 1px dashed #d0d0d0; background: #fafafa; color: #9a9a9a; }
.honor-card--empty .honor-name { font-size: 13px; color: #8a8a8a; }
.honor-card--empty .honor-tip { font-size: 12px; color: #b5b5b5; }
.honor-card--filled { padding: 0; }
.honor-card--filled .honor-imgbox { flex: 1; width: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; background: #fff; }
.honor-card--filled img { max-width: 100%; max-height: 100%; object-fit: contain; }
.honor-card--filled figcaption { padding: 10px 12px; font-size: 13px; color: #555; border-top: 1px solid var(--c-border); width: 100%; }
.honors-pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 26px; flex-wrap: wrap; }
.honors-pager button {
  min-width: 36px; height: 34px; padding: 0 12px; border: 1px solid var(--c-border);
  background: var(--c-surface); color: #555; font-size: 13px; cursor: pointer;
}
.honors-pager button:hover:not(:disabled) { border-color: var(--c-primary); color: var(--c-primary); }
.honors-pager button.current { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.honors-pager button:disabled { opacity: 0.45; cursor: default; }
.honors-pageinfo { text-align: center; color: var(--c-muted); font-size: 13px; margin: 12px 0 0; }
@media (max-width: 1024px) {
  .honors-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (max-width: 640px) {
  .honors-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
/* ===== 以下为原各页面 <style> 块合并（构建管线故障期间的静态化处理） ===== */
/* from: src/pages/about/index.astro */
/* 公司简介页排版：首行缩进 2 字符 + 段落间距 + 行距 */
  .about-prose p { text-indent: 2em; margin: 0 0 16px; line-height: 2; }
  .about-prose p:last-child { margin-bottom: 0; }
  /* 品牌内联 Logo：跟文字基线对齐 */
  .about-prose img.brand-inline { display: inline-block; height: 20px; width: auto; vertical-align: -4px; margin: 0 2px; }
  /* 内容下方大图：宽度不超过文字内容区 */
  .about-prose img.about-photo { display: block; width: 100%; max-width: 100%; height: auto; margin: 10px auto 0; border-radius: 6px; }
/* from: src/pages/cases/[slug].astro */
.detail-head h1 { font-size: 22px; color: var(--c-nav-text); }
  .detail-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; color: var(--c-muted); font-size: 13px; margin: 10px 0 18px; padding-bottom: 14px; border-bottom: 1px dashed #ddd; }
  .dm-cat { color: var(--c-primary-warm); border: 1px solid var(--c-primary-warm); padding: 1px 10px; }
  .detail-cover img { width: 100%; height: auto; margin-bottom: 20px; }
  .related { margin-top: 36px; border-top: 1px dashed #ddd; padding-top: 24px; }
  .related-title { font-size: 18px; margin-bottom: 20px; padding-left: 12px; border-left: 4px solid var(--c-primary); }
/* from: src/pages/cases/category/[slug].astro */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
  .ft-tab { padding: 7px 18px; border: 1px solid var(--c-border); background: #fff; font-size: 13px; color: #555; }
  .ft-tab:hover { border-color: var(--c-primary); color: var(--c-primary); }
  .ft-tab.active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; font-weight: 600; }
  .filter-note { color: var(--c-muted); font-size: 13px; margin: 14px 0 0; }
/* from: src/pages/news/[slug].astro */
.detail-head h1 { font-size: 22px; color: var(--c-nav-text); line-height: 1.5; }
  .detail-meta { display: flex; gap: 14px; align-items: center; color: var(--c-muted); font-size: 13px; margin: 10px 0 18px; padding-bottom: 14px; border-bottom: 1px dashed #ddd; }
  .dm-cat { color: var(--c-primary-warm); border: 1px solid var(--c-primary-warm); padding: 1px 10px; }
  .dm-date { display: inline-flex; align-items: center; gap: 5px; }
  .detail-cover img { width: 100%; height: auto; margin-bottom: 20px; }
  .related { margin-top: 36px; border-top: 1px dashed #ddd; padding-top: 24px; }
  .related-title { font-size: 18px; margin-bottom: 20px; padding-left: 12px; border-left: 4px solid var(--c-primary); }
/* from: src/pages/products/[slug].astro */
.related { margin-top: 36px; border-top: 1px dashed #ddd; padding-top: 24px; }
  .related-title { font-size: 18px; margin-bottom: 20px; padding-left: 12px; border-left: 4px solid var(--c-primary); }
/* from: src/pages/products/index.astro */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
  .ft-tab {
    padding: 7px 18px; border: 1px solid var(--c-border); background: #fff;
    font-size: 13px; color: #555;
  }
  .ft-tab:hover { border-color: var(--c-primary); color: var(--c-primary); }
  .ft-tab.active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; font-weight: 600; }
  .filter-note { color: var(--c-muted); font-size: 13px; margin: 14px 0 0; }
/* from: src/pages/solutions/[slug].astro */
.detail-head h1 { font-size: 22px; color: var(--c-nav-text); }
  .detail-meta { display: flex; gap: 14px; align-items: center; color: var(--c-muted); font-size: 13px; margin: 10px 0 18px; padding-bottom: 14px; border-bottom: 1px dashed #ddd; }
  .dm-cat { color: var(--c-primary-warm); border: 1px solid var(--c-primary-warm); padding: 1px 10px; }
  .detail-cover img { width: 100%; height: auto; margin-bottom: 20px; }
  .related { margin-top: 36px; border-top: 1px dashed #ddd; padding-top: 24px; }
  .related-title { font-size: 18px; margin-bottom: 20px; padding-left: 12px; border-left: 4px solid var(--c-primary); }

/* ---------- 悬浮联系栏（右侧居中，全站） ---------- */
.float-contact {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 85; display: flex; flex-direction: column; gap: 6px;
}
/* 每个按钮为独立圆角卡片（容器不能 overflow:hidden，否则会裁掉左侧二维码弹层） */
.float-contact .fc-btn:first-child { border-radius: 10px 0 0 10px; }
.float-contact .fc-btn:last-of-type { border-radius: 10px 0 0 10px; }
.float-contact .fc-btn { box-shadow: -2px 3px 12px rgba(10, 108, 255, .22); }
.float-contact .fc-btn {
  width: 62px; padding: 11px 0 9px; display: flex; flex-direction: column;
  align-items: center; gap: 5px;
  background: linear-gradient(180deg, var(--c-primary) 0%, var(--c-primary-warm) 100%);
  color: #fff; font-size: 12px; line-height: 1; border: 0; cursor: pointer;
  font-family: inherit; text-decoration: none;
}
.float-contact .fc-btn:hover { background: var(--c-primary-warm); }
.float-contact .fc-btn svg { width: 20px; height: 20px; }
.float-contact .fc-qr {
  position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%) translateX(6px);
  width: 130px; /* 必须显式定宽：仅设right时绝对定位收缩宽度会塌陷 */
  background: #fff; border-radius: 8px; padding: 10px 10px 6px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .18); text-align: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
/* 鼠标停在二维码按钮上即显示；移入弹层保持显示；点击切换（手机端兜底） */
.float-contact #fc-qr-toggle:hover + .fc-qr,
.float-contact .fc-qr:hover,
.float-contact .fc-qr.is-open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}
/* 桥接伪元素：覆盖按钮与弹层间的10px空隙，防止鼠标移动时hover断开闪烁 */
.float-contact .fc-qr::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 100%; width: 12px;
}
.float-contact .fc-qr img { display: block; width: 110px; height: 110px; object-fit: contain; }
.float-contact .fc-qr p { margin: 6px 0 2px; font-size: 12px; color: var(--c-text); }
@media (max-width: 767px) {
  .float-contact .fc-btn { width: 50px; padding: 9px 0 7px; font-size: 11px; }
  .float-contact .fc-btn svg { width: 17px; height: 17px; }
}
/* 悬浮联系栏：悬停提示卡（在线客服/联系方式） */
.float-contact .fc-btn { position: relative; }
.float-contact .fc-tip {
  position: absolute; right: calc(100% + 12px); top: 50%;
  background: #fff; color: var(--c-text); border-radius: 8px; padding: 9px 14px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .16); white-space: nowrap;
  display: flex; align-items: center; gap: 9px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-50%) translateX(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.float-contact .fc-btn:hover .fc-tip,
.float-contact .fc-btn:focus-visible .fc-tip {
  opacity: 1; visibility: visible;
  transform: translateY(-50%) translateX(0);
}
.float-contact .fc-tip .ico {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: linear-gradient(180deg, var(--c-primary) 0%, var(--c-primary-warm) 100%);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.float-contact .fc-tip .ico svg { width: 15px; height: 15px; }
.float-contact .fc-tip .txt { display: flex; flex-direction: column; gap: 3px; text-align: left; }
.float-contact .fc-tip .txt b { font-size: 13px; font-weight: 600; line-height: 1; }
.float-contact .fc-tip .txt span { font-size: 12px; color: var(--c-muted); line-height: 1; }

/* ===== 在线客服弹窗（微信二维码，全站共用） ===== */
button.btn { cursor: pointer; font-family: inherit; }
.cs-modal { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 20px; }
.cs-modal.is-open { display: flex; }
.cs-modal-mask { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.cs-modal-card { position: relative; background: #fff; border-radius: 12px; padding: 26px 30px 24px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.25); max-width: 92vw; animation: cs-pop .22s ease; }
@keyframes cs-pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.cs-modal-card h3 { margin: 0 0 14px; font-size: 17px; color: #222; }
.cs-modal-qr { display: block; width: 240px; height: 240px; max-width: 70vw; max-height: 70vw; margin: 0 auto; border: 1px solid #eee; border-radius: 8px; }
.cs-modal-hint { margin: 12px 0 0; font-size: 13px; color: #777; }
.cs-modal-alt { margin: 10px 0 0; font-size: 13px; color: #555; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.cs-modal-alt b { color: #222; font-weight: 600; }
.cs-copy { border: 1px solid #ddd; background: #f7f7f7; border-radius: 6px; padding: 3px 12px; font-size: 12px; cursor: pointer; font-family: inherit; transition: all .2s; }
.cs-copy:hover { border-color: var(--c-primary); color: var(--c-primary); }
.cs-modal-close { position: absolute; top: 8px; right: 12px; border: none; background: none; font-size: 26px; line-height: 1; color: #aaa; cursor: pointer; font-family: inherit; }
.cs-modal-close:hover { color: #555; }
@media (max-width: 768px) { .cs-modal-card { padding: 22px 18px 18px; } }

/* 参数表格：参数列（2列表的第一列 / 3列表的前两列）保持单行不换行，宽度随内容自适应 */
@media (min-width: 768px) {
  .prose table td:first-child, .prose table th:first-child { white-space: nowrap; width: 1%; }
  .prose table th:first-child + th, .prose table td:first-child + td { width: auto; }
}

/* ---------- 原各页面 <style> 块合并续（2026-10-29 FAQ 常见问题页） ---------- */
.faq-cat { font-size: 20px; color: var(--c-nav-text); margin: 6px 0 16px; padding-left: 12px; border-left: 4px solid var(--c-primary); }
.faq-note { color: var(--c-muted); font-size: 14px; margin-top: 20px; }
.faq-note a { color: var(--c-primary); }
.faq-short { background: #f4f8fb; border-left: 4px solid var(--c-primary); padding: 12px 16px; line-height: 1.9; }
.rel-card { display: block; background: #fff; border: 1px solid var(--c-border); padding: 16px 18px; }
.rel-card:hover { border-color: var(--c-primary); }
.rel-card h3 { font-size: 14px; color: var(--c-nav-text); line-height: 1.6; margin-bottom: 8px; }
.rel-card p { font-size: 12px; color: var(--c-muted); line-height: 1.7; }
.detail-head h1 { font-size: 22px; color: var(--c-nav-text); line-height: 1.5; }
.detail-meta { display: flex; gap: 14px; align-items: center; color: var(--c-muted); font-size: 13px; margin: 10px 0 18px; padding-bottom: 14px; border-bottom: 1px dashed #ddd; }
.dm-cat { color: var(--c-primary-warm); border: 1px solid var(--c-primary-warm); padding: 1px 10px; }
.dm-date { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- 原各页面 <style> 块合并续（2026-10-29 首页 FAQ 板块） ---------- */
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.faq-home-card { display: block; background: #fff; border: 1px solid var(--c-border); padding: 22px 26px; transition: border-color .2s, box-shadow .2s; }
.faq-home-card:hover { border-color: var(--c-primary); box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.faq-home-card h3 { font-size: 16px; color: var(--c-nav-text); line-height: 1.6; margin-bottom: 10px; }
.faq-home-card p { font-size: 13px; color: var(--c-muted); line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fhc-more { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--c-primary); margin-top: 12px; }
.fh-all { text-align: center; margin-top: 26px; }

/* ---------- FAQ 头部：窄屏标题块右移，避开左侧人物+FAQ卡片 ----------
   主体在图内 x374-934，≤1199 宽度下居中标题必与其重叠；
   ≥992(cover 全高)与 768-991(contain)标题块右移 130px，≤767 右移 60px */
@media (max-width: 1199px) {
  .page-banner--faq .pb-inner { transform: translateX(130px); }
}
@media (max-width: 767px) {
  .page-banner--faq .pb-inner { transform: translateX(60px); }
}
