/* ==========================================================================
   MINGFU 深圳铭伏科技 — Design System
   风格基线: solar-showcase-网站
   色板依据: 建站需求.doc「二、网站色调建议(★★★★★)」
     主色 深蓝 #0A2A66 / 辅助 科技绿 #19C37D / 按钮绿 #18C57A
     背景 #F7F9FC / 正文 #222222
   ========================================================================== */

:root {
  --ink: #222222;
  --muted: #607181;
  --line: #d9e5ef;
  --paper: #f7f9fc;
  --white: #ffffff;
  --primary: #18c57a;
  --green: #18c57a;
  --cyan: #19c37d;
  --amber: #18c57a;
  --green-ink: #0b7a4b;   /* 品牌绿的加深版：用于导航 hover 文字，保证浅底上的对比度 */
  --deep: #0a2a66;
  --steel: #e5edf5;
  --shadow: 0 28px 90px rgba(10, 42, 102, 0.14);
  --shadow-strong: 0 34px 110px rgba(10, 42, 102, 0.24);
  --radius: 8px;

  --header-h: 78px;
  --ease: 240ms cubic-bezier(0.4, 0, 0.2, 1);
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

/* Reset ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--ease); }
button { font-family: inherit; cursor: pointer; border: 0; background: none; padding: 0; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
input, textarea, select { font-family: inherit; font-size: inherit; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: #c3d3e2; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* Layout --------------------------------------------------------------------- */
.container { width: min(1240px, 100% - 48px); margin-inline: auto; }
.section { padding: clamp(56px, 7vw, 104px) 0; }
.section-tight { padding: clamp(40px, 5vw, 72px) 0; }

.section-heading { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading h2 { font-size: clamp(28px, 3.4vw, 42px); }
.section-heading p { margin-top: 14px; color: var(--muted); font-size: 17px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; margin-bottom: 16px;
  color: var(--deep); background: var(--steel);
  border-radius: 999px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 3px rgba(24, 197, 122, 0.22);
}

/* Scroll progress ------------------------------------------------------------ */
.scroll-progress {
  position: fixed; inset-inline: 0; top: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--deep), var(--green));
  z-index: 60; transition: width 90ms linear;
}

/* Header (sticky + glass, 延续 solar-showcase) -------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px clamp(20px, 4vw, 48px);
  background: rgba(247, 249, 252, 0.92);
  border-bottom: 1px solid rgba(217, 229, 239, 0.76);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: box-shadow var(--ease), background var(--ease);
}
.site-header.scrolled { box-shadow: 0 10px 34px rgba(10, 42, 102, 0.1); }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 10px;
  overflow: hidden;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(10, 42, 102, 0.28);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-mark svg { width: 24px; height: 24px; }
.brand-text b { display: block; font-size: 20px; letter-spacing: 0.06em; color: var(--deep); line-height: 1.1; }
.brand-text span { display: block; font-size: 12px; color: var(--muted); letter-spacing: 0.1em; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  position: relative;
  padding: 10px 14px; border-radius: 6px;
  font-size: 16px; font-weight: 700; color: var(--ink);
  white-space: nowrap;                       /* 空间不足时绝不折行，避免导航被撑高 */
  transition: background var(--ease), color var(--ease);
}
/* 下划线用绝对定位，避免 hover 时撑高元素导致导航栏跳动 */
.site-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--green-ink), var(--green));
  opacity: 0; transform: scaleX(0.55);
  transition: opacity var(--ease), transform var(--ease);
}
/* 主菜单 hover：文字转品牌深绿 + 浅底，比原来的深蓝反馈更明显 */
.site-nav a:hover { color: var(--green-ink); background: var(--steel); }
.site-nav a:hover::after { opacity: 1; transform: scaleX(1); }
.site-nav a.active { color: var(--deep); }
.site-nav a.active::after {
  opacity: 1; transform: scaleX(1);
  background: linear-gradient(90deg, var(--deep), var(--green));
}

/* ---- Products 桌面端下拉菜单 ---- */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { display: inline-flex; align-items: center; gap: 4px; }
.nav-dropdown-trigger .caret { transition: transform 220ms var(--ease); }
.nav-dropdown:hover .nav-dropdown-trigger .caret,
.nav-dropdown.open .nav-dropdown-trigger .caret { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px); left: 50%;
  transform: translate(-50%, 8px);
  min-width: 260px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 18px 44px rgba(10, 42, 102, 0.18), 0 2px 6px rgba(0,0,0,0.06);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 220ms var(--ease), transform 220ms var(--ease), visibility 0s linear 220ms;
  display: grid; gap: 4px;
  z-index: 60;
}
.nav-dropdown::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(-50%, 0);
  transition: opacity 220ms var(--ease), transform 220ms var(--ease), visibility 0s linear 0s;
}
.nav-dropdown-menu a {
  display: flex !important; align-items: center; gap: 12px;
  padding: 12px 14px !important; border-radius: 10px;
  font-weight: 600; color: var(--ink);
}
.nav-dropdown-menu a:hover { background: var(--steel); color: var(--green-ink); }
.nav-dropdown-menu a.active {
  color: var(--deep); background: var(--steel);
}
.nav-dropdown-menu a.active::after { display: none; }
.nav-dropdown-menu .dropdown-ico {
  width: 36px; height: 36px; flex-shrink: 0;
  display: grid; place-items: center; border-radius: 10px;
  background: rgba(10, 42, 102, 0.08); color: var(--deep);
  transition: background 220ms var(--ease), color 220ms var(--ease);
}
.nav-dropdown-menu .dropdown-ico svg { width: 18px; height: 18px; }
.nav-dropdown-menu a:hover .dropdown-ico {
  background: var(--deep); color: var(--white);
}
.nav-dropdown-menu .dropdown-text { display: grid; line-height: 1.25; }
.nav-dropdown-menu .dropdown-text b { font-size: 15px; font-weight: 700; }
.nav-dropdown-menu .dropdown-text small { font-size: 13px; color: var(--muted); font-weight: 500; }
.nav-dropdown-menu .nav-dropdown-all {
  margin-top: 6px; padding-top: 14px !important;
  border-top: 1px solid var(--line);
  justify-content: center;
}
.nav-dropdown-menu .nav-dropdown-all .dropdown-text b { color: var(--deep); }

html[dir="rtl"] .nav-dropdown-menu { left: auto; right: 50%; transform: translate(50%, 8px); }
html[dir="rtl"] .nav-dropdown:hover .nav-dropdown-menu,
html[dir="rtl"] .nav-dropdown.open .nav-dropdown-menu { transform: translate(50%, 0); }
html[dir="rtl"] .nav-dropdown-menu a::after { display: none; }

/* ---- Mobile drawer 折叠分组 ---- */
.drawer-group > summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; cursor: pointer;
  font-size: 16px; font-weight: 700; color: var(--ink);
  border-radius: 8px;
  list-style: none;
}
.drawer-group > summary::-webkit-details-marker { display: none; }
.drawer-group > summary::marker { content: ""; }
.drawer-group > summary:hover { background: var(--steel); color: var(--deep); }
.drawer-group[open] > summary { color: var(--deep); background: var(--steel); }
.drawer-group > summary svg { transition: transform 220ms var(--ease); }
.drawer-group[open] > summary svg { transform: rotate(180deg); }
.drawer-sub {
  display: block; padding: 10px 18px 10px 36px;
  font-size: 14px; font-weight: 600; color: var(--muted);
  border-radius: 8px;
}
.drawer-sub:hover { background: var(--steel); color: var(--deep); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
/* 页眉里的 CTA 小按钮同步增大一号（.button.sm 是全局类，只收紧到 header 内，不影响页面其他位置） */
.header-actions .button.sm { font-size: 14px; }

/* Language switcher (4 语言: 中/英/阿/西) */
.language-switcher { position: relative; }
.language-switcher > button {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--white); font-size: 14px; font-weight: 800; color: var(--deep);
  transition: border-color var(--ease), color var(--ease), background var(--ease);
}
.language-switcher > button:hover { border-color: var(--green-ink); color: var(--green-ink); background: var(--steel); }
.language-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px);
  min-width: 156px; padding: 6px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 8px; box-shadow: var(--shadow);
  display: none; z-index: 30;
}
.language-menu.open { display: block; }
.language-menu button {
  display: flex; width: 100%; align-items: center; gap: 8px; text-align: start;
  padding: 9px 12px; border-radius: 6px;
  font-size: 15px; font-weight: 700; color: var(--ink);
}
.language-menu button:hover { background: var(--steel); color: var(--green-ink); }
.language-menu button.active { background: var(--steel); color: var(--deep); }
.language-menu .flag { font-size: 16px; line-height: 1; }

/* Buttons (延续 solar-showcase .button + 扫光 ::before) ---------------------- */
.button {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 20px;
  border: 1px solid transparent; border-radius: 6px;
  font-size: 15px; font-weight: 800; font-family: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  cursor: pointer; text-decoration: none;
  appearance: none; -webkit-appearance: none;
}
.button:hover { transform: translateY(-2px); }
.button::before {
  position: absolute; inset: 0; content: "";
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: translateX(-120%); transition: transform 520ms ease;
}
.button:hover::before { transform: translateX(120%); }

.button.primary {
  color: var(--white); background: var(--amber);
  box-shadow: 0 16px 40px rgba(24, 197, 122, 0.24);
}
.button.primary:hover { box-shadow: 0 20px 58px rgba(24, 197, 122, 0.34); }
.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}
.button.ghost { color: var(--deep); border-color: var(--line); background: var(--white); }
.button.ghost:hover { border-color: var(--deep); background: var(--steel); }
.button.lg { min-height: 54px; padding: 16px 30px; font-size: 16px; }
.button.sm { min-height: 38px; padding: 8px 14px; font-size: 13px; }
.button .arrow { transition: transform var(--ease); }
.button:hover .arrow { transform: translateX(4px); }

/* Hero (延续 solar-showcase 深蓝渐变 + 光晕) ---------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 620px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 42vw);
  align-items: center;
  background:
    radial-gradient(circle at 68% 28%, rgba(0, 183, 200, 0.18), transparent 30%),
    linear-gradient(135deg, #071b42, #0a2a66);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 78%);
}
.hero-media { position: relative; z-index: 2; height: 100%; min-height: 420px; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Hero Carousel ===== */
.hero-carousel { position: relative; width: 100%; height: 100%; overflow: hidden; }
.hero-carousel-track { display: flex; width: 100%; height: 100%; transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1); }
.hero-carousel-slide { flex: 0 0 100%; height: 100%; }
.hero-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-carousel-dots {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 3;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); border: none; cursor: pointer;
  transition: all 0.3s ease; padding: 0;
}
.hero-dot:hover { background: rgba(255,255,255,0.7); }
.hero-dot.active { background: #fff; width: 24px; border-radius: 4px; }
.hero-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff; cursor: pointer; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease; opacity: 0;
}
.hero-carousel:hover .hero-carousel-arrow { opacity: 1; }
.hero-carousel-arrow:hover { background: rgba(255,255,255,0.3); }
.hero-arrow-prev { left: 16px; }
.hero-arrow-next { right: 16px; }
.hero-carousel-arrow svg { width: 18px; height: 18px; }

@media (max-width: 768px) {
  .hero-carousel-arrow { opacity: 1; width: 32px; height: 32px; }
  .hero-arrow-prev { left: 8px; }
  .hero-arrow-next { right: 8px; }
  .hero-dot { width: 6px; height: 6px; }
  .hero-dot.active { width: 18px; }
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  /* 遮罩透明度提高 20% → 不透明度 ×0.8：0.92→0.74 / 0.15→0.12，轮播图更透亮 */
  background: linear-gradient(90deg, rgba(7, 27, 66, 0.74), rgba(7, 27, 66, 0.12));
}
.hero-content {
  position: relative; z-index: 2; max-width: 760px;
  padding: clamp(60px, 8vw, 96px) clamp(24px, 6vw, 72px);
  color: var(--white);
}
.hero-content h1 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.08; }
.hero-content h1 em { font-style: normal; color: var(--green); }
.hero-sub { margin-top: 18px; font-size: clamp(16px, 1.5vw, 19px); color: rgba(255, 255, 255, 0.86); }
.hero-sub b { color: var(--green); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.hero-trust span {
  padding: 7px 10px; color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px; font-size: 12px; font-weight: 800;
}

/* Page banner (内页) ---------------------------------------------------------- */
.page-banner {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(52px, 7vw, 88px) 0;
  background: linear-gradient(135deg, #071b42, #0a2a66);
  color: var(--white);
}
.page-banner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 78% 20%, rgba(24, 197, 122, 0.22), transparent 42%);
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { font-size: clamp(28px, 3.6vw, 44px); }
.page-banner p { margin-top: 14px; max-width: 700px; color: rgba(255, 255, 255, 0.82); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; font-size: 13px; color: rgba(255, 255, 255, 0.66); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb span { opacity: 0.5; }

/* Cards ---------------------------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.card {
  position: relative; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--steel); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 620ms ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 22px; }
.card-body h3 { font-size: 19px; }
.card-body p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.card-tags span {
  padding: 4px 9px; background: var(--steel); color: var(--deep);
  border-radius: 999px; font-size: 12px; font-weight: 700;
}
.card-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  color: var(--deep); font-weight: 800; font-size: 14px;
}
.card-link svg { transition: transform var(--ease); }
.card:hover .card-link svg { transform: translateX(4px); }

/* Feature / advantage */
.feature {
  padding: 26px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  border-top: 3px solid var(--green);
  transition: transform var(--ease), box-shadow var(--ease);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 16px;
  display: grid; place-items: center;
  background: rgba(24, 197, 122, 0.12); color: var(--green);
}
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 18px; }
.feature p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* Product detail (products page) */
.product-detail {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 48px); align-items: center;
  padding: clamp(32px, 4vw, 56px) 0;
  border-top: 1px solid var(--line);
}
.product-detail:first-of-type { border-top: 0; }
.product-detail:nth-child(even) .product-detail-media { order: 2; }
.product-detail-media {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow);
}
.product-detail-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.detail-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0; }
.detail-metrics div { padding: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.detail-metrics b { display: block; font-size: 20px; color: var(--deep); }
.detail-metrics span { font-size: 12px; color: var(--muted); }
.spec-list { display: grid; gap: 10px; margin: 18px 0 24px; }
.spec-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--ink); }
.spec-list svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; margin-top: 4px; }

/* Solutions tabs */
.solution-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.solution-tabs { display: grid; gap: 8px; }
.solution-tabs button {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 16px 18px; text-align: start;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); font-size: 15px; font-weight: 800; color: var(--ink);
  transition: all var(--ease);
}
.solution-tabs button:hover { border-color: var(--deep); color: var(--deep); }
.solution-tabs button.active {
  background: var(--deep); color: var(--white); border-color: var(--deep);
  box-shadow: 0 16px 40px rgba(10, 42, 102, 0.24);
}
.solution-panel { display: none; padding: clamp(24px, 3vw, 40px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.solution-panel.active { display: block; animation: fadeUp 420ms ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.solution-panel h3 { font-size: 24px; margin-bottom: 12px; }
.solution-panel p { color: var(--muted); margin-bottom: 20px; }

/* Certificate wall */
.cert-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; }
.cert-item {
  padding: 20px; text-align: center; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.cert-item:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.cert-badge {
  width: 68px; height: 68px; margin: 0 auto 12px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--deep), #16459c);
  color: var(--white); font-weight: 800; font-size: 13px; letter-spacing: 0.02em;
}
.cert-item b { display: block; font-size: 15px; }
.cert-item span { font-size: 12px; color: var(--muted); }
.cert-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.cert-shot { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.cert-shot img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.cert-shot figcaption { padding: 12px 14px; font-size: 13px; color: var(--muted); text-align: center; }

/* Factory */
.factory-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.factory-cell { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); }
.factory-cell img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 620ms ease; }
.factory-cell:hover img { transform: scale(1.06); }
.factory-cell figcaption {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 14px 16px; color: var(--white); font-weight: 800; font-size: 14px;
  background: linear-gradient(transparent, rgba(7, 27, 66, 0.88));
}
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; }
.stat-strip div { padding: 24px; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.stat-strip b { display: block; font-size: clamp(26px, 3vw, 38px); color: var(--deep); }
.stat-strip span { font-size: 13px; color: var(--muted); }

/* News */
.news-layout { display: grid; gap: 20px; }
.news-item {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px;
  padding: 20px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform var(--ease), box-shadow var(--ease);
}
.news-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-item img { width: 100%; height: 150px; object-fit: cover; border-radius: 6px; }
.news-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; font-size: 12px; color: var(--muted); }
.news-tag { padding: 3px 9px; background: var(--steel); color: var(--deep); border-radius: 999px; font-weight: 800; }
.news-item h3 { font-size: 19px; }
.news-item p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* Downloads */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.dl-item {
  display: flex; align-items: center; gap: 14px; padding: 20px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform var(--ease), box-shadow var(--ease);
}
.dl-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.dl-ico { width: 46px; height: 46px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; background: rgba(10, 42, 102, 0.08); color: var(--deep); }
.dl-ico svg { width: 22px; height: 22px; }
.dl-item b { display: block; font-size: 15px; }
.dl-item span { font-size: 12px; color: var(--muted); }

/* FAQ */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); margin-bottom: 12px; overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; text-align: start; font-size: 16px; font-weight: 800; color: var(--ink); }
.faq-q:hover { color: var(--deep); }
.faq-q svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--green); transition: transform var(--ease); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 20px 20px; color: var(--muted); font-size: 15px; }
.faq-item.open .faq-a { display: block; }

/* Inquiry / Contact */
.inquiry-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.inquiry-copy h2 { font-size: clamp(26px, 3vw, 38px); }
.inquiry-copy p { margin-top: 14px; color: var(--muted); }
.contact-list { display: grid; gap: 16px; margin-top: 28px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-ico { width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; background: rgba(24, 197, 122, 0.12); color: var(--green); }
.contact-ico svg { width: 20px; height: 20px; }
.contact-list b { display: block; font-size: 15px; }
.contact-list span { font-size: 13px; color: var(--muted); }

.inquiry-form {
  padding: clamp(24px, 3vw, 36px);
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--paper); color: var(--ink); font-size: 15px;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(24, 197, 122, 0.16);
}
.field textarea { min-height: 110px; resize: vertical; }

/* Footer ---------------------------------------------------------------------- */
.site-footer { padding: clamp(44px, 6vw, 76px) 0 28px; background: var(--deep); color: rgba(255, 255, 255, 0.78); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.footer-col h4 { margin-bottom: 16px; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a, .footer-col li { font-size: 15px; color: rgba(255, 255, 255, 0.72); }
.footer-col a:hover { color: var(--green); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand .brand-mark { background: #ffffff; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25); }
.footer-brand b { font-size: 21px; letter-spacing: 0.06em; color: var(--white); }
.footer-desc { max-width: 340px; font-size: 15px; line-height: 1.75; color: rgba(255, 255, 255, 0.66); }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); }
.footer-social a:hover { background: var(--green); }
.footer-social svg { width: 18px; height: 18px; }
.footer-qr { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.footer-qr a { display: block; border-radius: 8px; overflow: hidden; transition: transform var(--ease); }
.footer-qr a:hover { transform: translateY(-2px); }
.footer-qr img { width: 92px; height: 92px; display: block; background: #ffffff; padding: 4px; border-radius: 8px; }
.footer-qr span { font-size: 13px; line-height: 1.55; color: rgba(255, 255, 255, 0.72); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px; color: rgba(255, 255, 255, 0.55);
}

/* Floating WhatsApp (右下角悬浮, 需求强制要求) -------------------------------- */
.floating-contact { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 45; display: grid; gap: 10px; justify-items: end; }
.floating-contact button, .floating-contact a {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; color: var(--white);
  box-shadow: 0 16px 40px rgba(10, 42, 102, 0.28);
  transition: transform var(--ease);
}
.floating-contact button:hover, .floating-contact a:hover { transform: translateY(-3px); }
.fab-whatsapp { background: #25d366; animation: fabPulse 2.4s ease-out infinite; }
.fab-top { background: var(--deep); opacity: 0; pointer-events: none; }
.fab-top.show { opacity: 1; pointer-events: auto; }
@keyframes fabPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.floating-contact svg { width: 24px; height: 24px; }

/* Reveal on scroll.
   关键兜底：HTML 元素默认带 .no-js（由 build.py 输出），此时所有 .reveal 元素
   强制可见。JS 第一行将 <html> 切到 .js 后才接管隐藏+动画。
   这样 JS 失败/慢加载/被拦截时整页内容仍可见，绝不空白。 */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 620ms ease, transform 620ms cubic-bezier(0.16, 1, 0.3, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal.in { opacity: 1; transform: none; transition: none; }
}

/* Mobile drawer */
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 6px; border: 1px solid var(--line); background: var(--white); place-items: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: var(--deep); }
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; inset-inline: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.mobile-drawer { position: fixed; inset: 0; z-index: 55; background: rgba(7, 27, 66, 0.45); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity var(--ease); }
.mobile-drawer.open { opacity: 1; pointer-events: auto; }
.mobile-drawer .panel {
  position: absolute; inset-inline-end: 0; top: 0; height: 100%; width: min(320px, 84vw);
  padding: 20px; background: var(--white); overflow-y: auto;
  transform: translateX(100%); transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-drawer.open .panel { transform: none; }
.mobile-drawer .close { width: 38px; height: 38px; border-radius: 6px; display: grid; place-items: center; margin-inline-start: auto; color: var(--muted); }
.mobile-drawer .panel > a { display: block; padding: 14px 12px; border-radius: 6px; font-size: 16px; font-weight: 700; }
.mobile-drawer .panel > a:hover, .mobile-drawer .panel > a.active { background: var(--steel); color: var(--deep); }

/* RTL (阿拉伯语) */
html[dir="rtl"] .hero-media::after { transform: scaleX(-1); }
/* RTL 下导航下划线同样镜像，保证渐变方向与阅读方向一致 */
html[dir="rtl"] .site-nav a::after { transform: scaleX(-0.55); }
html[dir="rtl"] .site-nav a:hover::after,
html[dir="rtl"] .site-nav a.active::after { transform: scaleX(-1); }
html[dir="rtl"] .button .arrow, html[dir="rtl"] .card-link svg { transform: scaleX(-1); }
html[dir="rtl"] .button:hover .arrow { transform: scaleX(-1) translateX(4px); }

/* Responsive (需求: 移动端优先) ----------------------------------------------- */
@media (max-width: 1080px) {
  .site-nav { display: none; }
  .nav-toggle { display: grid; }
  .hero { grid-template-columns: 1fr; min-height: 520px; }
  .hero-media { min-height: 260px; order: -1; }
  /* 移动端同步同比例：0.35→0.28 / 0.9→0.72 */
  .hero-media::after { background: linear-gradient(180deg, rgba(7, 27, 66, 0.28), rgba(7, 27, 66, 0.72)); }
  .hero-content { padding-top: 32px; }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .solution-layout { grid-template-columns: 1fr; }
  .solution-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-detail { grid-template-columns: 1fr; }
  .product-detail:nth-child(even) .product-detail-media { order: 0; }
  .inquiry-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .container { width: calc(100% - 32px); }
  .g-4, .g-3, .g-2, .g-5 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; }
  .news-item img { height: 180px; }
  .detail-metrics { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .solution-tabs { grid-template-columns: 1fr; }
  .site-header { padding: 12px 16px; }
  .brand-text span { display: none; }
}

/* ==========================================================================
   Search (需求六: 输入 51.2V Battery 即可搜索)
   ========================================================================== */
.search-toggle {
  width: 40px; height: 40px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--white);
  display: grid; place-items: center; color: var(--deep);
  transition: border-color var(--ease), background var(--ease);
}
.search-toggle:hover { border-color: var(--green-ink); color: var(--green-ink); background: var(--steel); }
.search-toggle svg { width: 18px; height: 18px; }

.search-overlay {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(7, 27, 66, 0.55); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity var(--ease);
}
.search-overlay.open { opacity: 1; pointer-events: auto; }
.search-panel {
  width: min(640px, calc(100% - 32px));
  margin: 12vh auto 0;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-strong); overflow: hidden;
  transform: translateY(-14px); transition: transform var(--ease);
}
.search-overlay.open .search-panel { transform: none; }
.search-field { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.search-field svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.search-field input {
  flex: 1; border: 0; outline: none; background: transparent;
  font-size: 17px; color: var(--ink);
}
.search-close { width: 32px; height: 32px; border-radius: 6px; display: grid; place-items: center; color: var(--muted); }
.search-close:hover { background: var(--steel); color: var(--deep); }
.search-results { max-height: 52vh; overflow-y: auto; padding: 8px; }
.search-results .empty { padding: 28px; text-align: center; color: var(--muted); font-size: 15px; }
.search-hit {
  display: block; padding: 12px 14px; border-radius: 6px;
  transition: background var(--ease);
}
.search-hit:hover { background: var(--steel); }
.search-hit b { display: block; font-size: 15px; color: var(--ink); }
.search-hit span { font-size: 13px; color: var(--muted); }
.search-hit em { font-style: normal; background: rgba(24, 197, 122, 0.22); color: var(--deep); border-radius: 3px; padding: 0 2px; }

/* Video center (需求六: 视频中心) */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }
.video-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease);
}
.video-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.video-card video { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #071b42; display: block; }
.video-card .vbody { padding: 18px 20px; }
.video-card h3 { font-size: 17px; }
.video-card p { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* 可点击的 feature 卡 (首页板块入口) */
a.feature { display: block; }
a.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
a.feature .card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--deep); font-weight: 800; font-size: 14px; }
a.feature:hover .card-link svg { transform: translateX(4px); }
a.feature .card-link svg { transition: transform var(--ease); }

/* ===== 产品中心 ===== */

/* 产品筛选标签 */
.product-filter {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.chip {
  display: inline-flex; align-items: center; padding: 8px 20px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 999px; font-size: 14px; font-weight: 600;
  color: var(--text); cursor: pointer; transition: all var(--ease);
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active {
  background: var(--primary); border-color: var(--primary);
  color: #fff; box-shadow: 0 4px 14px rgba(0, 90, 226, 0.25);
}

/* 产品网格 */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

/* 产品卡片 */
.product-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease);
  display: flex; flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.product-card.hide { display: none; }

/* 产品图片区 */
.product-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f8fc 0%, #e8eef7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.product-card:hover .product-card-media img {
  transform: scale(1.08);
}
.product-badge {
  position: absolute; top: 14px; left: 14px;
  padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
  background: var(--deep); color: #fff;
  letter-spacing: 0.3px;
}
.product-badge.best { background: #f5a623; }
.product-badge.new { background: #27ae60; }

/* 产品内容区 */
.product-card-body {
  padding: 22px 24px 24px;
  display: flex; flex-direction: column; flex: 1;
}
.product-cat {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--primary);
  margin-bottom: 8px;
}
.product-card-body h3 {
  font-size: 20px; font-weight: 800; color: var(--deep);
  margin: 0 0 10px; line-height: 1.3;
}
.product-card-body > p {
  font-size: 14px; line-height: 1.65; color: var(--muted);
  margin: 0 0 18px; flex: 1;
}

/* 产品规格参数 */
.product-specs {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; margin-bottom: 16px;
  padding: 14px 0; border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.product-specs > div {
  text-align: center;
}
.product-specs b {
  display: block; font-size: 16px; font-weight: 800;
  color: var(--deep);
}
.product-specs span {
  font-size: 11px; color: var(--muted); margin-top: 3px;
  display: block;
}

/* 产品标签 */
.product-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 18px;
}
.product-tags span {
  font-size: 11px; padding: 3px 9px;
  background: var(--bg); border-radius: 4px;
  color: var(--muted); font-weight: 500;
}

/* 产品操作按钮 */
.product-actions {
  display: flex; gap: 10px;
}
.product-actions .button {
  flex: 1; justify-content: center;
  text-align: center;
}

/* 响应式 */
@media (max-width: 640px) {
  .product-grid { grid-template-columns: 1fr; gap: 20px; }
  .product-specs b { font-size: 14px; }
  .chip { padding: 7px 16px; font-size: 13px; }
}

/* ===== 产品详情弹窗 ===== */
.product-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(7, 27, 66, 0.75);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.product-modal-overlay.open {
  opacity: 1; visibility: visible;
}
.product-modal {
  position: relative;
  background: #fff;
  border-radius: 16px;
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.product-modal-overlay.open .product-modal {
  transform: translateY(0) scale(1);
}
.product-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--line);
  color: var(--deep);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  transition: all 0.2s ease;
}
.product-modal-close:hover {
  background: var(--deep); color: #fff;
  transform: rotate(90deg);
}
.product-modal-body {
  display: grid;
  grid-template-columns: 42% 58%;
  max-height: 90vh;
}
.product-modal-media {
  position: relative;
  background: linear-gradient(135deg, #f5f8fc 0%, #e8eef7 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 30px;
}
.product-modal-media img {
  width: 100%; height: auto; max-height: 400px;
  object-fit: contain;
}
.product-modal-badges {
  position: absolute; top: 20px; left: 20px;
  display: flex; flex-direction: column; gap: 6px;
}
.product-modal-badges .product-badge {
  position: static;
}
.product-modal-content {
  padding: 36px 40px;
  overflow-y: auto;
  max-height: 90vh;
}
.product-modal-content h2 {
  font-size: 28px; font-weight: 800; color: var(--deep);
  margin: 6px 0 14px;
}
.product-modal-content > p {
  font-size: 15px; line-height: 1.7; color: var(--muted);
  margin: 0 0 20px;
}
.modal-actions {
  display: flex; gap: 10px; margin-bottom: 28px;
  flex-wrap: wrap;
}
.specs-title {
  font-size: 16px; font-weight: 800; color: var(--deep);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}
.specs-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.specs-row {
  display: grid;
  grid-template-columns: 45% 55%;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.specs-row:last-child { border-bottom: none; }
.specs-row:nth-child(even) { background: var(--bg); }
.specs-label {
  padding: 10px 14px;
  font-weight: 600;
  color: var(--deep);
  background: rgba(0, 90, 226, 0.04);
}
.specs-value {
  padding: 10px 14px;
  color: var(--text);
  word-break: break-word;
}

/* 弹窗响应式 */
@media (max-width: 768px) {
  .product-modal-body {
    grid-template-columns: 1fr;
  }
  .product-modal-media {
    max-height: 250px;
    padding: 20px;
  }
  .product-modal-media img { max-height: 200px; }
  .product-modal-content {
    padding: 24px 20px;
    max-height: 60vh;
  }
  .product-modal-content h2 { font-size: 22px; }
  .specs-row {
    grid-template-columns: 40% 60%;
    font-size: 12px;
  }
  .specs-label, .specs-value { padding: 8px 10px; }
}

/* ==========================================================================
   Motion Enrichment — 动效增强层 (UI Designer pass)
   - 全局：滚动锚点补偿 / 焦点环 / 选区品牌色 / reduced-motion 兜底
   - Hero & Page banner：Aurora 漂移 + 呼吸辉光 + 内容分段入场
   - 卡片/特性/下载/认证/页脚社交等：hover 微交互与图标动效
   - FAQ / 语言菜单 / 头部：入场与展开动效
   说明：纯 CSS 附加层，36 页共享一份 site.css，无需改 HTML。
   ========================================================================== */

/* ---- 全局细节 ---- */
html { scroll-padding-top: calc(var(--header-h) + 18px); }
::selection { background: rgba(24, 197, 122, 0.30); color: var(--deep); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid rgba(24, 197, 122, 0.55);
  outline-offset: 2px; border-radius: 4px;
}

/* ---- 顶栏入场 ---- */
@keyframes mfHeaderIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.site-header { animation: mfHeaderIn 620ms cubic-bezier(0.16, 1, 0.3, 1) both; }

/* ---- Hero：Aurora 光晕漂移（transform-only，GPU 友好）---- */
.hero::before {
  content: ""; position: absolute; inset: -12%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at 18% 34%, rgba(24, 197, 122, 0.16), transparent 42%),
    radial-gradient(circle at 82% 18%, rgba(0, 196, 204, 0.15), transparent 40%),
    radial-gradient(circle at 62% 86%, rgba(24, 197, 122, 0.11), transparent 46%);
  animation: mfAurora 17s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes mfAurora {
  from { transform: translate3d(-1.6%, -1%, 0) scale(1); }
  to   { transform: translate3d(1.8%, 1.6%, 0) scale(1.12); }
}
.hero::after { z-index: 1; }           /* 原网格遮罩保持在光晕之上 */

/* ---- Hero 内容分段入场（已带 .reveal 的元素除外，避免双动画冲突）---- */
@keyframes mfRise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
.hero-content h1:not(.reveal),
.hero-content .eyebrow:not(.reveal),
.hero-content .hero-sub:not(.reveal),
.hero-content .hero-actions:not(.reveal),
.hero-content .hero-trust:not(.reveal) {
  animation: mfRise 760ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-content .eyebrow:not(.reveal) { animation-delay: 60ms; }
.hero-content h1:not(.reveal)        { animation-delay: 120ms; }
.hero-content .hero-sub:not(.reveal) { animation-delay: 230ms; }
.hero-content .hero-actions:not(.reveal) { animation-delay: 340ms; }
.hero-content .hero-trust:not(.reveal)   { animation-delay: 450ms; }

/* ---- Page banner：辉光呼吸 + 文案入场 ---- */
.page-banner::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at 18% 30%, rgba(0, 196, 204, 0.14), transparent 46%),
    radial-gradient(circle at 86% 74%, rgba(24, 197, 122, 0.18), transparent 44%);
  animation: mfBreath 7s ease-in-out infinite;
}
@keyframes mfBreath { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
.page-banner .container { z-index: 2; }
.page-banner h1, .page-banner .breadcrumb, .page-banner p {
  animation: mfRise 680ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.page-banner .breadcrumb { animation-delay: 40ms; }
.page-banner h1 { animation-delay: 110ms; }
.page-banner p  { animation-delay: 200ms; }

/* ---- 卡片：顶部绿色描边从左到右扫出 ---- */
.card::before {
  content: ""; position: absolute; top: 0; inset-inline: 0; height: 3px; z-index: 2;
  background: linear-gradient(90deg, var(--green), #0bb08a);
  transform: scaleX(0); transform-origin: left;
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.card:hover::before { transform: scaleX(1); }
html[dir="rtl"] .card::before { transform-origin: right; }

/* ---- Feature / 特性卡：图标抬起 + 微旋 ---- */
.feature-icon {
  transition: transform 360ms var(--ease), box-shadow 360ms var(--ease),
              background 360ms var(--ease), color 360ms var(--ease);
}
.feature:hover .feature-icon {
  transform: translateY(-3px) rotate(-5deg) scale(1.06);
  box-shadow: 0 12px 26px rgba(24, 197, 122, 0.20);
}

/* ---- 卡片深蓝配色：Why Choose 模块 + Solutions 模块共用 ----
   任何需要"卡片顶边/图标走 --deep 深蓝、标题加粗放大"的 section，
   加上 .feature-deep 或 .why-choose 类即可，保持视觉一致。 */
.why-choose .feature,
.feature-deep .feature {
  border-top-color: var(--deep);
}
.why-choose .feature-icon,
.feature-deep .feature-icon {
  background: rgba(10, 42, 102, 0.12);
  color: var(--deep);
}
.why-choose .feature:hover .feature-icon,
.feature-deep .feature:hover .feature-icon {
  box-shadow: 0 12px 26px rgba(10, 42, 102, 0.22);
}
.why-choose .feature h3,
.feature-deep .feature h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.why-choose .feature p,
.feature-deep .feature p {
  font-size: 16px;
  font-weight: 600;
  color: #4a5568;
  line-height: 1.65;
}

/* ---- 下载卡片：图标呼吸位移动效 ---- */
.dl-ico { transition: transform 360ms var(--ease), background 360ms var(--ease), color 360ms var(--ease); }
.dl-item:hover .dl-ico { transform: rotate(-8deg) scale(1.08); background: rgba(24, 197, 122, 0.16); color: var(--green); }
.dl-item:hover { border-color: transparent; }

/* ---- 认证徽章：hover 放大 + 品牌光环 ---- */
.cert-badge { transition: transform 320ms var(--ease), box-shadow 320ms var(--ease); }
.cert-item:hover .cert-badge { transform: scale(1.1); box-shadow: 0 12px 30px rgba(10, 42, 102, 0.28); }

/* ---- 联系图标 hover ---- */
.contact-ico { transition: transform 340ms var(--ease), background 340ms var(--ease); }
.contact-list li:hover .contact-ico { transform: scale(1.1); background: rgba(24, 197, 122, 0.22); }

/* ---- 页脚社交图标 hover：上浮 + 品牌光 ---- */
.footer-social a {
  transition: transform 320ms var(--ease), background 320ms var(--ease),
              box-shadow 320ms var(--ease);
}
.footer-social a:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 10px 24px rgba(24, 197, 122, 0.35);
}

/* ---- 筛选 Chip / 语言菜单：细腻反馈 ---- */
.chip:hover { transform: translateY(-2px); }
.chip:active { transform: translateY(0) scale(0.97); }
@keyframes mfPop {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
.language-menu.open { animation: mfPop 200ms ease both; }

/* ---- 按钮按压反馈 ---- */
.button:active { transform: translateY(0) scale(0.97); }

/* ---- FAQ：答案展开淡入（在 display 切换基础上加入场）---- */
.faq-item.open .faq-a { animation: mfFaq 380ms var(--ease) both; }
@keyframes mfFaq { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.faq-item { transition: box-shadow 320ms var(--ease), border-color 320ms var(--ease); }
.faq-item:hover { border-color: rgba(24, 197, 122, 0.55); box-shadow: 0 10px 26px rgba(10, 42, 102, 0.08); }

/* ---- 统计数字：等宽数字防跳动 + hover 抬升 ---- */
.stat-strip b { font-variant-numeric: tabular-nums; }
.js .stat-strip .reveal {
  transition: opacity 620ms ease, transform 620ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 420ms ease;
}
.stat-strip .reveal:hover { box-shadow: 0 16px 40px rgba(10, 42, 102, 0.12); }

/* ---- 中档宽度（≤1380px）：收紧页头，避免 CTA 溢出裁切 ---- */
@media (max-width: 1380px) {
  .site-header { padding-inline: 24px; gap: 14px; }
  .site-nav { gap: 0; }
  /* 字号 16→15 并收紧左右 padding，抵消字号增大带来的宽度增长，避免 1080~1380px 区间挤爆 */
  .site-nav a { padding: 10px 8px; font-size: 15px; }
  .site-nav a::after { left: 8px; right: 8px; }
  .header-actions { gap: 8px; }
}

/* ---- 统一 reduced-motion：全局关闭动画/过渡 ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
