/* ==========================================================================
   前台官网样式 site.css
   - 主色由 :root --brand 决定（后台 site.themeColor 覆盖），其余色阶全部由它派生
   - 断点 768px（<768 为 H5）
   - 无外部依赖：系统中文字体栈、内联 SVG 图标
   ========================================================================== */

:root {
  --brand: #1f5eff;

  /* 派生色：先给 rgba 兜底（不支持 color-mix 的旧内核），再在 @supports 中按 --brand 派生 */
  --brand-50: #f1f5ff;
  --brand-100: #e3ebff;
  --brand-200: #c4d4ff;
  --brand-600: #1a50d9;
  --brand-700: #1440b0;
  --brand-a08: rgba(31, 94, 255, .08);
  --brand-a16: rgba(31, 94, 255, .16);
  --brand-a32: rgba(31, 94, 255, .32);

  --ink: #0b1630;          /* 标题/深色底 */
  --ink-2: #13224a;
  --text: #3a4459;         /* 正文 */
  --muted: #6b7489;        /* 次要文字 */
  --line: #e6eaf2;         /* 分隔线 */
  --bg: #ffffff;
  --bg-soft: #f5f7fb;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 22, 48, .04), 0 2px 8px rgba(11, 22, 48, .04);
  --shadow: 0 2px 6px rgba(11, 22, 48, .04), 0 12px 32px rgba(11, 22, 48, .07);
  --shadow-lg: 0 4px 12px rgba(11, 22, 48, .06), 0 24px 56px rgba(11, 22, 48, .12);

  --header-h: 72px;
  --container: 1200px;
  --gutter: 24px;

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans CJK SC", "Source Han Sans SC", "Helvetica Neue", Arial, sans-serif;
  /* 数字/英文小标：带一点工业感的等宽数字 */
  --font-num: "DIN Alternate", "Bahnschrift", "DIN Pro", "Roboto Condensed", "Helvetica Neue", Arial, var(--font);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@supports (color: color-mix(in srgb, red 50%, blue)) {
  :root {
    --brand-50: color-mix(in srgb, var(--brand) 6%, #fff);
    --brand-100: color-mix(in srgb, var(--brand) 12%, #fff);
    --brand-200: color-mix(in srgb, var(--brand) 26%, #fff);
    --brand-600: color-mix(in srgb, var(--brand) 86%, #000);
    --brand-700: color-mix(in srgb, var(--brand) 70%, #000);
    --brand-a08: color-mix(in srgb, var(--brand) 8%, transparent);
    --brand-a16: color-mix(in srgb, var(--brand) 16%, transparent);
    --brand-a32: color-mix(in srgb, var(--brand) 32%, transparent);
  }
}

@media (max-width: 767.98px) {
  :root {
    --header-h: 60px;
    --gutter: 18px;
  }
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--ink); line-height: 1.3; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -.125em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px var(--brand-a32); }
.btn-primary:hover { background: var(--brand-600); }
.btn-outline { border-color: var(--brand-200); color: var(--brand); background: #fff; }
.btn-outline:hover { border-color: var(--brand); background: var(--brand-50); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .45); color: #fff; background: rgba(255, 255, 255, .06); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }
.btn-lg { height: 52px; padding: 0 30px; font-size: 16px; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }
.btn .icon { width: 18px; height: 18px; }

/* ==========================================================================
   顶部导航 .site-header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(11, 22, 48, .05); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 100%; }
/* 品牌区可收缩（公司名过长时省略号），保证导航与汉堡按钮始终在屏内 */
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; flex: 0 1 auto; }
.brand-logo { height: 36px; width: auto; }
.brand-mark { width: 34px; height: 34px; flex: none; color: var(--brand); }
.brand-name { font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; flex: none; }
.nav-link {
  position: relative; padding: 8px 14px; font-size: 15px; color: var(--text); border-radius: 8px;
  white-space: nowrap; transition: color .2s;
}
.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--brand); transform: scaleX(0); transition: transform .25s var(--ease);
}
.nav-link:hover { color: var(--brand); }
.nav-link.is-active { color: var(--brand); font-weight: 600; }
.nav-link.is-active::after { transform: scaleX(1); }
.nav-cta { display: none; }
.header-cta { flex: none; }

.nav-toggle {
  display: none; position: relative; width: 40px; height: 40px; margin-left: auto; margin-right: -8px;
  border: 0; background: transparent; border-radius: 8px;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 10px; width: 20px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle-bar { top: 19px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-open .nav-toggle-bar { background: transparent; }
.nav-open .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1023.98px) {
  .header-inner { gap: 16px; }
  .header-cta { display: none; }   /* 平板宽度放不下 CTA，导航里已有"联系我们" */
  .nav-link { padding: 8px 10px; font-size: 14px; }
  .nav-link::after { left: 10px; right: 10px; }
}

@media (max-width: 767.98px) {
  .brand-logo { height: 30px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-name { font-size: 16px; }
  .header-cta { display: none; }
  /* 无 JS：导航横向滚动显示；有 JS：折叠为汉堡菜单 */
  .site-nav { flex: 0 1 auto; overflow-x: auto; scrollbar-width: none; min-width: 0; }
  .site-nav::-webkit-scrollbar { display: none; }
  .js .nav-toggle { display: block; }
  .js .site-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 0;
    margin: 0; padding: 8px var(--gutter) 20px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(11, 22, 48, .10);
    overflow: visible;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .25s var(--ease), visibility 0s linear .25s;
  }
  .js.nav-open .site-nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .js .nav-link { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .js .nav-link::after { display: none; }
  .js .nav-link.is-active { color: var(--brand); }
  .js .nav-cta { display: flex; margin-top: 16px; }
}

/* ==========================================================================
   首屏 .hero
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(760px, calc(100vh - var(--header-h)));
  display: flex; align-items: center;
  color: #fff; background: var(--ink);
}
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide {
  position: absolute; inset: 0;
  background-color: var(--ink-2); background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide:first-child, .hero-slide.is-active { opacity: 1; }
.hero.is-carousel .hero-slide:first-child:not(.is-active) { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .hero-slide.is-active { animation: hero-zoom 7s ease-out both; }
}
@keyframes hero-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }

/* 深色渐变遮罩 + 细网格肌理 */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 14, 34, .92) 0%, rgba(6, 14, 34, .72) 42%, rgba(6, 14, 34, .25) 100%),
    linear-gradient(0deg, rgba(6, 14, 34, .55) 0%, rgba(6, 14, 34, 0) 40%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 80% 40%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 80% 40%, #000 0%, transparent 75%);
}
.hero-inner { position: relative; padding-top: 96px; padding-bottom: 120px; }
.hero-content { max-width: 680px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  font-family: var(--font-num); font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}
.hero-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--brand); border-radius: 2px; }
.hero-title { font-size: clamp(30px, 4.6vw, 56px); line-height: 1.18; color: #fff; letter-spacing: .01em; }
.hero-subtitle { margin-top: 20px; font-size: clamp(15px, 1.5vw, 19px); line-height: 1.8; color: rgba(255, 255, 255, .78); max-width: 600px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px;
  font-size: 14px; color: #fff; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-a32); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.hero-dots { position: absolute; left: 0; right: 0; bottom: 36px; }
.hero-dots .container { display: flex; gap: 8px; }
.hero-dot {
  width: 28px; height: 4px; padding: 0; border: 0; border-radius: 4px;
  background: rgba(255, 255, 255, .3); transition: background-color .3s, width .3s var(--ease);
}
.hero-dot.is-active { width: 48px; background: #fff; }
.hero-scroll {
  position: absolute; right: var(--gutter); bottom: 28px; display: flex; align-items: center; gap: 10px;
  font-family: var(--font-num); font-size: 12px; letter-spacing: .2em; color: rgba(255, 255, 255, .6);
}
@media (min-width: 1248px) { .hero-scroll { right: calc((100% - var(--container)) / 2); } }
.hero-scroll::after { content: ""; width: 1px; height: 36px; background: linear-gradient(rgba(255, 255, 255, .7), transparent); }

@media (max-width: 767.98px) {
  .hero { min-height: 560px; align-items: flex-end; }
  .hero::before {
    background: linear-gradient(0deg, rgba(6, 14, 34, .94) 0%, rgba(6, 14, 34, .72) 55%, rgba(6, 14, 34, .35) 100%);
  }
  .hero-inner { padding-top: 64px; padding-bottom: 72px; }
  .hero-eyebrow { font-size: 11px; margin-bottom: 16px; }
  .hero-subtitle { margin-top: 14px; }
  .hero-tags { gap: 8px; margin-top: 20px; }
  .hero-tag { font-size: 13px; padding: 5px 12px; }
  .hero-actions { margin-top: 28px; gap: 10px; }
  .hero-actions .btn { flex: 1 1 140px; }
  .hero-dots { bottom: 24px; }
  .hero-scroll { display: none; }
}

/* ==========================================================================
   通用板块 .section
   ========================================================================== */
.section { position: relative; padding: 112px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
/* 分类很多时 Tab 条自动换到标题下方并横向滚动，标题不会被挤成竖排 */
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 32px; max-width: none; }
.section-head-row > :not(.tabs) { flex: 1 1 360px; max-width: 640px; min-width: 0; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font-family: var(--font-num); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand);
}
.section-eyebrow::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: currentColor; }
.section-head-center .section-eyebrow::after { content: ""; width: 20px; height: 2px; border-radius: 2px; background: currentColor; }
.section-title { font-size: clamp(26px, 3vw, 38px); letter-spacing: .01em; }
.section-desc { margin-top: 14px; font-size: 16px; color: var(--muted); }

@media (max-width: 767.98px) {
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head-row { display: block; }
  .section-eyebrow { font-size: 12px; margin-bottom: 10px; }
  .section-desc { font-size: 15px; margin-top: 10px; }
}

/* ---------- Tabs（产品分类 / 合作伙伴分组 共用） ---------- */
.tabs {
  display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 36px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 25px;
  max-width: 100%; flex-wrap: wrap;   /* PC：分类多时换行，不依赖横向滚动 */
}
.tabs::-webkit-scrollbar { display: none; }
.section-alt .tabs { background: #fff; }
.tab {
  flex: none; height: 40px; padding: 0 20px; border: 0; border-radius: 999px;
  background: transparent; color: var(--text); font-size: 15px; white-space: nowrap;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.tab:hover { color: var(--brand); }
.tab[aria-selected="true"] { background: var(--brand); color: #fff; box-shadow: 0 4px 12px var(--brand-a32); }
.tabs-center { display: flex; width: fit-content; margin-left: auto; margin-right: auto; }
.section-head-row .tabs { margin-bottom: 0; flex: 0 1 auto; min-width: 0; }
/* 无 JS：所有分组依次展示并带小标题；有 JS：只显示当前分组 */
.tab-panel-title { margin: 0 0 18px; font-size: 18px; }
.js .tab-panel-title { display: none; }
.tab-panel + .tab-panel { margin-top: 40px; }
.js .tab-panel + .tab-panel { margin-top: 0; }
.js .tab-panel[hidden] { display: none; }
/* JS 初始化前（.tabs-ready 未加）只显示第一个面板，避免闪一下全部分组 */
.js [data-tabs]:not(.tabs-ready) .tab-panel ~ .tab-panel { display: none; }
.js .tabs-placeholder { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .tab-panel.is-entering { animation: panel-in .35s var(--ease) both; }
}
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 767.98px) {
  /* H5：单行横向滑动；溢出时右侧渐隐提示还有更多 */
  .tabs { margin-bottom: 24px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-radius: 999px; }
  .tabs.is-scrollable {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
  }
  .section-head-row .tabs { margin-top: 20px; }
  .tab { height: 36px; padding: 0 14px; font-size: 14px; }
}

/* ==========================================================================
   产品与服务 #products
   ========================================================================== */
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.product-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--brand-50); }
.product-cover > img, .product-cover > .ph {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.product-card:hover .product-cover > img, .product-card:hover .product-cover > .ph { transform: scale(1.04); }
.product-badge {
  position: absolute; left: 16px; top: 16px; z-index: 1; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; color: var(--brand); background: rgba(255, 255, 255, .92);
  max-width: calc(100% - 32px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.product-body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 22px; }
.product-name { font-size: 19px; }
.product-summary {
  margin-top: 10px; font-size: 14.5px; color: var(--muted); line-height: 1.75;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.product-tags li { padding: 2px 10px; font-size: 12.5px; color: var(--brand-700); background: var(--brand-50); border-radius: 6px; }
.product-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 20px;
  font-size: 14px; font-weight: 600; color: var(--brand);
}
.product-more .icon { transition: transform .25s var(--ease); }
.product-card:hover .product-more .icon { transform: translateX(4px); }
.empty-tip { padding: 48px 0; text-align: center; color: var(--muted); }

@media (max-width: 1023.98px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (max-width: 767.98px) {
  .product-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .product-body { padding: 18px 18px 16px; }
  .product-name { font-size: 17px; }
}

/* ==========================================================================
   核心能力 #capabilities（深色板块）
   ========================================================================== */
.section-dark { background: var(--ink); color: rgba(255, 255, 255, .72); overflow: hidden; isolation: isolate; }
.section-dark::before {
  content: ""; position: absolute; z-index: -1; width: 720px; height: 720px; right: -240px; top: -320px;
  border-radius: 50%; background: radial-gradient(circle, var(--brand-a32) 0%, transparent 65%);
}
.section-dark::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.section-dark .section-title { color: #fff; }
.section-dark .section-desc { color: rgba(255, 255, 255, .62); }
.section-dark .section-eyebrow { color: #8fb0ff; }

/* 卡片间 1px 分隔线用 box-shadow 画，数量不整除列数时空位不留线框 */
.cap-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius-lg); overflow: hidden;
}
.cap-card {
  position: relative; padding: 40px 34px 44px;
  box-shadow: 1px 0 0 rgba(255, 255, 255, .1), 0 1px 0 rgba(255, 255, 255, .1);
  transition: background-color .3s;
}
.cap-card:hover { background: rgba(255, 255, 255, .035); }
.cap-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--brand), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.cap-card:hover::before { transform: scaleX(1); }
.cap-icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 26px;
  border-radius: 14px; color: #fff; background: var(--brand);
  box-shadow: 0 8px 24px var(--brand-a32), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.cap-icon svg, .cap-icon img { width: 26px; height: 26px; object-fit: contain; }
.cap-title { font-size: 19px; color: #fff; }
.cap-desc { margin-top: 12px; font-size: 14.5px; line-height: 1.8; color: rgba(255, 255, 255, .62); }
@media (max-width: 1023.98px) { .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) {
  .cap-grid { grid-template-columns: minmax(0, 1fr); }
  .cap-card { padding: 24px 22px 26px; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; }
  .cap-icon { width: 44px; height: 44px; margin: 2px 0 0; grid-row: span 2; border-radius: 12px; }
  .cap-icon svg, .cap-icon img { width: 22px; height: 22px; }
  .cap-title { font-size: 17px; }
  .cap-desc { margin-top: 6px; }
}

/* ==========================================================================
   合作流程 #process
   ========================================================================== */
.process-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; counter-reset: step; }
.process-step { position: relative; padding: 0 28px 0 0; }
.process-step::before {
  /* 连接线 */
  content: ""; position: absolute; left: 56px; right: 0; top: 27px; height: 1px;
  background: repeating-linear-gradient(90deg, var(--brand-200) 0 6px, transparent 6px 12px);
}
.process-step:last-child::before { display: none; }
.process-num {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 26px;
  font-family: var(--font-num); font-size: 22px; font-weight: 700; color: var(--brand);
  background: #fff; border: 1px solid var(--brand-200); border-radius: 50%;
  box-shadow: 0 0 0 6px var(--brand-50);
  transition: background-color .3s, color .3s;
}
.process-step:hover .process-num { background: var(--brand); color: #fff; border-color: var(--brand); }
.process-title { font-size: 18px; }
.process-desc { margin-top: 10px; font-size: 14.5px; color: var(--muted); line-height: 1.8; }
.process-img { margin-top: 18px; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 767.98px) {
  .process-list { grid-template-columns: minmax(0, 1fr); }
  .process-step { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 18px; padding: 0 0 28px; }
  .process-step:last-child { padding-bottom: 0; }
  .process-step::before { left: 22px; right: auto; top: 50px; bottom: 6px; width: 1px; height: auto;
    background: repeating-linear-gradient(180deg, var(--brand-200) 0 6px, transparent 6px 12px); }
  .process-num { width: 44px; height: 44px; margin: 0; font-size: 17px; box-shadow: 0 0 0 4px var(--brand-50); grid-row: span 3; }
  .process-title { font-size: 17px; padding-top: 8px; }
  .process-desc { margin-top: 6px; }
}

/* ==========================================================================
   资质证书 #certificates
   ========================================================================== */
.cert-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.cert-item {
  display: block; padding: 14px 14px 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); cursor: zoom-in;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.cert-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cert-thumb { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: var(--bg-soft); }
.cert-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cert-thumb::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .25s;
  background: rgba(11, 22, 48, .35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 36px no-repeat;
}
.cert-item:hover .cert-thumb::after { opacity: 1; }
.cert-name { display: block; padding: 12px 2px 14px; font-size: 14px; color: var(--ink); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1023.98px) { .cert-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767.98px) {
  .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cert-item { padding: 8px 8px 0; }
  .cert-name { font-size: 13px; padding: 8px 2px 10px; }
}

/* ---------- 灯箱 .lightbox（由 site.js 创建） ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 64px 72px; background: rgba(6, 12, 28, .88);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s linear .25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.lightbox-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox-img {
  max-width: 100%; max-height: calc(100vh - 160px); width: auto; height: auto; object-fit: contain;
  background: #fff; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  transform: scale(.96); transition: transform .3s var(--ease);
}
.lightbox.is-open .lightbox-img { transform: none; }
.lightbox-caption { margin-top: 16px; color: rgba(255, 255, 255, .85); font-size: 15px; text-align: center; }
.lightbox-btn {
  position: absolute; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .12);
  transition: background-color .2s;
}
.lightbox-btn:hover { background: rgba(255, 255, 255, .24); }
.lightbox-btn svg { width: 22px; height: 22px; }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; margin-top: -22px; }
.lightbox-next { right: 16px; top: 50%; margin-top: -22px; }
.lightbox-btn[hidden] { display: none; }
.lightbox-open { overflow: hidden; }
@media (max-width: 767.98px) {
  .lightbox { padding: 64px 12px 88px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 20px; margin-top: 0; }
  .lightbox-prev { left: calc(50% - 56px); }
  .lightbox-next { right: calc(50% - 56px); }
}

/* ==========================================================================
   合作伙伴 #partners
   ========================================================================== */
.partner-grid {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
  background: #fff; border-radius: var(--radius); overflow: hidden;
}
.partner-item {
  display: flex; align-items: center; justify-content: center; height: 112px; padding: 20px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background-color .25s;
}
.partner-item:hover { background: var(--brand-50); }
.partner-item img { max-width: 100%; max-height: 48px; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .25s, opacity .25s; }
.partner-item:hover img { filter: none; opacity: 1; }
.partner-name {
  font-size: 15px; font-weight: 600; color: var(--muted); text-align: center; line-height: 1.4;
  overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 1023.98px) { .partner-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 767.98px) {
  .partner-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .partner-item { height: 76px; padding: 12px; }
  .partner-item img { max-height: 32px; }
  .partner-name { font-size: 12.5px; }
}

/* ==========================================================================
   合作咨询 #contact
   ========================================================================== */
.contact-wrap {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); overflow: hidden;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.contact-aside {
  position: relative; isolation: isolate; overflow: hidden; padding: 52px 44px;
  color: rgba(255, 255, 255, .8); background: var(--brand);
  background-image: linear-gradient(150deg, var(--brand) 0%, var(--brand-700) 100%);
}
.contact-aside::after {
  content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -180px; bottom: -180px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 0 0 60px rgba(255, 255, 255, .04), 0 0 0 120px rgba(255, 255, 255, .03);
}
.contact-aside .section-eyebrow { color: rgba(255, 255, 255, .8); }
.contact-aside .section-title { color: #fff; }
.contact-aside .section-desc { color: rgba(255, 255, 255, .78); }
.contact-list { margin-top: 36px; display: grid; gap: 20px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item-icon {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px;
  background: rgba(255, 255, 255, .14); color: #fff;
}
.contact-item-icon svg { width: 20px; height: 20px; }
.contact-item-label { display: block; font-size: 13px; color: rgba(255, 255, 255, .62); }
.contact-item-value { display: block; font-size: 16px; color: #fff; font-weight: 600; word-break: break-all; }

.lead-form { padding: 52px 48px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.form-field-full { grid-column: 1 / -1; }
.form-label { font-size: 14px; font-weight: 600; color: var(--ink); }
.form-label .req { color: #e5484d; margin-left: 2px; }
.form-control {
  width: 100%; height: 48px; padding: 0 16px; font-size: 15px; color: var(--ink);
  background: var(--bg-soft); border: 1px solid transparent; border-radius: 10px;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.form-control::placeholder { color: #9aa3b5; }
.form-control:hover { border-color: var(--line); }
.form-control:focus { outline: none; background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-a16); }
textarea.form-control { height: auto; min-height: 120px; padding: 12px 16px; resize: vertical; line-height: 1.7; }
select.form-control {
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7489' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.form-control[aria-invalid="true"] { border-color: #e5484d; background-color: #fff; }
/* 蜜罐：对人隐藏，对机器人可见 */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-footer { display: flex; align-items: center; gap: 20px; margin-top: 28px; flex-wrap: wrap; }
.form-footer .btn { min-width: 180px; }
.form-note { font-size: 13px; color: var(--muted); }
.form-status { margin-top: 16px; padding: 12px 16px; border-radius: 10px; font-size: 14px; }
.form-status:empty { display: none; }
.form-status[data-state="success"] { color: #0f7b4a; background: #e8f7ef; }
.form-status[data-state="error"] { color: #c2292e; background: #fdecec; }
.form-status[data-state="pending"] { color: var(--brand-700); background: var(--brand-50); }
.lead-form button[disabled] { opacity: .6; cursor: not-allowed; }

@media (max-width: 1023.98px) {
  .contact-aside { padding: 44px 32px; }
  .lead-form { padding: 44px 32px; }
}
@media (max-width: 767.98px) {
  .contact-wrap { grid-template-columns: minmax(0, 1fr); border-radius: var(--radius); }
  .contact-aside { padding: 32px 22px; }
  .contact-list { margin-top: 24px; gap: 14px; }
  .lead-form { padding: 28px 20px 24px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .form-control { font-size: 16px; } /* iOS 不缩放 */
  .form-footer { gap: 12px; }
  .form-footer .btn { width: 100%; }
}

/* ==========================================================================
   页脚 .site-footer
   ========================================================================== */
.site-footer { background: #070f24; color: rgba(255, 255, 255, .6); font-size: 14px; }
.footer-main { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; padding-top: 72px; padding-bottom: 56px; }
.site-footer .brand-name { color: #fff; }
.footer-intro { margin-top: 18px; max-width: 360px; line-height: 1.9; }
.footer-title { margin-bottom: 18px; font-size: 15px; color: #fff; }
.footer-links { display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 32px; }
.footer-links a:hover, .footer-bottom a:hover { color: #fff; }
.footer-contact { display: grid; gap: 12px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { width: 16px; height: 16px; margin-top: 4px; color: rgba(255, 255, 255, .45); }
.footer-contact span { min-width: 0; word-break: break-all; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
  padding-top: 22px; padding-bottom: 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; color: rgba(255, 255, 255, .45);
}
.footer-beian { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-beian a { display: inline-flex; align-items: center; gap: 6px; }
.footer-beian img, .footer-beian svg { width: 16px; height: 16px; }
@media (max-width: 767.98px) {
  .footer-main { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 48px; padding-bottom: 36px; }
  .footer-nav { display: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; padding-top: 18px; padding-bottom: 22px; }
}

/* ==========================================================================
   H5 底部固定条 .mobile-bar
   ========================================================================== */
.mobile-bar { display: none; }
@media (max-width: 767.98px) {
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; gap: 10px; padding: 10px var(--gutter);
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 24px rgba(11, 22, 48, .06);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .mobile-bar-btn {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; border-radius: 999px; border: 1px solid var(--brand-200);
    font-size: 15px; font-weight: 600; color: var(--brand); background: #fff;
  }
  .mobile-bar-btn.is-primary { flex: 1.6; border-color: var(--brand); background: var(--brand); color: #fff; box-shadow: 0 6px 16px var(--brand-a32); }
  .mobile-bar-btn .icon { width: 18px; height: 18px; }
  body.has-mobile-bar { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}

/* ==========================================================================
   产品详情页 .page-product
   ========================================================================== */
.page-banner { position: relative; padding: 28px 0 0; background: linear-gradient(180deg, var(--brand-50), #fff 70%); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { color: #b5bccb; }
.breadcrumb [aria-current] { color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.product-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 32px 0 72px; }
.product-hero-cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: var(--brand-50); }
.product-hero-cover > img, .product-hero-cover > .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-category {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--brand); background: var(--brand-100);
}
.product-title { margin-top: 16px; font-size: clamp(26px, 3.2vw, 40px); }
.product-intro { margin-top: 16px; font-size: 16.5px; line-height: 1.9; color: var(--text); }
.product-points { display: grid; gap: 12px; margin-top: 26px; }
.product-points li { position: relative; padding-left: 30px; font-size: 15px; color: var(--ink); }
.product-points li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-100);
}
.product-points li::after {
  /* 勾号：用边框画，颜色跟随 --brand */
  content: ""; position: absolute; left: 7px; top: 7px; width: 6px; height: 10px;
  border: solid var(--brand); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.product-detail { padding: 72px 0 96px; border-top: 1px solid var(--line); }
.product-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.product-aside { position: sticky; top: calc(var(--header-h) + 24px); padding: 28px; border-radius: var(--radius-lg); background: var(--bg-soft); }
.product-aside-title { font-size: 18px; }
.product-aside p { margin-top: 10px; font-size: 14px; color: var(--muted); }
.product-aside .btn { margin-top: 20px; }
.product-aside .btn + .btn { margin-top: 10px; }

@media (max-width: 1023.98px) {
  .product-hero { gap: 32px; }
  .product-detail-layout { grid-template-columns: minmax(0, 1fr); }
  .product-aside { position: static; }
}
@media (max-width: 767.98px) {
  .page-banner { padding-top: 16px; }
  .product-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 20px 0 44px; }
  .product-hero-cover { border-radius: var(--radius); }
  .product-intro { font-size: 15.5px; }
  .product-actions .btn { flex: 1 1 140px; }
  .product-detail { padding: 44px 0 56px; }
}

/* ---------- 富文本 .rich-text（后台编辑器产出的 HTML） ---------- */
.rich-text { font-size: 16px; line-height: 1.9; color: var(--text); overflow-wrap: anywhere; }
.rich-text > :first-child { margin-top: 0; }
.rich-text > :last-child { margin-bottom: 0; }
.rich-text h1, .rich-text h2, .rich-text h3, .rich-text h4 { margin: 1.8em 0 .7em; }
.rich-text h1 { font-size: 28px; }
.rich-text h2 { font-size: 24px; padding-left: 14px; border-left: 4px solid var(--brand); line-height: 1.3; }
.rich-text h3 { font-size: 20px; }
.rich-text h4 { font-size: 17px; }
.rich-text p { margin: 0 0 1.1em; }
.rich-text a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.rich-text strong, .rich-text b { color: var(--ink); }
.rich-text ul, .rich-text ol { margin: 0 0 1.2em; padding-left: 1.6em; }
.rich-text ul { list-style: disc; }
.rich-text ol { list-style: decimal; }
.rich-text li { margin: .35em 0; }
.rich-text li::marker { color: var(--brand); }
.rich-text img, .rich-text video, .rich-text iframe { max-width: 100%; height: auto; border-radius: 12px; }
.rich-text img { display: inline-block; margin: .6em 0; }
.rich-text figure { margin: 1.4em 0; }
.rich-text figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); text-align: center; }
.rich-text blockquote {
  margin: 1.4em 0; padding: 16px 20px; border-left: 4px solid var(--brand);
  background: var(--brand-50); border-radius: 0 12px 12px 0; color: var(--ink);
}
.rich-text blockquote p:last-child { margin-bottom: 0; }
.rich-text hr { margin: 2em 0; border: 0; border-top: 1px solid var(--line); }
.rich-text table { display: block; width: 100%; max-width: 100%; overflow-x: auto; margin: 1.4em 0; border-collapse: collapse; font-size: 15px; }
.rich-text th, .rich-text td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; }
.rich-text th { background: var(--bg-soft); color: var(--ink); }
.rich-text pre { overflow-x: auto; padding: 16px; background: var(--bg-soft); border-radius: 10px; font-size: 14px; }
.rich-text code { font-family: ui-monospace, Consolas, monospace; font-size: .92em; }
@media (max-width: 767.98px) {
  .rich-text { font-size: 15.5px; }
  .rich-text h2 { font-size: 20px; }
  .rich-text h3 { font-size: 18px; }
}

/* ---------- 底部 CTA 横幅 ---------- */
.cta-band { padding: 0 0 96px; }
.cta-band-inner {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 44px 52px; border-radius: var(--radius-lg); color: rgba(255, 255, 255, .8);
  background: var(--ink);
}
.cta-band-inner::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: radial-gradient(600px 300px at 100% 0%, var(--brand-a32), transparent 70%),
    radial-gradient(400px 240px at 0% 100%, var(--brand-a16), transparent 70%);
}
.cta-band-title { font-size: 24px; color: #fff; }
.cta-band-inner p { margin-top: 8px; }
.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; flex: none; }
@media (max-width: 767.98px) {
  .cta-band { padding-bottom: 56px; }
  .cta-band-inner { flex-direction: column; align-items: stretch; padding: 28px 22px; gap: 20px; }
  .cta-band-title { font-size: 20px; }
  .cta-band-actions .btn { flex: 1 1 140px; }
}

/* ---------- 404 ---------- */
.page-404 { padding: 120px 0; text-align: center; }
.page-404-code { font-family: var(--font-num); font-size: 96px; font-weight: 700; line-height: 1; color: var(--brand); }
.page-404 h1 { margin-top: 16px; font-size: 24px; }
.page-404 p { margin: 10px 0 28px; color: var(--muted); }

/* ---------- 长文本兜底：后台录入的超长标题/无空格英文不撑破布局 ---------- */
.hero-title, .hero-subtitle, .section-title, .section-desc, .product-name, .product-summary,
.cap-title, .cap-desc, .process-title, .process-desc, .product-title, .product-intro,
.contact-item-value, .footer-intro, .cta-band-title { overflow-wrap: anywhere; }

/* ---------- 占位图（仅设计稿使用） ---------- */
.ph { display: grid; place-items: center; background-color: var(--brand-100); color: rgba(255, 255, 255, .9); }
.ph > svg { width: 38%; height: auto; max-height: 70%; }

/* ---------- 入场动画（仅 JS 开启且未要求减少动态时） ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

@media print {
  .site-header, .mobile-bar, .hero-dots, .lightbox { display: none !important; }
}

/* ==========================================================================
   聊天浮窗与 H5 底部条（Task 9）
   页面自带 .mobile-bar（留言 + 在线咨询[data-open-chat]）时，隐藏浮窗自己的 .cw-bar，避免两条底栏叠在一起；
   未读红点画在"在线咨询"按钮上：chat-widget.js 在有未读时给 [data-open-chat] 加 .has-unread（并更新 aria-label）。
   依赖 chat.css / chat-widget.js 的类：.cw-bar、body.cw-has-bar。
   ========================================================================== */
@media (max-width: 767.98px) {
  body.has-mobile-bar .cw-bar { display: none; }
  body.has-mobile-bar.cw-has-bar { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .mobile-bar-btn[data-open-chat] { position: relative; }
  .mobile-bar-btn[data-open-chat].has-unread::after {
    content: ""; position: absolute; top: 4px; right: 12px;
    width: 12px; height: 12px; border-radius: 50%;
    background: #e5484d; border: 2px solid #fff;
  }
}
