/* ============================================================
   企业介绍页 - 高端定制样式（含完整移动端适配）
   粒子系统 · 视差滚动 · 毛玻璃 · 涟漪按钮 · 抽屉导航 · 响应式
   ============================================================ */

/* ── CSS 变量 ── */
:root {
  --primary: #1a365d;
  --primary-light: #2a4a7f;
  --secondary: #c5a572;
  --accent: #e8d5b7;
  --dark: #0f1d32;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── 基础重置 ── */
* { -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* 锚点跳转时避开吸顶导航 */
section[id] { scroll-margin-top: 80px; }

/* ── 无障碍：跳到主要内容（默认隐藏，聚焦时显示） ── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: left 0.2s ease;
}
.skip-link:focus {
  left: 0;
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* ── 无障碍：键盘焦点统一可见（不影响鼠标点击） ── */
.prod-item:focus-visible,
.tab-btn:focus-visible,
.nav-link:focus-visible,
.premium-btn:focus-visible,
.drawer-link:focus-visible,
.drawer-close-btn:focus-visible,
.lang-switch:focus-visible,
.hamburger-btn:focus-visible,
.modal-close-btn:focus-visible,
.modal-cta:focus-visible,
.hero-cta-primary:focus-visible,
.hero-cta-secondary:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}

/* ══════════════════════════════════════
   预加载
   ══════════════════════════════════════ */
#preloader {
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-ring {
  width: 48px; height: 48px;
  border: 3px solid rgba(197,165,114,0.2);
  border-top-color: var(--secondary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 粒子画布 ── */
#particleCanvas { opacity: 0.3; }

/* ══════════════════════════════════════
   导航栏
   ══════════════════════════════════════ */
#mainNav {
  background: rgba(15,29,50,0);
  border-bottom: 1px solid transparent;
  transition: all 0.5s var(--ease-out-expo);
}
#mainNav.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}
#mainNav.scrolled .nav-link { color: #4b5563; }
#mainNav.scrolled .nav-link:hover { color: var(--primary); }
/* 滚动后导航为白色背景：品牌名用纯黑并去掉文字阴影，避免颜色/阴影叠加出灰调 */
#mainNav.scrolled .brand-text { color: #111827; text-shadow: none; }

.nav-brand { text-decoration: none; }
.brand-text { color: #fff; text-shadow: none; transition: color 0.5s; white-space: nowrap; }
.brand-logo-wrapper {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.brand-logo-wrapper img {
  height: 40px;
  width: auto;
  max-width: none;
  object-fit: contain;
}
/* 深浅底色切换：透明深色导航（首屏）用白色字样，滚动后的白色导航用蓝色字样 */
.brand-logo-wrapper .logo-on-light { display: none; }
#mainNav.scrolled .brand-logo-wrapper .logo-on-light { display: block; }
#mainNav.scrolled .brand-logo-wrapper .logo-on-dark { display: none; }
.nav-link {
  color: rgba(255,255,255,0.85);
  position: relative;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  width: 0; height: 2px;
  background: var(--secondary);
  border-radius: 1px;
  transition: all 0.3s var(--ease-out-expo);
  transform: translateX(-50%);
}
.nav-link:hover::after { width: 60%; }

/* 导航内按钮文字不换行 */
#mainNav .premium-btn { white-space: nowrap; }

/* 防止导航元素被压缩换行 */
#mainNav .nav-brand,
#mainNav .lang-switch,
#mainNav .premium-btn { flex-shrink: 0; }

/* lg 宽度下压缩导航间距，保证英文单行排布 */
@media (min-width: 1024px) and (max-width: 1279px) {
  #mainNav .brand-text { font-size: 1.15rem; }
  #mainNav .nav-link { padding-left: 10px; padding-right: 10px; }
  #mainNav .premium-btn { padding-left: 16px; padding-right: 16px; }
}

/* 大屏 PC：品牌 logo 放大，宽度更舒展（按 708:240 比例自动约 159px 宽） */
@media (min-width: 1280px) {
  #mainNav .brand-logo-wrapper img { height: 54px; }
  #mainNav .brand-text { font-size: 1.55rem; }
}

/* ── 汉堡按钮 ── */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.hamburger-btn:active {
  background: rgba(255,255,255,0.2);
  transform: scale(0.95);
}
.hamburger-line {
  display: block;
  width: 20px; height: 2px;
  border-radius: 2px;
  background: white;
  transition: all 0.3s var(--ease-out-expo);
}
/* 滚动后汉堡变深色 */
#mainNav.scrolled .hamburger-btn {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.1);
}
#mainNav.scrolled .hamburger-line { background: var(--dark); }

/* 汉堡激活态 → X */
.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ══════════════════════════════════════
   移动端导航抽屉
   ══════════════════════════════════════ */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}
.mobile-drawer.active { pointer-events: auto; }

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.mobile-drawer.active .drawer-backdrop { opacity: 1; }

.drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 85vw;
  max-width: 340px;
  background: linear-gradient(180deg, var(--dark) 0%, var(--primary) 100%);
  box-shadow: -10px 0 40px rgba(0,0,0,0.3);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out-expo);
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-drawer.active .drawer-panel { transform: translateX(0); }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.drawer-close-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  cursor: pointer;
  transition: all 0.3s;
}
.drawer-close-btn:active {
  background: rgba(255,255,255,0.2);
  transform: scale(0.9);
}

.drawer-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  overflow-y: auto;
}
.drawer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
  border-left: 3px solid transparent;
}
.drawer-link:active {
  background: rgba(255,255,255,0.06);
  border-left-color: var(--secondary);
  color: white;
}
.drawer-link-cta {
  margin: 8px 20px;
  background: linear-gradient(135deg, var(--secondary), #d4b87a);
  color: var(--dark);
  border-radius: 14px;
  padding: 14px 20px;
  font-weight: 700;
  justify-content: center;
  border-left: none;
}
.drawer-link-cta:active {
  background: linear-gradient(135deg, #d4b87a, var(--secondary));
  border-left: none;
  color: var(--dark);
}

/* ── 语言切换按钮 ── */
.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px 8px 10px;
  border-radius: 20px;
  border: 1.5px solid rgba(255,255,255,0.25);
  font-size: 12px;
  cursor: pointer;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  transition: all 0.3s ease;
}
.lang-switch:active {
  border-color: var(--secondary);
  background: rgba(255,255,255,0.15);
  color: white;
}
.lang-switch .lang-zh-text, .lang-switch .lang-en-text {
  transition: color 0.25s ease, font-weight 0.25s ease;
}
.lang-switch.zh .lang-zh-text { color: white; font-weight: 700; }
.lang-switch.zh .lang-en-text { color: rgba(255,255,255,0.4); font-weight: 400; }
.lang-switch.en .lang-zh-text { color: rgba(255,255,255,0.4); font-weight: 400; }
.lang-switch.en .lang-en-text { color: white; font-weight: 700; }
.lang-switch .active-dot {
  width: 18px; height: 3px; border-radius: 2px;
  background: var(--secondary);
  position: absolute; bottom: 3px; left: 7px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lang-switch.en .active-dot { transform: translateX(26px); }

#mainNav.scrolled .lang-switch {
  border-color: #e5e7eb;
  background: white;
  color: #9ca3af;
}
#mainNav.scrolled .lang-switch:active { border-color: var(--secondary); color: var(--primary); }
#mainNav.scrolled .lang-switch.zh .lang-zh-text { color: var(--primary); }
#mainNav.scrolled .lang-switch.en .lang-en-text { color: var(--primary); }
#mainNav.scrolled .lang-switch.zh .lang-en-text { color: #6b7280; }
#mainNav.scrolled .lang-switch.en .lang-zh-text { color: #6b7280; }

/* ══════════════════════════════════════
   Hero 主视觉
   ══════════════════════════════════════ */
/* 桌面端有 3D 视差，移动端禁用 */
@media (min-width: 1024px) {
  #hero { perspective: 1px; }
  .hero-bg-wrapper {
    transform-style: preserve-3d;
    will-change: transform;
  }
  .hero-bg-img {
    transform: translateZ(-1px) scale(2);
  }
}
.hero-bg-img {
  position: absolute;
  inset: -10%;
  background: url('./images/1-1-1.webp') center/cover no-repeat;
  filter: brightness(0.35) saturate(0.8);
}
/* 移动端首屏背景换 800px 小图（124KB → 42KB），弱网首屏更快；背景已压暗，画质差异不可见 */
@media (max-width: 767px) {
  .hero-bg-img {
    background-image: url('./images/1-1-1-800.webp');
  }
}
.hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(15,29,50,0.85) 0%,
    rgba(15,29,50,0.6) 40%,
    rgba(15,29,50,0.8) 100%
  );
}
.hero-grid {
  background-image:
    linear-gradient(rgba(197,165,114,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197,165,114,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* 浮动光斑 - 移动端缩小 */
.floating-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: floatOrb 8s ease-in-out infinite;
}
.orb-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(197,165,114,0.3), transparent);
  top: -10%; left: -5%;
  animation-delay: 0s;
}
.orb-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(42,74,127,0.4), transparent);
  top: 40%; right: -5%;
  animation-delay: -3s;
}
.orb-3 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(197,165,114,0.2), transparent);
  bottom: 10%; left: 30%;
  animation-delay: -6s;
}
@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Hero 文字 */
.hero-badge {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  padding: 6px 16px;
  animation: fadeInDown 1s var(--ease-out-expo) both;
}
.badge-dot {
  width: 7px; height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 12px rgba(197,165,114,0.6);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(197,165,114,0.5); }
  50% { box-shadow: 0 0 20px rgba(197,165,114,0.9); }
}
.badge-text { color: rgba(255,255,255,0.85); }

.hero-title {
  animation: fadeInUp 1s var(--ease-out-expo) 0.2s both;
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
  line-height: 1.3;
}
.hero-title-line { display: inline; }
.hero-title-highlight {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  animation: fadeInUp 1s var(--ease-out-expo) 0.4s both;
}

/* Hero CTA 按钮 */
.hero-cta-primary {
  background: linear-gradient(135deg, var(--secondary), #d4b87a);
  transition: all 0.4s var(--ease-out-expo);
  animation: fadeInUp 1s var(--ease-out-expo) 0.6s both;
  position: relative;
  overflow: hidden;
}
.hero-cta-primary:active {
  transform: scale(0.97);
}
.hero-cta-secondary {
  border: 1.5px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.4s var(--ease-out-expo);
  animation: fadeInUp 1s var(--ease-out-expo) 0.7s both;
}
.hero-cta-secondary:active {
  background: rgba(255,255,255,0.1);
  transform: scale(0.97);
}
.arrow-icon { transition: transform 0.3s var(--ease-out-expo); }

/* Hero 数据指标 */
.hero-stats {
  animation: fadeInUp 1s var(--ease-out-expo) 0.9s both;
}
.stat-item {
  text-align: center;
  padding: 12px 8px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.4s ease;
}
.stat-item:active {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  transform: scale(0.96);
}
.stat-num-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1px;
}
.stat-num {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--secondary);
  line-height: 1.1;
}
.stat-suffix {
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary);
  opacity: 0.6;
}
.stat-label {
  margin-top: 4px;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.03em;
}

/* 滚动指示器 */
.scroll-indicator { animation: fadeInUp 1s var(--ease-out-expo) 1.1s both; }
.scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, rgba(197,165,114,0.8), transparent);
  margin: 0 auto;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Premium 按钮 ── */
.premium-btn {
  background: linear-gradient(135deg, var(--secondary), #d4b87a);
  box-shadow: 0 4px 15px rgba(197,165,114,0.3);
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}
.premium-btn:active { transform: scale(0.96); }

/* ══════════════════════════════════════
   通用 section 样式
   ══════════════════════════════════════ */
.section-header { position: relative; }
.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary);
  display: block;
  margin-bottom: 10px;
}
.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 4px;
}
.section-desc {
  margin-top: 12px;
  color: #6b7280;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  font-size: 0.85rem;
  padding: 0 8px;
}
.gradient-line {
  width: 64px; height: 3px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, transparent, var(--secondary), transparent);
  border-radius: 2px;
}

/* ══════════════════════════════════════
   交互卡片
   ══════════════════════════════════════ */
.interactive-card {
  transition: all 0.4s var(--ease-out-expo);
  cursor: pointer;
}
/* 移动端：轻触替代悬浮，不设位移（避免 3D 倾斜冲突） */
@media (hover: none) and (pointer: coarse) {
  .interactive-card:active {
    transform: scale(0.98);
  }
}

/* ══════════════════════════════════════
   公司简介
   ══════════════════════════════════════ */
.overview-media-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}
.media-frame {
  aspect-ratio: 4/3;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
  position: relative;
  z-index: 2;
}
/* 视频播放按钮（居中圆钮 + 播放中淡出） */
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(56px, 12vw, 78px);
  height: clamp(56px, 12vw, 78px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 29, 50, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.35s var(--ease-out-back),
              background 0.3s ease,
              opacity 0.3s ease;
}
.video-play-btn::after {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  animation: videoBtnPulse 2.4s ease-out infinite;
}
.video-play-btn svg {
  width: 38%;
  height: 38%;
  /* 图标路径包围盒偏右（8~19，中心13.5≠12），左移补偿使其视觉居中 */
  transform: translateX(0);
}
.video-play-btn:hover {
  background: var(--secondary);
  transform: translate(-50%, -50%) scale(1.08);
}
.video-play-btn:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 4px;
}
@keyframes videoBtnPulse {
  0%   { transform: scale(0.9); opacity: 0.8; }
  70%  { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}
/* 加载中：按钮内显示旋转指示 */
.media-frame.is-loading .video-play-btn::before {
  content: '';
  position: absolute;
  width: 34%;
  height: 34%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: videoBtnSpin 0.8s linear infinite;
}
.media-frame.is-loading .video-play-btn svg { opacity: 0; }
@keyframes videoBtnSpin { to { transform: rotate(360deg); } }

/* 边下边播：缓冲暂时跟不上时，画面中央显示转圈（有数据即消失） */
.media-frame.is-buffering::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 40px; height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: videoBtnSpin 0.8s linear infinite;
  z-index: 6;
  pointer-events: none;
}

/* 播放中：淡出按钮，视频本身可点击暂停 */
.media-frame.is-playing .video-play-btn {
  opacity: 0;
  pointer-events: none;
}
/* 视频封面：普通 img（懒加载），盖在 video 上；点击穿透到 video，播放时淡出 */
.video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0f1d32;
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.3s ease;
}
.media-frame.is-playing .video-poster { opacity: 0; }
#companyVideo { cursor: pointer; background: #0f1d32; }

.media-glow {
  position: absolute;
  inset: -14px;
  background: linear-gradient(135deg, var(--secondary), rgba(26,54,93,0.3));
  border-radius: 24px;
  filter: blur(25px);
  opacity: 0.25;
  z-index: 1;
}
.media-badge {
  position: absolute;
  bottom: 12px; left: 12px;
  display: flex; align-items: center; gap: 5px;
  background: rgba(15,29,50,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 5px 12px;
  border-radius: 50px;
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  z-index: 3;
}
.badge-dot-small {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

/* 优势卡片 */
.adv-card {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px;
  border-radius: 14px;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  transition: all 0.3s var(--ease-out-expo);
}
.adv-card:active {
  background: white;
  border-color: rgba(197,165,114,0.3);
  box-shadow: 0 6px 20px rgba(26,54,93,0.05);
}
.adv-icon-wrap {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(26,54,93,0.06), rgba(197,165,114,0.1));
}
.adv-icon { width: 18px; height: 18px; color: var(--primary); }
.adv-title { font-size: 0.85rem; font-weight: 700; color: #111827; }
.adv-desc { font-size: 0.7rem; color: #6b7280; margin-top: 2px; }

/* ══════════════════════════════════════
   产品卡片（热销）- 高端统一风格
   ══════════════════════════════════════ */
.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #f3f4f6;
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
  transition: all 0.4s var(--ease-out-expo);
}
.product-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.product-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.6s var(--ease-out-expo);
}
.product-card:hover .product-img-placeholder {
  transform: scale(1.06);
}
/* 图片光晕掠过 */
.product-img-shimmer {
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(197,165,114,0.15), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
.product-card:hover .product-img-shimmer {
  animation: shimmerSlide 0.8s ease-out forwards;
}
@keyframes shimmerSlide {
  0% { left: -100%; }
  100% { left: 200%; }
}
.product-badge {
  position: absolute;
  top: 10px; left: 10px;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.product-badge.hot {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}
.product-badge.trending {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: white;
}
.product-body { padding: 18px; }
.product-cat {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--secondary);
  background: rgba(197,165,114,0.1);
  padding: 3px 10px;
  border-radius: 5px;
  letter-spacing: 0.03em;
}
.product-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  margin-top: 8px;
  transition: color 0.3s;
}
.product-card:hover .product-name { color: var(--primary); }
.product-desc {
  margin-top: 6px;
  font-size: 0.82rem;
  color: #6b7280;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
}
.product-price { font-size: 1.05rem; font-weight: 900; color: var(--primary); }

/* 技术规格标签 */
.product-specs-row {
  display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap;
}
.product-spec-tag {
  font-size: 0.62rem;
  font-weight: 600;
  color: #6b7280;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

/* 详情按钮 */
.product-detail-btn {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--secondary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 20px;
  transition: all 0.3s var(--ease-out-expo);
}
.product-detail-btn:hover {
  background: rgba(197,165,114,0.08);
  color: var(--primary);
}
.product-detail-btn .btn-arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease-out-expo);
}
.product-detail-btn:hover .btn-arrow {
  transform: translateX(3px);
}
.product-detail-btn-sm {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--secondary);
  background: none;
  border: 1.5px solid rgba(197,165,114,0.25);
  cursor: pointer;
  padding: 5px 14px;
  border-radius: 20px;
  transition: all 0.3s var(--ease-out-expo);
}
.product-detail-btn-sm:hover {
  background: rgba(197,165,114,0.08);
  border-color: var(--secondary);
  color: var(--primary);
}

/* ══════════════════════════════════════
   工业风板块标题
   ══════════════════════════════════════ */
.section-label-industrial {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--industrial-accent);
  display: block;
  margin-bottom: 12px;
  position: relative;
}
.section-label-industrial::before,
.section-label-industrial::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 32px;
  height: 1px;
  background: rgba(245,158,11,0.3);
}
.section-label-industrial::before { right: calc(50% + 80px); }
.section-label-industrial::after { left: calc(50% + 80px); }
.section-title-industrial {
  font-size: 1.6rem;
  font-weight: 800;
  color: #e5e7eb;
  margin-bottom: 4px;
  letter-spacing: 0.06em;
}
.section-desc-industrial {
  margin-top: 12px;
  color: #6b7280;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  font-size: 0.85rem;
  padding: 0 8px;
}
.industrial-divider {
  width: 80px; height: 3px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, transparent, var(--industrial-accent), transparent);
  position: relative;
}
.industrial-divider::before {
  content: '';
  position: absolute;
  top: -2px; left: 50%;
  transform: translateX(-50%);
  width: 7px; height: 7px;
  background: var(--industrial-accent);
  transform: translateX(-50%) rotate(45deg);
}

/* ══════════════════════════════════════
   产品列表项（全部产品网格）
   ══════════════════════════════════════ */
.prod-item {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #f3f4f6;
  transition: opacity 0.35s var(--ease-out-expo), transform 0.35s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo);
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.prod-item.filtered-out {
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
}
/* Tab / 分页切换时的入场动画（及时隐藏旧卡片，避免闪动） */
@keyframes prodEnter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.prod-item.prod-enter {
  animation: prodEnter 0.34s var(--ease-out-expo) backwards;
}
.prod-item:active {
  border-color: rgba(197,165,114,0.3);
  box-shadow: 0 8px 30px rgba(26,54,93,0.05);
}
.prod-img-wrap {
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}
.prod-img-wrap .product-img-shimmer { position: absolute; inset: 0; }
.prod-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}
.prod-item:hover .prod-photo { transform: scale(1.06); }
.prod-item:hover .prod-img-wrap svg {
  transform: scale(1.1);
  transition: transform 0.5s var(--ease-out-expo);
}
.prod-item:hover .product-img-shimmer {
  animation: shimmerSlide 0.8s ease-out forwards;
}

/* ══════════════════════════════════════
   商品详情弹窗 - 左右分栏布局
   ══════════════════════════════════════ */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  visibility: hidden;
}
.product-modal.active {
  pointer-events: auto;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,29,50,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.product-modal.active .modal-backdrop { opacity: 1; }

.modal-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 94vw;
  max-width: 960px;
  max-height: 88vh;
  background: white;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.3);
  transform: translate(-50%, -50%) scale(0.92) translateY(20px);
  opacity: 0;
  transition: all 0.45s var(--ease-out-expo);
  display: flex;
  flex-direction: row;
}
.product-modal.active .modal-panel {
  transform: translate(-50%, -50%) scale(1) translateY(0);
  opacity: 1;
}

.modal-close-btn {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 10;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}
.modal-close-btn:hover {
  background: rgba(0,0,0,0.6);
  transform: rotate(90deg);
}

/* ══ 左侧：多图轮播区 ══ */
.modal-gallery {
  width: 46%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: #f8f9fb;
  position: relative;
  overflow: hidden;
  border-right: 1px solid #f3f4f6;
}
.modal-badge {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 5;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* 主图区 */
.gallery-main {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
}
.gallery-main .gallery-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out-expo);
  pointer-events: none;
}
.gallery-main .gallery-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.gallery-main .gallery-slide svg {
  width: 96px;
  height: 96px;
  opacity: 0.25;
  transition: transform 0.6s var(--ease-out-expo);
}
.modal-panel:hover .gallery-slide.active svg {
  transform: scale(1.08);
}
.gallery-slide img,
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-thumb img { object-fit: cover; }

/* 缩略图条 */
.gallery-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  justify-content: center;
  flex-shrink: 0;
  border-top: 1px solid #f3f4f6;
  background: white;
}
.gallery-thumb {
  width: 56px; height: 56px;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.gallery-thumb:hover {
  border-color: var(--secondary);
  transform: translateY(-2px);
}
.gallery-thumb.active {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(197,165,114,0.2);
}
.gallery-thumb svg {
  width: 28px; height: 28px;
  opacity: 0.3;
}
.gallery-thumb.active svg { opacity: 0.6; }

/* 指示点（移动端） */
.gallery-dots {
  display: none;
  justify-content: center;
  gap: 6px;
  padding: 0 16px 14px;
  flex-shrink: 0;
  background: white;
}
.gallery-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #d1d5db;
  transition: all 0.3s var(--ease-out-expo);
  cursor: pointer;
}
.gallery-dot.active {
  background: var(--secondary);
  width: 20px;
  border-radius: 4px;
}

/* ══ 右侧：产品信息区 ══ */
.modal-info {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 28px 32px 32px;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}
.scroll-hide::-webkit-scrollbar { display: none; }
.scroll-hide { scrollbar-width: none; }

.modal-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--secondary);
  background: rgba(197,165,114,0.1);
  padding: 3px 12px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  width: fit-content;
}
.modal-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: #111827;
  margin-top: 10px;
  line-height: 1.3;
}
.modal-divider {
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--secondary), transparent);
  border-radius: 2px;
  margin: 16px 0 14px;
}
.modal-desc {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 16px;
  flex-shrink: 0;
}

/* 规格参数 */
.modal-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
  flex-shrink: 0;
}
.spec-item {
  background: #f9fafb;
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid #f3f4f6;
}
.spec-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: #9ca3af;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.spec-value {
  font-size: 0.82rem;
  font-weight: 700;
  color: #374151;
}

/* 弹窗操作区 */
.modal-actions {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #f3f4f6;
  flex-shrink: 0;
  gap: 12px;
}
.modal-price {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary);
}
.modal-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--secondary), #d4b87a);
  color: var(--dark);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 24px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(197,165,114,0.3);
  transition: all 0.3s var(--ease-out-expo);
  white-space: nowrap;
}
.modal-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(197,165,114,0.4);
}
.modal-cta:active { transform: scale(0.96); }

/* ══ 弹窗响应式 - 手机（平板竖屏 768px 起改用居中双栏） ══ */
@media (max-width: 767px) {
  .modal-panel {
    flex-direction: column;
    width: 100vw;
    max-width: 100vw;
    max-height: 88vh;
    border-radius: 22px 22px 0 0;
    top: auto;
    bottom: 0;
    left: 0;
    transform: translate(0, 100%);
    transition: transform 0.4s var(--ease-out-expo);
  }
  .product-modal.active .modal-panel {
    transform: translate(0, 0);
  }
  /* 图片区缩小 */
  .modal-gallery {
    width: 100%;
    flex-shrink: 0;
    border-right: none;
    border-bottom: 1px solid #f3f4f6;
  }
  .gallery-main {
    aspect-ratio: 4/3;
    min-height: 200px;
    flex: none;
  }
  .gallery-main .gallery-slide svg {
    width: 64px; height: 64px;
  }
  /* 移动端隐藏缩略图，显示指示点 */
  .gallery-thumbs { display: none; }
  .gallery-dots { display: flex; }
  .modal-badge { top: 12px; left: 12px; }
  /* 文字区 */
  .modal-info {
    padding: 18px 20px 22px;
    max-height: 50vh;
  }
  .modal-name { font-size: 1.15rem; }
  .modal-desc { font-size: 0.85rem; line-height: 1.7; }
  .modal-close-btn { top: 10px; right: 10px; width: 32px; height: 32px; }
}

/* 小屏手机 */
@media (max-width: 380px) {
  .gallery-main { aspect-ratio: 1/1; min-height: 180px; }
  .modal-info { padding: 14px 16px 18px; }
  .modal-name { font-size: 1.05rem; }
  .modal-specs { gap: 8px; }
  .spec-item { padding: 10px 12px; }
}

/* ══════════════════════════════════════
   产品 Tab
   ══════════════════════════════════════ */
.product-tabs-wrapper {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
  /* 桌面端居中换行 */
}
.product-tabs-wrapper::-webkit-scrollbar { display: none; }
.tab-btn {
  background: #f3f4f6;
  color: #6b7280;
  transition: all 0.35s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
}
.tab-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: 0 6px 20px rgba(26,54,93,0.2);
}
.tab-btn:active { transform: scale(0.95); }

/* 桌面端：居中并可换行 */
@media (min-width: 640px) {
  .product-tabs-wrapper {
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

/* ══════════════════════════════════════
   产品分页
   ══════════════════════════════════════ */
.product-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 44px;
}
.page-numbers {
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-btn,
.page-num {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: #4b5563;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.35s var(--ease-out-expo);
}
.page-btn svg { width: 16px; height: 16px; }
.page-btn:hover:not(:disabled),
.page-num:hover {
  border-color: var(--secondary);
  color: var(--primary);
  transform: translateY(-2px);
}
.page-num.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 20px rgba(26,54,93,0.2);
}
.page-num.active:hover { color: #fff; transform: none; }
.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
@media (max-width: 380px) {
  .page-btn, .page-num { min-width: 34px; height: 34px; font-size: 13px; }
}

/* 分类下暂无产品 */
.products-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 64px 20px;
  border: 1px dashed #e5e7eb;
  border-radius: 16px;
  background: linear-gradient(180deg, #fcfcfd, #f8fafc);
  text-align: center;
}
.products-empty svg {
  width: 46px;
  height: 46px;
  color: #cbd5e1;
}
.products-empty p {
  font-size: 16px;
  font-weight: 600;
  color: #6b7280;
}
.products-empty span {
  font-size: 13px;
  line-height: 1.7;
  color: #9ca3af;
  max-width: 340px;
}

/* ══════════════════════════════════════
   资质证书 - 网格平铺展示
   ══════════════════════════════════════ */

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

/* 证书卡片 */
.cert-card {
  margin: 0;
  padding: 10px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
}
.cert-card picture { display: block; }
.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.cert-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1100 / 1556;
  object-fit: contain;
  border-radius: 8px;
  background: #f8f9fb;
}

/* ══ 响应式 ══ */

/* 平板：间距收紧 */
@media (min-width: 640px) {
  .cert-grid { gap: 24px; }
}

/* 桌面：更大间距与内边距 */
@media (min-width: 1024px) {
  .cert-grid { gap: 28px; }
  .cert-card { padding: 12px; }
}

/* ══════════════════════════════════════
   CTA 区域
   ══════════════════════════════════════ */
.cta-bg {
  background: linear-gradient(135deg, var(--dark), var(--primary));
  opacity: 0.95;
}
.cta-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(197,165,114,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(42,74,127,0.3) 0%, transparent 50%);
}

/* ══════════════════════════════════════
   页脚
   ══════════════════════════════════════ */
.footer-link {
  color: rgba(255,255,255,0.5);
  transition: all 0.3s;
  text-decoration: none;
}
.footer-link:active { color: var(--secondary); padding-left: 4px; }
.social-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}
.social-btn:active {
  background: rgba(197,165,114,0.25);
  transform: scale(0.95);
}

/* ══════════════════════════════════════
   移动端底部导航
   ══════════════════════════════════════ */
.mobile-nav {
  display: flex; align-items: center; justify-content: space-around;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid #f3f4f6;
  padding: 5px 2px;
}
.mn-item {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 3px 8px;
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s;
}
.mn-item:active { color: var(--primary); }
.mn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border-radius: 14px;
  padding: 7px 14px;
  box-shadow: 0 5px 16px rgba(26,54,93,0.25);
}
.mn-primary:active { color: white; background: var(--primary-light); }

/* ══════════════════════════════════════
   移动端横向滚动（热销产品）
   ══════════════════════════════════════ */
.mobile-scroll {
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mobile-scroll::-webkit-scrollbar { display: none; }
.mobile-scroll > * { scroll-snap-align: start; }

/* ══════════════════════════════════════
   涟漪效果
   ══════════════════════════════════════ */
.ripple-btn {
  position: relative;
  overflow: hidden;
}
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transform: scale(0);
  animation: ripple 0.7s ease-out;
  pointer-events: none;
}
@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

/* ══════════════════════════════════════
   滚动渐入动画
   ══════════════════════════════════════ */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ══════════════════════════════════════
   响应式断点
   ══════════════════════════════════════ */

/* ── xs: 480px+（中屏手机横屏 / 小平板） ── */
@media (min-width: 480px) {
  .brand-logo-wrapper img { height: 44px; }
  .hero-badge { padding: 7px 20px; }
  .badge-dot { width: 8px; height: 8px; }
  .hero-title { line-height: 1.25; }
  .stat-item { padding: 14px 10px; border-radius: 16px; }
  .stat-num { font-size: 1.9rem; }
  .stat-suffix { font-size: 1.2rem; }
  .stat-label { font-size: 0.7rem; margin-top: 5px; }
  .scroll-line { height: 40px; }
  .section-label { font-size: 0.75rem; letter-spacing: 0.2em; }
  .section-title { font-size: 1.8rem; }
  .section-desc { font-size: 0.9rem; padding: 0; }
  .gradient-line { width: 72px; }
  .section-title-industrial { font-size: 1.8rem; }
  .section-desc-industrial { font-size: 0.9rem; padding: 0; }
  .section-label-industrial { font-size: 0.7rem; }
  .industrial-divider { width: 88px; }
  .adv-card { padding: 16px; }
  .adv-title { font-size: 0.88rem; }
  .product-body { padding: 18px; }
  .product-name { font-size: 1.05rem; }
  .qual-card { padding: 26px 18px; }
  .qual-icon-wrap { width: 60px; height: 60px; }
}

/* ── sm: 640px+（大屏手机 / 平板竖屏） ── */
@media (min-width: 640px) {
  .hero-badge { padding: 8px 24px; }
  .hero-title { line-height: 1.2; }
  .stat-item { padding: 16px 12px; }
  .stat-num { font-size: 2.2rem; }
  .stat-suffix { font-size: 1.4rem; }
  .stat-label { font-size: 0.75rem; letter-spacing: 0.05em; }
  .section-title { font-size: 2rem; }
  .overview-media-wrapper { border-radius: 24px; }
  .media-frame { border-radius: 24px; aspect-ratio: 4/3; }
  .media-glow { inset: -18px; filter: blur(30px); opacity: 0.3; }
  .adv-card { gap: 12px; }
  .adv-icon-wrap { width: 42px; height: 42px; border-radius: 12px; }
  .adv-icon { width: 20px; height: 20px; }
  .product-card { border-radius: 20px; }
  .qual-card { border-radius: 20px; }
  .qual-icon-wrap { width: 64px; height: 64px; border-radius: 18px; }
  .section-desc { font-size: 0.95rem; }
}

/* ── md: 768px+ ── */
@media (min-width: 768px) {
  .stat-item { border-radius: 16px; }
}

/* ── lg: 1024px+（桌面端） ── */
@media (min-width: 1024px) {
  .brand-logo-wrapper img { height: 48px; }
  .hero-badge { padding: 8px 24px; }
  .hero-title { line-height: 1.15; }
  .section-title { font-size: 2.5rem; }
  /* 桌面端悬浮效果恢复 */
  .interactive-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(26,54,93,0.1);
  }
  .hero-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(197,165,114,0.4);
  }
  .hero-cta-primary:hover .arrow-icon { transform: translateX(4px); }
  .hero-cta-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-3px);
  }
  .stat-item:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-4px);
  }
  .premium-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(197,165,114,0.4);
  }
  .adv-card:hover {
    background: white;
    border-color: rgba(197,165,114,0.3);
    box-shadow: 0 8px 30px rgba(26,54,93,0.06);
  }
  .product-card:hover {
    border-color: rgba(197,165,114,0.3);
    box-shadow: 0 20px 50px rgba(26,54,93,0.1);
    transform: translateY(-8px);
  }
  .product-detail-btn:hover {
    background: rgba(197,165,114,0.1);
  }
  .product-detail-btn-sm:hover {
    background: rgba(197,165,114,0.1);
    border-color: var(--secondary);
  }
  .prod-item:hover {
    border-color: rgba(197,165,114,0.3);
    box-shadow: 0 14px 40px rgba(26,54,93,0.08);
    transform: translateY(-4px);
  }
  .tab-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 6px 20px rgba(26,54,93,0.2);
    transform: translateY(-2px);
  }
  .qual-card:hover {
    border-color: rgba(197,165,114,0.3);
    box-shadow: 0 16px 40px rgba(26,54,93,0.06);
    background: linear-gradient(160deg, rgba(26,54,93,0.015), rgba(197,165,114,0.04));
  }
  .footer-link:hover { color: var(--secondary); padding-left: 4px; }
  .social-btn:hover {
    background: rgba(197,165,114,0.25);
    transform: translateY(-2px);
  }
  .lang-switch:hover {
    border-color: var(--secondary);
    background: rgba(255,255,255,0.15);
    color: white;
  }
  #mainNav.scrolled .lang-switch:hover { border-color: var(--secondary); color: var(--primary); }
  #mainNav.scrolled .nav-link:hover { color: var(--primary); }
}

/* ── 小屏手机 (360-380px 如 iPhone SE) ── */
@media (max-width: 380px) {
  .hero-badge { padding: 5px 12px; }
  .badge-text { font-size: 0.65rem; letter-spacing: 0.05em; }
  .hero-desc { font-size: 0.8rem; }
  .stat-item { padding: 8px 6px; }
  .stat-num { font-size: 1.3rem; }
  .stat-suffix { font-size: 0.85rem; }
  .stat-label { font-size: 0.6rem; }
  .scroll-indicator span { font-size: 0.6rem; }
}

/* ── 超小屏 (< 360px) ── */
@media (max-width: 360px) {
  #hero { min-height: 620px; }
  .hero-badge { padding: 4px 10px; }
  .scroll-indicator { display: none; }
}

/* ── 高度不足时滚动指示器隐藏 ── */
@media (max-height: 600px) {
  .scroll-indicator { display: none; }
}

/* ── 移动端减少光斑尺寸 ── */
@media (max-width: 640px) {
  .orb-1 { width: 250px; height: 250px; }
  .orb-2 { width: 180px; height: 180px; }
  .orb-3 { width: 150px; height: 150px; }
  .floating-orb { filter: blur(50px); }
}

/* ══════════════════════════════════════
   公司简介新版布局（左视频 / 右简介）
   ══════════════════════════════════════ */
.overview-section { isolation: isolate; }

/* 右侧淡雅背景装饰 */
.overview-bg-deco {
  position: absolute;
  top: 0; right: 0;
  width: 48%; height: 100%;
  background:
    radial-gradient(circle at 85% 12%, rgba(197,165,114,0.10), transparent 58%),
    linear-gradient(180deg, rgba(26,54,93,0.02), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

/* 网格：桌面端左右等宽，垂直居中对齐 */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

/* ── 左侧媒体 ── */
.overview-media-col { width: 100%; }
.overview-media-wrapper {
  position: relative;
  overflow: visible;
  border-radius: 24px;
}
/* 视频框：仅保留柔和阴影，避免多重描边显得笨重 */
.overview-media-wrapper .media-frame {
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(15, 29, 50, 0.16);
}
/* 视频下方说明 */
.overview-media-caption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-left: 4px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: #9ca3af;
}
.ov-cap-dash {
  width: 28px; height: 1px;
  background: linear-gradient(90deg, var(--secondary), transparent);
  flex-shrink: 0;
}

/* ── 右侧简介 ── */
.overview-content-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.overview-eyebrow {
  position: relative;
  display: inline-block;
  padding-left: 36px;
  margin-bottom: 16px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--secondary);
}
.overview-eyebrow::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 26px; height: 2px;
  background: linear-gradient(90deg, var(--secondary), transparent);
  transform: translateY(-50%);
}
.overview-heading {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: #111827;
  text-wrap: balance;
}
.overview-heading-line {
  width: 64px; height: 3px;
  margin: 18px 0 24px;
  background: linear-gradient(90deg, var(--secondary), rgba(197,165,114,0.12));
  border-radius: 2px;
}
.overview-text {
  margin: 0 0 18px;
  font-size: 0.95rem;
  line-height: 1.95;
  color: #4b5563;
  text-align: justify;
}
.overview-text-lead {
  padding-left: 16px;
  border-left: 3px solid rgba(197,165,114,0.55);
  color: #374151;
  font-size: 1rem;
}

/* 英文正文左对齐，避免两端对齐造成字距松散 */
html[lang="en"] .overview-text { text-align: left; }

/* 关键数据条 */
.overview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 10px;
  padding-top: 24px;
  border-top: 1px solid #eef0f3;
}
.overview-stat {
  padding: 0 16px;
  border-left: 1px solid #eef0f3;
}
.overview-stat:first-child {
  padding-left: 0;
  border-left: none;
}
.ov-stat-num {
  display: block;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--primary);
}
.ov-stat-label {
  display: block;
  margin-top: 7px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #9ca3af;
}

/* 桌面端 */
@media (min-width: 1024px) {
  .overview-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
  .overview-heading { font-size: 2rem; }
  .overview-text { font-size: 1rem; }
  .overview-text-lead { font-size: 1.04rem; }
}

/* ══════════════════════════════════════
   公司简介 · 厂区实景
   上、下各一段清晰实景（保持近原始分辨率），中间留白给正文，
   不做整段虚化铺底，避免画面发灰发脏
   ══════════════════════════════════════ */
/* 顶部实景带：宽度 100% 随屏自适应，整张完整显示（不裁切、不放大、不重复） */
.overview-bg-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 3400 / 811;
  background: url('./images/factory-panorama-hd.webp') left top / 100% auto no-repeat;
  z-index: 0;
  pointer-events: none;
  /* 贴近地面的最后一段淡出，避免出现生硬的地面横切边 */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 84%, rgba(0,0,0,0.55) 94%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 84%, rgba(0,0,0,0.55) 94%, transparent 100%);
}
.overview-content { z-index: 2; }

/* 窄屏：实景带会与导航、标题争空间，且裁切后信息缺失，直接留白 */
@media (max-width: 767px) {
  .overview-bg-photo { display: none; }
  /* 图片不占位后补回顶部间距，避免标题顶到固定导航下面 */
  .overview-section { padding-top: 2.5rem; }
}

/* 移动端 */
@media (max-width: 639px) {
  .overview-media-caption { margin-top: 16px; }
  .overview-heading { font-size: 1.35rem; }
  .overview-text { font-size: 0.9rem; line-height: 1.85; }
  .overview-text-lead { font-size: 0.94rem; }
  .overview-stats { padding-top: 18px; }
  .overview-stat { padding: 0 10px; }
  .ov-stat-num { font-size: 1.3rem; }
  .ov-stat-label { font-size: 0.68rem; }
}

/* ══════════════════════════════════════
   核心优势（浅底 + 深色通栏面板）
   ══════════════════════════════════════ */
.adv-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.adv-section .section-desc { max-width: 680px; }

/* 深色圆角面板：把深色收进容器，保持整页浅色主调 */
.adv-panel {
  position: relative;
  overflow: hidden;
  padding: 48px 0;
  background:
    radial-gradient(circle at 88% 0%, rgba(197, 165, 114, 0.18), transparent 55%),
    radial-gradient(circle at 8% 100%, rgba(42, 74, 127, 0.45), transparent 60%),
    linear-gradient(135deg, #0f1d32 0%, #16294a 60%, #1a365d 100%);
}
.adv-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.adv-panel > * { position: relative; z-index: 1; }

.adv-dual {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.adv-group {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 26px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform 0.4s var(--ease-out-expo),
              box-shadow 0.4s var(--ease-out-expo),
              border-color 0.4s var(--ease-out-expo),
              background 0.4s var(--ease-out-expo);
}
.adv-group::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), rgba(197, 165, 114, 0.08));
}
.adv-group-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.adv-group-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(197, 165, 114, 0.22), rgba(197, 165, 114, 0.06));
  border: 1px solid rgba(197, 165, 114, 0.25);
  color: var(--secondary);
}
.adv-group-icon svg { width: 24px; height: 24px; }
.adv-group-name {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.01em;
}
.adv-group-sub {
  display: block;
  margin-top: 2px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
}
.adv-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.adv-item {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.adv-item:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}
.adv-num {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.7;
  color: var(--secondary);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.adv-item-title {
  margin: 0 0 5px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}
.adv-item-desc {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.62);
}

/* 卡片底部入口 */
.adv-group-foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.adv-group-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--secondary);
  text-decoration: none;
  transition: gap 0.3s var(--ease-out-expo), color 0.3s ease;
}
.adv-group-link:hover { gap: 10px; color: #ffffff; }

@media (min-width: 1024px) {
  .adv-panel { padding: 56px 0; }
  .adv-dual {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .adv-group { padding: 30px; }
  .adv-group:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(197, 165, 114, 0.5);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
  }
}

@media (max-width: 639px) {
  .adv-panel { padding: 36px 0; }
  .adv-group { padding: 22px 18px; border-radius: 16px; }
  .adv-group-icon { width: 42px; height: 42px; border-radius: 12px; }
  .adv-group-icon svg { width: 21px; height: 21px; }
  .adv-item { gap: 10px; padding: 16px 0; }
  .adv-item-title { font-size: 0.9rem; }
  .adv-item-desc { font-size: 0.82rem; line-height: 1.7; }
}

/* ══════════════════════════════════════
   移动端（App / 小屏手机）布局调优
   1) 导航品牌区可收缩，右侧操作区永不被挤出屏幕
   2) Hero 适配动态视口高度，并避开固定底部快捷栏
   3) 小字号与点击命中区达标
   4) 产品分类 Tab 横向可滑动提示
   5) 资质证书横向滑动，缩短超长滚动
   ══════════════════════════════════════ */

/* ── 1. 导航栏小屏适配 ── */
#mainNav .nav-brand { min-width: 0; }
#mainNav .nav-actions { flex-shrink: 0; }
#mainNav .brand-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 639px) {
  #mainNav > div { padding-left: 16px; padding-right: 16px; }
  #mainNav .nav-brand { gap: 8px; }
  #mainNav .brand-logo-wrapper img { height: 32px; }
  #mainNav .brand-text { font-size: 1rem; letter-spacing: 0.04em; }
}

@media (max-width: 400px) {
  #mainNav .nav-brand { gap: 6px; flex-shrink: 1; min-width: 0; }
  #mainNav .brand-logo-wrapper img { height: 28px; }
  #mainNav .brand-text { font-size: 0.82rem; letter-spacing: 0.02em; }
  #mainNav .lang-switch { font-size: 11px; padding: 5px 8px; min-height: 34px; }
  #mainNav .hamburger-btn { width: 38px; height: 38px; }
  #mainNav .nav-actions { gap: 6px; }
}

/* ── 2. Hero：适配地址栏收放 + 顶部/底部安全间距 ── */
@media (max-width: 1023px) {
  #hero {
    height: 100vh;
    height: 100svh;
    min-height: 520px;
    padding-top: 72px;
    padding-bottom: 88px;
    box-sizing: border-box;
  }
}

/* ── 2b. 英文首屏：长文案统一紧凑排版（防撑宽、防错行、防撑高） ── */
@media (max-width: 639px) {
  html[lang="en"] #hero .hero-title {
    font-size: 1.6rem;
    line-height: 1.28;
    margin-bottom: 12px;
  }
  /* 英文每段独立成行，<br> 不再需要 */
  html[lang="en"] #hero .hero-title br { display: none; }
  html[lang="en"] #hero .hero-title-line,
  html[lang="en"] #hero .hero-title-highlight { display: block; }
  html[lang="en"] #hero .hero-desc {
    font-size: 0.86rem;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* ── 2c. 矮屏 Hero：压缩纵向间距，保证一屏可见 ── */
@media (max-width: 639px) and (max-height: 740px) {
  #hero {
    padding-top: 70px;
    padding-bottom: 74px;
  }
  #hero .hero-badge { margin-bottom: 10px; padding: 4px 12px; }
  #hero .hero-title { margin-bottom: 12px; font-size: 1.55rem; line-height: 1.2; }
  #hero .hero-desc { margin-bottom: 14px; font-size: 0.8rem; line-height: 1.55; }
  #hero .hero-stats { margin-top: 18px; }
  #hero .stat-item { padding: 8px 6px; }
  html[lang="en"] #hero .hero-title { font-size: 1.3rem; margin-bottom: 10px; }
  html[lang="en"] #hero .hero-desc { -webkit-line-clamp: 3; margin-bottom: 12px; }
}

/* ── 2d. 极矮屏（如 320×568）：隐藏徽标再压缩 ── */
@media (max-width: 639px) and (max-height: 620px) {
  #hero .hero-badge { display: none; }
  html[lang="en"] #hero .hero-title { font-size: 1.2rem; }
  html[lang="en"] #hero .hero-desc { -webkit-line-clamp: 2; }
  #hero .hero-ctas { gap: 8px; }
  #hero .hero-stats { margin-top: 12px; }
  #hero .hero-cta-primary,
  #hero .hero-cta-secondary { padding-top: 12px; padding-bottom: 12px; }
}

/* 超窄屏英文品牌名过长：仅保留 logo，避免文字被挤成省略号 */
@media (max-width: 340px) {
  html[lang="en"] #mainNav .brand-text { display: none; }
}

/* Hero 内容容器：英文长文案不撑宽视口（flex 子项默认 min-width:auto） */
#hero .hero-inner {
  width: 100%;
  min-width: 0;
}
#hero .hero-title,
#hero .hero-desc { overflow-wrap: anywhere; }

/* 徽标单行显示，超长省略而非换行撑高首屏 */
#hero .hero-badge { max-width: 100%; overflow: hidden; }
#hero .badge-text {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── 3. 字号与点击命中区（移动端易读、易点） ── */
@media (max-width: 639px) {
  .stat-label { font-size: 0.72rem; }
  .product-cat { font-size: 0.74rem; }
  .ov-stat-label { font-size: 0.74rem; }
  .adv-group-sub { font-size: 0.74rem; }
  .spec-label { font-size: 0.72rem; }

  .footer-link { display: inline-block; padding: 7px 0; }
  .adv-group-link { padding: 7px 0; }
  .drawer-close-btn { width: 40px; height: 40px; }
  .mn-item { min-height: 44px; justify-content: center; }
}

/* ── 4. 产品分类 Tab：横向可滑动视觉提示 ── */
@media (max-width: 639px) {
  .product-tabs-wrapper {
    padding-right: 44px;
    scroll-snap-type: x proximity;
  }
  .product-tabs-wrapper > * { scroll-snap-align: start; }
  .product-tabs-wrapper.is-scrollable:not(.at-end) {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
  }
}

/* ── 5. 资质证书：移动端横向滑动浏览 ── */
@media (max-width: 639px) {
  .cert-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-right: -20px;
    padding-right: 20px;
    padding-bottom: 6px;
  }
  .cert-grid::-webkit-scrollbar { display: none; }
  .cert-card {
    flex: 0 0 78%;
    scroll-snap-align: center;
    padding: 8px;
  }
}

/* ══════════════════════════════════════
   询价表单弹窗
   ══════════════════════════════════════ */
.inquiry-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
  visibility: hidden;
}
.inquiry-modal.active { pointer-events: auto; visibility: visible; }

.inquiry-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,29,50,0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.inquiry-modal.active .inquiry-backdrop { opacity: 1; }

.inquiry-panel {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: calc(100vh - 48px);
  max-height: calc(100svh - 48px);
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.32);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  transform: translateY(18px) scale(0.96);
  opacity: 0;
  transition: transform 0.42s var(--ease-out-expo), opacity 0.3s ease;
}
.inquiry-panel::-webkit-scrollbar { display: none; }
.inquiry-modal.active .inquiry-panel { transform: translateY(0) scale(1); opacity: 1; }

.inquiry-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #f3f4f6;
  border: none;
  color: #4b5563;
  cursor: pointer;
  z-index: 3;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.inquiry-close:hover { background: #e5e7eb; color: #111827; }
.inquiry-close:active { transform: scale(0.93); }

.inquiry-body { padding: 32px 32px 26px; }
.inquiry-head { padding-right: 40px; }
.inquiry-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 8px;
}
.inquiry-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.inquiry-sub {
  margin-top: 8px;
  font-size: 0.88rem;
  color: #6b7280;
  line-height: 1.7;
}

.inquiry-form { margin-top: 22px; }
.inq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
.inq-field { display: block; margin-bottom: 14px; }
.inq-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
.inq-req { color: #d9483a; font-style: normal; margin-left: 3px; }
.inq-hint {
  margin: -4px 0 16px;
  font-size: 0.72rem;
  color: #9ca3af;
  line-height: 1.6;
}
.inq-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.9rem;
  font-family: inherit;
  color: #111827;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  appearance: none;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.inq-input::placeholder { color: #9ca3af; }
.inq-input:focus {
  outline: none;
  border-color: var(--secondary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(197,165,114,0.15);
}
.inq-phone-row { display: flex; gap: 8px; }
.inq-phone-row .inq-input { flex: 1 1 auto; min-width: 0; }
.inq-cc {
  flex: 0 0 138px;
  width: 138px;
  padding: 12px 26px 12px 12px;
  font-size: 0.82rem;
  font-family: inherit;
  color: #111827;
  background-color: #f9fafb;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  background-size: 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  transition: border-color 0.25s, background-color 0.25s, box-shadow 0.25s;
}
.inq-cc:focus {
  border-color: var(--secondary);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(197,165,114,0.15);
}
.inq-field.has-error .inq-cc { border-color: #d9483a; background-color: #fff8f6; }
.inq-textarea { resize: vertical; min-height: 84px; line-height: 1.65; }
.inq-field.has-error .inq-input { border-color: #d9483a; background: #fff8f6; }
.inq-error {
  display: none;
  margin-top: 5px;
  font-size: 0.74rem;
  color: #d9483a;
}
.inq-field.has-error .inq-error { display: block; }
.inq-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.inq-submit {
  width: 100%;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--secondary), #d4b87a);
  color: var(--dark);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(197,165,114,0.32);
  transition: transform 0.25s, box-shadow 0.25s, opacity 0.25s;
}
.inq-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(197,165,114,0.4); }
.inq-submit:active { transform: scale(0.98); }
.inq-submit[disabled] { opacity: 0.65; cursor: not-allowed; transform: none; box-shadow: none; }

.inq-note {
  margin-top: 12px;
  font-size: 0.72rem;
  color: #9ca3af;
  line-height: 1.6;
  text-align: center;
}
.inq-status {
  margin-top: 10px;
  font-size: 0.8rem;
  text-align: center;
  color: #d9483a;
}
.inq-status.ok { color: #15803d; }
.inq-direct {
  margin-top: 12px;
  font-size: 0.78rem;
  color: #6b7280;
  text-align: center;
}
.inq-direct a { color: var(--primary); font-weight: 600; text-decoration: none; }
.inq-direct a:hover { color: var(--secondary); }
.inq-sep { margin: 0 6px; color: #d1d5db; }

/* 成功态 */
.inquiry-success { padding: 52px 32px 44px; text-align: center; }
.inq-success-icon {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(21,128,61,0.1);
  color: #15803d;
  display: flex; align-items: center; justify-content: center;
}
.inq-success-icon svg { width: 30px; height: 30px; }
.inquiry-success h3 { font-size: 1.3rem; font-weight: 800; color: var(--dark); }
.inquiry-success p { margin-top: 10px; font-size: 0.9rem; color: #6b7280; line-height: 1.7; }
.inq-done {
  margin-top: 24px;
  padding: 12px 40px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--secondary), #d4b87a);
  color: var(--dark);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(197,165,114,0.3);
  transition: transform 0.25s;
}
.inq-done:active { transform: scale(0.97); }

/* 移动端：底部抽屉式 */
@media (max-width: 640px) {
  .inquiry-modal { align-items: flex-end; padding: 0; }
  .inquiry-panel {
    max-width: 100%;
    width: 100%;
    max-height: 92vh;
    max-height: 92svh;
    border-radius: 22px 22px 0 0;
    transform: translateY(100%);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .inquiry-modal.active .inquiry-panel { transform: translateY(0); }
  .inquiry-body { padding: 26px 20px 22px; }
  .inquiry-title { font-size: 1.28rem; }
  .inq-grid { grid-template-columns: 1fr; gap: 0; }
  .inq-input { font-size: 16px; } /* iOS 聚焦时不自动放大 */
  .inq-cc { flex: 0 0 124px; width: 124px; font-size: 16px; }
  .inquiry-success { padding: 44px 22px 38px; }
}

/* 按钮元素复用链接按钮样式时的重置 */
button.hero-cta-primary,
button.modal-cta { font-family: inherit; border: none; cursor: pointer; }

/* ══════════════════════════════════════
   平板适配（Tablet）
   1) 竖屏 768–1023：三列产品 / 双列优势 / 三列证书、视频居中收窄
   2) 横屏 1024+ 矮屏：首屏标题与间距压缩，避开吸顶导航
   3) 触屏：取消 :hover 造成的“粘滞”抬升效果
   ══════════════════════════════════════ */

/* ── 1. 平板竖屏：768–1023 ── */
@media (min-width: 768px) and (max-width: 1023px) {
  /* 版心留白略大于手机，避免内容贴边 */
  #mainNav > div,
  #products > .max-w-7xl,
  #overview > .overview-content,
  #advantages > .max-w-7xl,
  #advantages .adv-panel > .max-w-7xl,
  #qualifications > .max-w-7xl,
  footer > .max-w-7xl {
    padding-left: 32px;
    padding-right: 32px;
  }

  /* Hero：标题按下限缩放，四段文案各占一行，避免孤字与首屏溢出 */
  #hero {
    min-height: 600px;
    padding-top: 88px;
    padding-bottom: 88px;
  }
  #hero .hero-title {
    font-size: clamp(2.3rem, 5.6vw, 3.25rem);
    line-height: 1.14;
    margin-bottom: 22px;
  }
  #hero .hero-title-line,
  #hero .hero-title-highlight { display: block; }
  #hero .hero-title br { display: none; }
  #hero .hero-badge { margin-bottom: 18px; }
  #hero .hero-desc {
    max-width: 620px;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
  }
  #hero .hero-stats { margin-top: 36px; max-width: 560px; }

  /* 产品：平板竖屏改为三列，单卡信息同步收紧 */
  #productsGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  #productsGrid > .prod-item .p-5 { padding: 15px 15px 16px; }
  #productsGrid h3 { font-size: 1rem; line-height: 1.35; }
  #productsGrid p { font-size: 0.8rem; margin-bottom: 12px; }
  #productsGrid .text-primary {
    font-size: 0.78rem;
    white-space: nowrap;
  }
  #productsGrid .product-detail-btn-sm {
    font-size: 0.68rem;
    padding: 4px 9px;
    white-space: nowrap;
  }

  /* 公司简介：视频居中收窄，正文保持整行阅读宽度 */
  .overview-grid { gap: 36px; }
  .overview-media-col {
    width: 100%;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  /* 核心优势：两张卡片并排 */
  .adv-panel { padding: 40px 0; }
  .adv-dual {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .adv-group { padding: 24px 20px; }

  /* 企业资质：三列平铺，避免第三张孤零零换行 */
  .cert-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
  .cert-card { padding: 8px; }

  /* 移动端抽屉在平板上适当加宽 */
  .drawer-panel { max-width: 400px; }

  /* 底部快捷栏收成居中悬浮条，点击区域更适合触控 */
  .mobile-nav {
    max-width: 560px;
    margin: 0 auto;
    padding: 6px 18px;
    border: 1px solid #f3f4f6;
    border-bottom: none;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -8px 28px rgba(15, 29, 50, 0.12);
  }
  .mobile-nav .mn-item { min-height: 52px; padding: 5px 14px; }
  .mobile-nav .mn-primary { padding: 8px 22px; }

  /* 产品详情弹窗：平板竖屏使用居中双栏，而不是手机底部抽屉 */
  .modal-panel {
    width: 92vw;
    max-width: 860px;
    max-height: 86vh;
  }
  .modal-gallery { width: 44%; }
  .modal-info { padding: 24px 26px 26px; }
  .modal-name { font-size: 1.25rem; }
  .gallery-thumb { width: 48px; height: 48px; }
}

/* ── 1b. 平板横屏矮屏（768–1023，如 900×600）：再压一档 ── */
@media (min-width: 768px) and (max-width: 1023px) and (max-height: 720px) {
  #hero {
    min-height: 560px;
    padding-top: 76px;
    padding-bottom: 76px;
  }
  #hero .hero-badge { display: none; }
  #hero .hero-title {
    font-size: clamp(1.9rem, 4.2vw, 2.4rem);
    margin-bottom: 14px;
  }
  #hero .hero-desc {
    font-size: 0.86rem;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  #hero .hero-stats { margin-top: 18px; }
  #hero .stat-item { padding: 8px 6px; }
  #hero .stat-num { font-size: 1.5rem; }
  #hero .stat-suffix { font-size: 1rem; }
  #hero .stat-label { font-size: 0.66rem; }
}

/* ── 2. 平板横屏 / 矮屏桌面：1024+ 且高度不超过 940 ── */
@media (min-width: 1024px) and (max-height: 940px) {
  #hero { min-height: 600px; }
  #hero .hero-inner { padding-top: 68px; padding-bottom: 20px; }
  #hero .hero-title {
    font-size: clamp(2.25rem, 4.2vw, 3.5rem);
    line-height: 1.14;
    margin-bottom: 24px;
  }
  #hero .hero-title-line,
  #hero .hero-title-highlight { display: block; }
  #hero .hero-title br { display: none; }
  #hero .hero-badge { margin-bottom: 18px; }
  #hero .hero-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 26px;
  }
  #hero .hero-stats { margin-top: 36px; }
}

/* ── 2b. 横屏极矮（1024×600 一类）：隐藏徽标、收紧字号 ── */
@media (min-width: 1024px) and (max-height: 720px) {
  #hero { min-height: 560px; }
  #hero .hero-inner { padding-top: 56px; padding-bottom: 16px; }
  #hero .hero-badge { display: none; }
  #hero .hero-title {
    font-size: clamp(1.75rem, 3.4vw, 2.4rem);
    margin-bottom: 16px;
  }
  #hero .hero-desc {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  #hero .hero-stats { margin-top: 20px; }
  #hero .stat-item { padding: 8px 6px; }
  #hero .stat-num { font-size: 1.5rem; }
  #hero .stat-suffix { font-size: 1rem; }
}

/* ── 3. 触屏设备：取消悬浮态，保留按下的反馈 ── */
@media (hover: none) and (pointer: coarse) {
  .prod-item:hover {
    transform: none;
    border-color: #f3f4f6;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  }
  .prod-item:hover .prod-photo { transform: none; }
  .prod-item:hover .product-img-shimmer { animation: none; }
  .product-card:hover {
    transform: none;
    border-color: #f3f4f6;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  }
  .product-card:hover .product-img-placeholder { transform: none; }
  .product-card:hover .product-img-shimmer { animation: none; }
  .cert-card:hover {
    transform: none;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07), 0 1px 4px rgba(0, 0, 0, 0.04);
  }
  .adv-group:hover { transform: none; }
  .modal-panel:hover .gallery-slide.active svg { transform: none; }
}