/* ============================================================================
   自定义字体声明 —— 已停用（改用网页默认字体）

   停用原因：
     ① 思源黑体（SourceHanSansCN）观感偏「设计感」，用户希望用系统默认字体；
     ② Arial 原走远程 bonnray.com 外链加载，白耗带宽且跨域易失败。

   当前 body 使用系统字体栈，见下方 body 规则。

   ── 如何恢复 ──

@font-face {
  font-family: "SourceHanSansCN";
  src: url("../font/SourceHanSansCN-Regular.woff2") format("opentype");
  font-weight: 400; font-style: normal;
}

@font-face {
  font-family: "SourceHanSansCN";
  src: url("../font/SourceHanSansCN-Bold.woff2") format("opentype");
  font-weight: 700; font-style: normal;
}

@font-face {
  font-family: "SourceHanSansCN";
  src: url("../font/SourceHanSansCN-Heavy.woff2") format("opentype");
  font-weight: 900; font-style: normal;
}

— Arial 常规体（远程外链）—
@font-face {
  font-family: "ArialLocal";
  src: url("https://bonnray.com/static/addons/cms/dist/fonts/arial.ttf") format("truetype");
  font-weight: 400; font-style: normal;
}

— Arial 粗体 —
@font-face {
  font-family: "ArialLocal";
  src: url("https://bonnray.com/static/addons/cms/dist/fonts/arialbd.ttf") format("truetype");
  font-weight: 700; font-style: normal;
}

— .hansan 工具类，依赖上面已停用的 SourceHanSansCN —
.hansan { font-family: "SourceHanSansCN"; }
*/

body{
    /* 网页默认字体：调用各平台系统原生 UI 字体，避免自定义字体的「设计感/AI 味」
       - macOS / iOS  → 苹方（PingFang SC）
       - Windows      → 微软雅黑（Microsoft YaHei）
       - Android      → 思源黑体（Noto Sans CJK）
       最后兜底到 sans-serif，交给浏览器决定。
       注：原自定义字体栈 "Arial","SourceHanSansCN" 见下方注释，可随时恢复。 */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue",
                 Helvetica, Arial, sans-serif;
    /* 正文字阶抬升：原 65% 的元素继承 root 默认 13.3px（1600 视口），
       全站文字挤在同一字号上，小、密、平 —— 「AI 味」最大来源。
       max() 窄屏按 14px 保底、宽屏跟随 rem 缩放；不影响 rem 间距体系。 */
    font-size: max(1rem, 14px);
    /* 原写法（恢复时替换上面这一段即可）：
       font-family:"Arial","SourceHanSansCN" ; */
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* user-select: none; */
  position: relative;
}
:root {
  /* 根字号可缩放，所有 rem 尺寸随之等比变化 */
  font-size: clamp(13px, 0.83333vw, 16px);
  /* 版心左右留白：宽屏居中，窄屏最少 10rem。
     注意：窄屏下 10rem 在 390px 视口上约 130px/侧，留给内容的宽度很紧，
     个别卡片容器会贴边甚至外溢 —— 已在下方用 html/body 裁剪兜住横向滚动。 */
  --px: max(calc((100vw - 1580px) / 2), 10rem);
  --theme-color: #112967;
  --transition-default: all 0.4s ease-in-out;
  --swiper-navigation-color: var(--theme-color);
  /* 动效统一缓动与时长：克制专业，无弹跳 */
  --ease-enter: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-enter: 0.7s;
}

/* =================================
   横向溢出兜底
   .lrPadding 在窄屏下留白偏大，个别整宽容器会溢出几个像素，
   导致整页可以左右拖动（移动端观感很差）。
   这里在根元素上裁掉横向溢出：内部的横向滑动轮播
   （overflow-x:auto）不受影响，仍可在容器内正常滑动。
   ================================= */
html {
  overflow-x: clip;
}
@supports not (overflow-x: clip) {
  html { overflow-x: hidden; }
}
body {
  overflow-x: clip;
  max-width: 100%;
}
@supports not (overflow-x: clip) {
  body { overflow-x: hidden; }
}
.transitionDefault {
  transition: var(--transition-default);
}
.lrPadding {
  padding-left: var(--px);
  padding-right: var(--px);
}
/* 滚动条样式 */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-thumb {
  background: var(--theme-color);
  border-radius: 1.25rem;
  width: 2px;
  height: 4px !important;
}
/* ==========================================================================
   图片渐显 —— 消除图片「啪」地弹出的廉价感
   ========================================================================== */
.img-fade {
  opacity: 0;
  transition: opacity 0.75s var(--ease-enter);
}
.img-fade.img-loaded {
  opacity: 1;
}
/* 大图额外做一层缩放收束；起始略大，落定回 1，模拟「对焦」 */
.img-fade.img-loaded-lg {
  animation: imgFocus 1s var(--ease-enter) both;
}
@keyframes imgFocus {
  from { transform: scale(1.045); }
  to { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .img-fade { transition-duration: 0.01s; }
  .img-fade.img-loaded-lg { animation: none; }
}

/* ==========================================================================
   卡片指针跟随 —— 光效扫过 + 极轻微 3D 倾斜
   ========================================================================== */
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  [card] {
    position: relative;
    transform-style: preserve-3d;
    /* 位移用 translate3d 重写，避免与已有 hover 位移冲突；倾斜由变量驱动 */
    transform:
      perspective(900px)
      rotateX(var(--tilt-x, 0deg))
      rotateY(var(--tilt-y, 0deg));
    transition:
      box-shadow 0.45s var(--ease-enter),
      border-color 0.45s var(--ease-enter),
      background-color 0.45s var(--ease-enter);
    will-change: transform;
  }
  /* 原有的 hover 上浮，改由 translate 表达，与倾斜叠加 */
  [card]:hover {
    transform:
      perspective(900px)
      rotateX(var(--tilt-x, 0deg))
      rotateY(var(--tilt-y, 0deg))
      translateY(-8px);
  }

  /* 光效：跟随指针位置的一团柔光 */
  [card]::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s var(--ease-enter);
    background: radial-gradient(
      320px circle at var(--glow-x, 50%) var(--glow-y, 50%),
      rgba(17, 41, 103, 0.1),
      rgba(17, 41, 103, 0.04) 40%,
      transparent 70%
    );
  }
  [card].card-active::after { opacity: 1; }

  /* 边框高亮：指针进入时描边渐显，呼应主题色 */
  [card].card-active {
    border-color: rgba(17, 41, 103, 0.28) !important;
    box-shadow: 0 18px 44px -12px rgba(17, 41, 103, 0.22);
  }

  /* 图标随指针轻微横向跟手 */
  [card] .card-icon {
    transform: translateX(var(--icon-shift, 0));
    transition: transform 0.2s ease-out;
  }
}

/* ==========================================================================
   鼠标视差层 —— 纯 transform 位移，不影响文档流
   ========================================================================== */
[parallax-pointer] {
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  [parallax-pointer] { transform: none !important; }
}


[tr-enter],
[tr-enter-left] {
  transition:
    opacity var(--dur-enter) var(--ease-enter),
    transform var(--dur-enter) var(--ease-enter),
    filter var(--dur-enter) var(--ease-enter);
  will-change: opacity, transform;
}

/* ---- 默认级：上浮淡入（位移从 2rem 收敛到 1.25rem，更克制）---- */
[tr-enter=""] {
  transform: translate3d(0, 1.25rem, 0);
  opacity: 0;
}

/* ---- 卡片级：上浮 + 轻微纵深化，配合逐项错峰 ---- */
[tr-enter="rise"] {
  transform: translate3d(0, 2.25rem, -40px);
  opacity: 0;
}

/* ---- 标题级：遮罩上推，文字像被从下方擦出来 ---- */
[tr-enter="wipe"] {
  opacity: 1;                      /* 由内层 span 承担淡入，外层始终可见 */
  clip-path: inset(0 0 100% 0);    /* 起始：完全裁剪（自下而上露出） */
  transform: translate3d(0, 0.9rem, 0);
  transition:
    clip-path 0.9s var(--ease-enter),
    transform 0.9s var(--ease-enter);
}
[tr-enter="wipe"][tr-enter] { transition-delay: 0.05s; }

/* ---- 揭示级：裁切 + 微缩放，用于图片与大视觉块 ---- */
[tr-enter="reveal"] {
  opacity: 0;
  clip-path: inset(12% 8% 12% 8% round 1.875rem);
  transform: scale(1.025);
  transition:
    opacity 0.75s var(--ease-enter),
    clip-path 0.9s var(--ease-enter),
    transform 0.9s var(--ease-enter);
}

/* ---- 左侧滑入：幅度收敛（原为 -10vw，过冲明显）---- */
[tr-enter-left=""] {
  transform: translate3d(-3.5rem, 0, 0);
  opacity: 0;
}

/* ---- 逐项错峰：容器加 stagger，子元素依次入场 ---- */
[stagger] > * {
  /* opacity: 0; */
  transform: translate3d(0, 2.25rem, -40px);
  transition:
    opacity 0.7s var(--ease-enter),
    transform 0.7s var(--ease-enter);
}
[stagger][tr-enter="true"] > *,
[stagger][tr-enter] > * {
  opacity: 1;
  transform: none;
}
/* 错峰间隔：最多排到第 8 项，避免长列表尾部等待过久 */
[stagger][tr-enter="true"] > *:nth-child(1), [stagger][tr-enter] > *:nth-child(1) { transition-delay: 0.06s; }
[stagger][tr-enter="true"] > *:nth-child(2), [stagger][tr-enter] > *:nth-child(2) { transition-delay: 0.14s; }
[stagger][tr-enter="true"] > *:nth-child(3), [stagger][tr-enter] > *:nth-child(3) { transition-delay: 0.22s; }
[stagger][tr-enter="true"] > *:nth-child(4), [stagger][tr-enter] > *:nth-child(4) { transition-delay: 0.3s; }
[stagger][tr-enter="true"] > *:nth-child(5), [stagger][tr-enter] > *:nth-child(5) { transition-delay: 0.38s; }
[stagger][tr-enter="true"] > *:nth-child(6), [stagger][tr-enter] > *:nth-child(6) { transition-delay: 0.46s; }
[stagger][tr-enter="true"] > *:nth-child(n+7), [stagger][tr-enter] > *:nth-child(n+7) { transition-delay: 0.52s; }

/* 入场完成后释放 will-change，避免长期占用图层 */
[tr-enter="true"],
[tr-enter-left="true"] {
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  [tr-enter],
  [tr-enter-left],
  [stagger] > * {
    transition-duration: 0.01s !important;
    transition-delay: 0s !important;
  }
}
a {
  text-decoration: none;
  color: inherit;
}

button {
  outline: none;
  background: none;
  border: none;
  height: auto;
  width: auto;
  cursor: pointer;
  display: flex;
  align-items: center;
  user-select: none;
}
[button] {
  border: none;
  cursor: pointer;
  display: inline-block;
  position: relative !important;
  inset: 0 !important;
  margin: 0 !important;
  border: 1px solid var(--origin-bg, currentColor);
  height: 3rem ;
  width: max-content;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.2rem;
  gap: 0.5rem;
  border-radius: 0.375rem;
  background: linear-gradient(
    to right,
    var(--hover-bg, var(--theme-color)) 50%,
    var(--origin-bg, transparent) 50%
  );
  background-size: 210% 100%;
  background-position: 98% 0;
  transition: var(--transition-default);
  user-select: none;
}
[button="arrow"],
[button="arrow-l"] {
  border-radius: 10000px;
  width: 3.125rem !important;
  height: 3.125rem !important;
  padding: 0;
}
[button="arrow"]:after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M8 10H18 M18 10 L14 6 M18 10 L14 14' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='4' cy='10' r='0.8' fill='black'/%3E%3Ccircle cx='6.5' cy='10' r='0.8' fill='black'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  transition: var(--transition-default);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M8 10H18 M18 10 L14 6 M18 10 L14 14' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='4' cy='10' r='0.8' fill='black'/%3E%3Ccircle cx='6.5' cy='10' r='0.8' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
}
[button="arrow-l"]:after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M12 10H2 M2 10 L6 6 M2 10 L6 14' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='14' cy='10' r='0.8' fill='black'/%3E%3Ccircle cx='16.5' cy='10' r='0.8' fill='black'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  transition: var(--transition-default);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M12 10H2 M2 10 L6 6 M2 10 L6 14' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='14' cy='10' r='0.8' fill='black'/%3E%3Ccircle cx='16.5' cy='10' r='0.8' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
}
[button="close"]:after {
  content: "";
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M2 10H18' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-size: 80%;
  mask-position: center;
}
[button="open"]:after {
  content: "";
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M2 10H18 M10 2V18' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-size: 80%;
  mask-position: center;
}
[button]:hover {
  background-position: 0 0;
  color: var(--hover-text, white) !important;
  border-color: var(--hover-bg, var(--theme-color));
}
/* ---------- 按钮按下反馈（补交互）----------
   此前 [button] 只有 hover 变色，点击时与悬停态完全一致，用户无法确认
   「按下了」。这里补两级反馈：
     · :active  —— 物理下压 2px + 阴影收紧，模拟按键行程
     · :focus-visible —— 键盘 Tab 时的描边，兼顾无障碍
   纯 transform / box-shadow，不触发布局重排。 */
[button] {
  transition: transform .18s var(--ease-out-soft, ease),
              box-shadow .22s var(--ease-out-soft, ease),
              background-color .3s ease,
              color .3s ease,
              border-color .3s ease;
  will-change: transform;
}
[button]:active {
  transform: translateY(2px) scale(.985);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .18) !important;
}
[button]:focus-visible {
  outline: 2px solid var(--hover-bg, var(--theme-color));
  outline-offset: 3px;
  border-radius: 2px;
}
/* 触屏没有 hover，:active 会「粘住」，用媒体查询限定只在有精确指针时生效 */
@media (hover: hover) and (pointer: fine) {
  [button]:active { transform: translateY(2px) scale(.985); }
}
@media not (hover: hover) {
  [button]:active { transform: none; }
  [button] { transition: background-color .3s ease, color .3s ease, border-color .3s ease; }
}
/* :is([button="arrow"], [button="arrow-l"]):after {
  content: "";
  transform: translateX(40%);
} */
/* ── 标题排版 ──
   原为 line-height:1，那是英文标题的用法；中文方块字满格，行高 1.0 会让
   行与行完全贴合、视觉堆叠（用户反馈的「AI 味」主要来源之一）。
   改用 1.25 / 1.2 并给大字标题加入极轻字距，让标题有呼吸感。 */
h1 {
  font-size: 3rem;
  font-weight: bold;
  color: #1F2733;
  line-height: 1.25;
  letter-spacing: 0.01em;
}
h2 {
  font-size: 3rem;
  font-weight: bold;
  color: #1F2733;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
/* 正文段落：原为浏览器默认行高（中文下约等于 1.0，过于拥挤），提到 1.75 */
p {
  /* line-height: 1.75; */
  /* text-align: justify; */
}
section {
  /* font-size: 1rem; */
  /* 纯 #222 黑偏「生硬」，改带蓝调的深灰更有质感；继承给所有未显式设色的文本 */
  color: #3A4150;
}
/* ── 中文正文可读性 ──
   原模板正文多为 .text-14（0.875rem），在窄视口下仅 11.67px，中文偏小。
   处理原则：只抬「小字号类」的下限，不做任何全局行高/字距干预 ——
   全局改动会连带改变各板块既有观感（用户已明确反馈不希望如此）。
   max() 只抬下限：宽屏 root=16px 时按原 rem 渲染，布局与原来一致。 */
.text-14 {
  font-size: max(1.1rem, 8.5px);
}
.text-13 {
  font-size: max(0.8125rem, 13px);
}
.text-12 {
  font-size: max(0.75rem, 12.5px);
}

[bg] {
  object-fit: cover;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ---- CTA 表单板块（#formBox）底图渐变罩 ----
   底图为高亮度蓝天厂区照片，白色标题与表单文字直接叠图近乎不可见（用户反馈）。
   三层渐变：左侧标题区最强、右侧表单区次之，中部减淡保留建筑轮廓；
   底部整版加深收边。层级用显式 z-index 钉死：img(树序在前) < 罩层(z0) < 内容(z1)，
   不依赖 tr-enter 入场动画残留的堆叠上下文，入场前后表现一致。 */
#formBox .form-shade {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 22, 50, 0.66) 0%, rgba(10, 22, 50, 0.36) 30%, rgba(10, 22, 50, 0) 56%),
    linear-gradient(270deg, rgba(10, 22, 50, 0.66) 0%, rgba(10, 22, 50, 0.40) 30%, rgba(10, 22, 50, 0) 60%),
    linear-gradient(180deg, rgba(10, 22, 50, 0.28) 0%, rgba(10, 22, 50, 0.16) 40%, rgba(10, 22, 50, 0.40) 100%);
}
#formBox > div {
  position: relative;
  z-index: 1;
}
/* 表单可读性补强：全局占位符 0.4、字段下划线 0.3 叠在渐变罩上仍偏弱（实测截图），
   仅在 #formBox 内提亮，不影响其它板块的输入框 */
#formBox input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}
#formBox .custom-input {
  border-bottom-color: rgba(255, 255, 255, 0.5);
}
/* 窄屏上下堆叠：左右渐变失去意义，改为整版上下渐变保证全宽可读。
   手机照片取景更满，原 0.55/0.40/0.62 压不住顶部天空与厂房高光，
   标题与按钮仍发虚，这里整体加深一档（桌面端不适用）。 */
@media (max-width: 1023.98px) {
  #formBox .form-shade {
    background: linear-gradient(
      180deg,
      rgba(10, 22, 50, 0.88) 0%,
      rgba(10, 22, 50, 0.74) 38%,
      rgba(10, 22, 50, 0.62) 56%,
      rgba(10, 22, 50, 0.9) 100%
    );
  }
}
.img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 1023.98px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  :root{
    --px: max(calc((100vw - 1400px) / 2), 1.2rem);
     font-size:14px;
  }
}
@media (min-width:1024px){
    [card] {
      transition: var(--transition-default);
    }
    [card]:hover {
      transform: translateY(-10px);
    }
}

[line] {
  width: max-content;
}
[line]:after {
  content: "";
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: var(--transition-default);
  position: absolute;
  bottom: 0;
  left: 0;
}
[line]:hover:after {
  content: "";
  width: 100%;
}

[circleButton] {
  background: radial-gradient(
      circle at center,
      var(--theme-color) 50%,
      transparent 50%
    )
    no-repeat center;
  background-size: 0 0;
  transition: var(--transition-default);
}
[circleButton]:hover {
  background-size: 200% 200%;
  border-color: var(--theme-color);
  color: white;
  box-shadow: var(--theme-color) 0 0 6px;
}

@property --num {
  syntax: "<integer>";
  initial-value: 0;
  inherits: false;
}
input {
  border: none;
  outline: none;
  background: transparent;
}
input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

:root {
  /* swiper滚动条样式 */
  --swiper-navigation-size: 2rem !important;
  --swiper-scrollbar-bg-color: rgba(3, 13, 41, 0.1);
  --swiper-scrollbar-drag-bg-color: var(--theme-color);
}
/**swiper*/
.swiper-scrollbar {
  width: 100% !important;
  height: 2px !important;
  position: relative !important;
  left: 0 !important;
  margin-top: 3.75rem;
}

/**分页**/
.swiper-pagination-current {
  font-size: 1rem;
  color: var(--theme-color);
  line-height: 1;
}
.swiper-pagination {
  width: auto !important;
  font-size: 1rem !important;
  color: rgba(34, 34, 34, 0.3) !important;
  /* 原为 font-family: regular —— "regular" 不是合法字体名，浏览器会忽略此行。
     已删除，让分页数字继承 body 的默认字体。 */
  line-height: 1;
  position: relative !important;
  inset: 0 !important;
}
.swiper-pagination-total {
  font-size: 1rem;
  color: rgba(34, 34, 34, 0.3);
  line-height: 1;
}

.swiper-slide {
}

/* 翻页 */
#pages {
  display: flex;
  gap: 0.625rem;
}
#pages > li {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #222;
  font-size: 0.875rem;
  cursor: pointer;
  background: rgba(226, 226, 231, 0.5);
}
#pages a{
    width:100%;
    height:100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
#pages > li:last-of-type :is(a, span),
#pages > li:first-of-type :is(a, span) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
}
#pages > li:first-of-type:before {
  content: "";
  display: inline-block;
  width: 60%;
  height: 60%;
  background-color: black; /* 通过 color 控制图标颜色 */
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M60 30 L40 50 L60 70' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M60 30 L40 50 L60 70' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
}

#pages > li:last-of-type:before {
  content: "";
  display: inline-block;
  width: 60%;
  height: 60%;
  background-color: black; /* 通过 color 控制图标颜色 */

  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M40 30 L60 50 L40 70' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
}
#pages > li:hover {
  background: var(--theme-color);
  color: white;
}
#pages > li:first-of-type:hover:before,
#pages > li:last-of-type:hover:before {
  content: "";
  background: white;
}
#pages .active {
  background: var(--theme-color);
  color: white;
}

[currentTab] {
  color: var(--theme-color);
  border-bottom: 2px solid var(--theme-color);
}

/* 首页和产品底部表单 */
@media (min-width: 1024px) {
  .form-bg {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 8rem 100%);
    padding-left: 12rem;
    padding-block: 8.25rem;
  }
}
.custom-input:has(> :focus) {
  border-color: white;
}
textarea {
  background: transparent;
  outline: none;
  border: none;
}
/* 省略两行 */
.ellipsis {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height:1.4;
}
.ellipsis3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height:1.4;
}

[class*="-out"]>.swiper-wrapper>.swiper-slide:not(.swiper-slide-active) {
  opacity: 0 !important;
}
.ripple {
  position: absolute;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 1.875rem;
  background: currentColor; /* 实心圆点 */
}

/* 两个伪元素共用基础样式 */
.ripple::before,
.ripple::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid currentColor;
  animation: expand 3s ease-out infinite;
}

/* ::before 先启动 */
.ripple::before {
  animation-delay: 0s;
}

/* ::after 延迟 1.5s 启动，形成依次扩散 */
.ripple::after {
  animation-delay: 1.5s;
}

@keyframes expand {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}
dialog {
  /* 外观 */
  border: none;
  background: linear-gradient(#dfe5ef, white);
  box-shadow: 0px 15px 114px 0px rgba(0, 0, 0, 0.05);
  max-width: 30rem;
  width: 80%;
  max-height: 60vh;
  overflow-y: auto;
  position: fixed;
  margin: auto;
  
  /* 入场动画 */
  animation: dialogIn 0.3s ease;
}
dialog>div{
      padding: 1.875rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
dialog  span {
  text-align: center;
}

/* ===== 4. 入场动画 ===== */
@keyframes dialogIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* ===== 2. 遮罩层 ===== */
dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}



input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-text-fill-color: white !important; 
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important; /* 用纯白内阴影覆盖背景，可替换 #fff 为你需要的颜色 */
    box-shadow: 0 0 0 1000px transparent inset !important; /* 标准属性，增加兼容性 */
    transition: background-color 5000s ease-in-out 0s; /* 可选：用于应对其他特殊情况 */
    background-color: transparent !important; /* 保留，但主要靠 box-shadow 生效 */
}


/* ==========================================================================
   新闻动态板块 —— 配图占位块
   static/picture 下暂无新闻缩略图，先用浅中性底 + 编号水印占位：
   原主题蓝渐变色块在整排浅色卡里像漏出的「AI 占位图」，改浅灰蓝；
   后续把真实图塞进 .news-thumb 里 <img> 即可无缝替换。
   ========================================================================== */
.news-thumb {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 82% 8%, rgba(255, 255, 255, 0.55), transparent 58%),
    linear-gradient(135deg, #E9EDF4 0%, #EFF2F7 52%, #DFE5EF 100%);
}
/* 斜向光带，让纯色块不至于死板 */
.news-thumb::before {
  content: "";
  position: absolute;
  inset: -30% -10%;
  background: linear-gradient(102deg, transparent 34%, rgba(255, 255, 255, 0.5) 47%, transparent 60%);
  transform: translateX(-18%);
  transition: transform 0.9s var(--ease-enter);
}
.group:hover .news-thumb::before { transform: translateX(18%); }
/* 编号水印 */
.news-thumb::after {
  content: attr(data-thumb-index);
  position: absolute;
  right: 0.9rem;
  bottom: 0.35rem;
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(31, 39, 51, 0.1);
  letter-spacing: -0.04em;
  pointer-events: none;
}
/* 悬停展开正文时缩略图收起，需要一个高度过渡的容器 */
.news-card-thumb {
  height: 16.25rem;
  flex: none;
  transition: height 0.45s var(--ease-enter);
}
.news-card-thumb img { transition: transform 0.6s var(--ease-enter); }
.group:hover .news-card-thumb { height: 0; }
.group:hover .news-card-thumb img { transform: scale(1.06); }

/* 默认 15.75rem（标题 + 一行摘要 + 标签 + 日期刚好填满），
   悬停时缩略图让出的 16.25rem 全部给正文 —— 15.75 + 16.25 = 32 = 悬停后的 32rem，
   卡片总高前后一致，展开时不会把下面板块推下去。 */
.news-card-body {
  height: 15.75rem;
  overflow: hidden;
  transition: height 0.45s var(--ease-enter), background-color 0.45s var(--ease-enter),
    color 0.45s var(--ease-enter), padding-top 0.45s var(--ease-enter);
}
.group:hover .news-card-body {
  height: 32rem;
  background: var(--theme-color);
  color: #fff;
  padding-top: 3.25rem;
}
/* 摘要与分类标签常显（原来只在悬停时浮现，默认卡片中间会空出一大块）
   —— 摘要默认只露一行（桌面卡片宽度下约 20 字，超出打省略号），悬停展开全文。
   注意：只用 CSS 截断，模板只输出一份文本，避免多套变量/条件标签导致整块不渲染。 */
.news-card-extra { display: block; }
.news-card-extra:empty { display: none; }

.news-card-extra.news-ex {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 只在真有悬停能力的设备上展开，触屏保持一行 */
@media (hover: hover) {
  .news-grid > a:hover .news-card-extra.news-ex {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
.news-card-meta { color: rgba(34, 34, 34, 0.7); transition: color 0.45s var(--ease-enter); }
.group:hover .news-card-meta { color: #fff; }
/* 分类筛选条 */
.news-type {
  width: 7.5rem;
  height: 3.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eee;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.35s var(--ease-enter), color 0.35s var(--ease-enter);
}
.news-type[currentType] { background: var(--theme-color); color: #fff; }
@media (max-width: 1023.98px) {
  .news-type { width: 6rem; height: 2.75rem; font-size: 0.875rem; }
  .news-card-thumb { height: 11.5rem; }
  .news-card-body { height: auto; min-height: 0; overflow: visible; }
  /* 窄屏没有 hover，正文常显，不做高度伸展 */
  .group:hover .news-card-body,
  .group:hover .news-card-thumb { height: auto; }
  .news-card-extra { display: block; }
  .news-thumb::after { font-size: 2.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .news-thumb::before,
  .news-card-thumb,
  .news-card-body,
  .news-type { transition-duration: 0.01s; }
}

/* ==========================================================================
   修复：auto_uno.css 中 .bg-#112967/95 的声明被注释掉（{/* … *\/}），
   导致首页「获取 VIP 专属策划方案」表单区白字直接叠在厂区照片上，对比度不足。
   此处按设计意图补回深蓝底（与原类名 95% 不透明度一致）。
   ========================================================================== */
#formBox .form-bg {/* background-color: rgba(17, 41, 103, 0.95); */}

/* ==========================================================================
   产品中心大菜单：卡片内「字小一点、图大一点」，面板总高度保持不变
   --------------------------------------------------------------------------
   面板外框高度由 head.html 的 .h-272（17rem，本站 rem 基准 13px → 221px）
   与 .subNav 的 3rem / 6rem 内边距决定，本条规则完全不碰，所以下拉框高度不变。

   只调卡片内部：
   · 左右内边距 2.5rem → 14px：卡片内容宽 138 → 175px。产品图多为横向机器
     照片，object-contain 下是被「宽度」卡住的，这一条收益最大（宽 +27%）。
   · 上下内边距 1.875rem → 12px：纵向再腾出约 25px 给图片。
   · 标题 1.125rem → 0.9375rem、副标题 0.875rem → 0.8125rem，行高收紧到 1.35。
   字号一律用 rem，跟随站点 13px 基准等比缩放，不要写死 px。
   ========================================================================== */
@media (min-width: 1025px) {
  .productNav .swiper-slide > a {
    /* 高度锁死为舞台高度 .h-272（17rem），并关掉 aspect-ratio-[300/360]：
       卡片宽度决定比例后会算出 244px，比 221px 的舞台高出 23px，多出的部分
       被 .swiperNav 的 overflow:hidden 裁掉，表现为副标题贴着卡片底边。 */
    height: 17rem;
    aspect-ratio: auto;
    padding: 12px 14px;
  }
  /* 图片吃掉剩余空间；原 h-full(100%) 在 flex 列里会被压缩，这里改为 flex:1 */
  .productNav .swiper-slide > a > img {
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    max-height: none;
    min-height: 0;
    object-fit: contain;
  }
  .productNav .swiper-slide > a > span.text-18 {
    font-size: 12px;   /* 基准 13px 下 ≈ 12.2px，原 text-18 为 14.6px */
    line-height: 1.35;
    /* 后台产品名可能很长：最多两行，超出省略，避免把图片压到看不见 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .productNav .swiper-slide > a > span.text-14 {
    font-size: 0.8125rem;   /* ≈ 10.6px，原 text-14 为 11.4px */
    line-height: 1.35;
    margin-top: 0.25rem;
  }
}

/* ==========================================================================
   浮动侧边栏（float-dock）—— 全站公共组件
   --------------------------------------------------------------------------
   引入方式：本文件已被 17 个页面全部引用，样式写好即全站生效；
   结构由 public/footer.html 统一输出（每页都 include），各页无需重复拷贝。

   设计要点：
   · position:fixed + 右侧靠下，不占据文档流，不改变任何页面的原有排版。
   · 容器 pointer-events:none、按钮 auto —— 侧边栏所在的整片区域不会拦截
     页面点击，只有按钮本身可点。
   · 右侧 bottom 5.5rem 起步，专门避开右下角的 BGM 悬浮胶囊（bottom 1rem、
     高 2.5rem），两者不重叠。
   · z-index 900 低于顶部导航的 999 —— 移动端展开导航面板时，侧边栏会被
     面板盖住，不会浮在菜单之上。
   ========================================================================== */
.float-dock {
  position: fixed;
  right: 1.5rem;
  bottom: 5.5rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  pointer-events: none;      /* 空白区域不拦截点击 */
}

.float-dock-btn {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.375rem;           /* rem 基准 13px → 约 44px */
  height: 3.375rem;
  padding: 0;
  border: 1px solid rgba(17, 41, 103, 0.1);
  border-radius: 0.9375rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--theme-color, #112967);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 0.375rem 1.25rem rgba(17, 41, 103, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease,
              transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}
.float-dock-btn svg { display: block; width: 1.125rem; height: 1.125rem; }

.float-dock-btn:hover,
.float-dock-btn:focus-visible {
  background: var(--theme-color, #112967);
  border-color: var(--theme-color, #112967);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0.625rem 1.5rem rgba(17, 41, 103, 0.25);
  outline: none;
}
.float-dock-btn:focus-visible { outline: 2px solid var(--theme-color, #112967); outline-offset: 3px; }
.float-dock-btn:active { transform: translateY(0) scale(0.97); }

/* 返回顶部：停在页顶时压暗一档（仍可见、仍可点），滚动后点亮 */
.float-dock-btn[data-back-top] { opacity: 0.62; }
.float-dock-btn[data-back-top].is-on { opacity: 1; }

/* 悬停/聚焦时从左侧浮出的小标签（触屏没有 hover，移动端直接隐藏） */
.float-dock-tip {
  position: absolute;
  right: calc(100% + 0.625rem);
  top: 50%;
  padding: 0.3125rem 0.625rem;
  border-radius: 0.5rem;
  background: rgba(17, 41, 103, 0.92);
  color: #fff;
  font-size: 0.75rem;
  line-height: 1.4;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(0.375rem);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.float-dock-btn:hover .float-dock-tip,
.float-dock-btn:focus-visible .float-dock-tip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 1023.98px) {
  .float-dock {
    right: 0.75rem;
    bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
    gap: 0.5rem;
  }
  .float-dock-btn {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
  }
  .float-dock-btn svg { width: 1rem; height: 1rem; }
  .float-dock-tip { display: none; }
}

/* 横屏手机/极矮视口：再收小一点，避免挡住内容 */
@media (max-height: 560px) {
  .float-dock { bottom: 3.75rem; gap: 0.375rem; }
  .float-dock-btn { width: 2.5rem; height: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .float-dock-btn,
  .float-dock-tip { transition: none; }
}

/* ==========================================================================
   全站 · 移动端适配层（≤1023.98px）
   --------------------------------------------------------------------------
   本文件被 17 个页面全部引用，放这里的规则对全站生效。
   全部包在移动端断点内，≥1024px 的桌面端一行都不受影响。
   ========================================================================== */
@media (max-width: 1023.98px) {
  /* ---------- ① iOS 横屏字号自动放大 ----------
     iOS 在横屏或字号被系统放大时会给正文「二次放大」，视觉上字突然变很大、
     版式被撑开。显式关掉，字号完全由我们的 rem 体系控制。 */
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  /* ---------- ② 输入框字号必须 ≥16px ----------
     iOS Safari 在聚焦 font-size < 16px 的输入框时会把整页放大，且不会自动缩回，
     用户点一下「您的姓名」页面就被推大了。本站输入框用的是 .text-18，
     手机基准 14px 下只有 15.75px，刚好踩线 —— 这里统一抬到 16px。
     视觉差异不到 1px，换来的是不再跳缩放。 */
  input,
  textarea,
  select {
    font-size: 16px !important;
  }

  /* ---------- ③ 点击高亮 ----------
     Android Chrome 点链接会闪一块灰色方块，破坏「一整卡可点」的观感。
     各交互元素都有自己的 :active 反馈，关掉不影响可感知性。 */
  a,
  button,
  [role="button"],
  .news-type,
  .scheme-items,
  .pro-card,
  .pcard-v2 {
    -webkit-tap-highlight-color: transparent;
  }

  /* ---------- ④ 锚点跳转不要被固定导航压住 ----------
     导航是 fixed 的 5rem 高（+ 刘海安全区）。页面内锚点（如首页「预约 VIP 方案讲解」
     跳到 #formBox）默认会把目标顶到视口最上方，正好被导航条盖掉一截。 */
  section[id],
  [id="formBox"],
  main [id] {
    scroll-margin-top: calc(5rem + env(safe-area-inset-top, 0px) + 8px);
  }

  /* ---------- ④b 板块标题断行 ----------
     中文标题在手机窄栏里经常只剩一两个字落在第二行（如「获取 VIP 专属策划 / 方案」）。
     balance 让两行长度接近，桌面端不动。 */
  section h1,
  section h2 {
    /* text-wrap: balance; */
  }

  /* ---------- ⑤ 图片兜底 ----------
     后台富文本、幻灯片里可能带 width 属性的大图，窄屏会顶出横向滚动条。 */
  img {
    max-width: 100%;
  }

  /* ---------- ⑥ 浮动侧边栏触控目标 ----------
     rem 在手机上按 14px 基准算，2.75rem 只有 38.5px，低于 44px 的触控下限。
     这里直接写 px，并用安全区抬离 Home 指示条（footer.html 内联样式同值兜底）。 */
  .float-dock {
    right: 0.875rem;
    /* 与 footer.html 内联样式保持一致：上移让开右下角背景音乐胶囊 */
    bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
    gap: 0.5rem;
  }
  .float-dock-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .float-dock-btn svg {
    width: 18px;
    height: 18px;
  }
}

/* ---------- ⑦ 触屏没有 hover：不要留「按下后一直描边」的残留 ---------- */
@media (hover: none) and (pointer: coarse) {
  [line]:hover::after { width: 0; }
  [circleButton]:hover { background-size: 0 0; color: inherit; box-shadow: none; }
}

/* ==========================================================================
   韩语版修正：桌面端产品中心下拉面板铺满视口宽度
   --------------------------------------------------------------------------
   原 .subNav 为 position:absolute; left:0; width:100vw。线上若其定位参照为
   .navItem，面板会从「产品中心」导航项位置起始；多语言导航文案较长时，该项被
   推到导航中部，面板随之中移，表现为左侧空白、内容右移。此处改为相对视口定位，
   强制从屏幕左缘铺满，恢复与其它语言一致的全宽下拉。仅桌面（≥1025px）生效，
   移动端布局不受影响；保留原有 scaleY 显隐动画与 hover 交互。
   注意：选择器必须限定 .productNav（产品中心 mega 面板），不可用 :not(#mbpro)
   之类宽泛匹配，否则会把「信息中心」等 small 普通下拉也拉成全宽。
   ========================================================================== */
@media (min-width: 1025px) {
  .navItem > .subNav.productNav {
    position: fixed !important;
    left: 0 !important;
    top: 100px !important;              /* 桌面导航高度 lg:h100 */
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
  }
}
