/* ============================================
   TouchScreen Pro - Main Stylesheet
   SEO-Friendly Commercial Touchscreen Website
   ============================================ */

/* --- 自托管字体 ---
   原先 CSS 写着 'Inter' 却从未加载它:装了 Inter 的人(设计师/开发)看到 Inter,
   其余访客落到系统字体 —— 同一份设计在不同机器上长得不一样。
   现在两款都自托管(latin 子集、可变字重),文件名带 -v1 便于替换即失效:
     Archivo  600–800  标题(显示字,和正文拉开对比)
     Inter    400–700  正文
   许可证随文件放在 /static/fonts/(SIL OFL 1.1)。 */
@font-face {
  font-family: 'Archivo';
  src: url('/static/fonts/archivo-var-v1.woff2') format('woff2');
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/static/fonts/inter-var-v1.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* --- CSS Variables --- */
:root {
  --primary: #9333ea;
  --primary-dark: #7c3aed;
  --primary-light: #a855f7;
  --secondary: #0a0a1a;
  --accent: #06b6d4;
  --accent-light: #22d3ee;
  --text: #222222;
  --text-light: #666666;
  /* 次级文字。原值 #999999 在白底只有 2.85:1 —— 小字不达 4.5:1,连当图标色
     都不够 3:1。#6e6e6e 在三档底色上都过:白底 5.10:1 / 纸面 4.99:1 / 浅灰底 4.78:1,
     且仍比 --text-light(#666) 略浅,层级没塌。 */
  --text-muted: #6e6e6e;
  /* 不用纯白:纯白在大面积留白下显平、显假;往主色(紫)偏一点点即可 */
  --bg: #fdfcff;
  --bg-light: #f8f7fc;
  --bg-dark: #0f0f23;
  --bg-darker: #070714;
  --border: #e5e5e5;
  --border-light: #f0f0f0;
  --success: #28a745;
  --warning: #ffc107;
  --info: #06b6d4;
  --shadow-sm: 0 1px 3px rgba(147,51,234,0.08);
  --shadow-md: 0 4px 12px rgba(147,51,234,0.12);
  --shadow-lg: 0 10px 30px rgba(147,51,234,0.15);
  --neon-glow: 0 0 20px rgba(147,51,234,0.5), 0 0 40px rgba(6,182,212,0.3);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
  --max-width: 1400px;
  /* 层级按语义分档:不要再写 999/1000 这类魔法数(相对顺序与原值一致) */
  --z-raised: 1;      /* 元素内部浮起:放大镜镜片 */
  --z-local: 10;      /* 模块内浮层:放大镜结果面板、二级下拉 */
  --z-float: 60;      /* 页面浮层:悬浮按钮、自定义下拉面板 */
  --z-sticky: 100;    /* sticky 头部 */
  --z-dropdown: 110;  /* 头部下拉(要盖住头部) */
  /* 遮罩。命名刻意不用 overlay —— overlay 听起来在 sticky 之上,而它必须在
     头部**之下**:抽屉是 <header> 的子元素、与头部共用层级,遮罩一旦高于头部
     就会把抽屉和汉堡一起盖住(点不动)。 */
  --z-mask: 90;
  --z-modal: 200;     /* 弹窗(最高) */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  /* 显示字:标题与数字用 Archivo,正文用 Inter —— 一页两个角色,不是同一张脸 */
  --font-display: 'Archivo', var(--font-sans);
}

/* --- Reset & Base --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
  font-size: 16px;
  /* clip 而不是 hidden:hidden 会连带影响 position: sticky/fixed 的后代(抽屉、悬浮按钮),
     clip 只裁切、不建立滚动容器。旧浏览器不认识 clip 就用上面那行 hidden 兜底。 */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  overflow-x: hidden;
  overflow-x: clip;
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1.5;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(147,51,234,0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(147,51,234,0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--text);
}

.btn-secondary:hover {
  background: var(--text);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.9rem;
}

/* --- Header --- */
.header {
  background: white;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
}

.header-top {
  /* 实色:工具条不需要渐变 */
  background: var(--bg-darker);
  color: white;
  padding: 8px 0;
  font-size: 0.875rem;
  /* 2px 实线规则,而不是 1px 紫色发丝 —— 发丝+白底+sticky 是最好认的模板导航指纹 */
  border-bottom: 2px solid var(--border);
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-top a {
  color: white;
  opacity: 0.9;
}

.header-top a:hover {
  opacity: 1;
  color: var(--primary-light);
}

.header-top-left,
.header-top-right {
  display: flex;
  gap: 20px;
  align-items: center;
}

.header-main {
  padding: 15px 0;
}

.header-main .container {
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  /* 把导航推到右侧贴边(不再居中):居中链接是最好认的模板导航指纹之一 */
  margin-right: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
}

/* 定位语:让主行是有信息量的报头,而不是「logo + 菜单」的默认形态 */
.logo-tagline {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.2px;
}

/* 主 CTA 在深色工具条里(桌面);窄屏工具条隐藏,改由主行承担 */
.header-cta-mobile {
  display: none;
}

.logo span {
  color: var(--primary);
}


.main-nav ul {
  display: flex;
  gap: 30px;
  align-items: center;
}

.main-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 5px 0;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

/* Dropdown */
.has-dropdown {
  position: relative;
}

.main-nav .dropdown {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: var(--z-dropdown);
}

.main-nav .has-dropdown:hover .dropdown,
.main-nav .has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--text);
}

.dropdown a:hover {
  background: var(--bg-light);
  color: var(--primary);
}

.dropdown a::after {
  display: none;
}

/* Arrow indicators for dropdown triggers */
.main-nav .has-dropdown > a::after {
  content: '▾';
  position: static;
  display: inline-block;
  width: auto;
  height: auto;
  background: none;
  margin-left: 6px;
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.main-nav .has-sub-dropdown > a::after {
  content: '▸';
  position: absolute;
  right: 15px;
  top: 50%;
  bottom: auto;
  left: auto;
  width: auto;
  height: auto;
  background: none;
  transform: translateY(-50%);
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.main-nav .has-sub-dropdown:hover > a::after {
  transform: translateY(-50%) rotate(90deg);
}

/* Sub-dropdown (2nd & 3rd level) */
.main-nav .has-sub-dropdown {
  position: relative;
}

.main-nav .sub-dropdown {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  min-width: 200px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0 8px 8px 0;
  box-shadow: var(--shadow-lg);
  padding: 10px 0;
  list-style: none;
  z-index: var(--z-local);
}

.main-nav .has-sub-dropdown:hover > .sub-dropdown {
  display: block;
}

.main-nav .sub-dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.main-nav .sub-dropdown a:hover {
  background: var(--bg-light);
  color: var(--primary);
}

.dropdown-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 4px 0;
}

.header-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  width: 40px;
  height: 40px;
  position: relative;
  z-index: var(--z-dropdown);
}

.mobile-menu-btn .hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: var(--transition);
}

.mobile-menu-btn .hamburger::before,
.mobile-menu-btn .hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

.mobile-menu-btn .hamburger::before {
  top: -8px;
}

.mobile-menu-btn .hamburger::after {
  top: 8px;
}

.mobile-menu-btn.active .hamburger {
  background: transparent;
}

.mobile-menu-btn.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-menu-btn.active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: var(--z-mask);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

/* --- Hero Section --- */
.hero {
  background-color: #0f0f23;
  /* 图 URL 由 HTML 的 style 以 CSS 变量传入(见下);不给值时的兜底 */
  background-image: var(--hero-img, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  height: clamp(440px, 38vw, 620px);   /* 视口比例高度,避免 aspect-ratio+min-height 撑宽 */
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* 有 webp 时格式协商:image-set() 的 type() 必须是带引号的 CSS 字符串,
   而 templ 的 style 属性一定会被双重 HTML 转义(引号 → &#39; 字面量),
   所以带引号的部分只能写在这里,HTML 里只传无引号的 --hero-img / --hero-webp。
   本类只在 webp 文件确实存在时才加上(否则 image-set 的候选 404 不会回退,背景会整个消失)。
   注意:必须排在 .hero 之后 —— 同为单类选择器,靠源顺序覆盖。 */
.hero.hero-webp {
  background-image: image-set(
    var(--hero-webp) type("image/webp") 1x,
    var(--hero-img) type("image/jpeg") 1x
  );
}

/* hero-banner.jpg 已含文字排版:遮罩仅做左侧压暗,保证 HTML 文案可读 */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 15, 34, 0.82) 0%, rgba(8, 15, 34, 0.55) 38%, rgba(8, 15, 34, 0.08) 62%, rgba(8, 15, 34, 0) 100%);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero-content h1 {
  color: white;
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 600px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.hero-content p {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 30px;
  line-height: 1.7;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* --- Stats Section --- */
.stats-section {
  padding: 60px 0;
  background: var(--bg-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 5px;
  /* 数字列对齐:15+ / 5000+ 这类统计值宽度不一致会让四栏参差 */
  font-variant-numeric: tabular-nums;
}

.stat-label {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* --- Section Styles --- */
.section {
  padding: 80px 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

.section-alt {
  background: var(--bg-light);
}

/* 三条产品线之后的全局目录入口:一行安静的引导,不是单独立的大按钮 */
.product-lines-more {
  text-align: center;
  padding-bottom: 64px;
}

.product-lines-more p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.95rem;
}

.product-lines-more a {
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
}

/* 产品线标题下的子分类入口:只在该线有子类时出现(顺带打破三条线版式完全重复) */
.line-subcats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.line-subcats a {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text-light);
  font-size: 0.85rem;
  transition: var(--transition);
}

.line-subcats a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

@media (max-width: 768px) {
  .product-lines-more {
    padding-bottom: 48px;
  }
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

/* 左偏置的区块头(用于产品区与系列区):标题左对齐、行动入口放同一行右侧。
   全站每屏都居中会显千篇一律;这两屏借右侧空白把入口提到视线高度。 */
.section-header--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  max-width: none;
  margin: 0 0 40px;
}

.section-header--split .section-head-text {
  max-width: 620px;
}

@media (max-width: 768px) {
  .section-header--split {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

.section-label {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 15px;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.05rem;
}

/* --- Features Section --- */
.features-grid {
  display: grid;
  /* 等宽 + 同行等高:四张卡片在每个断点都对齐。
     (曾按 anti-pattern 的「不等宽 / 混合高度」做过,实测看着像没对齐 —— 回退。) */
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  align-items: stretch;
}

.feature-card {
  background: white;
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-light);
  /* 图标与标题同行、正文另起一行:网格两列,首行是「图标 | 标题」 */
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  align-content: start;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.feature-icon {
  color: var(--primary);
  line-height: 0;
}

/* 图标与标题同行(两处卡片共用同一套网格位置)。
   对齐方式是「贴首行」而不是「整块居中」:标题会因列宽不同落成 1 行或 2 行,
   按整块居中会让同一排卡片的图标高低参差。 */
.feature-icon,
.industry-icon {
  grid-row: 1;
  grid-column: 1;
  align-self: start;
  margin-bottom: 0;
}

.feature-card h3,
.industry-card h3 {
  grid-row: 1;
  grid-column: 2;
  align-self: start;
  margin-bottom: 0;
}

.feature-card p,
.industry-card p {
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: start;
  margin-top: 14px;
}

/* 描述占弹性行、链接落到最后一行 —— 卡片被拉到同行等高后,
   行业卡的链接会贴到卡片底部,一排卡片的链接位置也就对齐了 */
.feature-card,
.industry-card {
  grid-template-rows: auto 1fr auto;
}

.industry-card .industry-link {
  grid-column: 1 / -1;
  grid-row: 3;
  align-self: end;
}

.feature-icon .icon-line {
  width: 32px;
  height: 32px;
}

/* LineIcon 默认尺寸(原先靠内联 style,现归到 CSS,尺寸由容器覆盖) */
.icon-line {
  width: 24px;
  height: 24px;
}

/* 页头联系项:图标 + 文字靠 flex 居中对齐(之前用 vertical-align 微调) */
.header-top-left .header-top-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.header-top-left .icon-line {
  width: 16px;
  height: 16px;
}

/* 页脚联系项的图标:尺寸与主色都挂在这里 —— 页脚重写去掉了原来的
   .footer-contact-icon 包裹 span,若把它留给那个类,图标会退回 24px 默认尺寸
   且丢掉主色(实测过)。 */
.footer-contact-item .icon-line {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* --- Products Section --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  contain: layout;
}

.product-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  content-visibility: auto;
  contain-intrinsic-size: auto 320px;
}

.product-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(147,51,234,0.12);
}

.product-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.product-card-image {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card-image picture {
  width: 100%;
  height: 100%;
  display: block;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  /* contain 而非 cover:游戏板产品的图有竖屏(9:16)/横屏(16:9)混合比例,
     cover 会把竖图裁到只剩中间一条;contain 完整显示,浅灰底居中。
     显示器产品(全 4:3)恰好填满,渲染与 cover 完全相同。 */
  object-fit: contain;
  transition: transform 0.3s ease;
  will-change: transform;
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card-placeholder {
  color: var(--text-muted);
  line-height: 0;
}

.product-card-placeholder .icon-line {
  width: 44px;
  height: 44px;
}

.product-card-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-category {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.product-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.85em;
}

.product-card:hover .product-card-title {
  color: var(--primary);
}

.product-card-specs {
  margin-bottom: 14px;
}

.product-card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.product-card-features li {
  font-size: 0.85rem;
  color: var(--text-light);
  padding: 3px 0;
  padding-left: 16px;
  position: relative;
}

.product-card-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-light);
}

.product-card-view {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  transition: var(--transition);
  margin-top: auto;
  padding-top: 14px;
}

.product-card:hover .product-card-view {
  gap: 6px;
}

.product-card-desc {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.product-card-specs {
  margin-bottom: 14px;
}

.product-card-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 5px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.8rem;
}

.product-card-spec-row:last-child {
  border-bottom: none;
}

.product-card-spec-row .spec-label {
  color: var(--text-light);
  font-weight: 500;
  flex-shrink: 0;
}

.product-card-spec-row .spec-value {
  color: var(--text);
  font-weight: 600;
  text-align: right;
  margin-left: 8px;
}

/* --- Industries Section --- */
.industries-grid {
  display: grid;
  /* 三等分 + 同行等高(理由同特性网格) */
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  align-items: stretch;
}

.industry-card {
  background: white;
  padding: 30px;
  border-radius: var(--radius-md);
  text-align: left;
  transition: var(--transition);
  border: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  align-content: start;
}

.industry-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}
.industry-link:hover { text-decoration: underline; }


.industry-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.industry-icon {
  color: var(--primary);
  line-height: 0;
  margin-bottom: 16px;
}

.industry-icon .icon-line {
  width: 34px;
  height: 34px;
}

.industry-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.industry-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* --- CTA Section --- */
.cta-section {
  /* 实色而不是紫→深蓝渐变:渐变底色是最容易被一眼认出「模板站」的形态之一 */
  background: var(--bg-dark);
  color: white;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(147,51,234,0.2) 0%, transparent 70%);
  /* 纯装饰层必须放行指针事件:伪元素会参与命中测试,这层 height:100% 覆盖整个
     CTA 带,曾把「Contact Us Today」按钮的点击整个吃掉(点下去停在 section 上,
     程序化 .click() 却正常 —— 所以肉眼与脚本都容易漏掉)。 */
  pointer-events: none;
}

.cta-section h2 {
  color: white;
  font-size: 2.25rem;
  margin-bottom: 15px;
  position: relative;
}

.cta-section p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

/* 注:CTA 区实际用的是 .btn-secondary(见下方),这套 .btn-primary 规则从未命中,
   连同紫渐变与光晕一并删除 —— 审计当初指到的正是这段死代码。 */

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 20px 0;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.9rem;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-list a {
  color: var(--text-light);
}

.breadcrumb-list a:hover {
  color: var(--primary);
}

.breadcrumb-list li:last-child {
  color: var(--text);
  font-weight: 500;
}

.breadcrumb-separator {
  color: var(--text-muted);
}

/* --- Page Header --- */
.page-header {
  /* 实色:内页页头原先与 CTA 带同款紫→深蓝渐变,属同一类模板味 */
  background: var(--bg-dark);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  color: white;
  margin-bottom: 10px;
}

.page-header p {
  opacity: 0.9;
  margin-bottom: 0;
}

/* --- Product List Page --- */
.products-page {
  padding: 60px 0;
}

.products-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 30px;
  align-items: start;
}

/* ============================================
   Category Sidebar — clean, minimal, responsive
   ============================================ */
.products-sidebar {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 0;
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--text-light);
}

.sidebar-collapse-btn {
  display: none;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--text-muted);
  transition: transform 0.25s ease, color 0.2s ease;
}

.sidebar-collapse-btn:hover {
  color: var(--primary);
}

.sidebar-collapse-btn .collapse-icon {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.products-sidebar.collapsed .sidebar-collapse-btn .collapse-icon {
  transform: rotate(-135deg);
}

.category-filter-list,
.category-filter-sub {
  list-style: none;
  padding: 8px 0;
  margin: 0;
}

.category-filter-list {
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.category-filter-list::-webkit-scrollbar {
  width: 4px;
}

.category-filter-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.category-filter-list > li {
  position: relative;
}

.category-filter-list > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  position: relative;
  transition: background-color 0.15s ease, color 0.15s ease;
  gap: 10px;
}

.category-filter-list > li > a:hover {
  background: var(--bg-light);
  color: var(--primary);
}

.category-filter-list > li > a.active {
  /* 当前项靠底色 + 字色 + 字重表达,不靠左侧粗色条 */
  background: linear-gradient(90deg, rgba(147,51,234,0.08) 0%, transparent 100%);
  color: var(--primary);
  font-weight: 600;
}

/* Category count badge */
.category-count {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-light);
  padding: 2px 8px;
  border-radius: 10px;
  line-height: 1.4;
  flex-shrink: 0;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.category-filter-list > li > a:hover .category-count,
.category-filter-list > li > a.active .category-count {
  background: var(--primary);
  color: white;
}

/* Toggle button for expandable categories */
.category-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  cursor: pointer;
  user-select: none;
  border-radius: 4px;
  background: white;
  border: 1px solid var(--border-light);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1;
  margin-left: 8px;
}

.category-toggle::before {
  content: '+';
  font-size: 0.95rem;
  line-height: 1;
}

.category-toggle:hover {
  background: var(--bg-light);
  color: var(--primary);
  border-color: var(--primary-light);
}

.category-item.open > a > .category-toggle::before {
  content: '−';
}

.category-filter-sub {
  padding: 0;
  display: none;
}

.category-item.open > .category-filter-sub {
  display: block;
  padding: 4px 0;
}

.category-filter-sub > li {
  position: relative;
}

.category-filter-sub > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px 8px 40px;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-light);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
  gap: 10px;
  position: relative;
}

.category-filter-sub > li > a::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border);
  transform: translateY(-50%);
  transition: background-color 0.15s ease;
}

.category-filter-sub .category-filter-sub > li > a::before {
  left: 48px;
}

.category-filter-sub .category-filter-sub > li > a {
  padding-left: 60px;
}

.category-filter-sub .category-filter-sub > li > a:hover {
  /* 位移动画去掉后这里不再需要单独覆盖 */
}

.category-filter-sub > li > a:hover {
  background: var(--bg-light);
  color: var(--primary);
}

.category-filter-sub > li > a:hover::before {
  background: var(--primary);
}

.category-filter-sub > li > a.active {
  /* 当前项:圆点(::before)已由下面的规则染成主色,粗色条是重复表达 */
  color: var(--primary);
  font-weight: 500;
  background: rgba(147,51,234,0.04);
}

.category-filter-sub > li > a.active::before {
  background: var(--primary);
}

.category-filter-sub .category-toggle {
  width: 18px;
  height: 18px;
}

.category-filter-sub .category-toggle::before {
  font-size: 0.85rem;
}

.products-content {
  min-width: 0;
}

.products-grid {
  transition: opacity 0.25s ease;
}

.products-grid.loading {
  opacity: 0.5;
  pointer-events: none;
}

/* Tablet — narrower sidebar */
@media (max-width: 1024px) {
  .products-layout {
    grid-template-columns: 200px 1fr;
    gap: 20px;
  }

  .sidebar-title {
    padding: 16px;
  }

  .category-filter-list > li > a {
    padding: 9px 16px 9px 16px;
    font-size: 0.85rem;
  }

  .category-filter-list > li > a:hover {
    padding-left: 20px;
  }

  .category-filter-sub > li > a {
    padding: 7px 16px 7px 34px;
    font-size: 0.8rem;
  }

  .category-filter-sub > li > a:hover {
    padding-left: 38px;
  }

  .category-filter-sub > li > a::before {
    left: 24px;
  }

  .category-filter-sub .category-filter-sub > li > a::before {
    left: 40px;
  }

  .category-filter-sub .category-filter-sub > li > a {
    padding-left: 52px;
  }

  .category-filter-sub .category-filter-sub > li > a:hover {
    padding-left: 56px;
  }

  .category-count {
    font-size: 0.7rem;
    padding: 1px 6px;
  }
}

/* Mobile — full width, collapsible */
@media (max-width: 768px) {
  .products-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .products-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    order: -1;
  }

  .products-sidebar.collapsed .category-filter-list {
    display: none;
  }

  .sidebar-collapse-btn {
    display: block;
  }

  .sidebar-title {
    padding: 14px 16px;
    font-size: 0.7rem;
  }

  .category-filter-list {
    padding: 6px 0;
    max-height: 320px;
  }

  .category-filter-list > li > a {
    padding: 9px 16px 9px 16px;
    font-size: 0.88rem;
  }

  .category-filter-list > li > a:hover {
    padding-left: 20px;
  }

  .category-filter-sub > li > a {
    padding: 7px 16px 7px 36px;
    font-size: 0.82rem;
  }

  .category-filter-sub > li > a:hover {
    padding-left: 40px;
  }

  .category-filter-sub > li > a::before {
    left: 24px;
  }

  .category-filter-sub .category-filter-sub > li > a::before {
    left: 42px;
  }

  .category-filter-sub .category-filter-sub > li > a {
    padding-left: 54px;
  }

  .category-filter-sub .category-filter-sub > li > a:hover {
    padding-left: 58px;
  }
}

.products-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.products-count {
  color: var(--text-light);
  font-size: 0.95rem;
}

#productsCount {
  scroll-margin-top: 132px; /* 粘性头部 119px + 12px 间距;手机头部矮,覆盖之 */
}
@media (max-width: 768px) {
  #productsCount { scroll-margin-top: 76px; }
}


.products-sort {
  display: flex;
  align-items: center;
  gap: 10px;
}

.products-sort select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  background: white;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  transition: var(--transition);
}

.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination .current {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* 窗口化分页的省略号占位:不参与点击,但保持页码列的等宽节奏 */
.pagination .pagination-gap {
  color: var(--text-light);
  padding: 8px 4px;
  user-select: none;
}

.pagination .disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- Product Detail Page --- */
.product-detail {
  padding: 60px 0;
}

.product-gallery-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.product-main-image {
  width: 100%;
  /* 不再固定 4:3:游戏板产品有竖屏截图(9:16),固定比例会把竖图挤成
     中间一条窄条。改为随图自适应 + 限高;放大镜 JS 用图片元素矩形算
     坐标,元素尺寸=图片尺寸时对任意比例都精确。 */
  min-height: 280px;
  max-height: 640px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  color: var(--text-muted);
  margin-bottom: 15px;
  overflow: hidden;
}

.product-main-image picture {
  display: block; /* 收缩为图片实际大小,勿拉满(放大镜坐标依赖此) */
}

.product-main-image img {
  display: block;
  max-width: 100%;
  max-height: 640px;
  width: auto;
  height: auto;
}

/* ---- Product Image Zoom (desktop only) ---- */
.product-main-image {
  position: relative;
  cursor: zoom-in;
}

.product-zoom-lens {
  position: absolute;
  border: 2px solid var(--primary);
  background: rgba(255, 255, 255, 0.3);
  pointer-events: none;
  display: none;
  /* 固定 150×150:竖屏图(约 430 宽)时也只占 35%,能自由横移;
     之前按「面板/倍率」动态算(249px),占了图片 58%,移到一半就顶到边界 */
  width: 150px;
  height: 150px;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.15);
  z-index: var(--z-raised);
}

.product-zoom-result {
  position: absolute;
  top: 0;
  left: calc(100% + 20px);
  /* 375 = 镜框 150 × 放大倍率 2.5:面板显示的正好是镜框框住的区域。
     固定尺寸而非 width:100%,否则小屏会超出右边界被截断 */
  width: 375px;
  height: 375px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-repeat: no-repeat;
  display: none;
  z-index: var(--z-local);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.product-gallery {
  position: relative;
}

@media (min-width: 769px) {
  .product-main-image:hover .product-zoom-lens {
    display: block;
  }
  .product-main-image:hover + .product-zoom-result {
    display: block;
  }
}

.product-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

.product-thumb {
  aspect-ratio: 4 / 3;
  min-width: 0;
  background: var(--bg-light);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text-muted);
  transition: var(--transition);
  overflow: hidden;
}

.product-thumb picture {
  width: 100%;
  height: 100%;
  display: block;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 与主图/卡片同口径:完整显示不裁切 */
}

.product-thumb:hover,
.product-thumb.active {
  border-color: var(--primary);
}

.product-info-detail .product-category {
  font-size: 0.85rem;
}

.product-info-detail h1 {
  font-size: 2.4rem;
  margin-bottom: 15px;
  line-height: 1.25;
}

.product-model {
  color: var(--text-light);
  font-size: 1.15rem;
  margin-bottom: 20px;
}

.product-model strong {
  color: var(--text);
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  font-variant-numeric: tabular-nums;
}

.product-short-desc {
  color: var(--text-light);
  margin-bottom: 25px;
  line-height: 1.7;
}

.product-features-list {
  margin-bottom: 30px;
}

.product-features-list li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
  color: var(--text);
}

.product-features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

.product-cta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.product-specs-section {
  margin-bottom: 60px;
}

.specs-tabs {
  display: flex;
  gap: 5px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.spec-tab {
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-light);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}

.spec-tab.active,
.spec-tab:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table th,
.specs-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.specs-table th {
  background: var(--bg-light);
  font-weight: 600;
  width: 30%;
  color: var(--text);
}

.specs-table td {
  color: var(--text-light);
  font-variant-numeric: tabular-nums;
}

.specs-group {
  margin-bottom: 30px;
}

.specs-group h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--primary);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

/* --- Product FAQ Section --- */
.product-faq-section {
  padding-top: 50px;
  border-top: 1px solid var(--border);
}

.product-faq-section {
  padding: 70px 0 60px;
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}

.faq-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.faq-section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(147, 51, 234, 0.08);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.product-faq-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: var(--text);
  line-height: 1.25;
}

.faq-section-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* 产品页:回链到所属产品线落地页(「这条线是什么」的入口) */
.product-line-link {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.product-line-link a {
  color: var(--primary);
  font-weight: 600;
}

.faq-accordion {
  max-width: 820px;
  margin: 0 auto;
}

.faq-accordion-item {
  background: #fff;
  border: 1px solid #ececf0;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.faq-accordion-item:hover {
  border-color: #d4d4dc;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

/* 产品页 FAQ:原生 <details>(2026-09 从 JS 手风琴迁过来)。
   展开/收起交给浏览器,不再要 main.js 的 max-height 计算;
   name="product-faq" 让同一时刻只展开一条(原生互斥手风琴)。 */
.faq-accordion-item[open] {
  border-color: rgba(147, 51, 234, 0.35);
  box-shadow: 0 6px 24px rgba(147, 51, 234, 0.08);
}

.faq-accordion-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  background: #fff;
  border: none;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
  list-style: none; /* summary 默认带三角标记,去掉 */
}

.faq-accordion-q::-webkit-details-marker { display: none; }

.faq-accordion-q:hover {
  background: #fcfcfd;
}

.faq-q-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.faq-q-text {
  flex: 1;
  line-height: 1.5;
}

.faq-chevron {
  flex-shrink: 0;
  color: #b0b0b8;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.faq-accordion-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

/* 收起态内容由浏览器隐藏(display:none),这里只管展开时的下内边距与淡入 */
.faq-accordion-a {
  padding-bottom: 0;
}

/* 展开时只淡入(不做位移)——减少动效设定下不需要额外豁免 */
.faq-accordion-item[open] .faq-accordion-a {
  padding-bottom: 20px;
  animation: faqReveal 0.25s ease;
}

@keyframes faqReveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.faq-a-inner {
  display: flex;
  gap: 14px;
  padding: 0 22px;
}

.faq-a-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(147, 51, 234, 0.1);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.faq-accordion-a p {
  margin: 0;
  color: var(--text-light);
  line-height: 1.75;
  font-size: 0.95rem;
  padding-top: 2px;
}

@media (max-width: 768px) {
  .product-faq-section {
    padding: 50px 0 40px;
  }

  .product-faq-section h2 {
    font-size: 1.5rem;
  }

  .faq-section-subtitle {
    font-size: 0.9rem;
  }

  .faq-accordion-q {
    padding: 16px 18px;
    font-size: 0.92rem;
    gap: 12px;
  }

  .faq-q-mark,
  .faq-a-mark {
    width: 26px;
    height: 26px;
    font-size: 0.75rem;
  }

  .faq-a-inner {
    padding: 0 18px;
    gap: 12px;
  }

  .faq-accordion-a p {
    font-size: 0.88rem;
  }
}

/* --- Admin FAQ Editor --- */
.faq-editor {
  margin-bottom: 10px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px;
  background: #fafafa;
}

.faq-item-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.faq-drag {
  cursor: grab;
  color: #999;
  user-select: none;
  font-size: 14px;
}

.faq-num {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
}

.faq-del-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: #ff4d4f;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 4px 8px;
  border-radius: 4px;
}

.faq-del-btn:hover {
  background: #fff1f0;
}

.faq-q-input {
  margin-bottom: 10px !important;
  font-weight: 500;
}

.faq-a-input {
  resize: vertical;
}

.related-products {
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

/* 子选择器是必须的:卡片标题也是 <h2 class="product-card-title">,
   用后代选择器会把卡片标题一起放大到 1.75rem(实测 28px,而列表页是 15.2px)。
   这是参考站原有的 bug,换上显示字体后差异被放大才看得明显。 */
.related-products > h2 {
  font-size: 1.75rem;
  margin-bottom: 30px;
  text-align: center;
}

/* --- Contact Page --- */
.contact-page {
  padding: 60px 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-form-section h2,
.contact-info-section h2 {
  font-size: 1.75rem;
  margin-bottom: 20px;
}

.contact-form-section p,
.contact-info-section p {
  color: var(--text-light);
  margin-bottom: 30px;
}

.contact-form {
  background: white;
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
}

.form-group label .required {
  color: var(--primary);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,0,64,0.1);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.contact-info-card {
  background: var(--bg-light);
  padding: 30px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.contact-info-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-icon {
  width: 45px;
  height: 45px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-title {
  font-size: 1rem;
  margin-bottom: 5px;
}

.contact-info-content p {
  color: var(--text-light);
  margin-bottom: 0;
  font-size: 0.9rem;
}

.contact-info-content a {
  color: var(--text-light);
}

.contact-info-content a:hover {
  color: var(--primary);
}

.cta-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 30px;
  border-radius: var(--radius-md);
  text-align: center;
}

.cta-card h3 {
  color: white;
  margin-bottom: 10px;
}

.cta-card p {
  color: #ece5ff;   /* 浅紫白,紫色渐变卡上更柔和清晰 */
  opacity: 1;
  margin-bottom: 20px;
}

.cta-card .btn {
  background: white;
  color: var(--primary);
}

.cta-card .btn:hover {
  background: var(--bg-light);
}

/* --- About Page --- */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 60px;
}

.about-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.8;
}

.about-image {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  color: var(--text-muted);
}

/* --- Footer --- */
.footer {
  background: var(--bg-darker);
  color: white;
  padding: 0;
  /* 顶部用一条实色主色规则,而不是渐变光带 */
  border-top: 3px solid var(--primary);
}

/* 陈述行:页脚先收尾(一句品牌陈述 + 行动入口) */
.footer-statement {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 44px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* CTA 标签永不折行:1024 宽度下语句行仍是 flex 横排,按钮被挤就会断成两行
   (实测出现过「Get a Quote →」两行,那是可点文本最忌讳的形态) */
.footer-statement .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.footer-statement p {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  line-height: 1.45;
  color: #fff;
  max-width: 780px;
  margin: 0;
}

/* 著录行:品牌块 + 三行「标签 + 内联链接」,取代 5 列链接目录 */
.footer-colophon {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 2.1fr);
  gap: 36px 60px;
  padding: 40px 0;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link-rows {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-link-row {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 16px;
  align-items: baseline;
}

.footer-link-label {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-inline-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
}

.footer-inline-links li {
  display: inline-flex;
  align-items: baseline;
}

/* 链接之间靠间距分隔,不再用中点:分隔符自成一家会让整行变噪(每行一个中点
   是上限,而这一行有 6 个行业链接)。 */
.footer-inline-links {
  column-gap: 22px;
}

.footer-inline-links li + li {
  margin-left: 0;
}

.footer-inline-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.footer-inline-links a:hover {
  color: var(--primary-light);
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo span {
  color: var(--primary);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 8px;
}

.footer-social a {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  /* 右侧留出悬浮按钮(WhatsApp/回到顶部)的宽度,否则底行右侧内容会被压住 */
  padding: 22px 96px 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* --- 404 Page --- */
.not-found {
  padding: 100px 0;
  text-align: center;
}

.not-found h1 {
  font-size: 8rem;
  color: var(--primary);
  margin-bottom: 20px;
  line-height: 1;
}

.not-found h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.not-found p {
  color: var(--text-light);
  margin-bottom: 30px;
  font-size: 1.1rem;
}

/* --- Thank You Page --- */
.thank-you {
  padding: 80px 0;
  text-align: center;
}

.thank-you-icon {
  width: 80px;
  height: 80px;
  background: var(--success);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  margin: 0 auto 30px;
}

.thank-you-icon .icon-line {
  width: 40px;
  height: 40px;
}

.thank-you h1 {
  margin-bottom: 15px;
}

.thank-you p {
  color: var(--text-light);
  margin-bottom: 30px;
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: var(--z-float); /* 头部之下:原值 999 也是这个意图 */
  width: 60px;
  height: 60px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: white;
}

/* --- Schema.org Structured Data (hidden) --- */
.schema-data {
  display: none;
}

/* --- Responsive Design --- */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .features-grid,
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-colophon {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .product-gallery-section,
  .contact-layout,
  .about-hero {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }

  .section {
    padding: 50px 0;
  }

  .header-top {
    display: none;
  }

  /* 工具条隐藏后,主 CTA 由主行承担(两处按钮靠这个切换,不用 JS)。
     窄屏空间紧:字标与 CTA 各收一档,避免折行把页头撑高。 */
  .header-cta-top {
    display: none;
  }

  .header-cta-mobile {
    display: inline-flex;
    padding: 8px 13px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .logo img {
    height: 36px !important;
  }

  .logo-name {
    font-size: 1.05rem;
    white-space: nowrap;
  }

  .footer-statement {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 32px 0;
  }

  /* 标签与链接上下排,避免窄屏把标签挤成一列窄字 */
  .footer-link-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  html {
    scroll-padding-top: 80px;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    bottom: 0;
    background: white;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    display: block;
    padding: 70px 0 30px;
    transition: right 0.3s ease;
    z-index: var(--z-sticky);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }

  .main-nav > ul > li {
    border-bottom: 1px solid var(--border-light);
    position: relative;
  }

  .main-nav > ul > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    position: relative;
  }

  .main-nav > ul > li.has-dropdown > a {
    padding-right: 44px;
  }

  .main-nav > ul > li > a:hover,
  .main-nav > ul > li > a.active {
    color: var(--primary);
  }

  .main-nav a::after,
  .main-nav .has-dropdown > a::after,
  .main-nav .has-sub-dropdown > a::after {
    display: none !important;
    content: none !important;
  }

  /* Mobile toggle icon — CSS chevron arrow, positioned at far right */
  .main-nav .nav-toggle-icon {
    display: none;
  }

  .main-nav .has-dropdown > .nav-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 0;
    top: 0;
    width: 44px;
    height: 48px;
    cursor: pointer;
    user-select: none;
    z-index: var(--z-local);
  }

  .main-nav .has-dropdown > .nav-toggle-icon::after {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-right: 2.5px solid var(--text-muted);
    border-bottom: 2.5px solid var(--text-muted);
    transform: rotate(45deg);
    transition: transform 0.3s ease, border-color 0.2s ease;
  }

  .main-nav .has-dropdown.open > .nav-toggle-icon::after {
    transform: rotate(-135deg);
    border-color: var(--primary);
  }

  .main-nav .has-sub-dropdown {
    position: relative;
  }

  .main-nav .has-sub-dropdown > .nav-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 0;
    top: 0;
    width: 44px;
    height: 44px;
    cursor: pointer;
    user-select: none;
    z-index: var(--z-local);
  }

  .main-nav .has-sub-dropdown > .nav-toggle-icon::after {
    content: '';
    display: block;
    width: 11px;
    height: 11px;
    border-right: 2.5px solid var(--text-muted);
    border-bottom: 2.5px solid var(--text-muted);
    transform: rotate(45deg);
    transition: transform 0.3s ease, border-color 0.2s ease;
  }

  .main-nav .has-sub-dropdown.open > .nav-toggle-icon::after {
    transform: rotate(-135deg);
    border-color: var(--primary);
  }

  /* Mobile dropdown panel — fills drawer width */
  .main-nav .dropdown {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    background: var(--bg-light);
    min-width: auto;
    width: 100%;
  }

  .main-nav .has-dropdown.open .dropdown {
    display: block;
  }

  .main-nav .dropdown > li > a {
    padding: 12px 16px 12px 32px;
    font-size: 0.88rem;
    color: var(--text-light);
    position: relative;
  }

  .main-nav .dropdown > li > a:hover {
    color: var(--primary);
  }

  .main-nav .dropdown > li.has-sub-dropdown > a {
    color: var(--text);
    font-weight: 500;
    padding-right: 44px;
  }

  /* Mobile sub-dropdown panel — indented */
  .main-nav .sub-dropdown {
    position: static !important;
    left: auto !important;
    top: auto !important;
    display: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    background: transparent;
    min-width: auto;
    width: 100%;
  }

  .main-nav .has-sub-dropdown.open > .sub-dropdown {
    display: block;
  }

  .main-nav .sub-dropdown > li > a {
    padding: 10px 16px 10px 44px;
    font-size: 0.82rem;
    color: var(--text-light);
    position: relative;
  }

  .main-nav .sub-dropdown > li > a:hover {
    color: var(--primary);
  }

  .main-nav .sub-dropdown > li.has-sub-dropdown > a {
    padding-right: 44px;
  }

  .main-nav .sub-dropdown .sub-dropdown > li > a {
    padding-left: 56px;
    font-size: 0.78rem;
    color: var(--text-muted);
  }

  .main-nav .sub-dropdown .sub-dropdown > li > a:hover {
    color: var(--primary);
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* 参考站原本把主行里的按钮整个藏掉(CTA 只在工具条里)。工具条在窄屏同样隐藏后,
     页头就没有任何报价入口了 —— 所以放行移动端那一个,其余按钮维持隐藏。 */
  .header-actions .btn:not(.header-cta-mobile) {
    display: none;
  }

  .hero {
    height: auto;
    min-height: 420px;
    background-position: 72% center;
    background-size: cover;
  }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(8,15,34,0.88) 0%, rgba(8,15,34,0.55) 55%, rgba(8,15,34,0.75) 100%);
  }

  .hero-overlay {
    background: linear-gradient(135deg, rgba(15,15,35,0.9) 0%, rgba(26,10,46,0.8) 50%, rgba(10,22,40,0.9) 100%);
  }

  .hero .container {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stat-value {
    font-size: 2rem;
  }

  .features-grid,
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .industries-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .product-info-detail h1 {
    font-size: 1.7rem;
  }

  .specs-table th,
  .specs-table td {
    padding: 10px;
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-content {
    text-align: center;
  }

  .hero-content h1,
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  /* 分页在窄屏只留箭头:窗口化后仍有 11 项,"← Previous / Next →" 的整词
     会把整条挤成两排(实测 390px 下 85px 高)。disabled 的两个 span 靠
     :first-child / :last-child 分辨左右(它们没有 rel 属性)。 */
  .pagination {
    gap: 2px;          /* 默认 8px 间距 ×11 项 = 88px,窄屏吃不消 */
  }

  .pagination a,
  .pagination > span {
    /* 实测:11 项在 350px 里差 18px,内边距每侧再收 2px 正好一行放下 */
    padding: 8px 7px;
    min-width: 0;
  }

  .pagination > a[rel="prev"],
  .pagination > a[rel="next"],
  .pagination > .disabled {
    font-size: 0;
    padding: 8px 7px;
  }

  .pagination > a[rel="prev"]::before,
  .pagination > .disabled:first-child::before {
    content: '←';
    font-size: 0.95rem;
  }

  .pagination > a[rel="next"]::after,
  .pagination > .disabled:last-child::after {
    content: '→';
    font-size: 0.95rem;
  }

  .footer-bottom {
    padding-right: 0;
  }

  /* 极窄屏让字标独占一行,定位语先让位 */
  .logo-tagline {
    display: none;
  }

  .features-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    min-height: 350px;
    background-position: 65% center;
  }

  .hero-overlay {
    background: linear-gradient(135deg, rgba(15,15,35,0.92) 0%, rgba(26,10,46,0.85) 50%, rgba(10,22,40,0.92) 100%);
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .btn-lg {
    padding: 12px 24px;
    font-size: 1rem;
  }
}
/* products AJAX 加载态 */
.products-grid.loading { opacity: 0.45; pointer-events: none; transition: opacity 0.2s; }

/* ---- 产品详情 Markdown 渲染 ---- */
.product-content h2 { font-size: 1.4rem; margin: 26px 0 10px; color: var(--text); }
.product-content h3 { font-size: 1.15rem; margin: 20px 0 8px; color: var(--text); }
.product-content p { margin: 8px 0; }
.product-content ul, .product-content ol { padding-left: 24px; margin: 8px 0; }
.product-content li { margin: 4px 0; line-height: 1.7; }
.product-content table { border-collapse: collapse; width: 100%; margin: 12px 0; }
.product-content th, .product-content td { border: 1px solid #e0e0e0; padding: 7px 12px; text-align: left; font-size: 0.92rem; }
.product-content th { background: #f7f7f7; font-weight: 600; }
.product-content blockquote { border-left: 3px solid #ddd; margin: 10px 0; padding: 2px 14px; color: #666; }
.product-content pre { background: #f6f8fa; border-radius: 6px; padding: 10px 14px; overflow: auto; }
.product-content code { background: #f2f2f2; border-radius: 3px; padding: 1px 5px; font-size: 0.9em; }
.product-content pre code { background: none; padding: 0; }
.product-content a { color: var(--primary); text-decoration: underline; }
.product-content img { max-width: 100%; height: auto; border-radius: 8px; }
.product-overview { margin: 8px 0 60px; }
.product-overview > :first-child { margin-top: 0; }

/* ---- 产品详情顶部卡片:图库 + 标题 + 联系同卡;特性为 chips ---- */
.product-top-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.product-feature-chips {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.product-feature-chips li {
  background: #f5f7fa;
  border: 1px solid #e6e9ee;
  color: #333;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 1rem;
  line-height: 1.4;
}
@media (max-width: 768px) {
  .product-top-card { padding: 16px; gap: 20px; }
  .product-thumbs { gap: 8px; margin-top: 10px; }
}

/* 富文本产品详情:Quill 对齐/列表输出适配 */
.product-content .ql-align-center { text-align: center; }
.product-content .ql-align-right { text-align: right; }
.product-content .ql-align-justify { text-align: justify; }
.product-content ol { list-style: decimal; padding-left: 24px; }
.product-content li[data-list="bullet"] { list-style: disc; }
.product-content li[data-list="ordered"] { list-style: decimal; }

/* ---- 毛玻璃按钮:hero 与 CTA 区(白字/白边框/半透明磨砂) ---- */
.hero .btn-secondary,
.cta-section .btn-secondary {
  /* 去掉毛玻璃(backdrop-filter):深色实底上的半透明+模糊是装饰性用法,
     既伤可读性也多一层合成开销;改成实色描边按钮,悬停反相。 */
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.hero .btn-secondary:hover,
.cta-section .btn-secondary:hover {
  background: #fff;
  color: var(--bg-dark);
  border-color: #fff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* ---- Purchase Flow(产品详情;下单→发货四步) ---- */
.purchase-flow {
  margin: 8px 0 60px;
  padding-top: 8px;
}
.purchase-flow h2 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}
.purchase-intro {
  color: var(--text-light);
  margin-bottom: 26px;
  max-width: 640px;
}
.purchase-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.purchase-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 22px 22px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.purchase-step-no {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 2.2rem;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.06);
  line-height: 1;
}
.purchase-step-icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: #eef4ff;
  border-radius: 12px;
  margin-bottom: 14px;
}

.purchase-step-icon .icon-line {
  width: 22px;
  height: 22px;
}
.purchase-step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.purchase-step p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.65;
  margin: 0;
}
@media (max-width: 640px) {
  .purchase-steps { grid-template-columns: 1fr; }
}
.purchase-flow .purchase-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 34px 30px 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.purchase-flow .purchase-heading,
.purchase-flow .purchase-intro {
  text-align: center;
}
.purchase-flow .purchase-intro { margin-left: auto; margin-right: auto; }
.purchase-step { box-shadow: none; border-color: #e9edf3; }
@media (max-width: 640px) {
  .purchase-flow .purchase-card { padding: 24px 16px 20px; }
}

/* ---- 回到顶部按钮 ---- */
#backToTop {
  position: fixed;
  right: 30px;
  bottom: 104px;   /* WhatsApp 悬浮钮(60px + 间距)下方 */
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(24, 32, 58, 0.82);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background 0.2s ease;
  z-index: var(--z-float);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  /* 实色按钮上毛玻璃不可见,却要付一层合成开销 —— 去掉 */
}
#backToTop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#backToTop:hover {
  background: rgba(24, 32, 58, 1);
}
@media (max-width: 768px) {
  #backToTop { right: 20px; bottom: 84px; width: 40px; height: 40px; } /* 对齐移动端 WhatsApp(50px+14px 间距) */
}

/* 回到顶部与 WhatsApp 悬浮钮同款样式,堆叠于其下方 */
.whatsapp-float {
  bottom: 104px;   /* 60px 高度 + 14px 间距,留出下方按钮位 */
}
#backToTop {
  right: 30px;
  bottom: 30px;
  width: 60px;
  height: 60px;
  border: none;
  background: var(--primary);   /* 网页主题色(紫),与 WhatsApp 绿区分 */
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
#backToTop svg {
  width: 24px;
  height: 24px;
}
#backToTop:hover {
  background: var(--primary-dark);
  transform: scale(1.08);
}
@media (max-width: 768px) {
  .whatsapp-float { bottom: 84px; }
  #backToTop {
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
  }
}

/* ---- Packaging & Shipping(产品详情) ---- */
.pack-ship { margin: 8px 0 60px; }
.pack-ship-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 34px 30px 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.pack-ship-card h2 { font-size: 1.6rem; text-align: center; margin-bottom: 24px; }
.pack-ship-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
}
.pack-ship-col h3 { font-size: 1.05rem; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid #eef1f5; }
.pack-ship-list { list-style: none; margin: 0; padding: 0; }
.pack-tiles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pack-tiles li { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border: 1px solid #eef1f5; border-radius: 12px; background: #fcfdff; }
.pack-ico { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pk-1 { background: #fef3e2; color: #d97706; }
.pk-2 { background: #eef4ff; color: #4f46e5; }
.pk-3 { background: #f3e8ff; color: #9333ea; }
.pk-4 { background: #e0f2fe; color: #0284c7; }
.pack-tile-body { display: flex; flex-direction: column; }
.pack-tile-body strong { font-size: 0.9rem; margin-bottom: 1px; }
.pack-tile-body small { font-size: 0.78rem; color: #8a94a3; line-height: 1.45; }
.pack-ship-list > li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  color: #3c4350;
  font-size: 0.95rem;
  line-height: 1.55;
}
.pack-ship-list > li svg { flex-shrink: 0; margin-top: 2px; color: var(--primary); }
.pack-ship-list.shipping > li { align-items: center; justify-content: space-between; }
.ship-ico {
  width: 46px; height: 46px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ship-express { background: #fff4e6; color: #ea580c; }
.ship-air    { background: #eef4ff; color: #7c3aed; }
.ship-sea    { background: #e0f2fe; color: #0284c7; }
.pack-ship-list.shipping > li > div { flex: 1; margin-left: 12px; display: flex; flex-direction: column; }
.pack-ship-list.shipping strong { font-size: 0.95rem; }
.ship-days { font-size: 0.82rem; color: #8a94a3; margin-top: 2px; }
.ship-tag {
  font-size: 0.75rem; color: #15803d; background: #f0fdf4;
  border: 1px solid #bbf7d0; border-radius: 999px; padding: 3px 10px; flex-shrink: 0;
}
.pack-ship-note { margin: 18px 0 0; font-size: 0.85rem; color: #8a94a3; text-align: center; }
@media (max-width: 760px) {
  .pack-ship-grid { grid-template-columns: 1fr; gap: 24px; }
  .pack-ship-card { padding: 24px 18px 22px; }
}

/* ---- 前台通用表单校验组件 ---- */
.site-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}
.site-field-error {
  display: block;
  color: #dc2626;
  font-size: 0.82rem;
  margin-top: 5px;
}
.site-validate-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 34, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.site-validate-modal.show {
  opacity: 1;
  visibility: visible;
}
.sv-modal-card {
  width: min(420px, calc(100vw - 40px));
  background: #fff;
  border-radius: 18px;
  padding: 26px 24px 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  text-align: center;
  transform: translateY(10px) scale(0.98);
  transition: transform 0.25s ease;
}
.site-validate-modal.show .sv-modal-card {
  transform: translateY(0) scale(1);
}
.sv-modal-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #fef2f2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sv-modal-card h3 {
  font-size: 1.15rem;
  margin: 0 0 14px;
  color: #111827;
}
.sv-error-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  text-align: left;
}
.sv-error-list li {
  color: #b91c1c;
  font-size: 0.9rem;
  padding: 7px 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  margin-bottom: 8px;
  line-height: 1.5;
}
.sv-btn-primary {
  width: 100%;
  padding: 11px 16px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.sv-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(147, 51, 234, 0.3);
}

/* ---- 前端下拉(select)统一样式 ---- */
select.form-control,
.form-group select,
.form-control[type="select"],
.contact-form select,
.products-sort select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 42px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
select.form-control:focus,
.form-group select:focus,
.contact-form select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.15);
  outline: none;
}
/* 占位项(如 "-- 请选择 --")弱化 */
select.form-control option:first-child,
.contact-form select option:first-child { color: #9ca3af; }
select.form-control option { color: #111827; }
/* 错误态与校验组件联动 */
select.form-control.site-invalid { border-color: #ef4444 !important; }

/* ---- 前端自绘下拉(点击后选项面板) ---- */
select.form-control.fs-native {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  height: 0;
  width: 0;
  border: 0;
  padding: 0;
  margin: 0;
}
.fs-select {
  position: relative;
  width: 100%;
}
.fs-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 42px 12px 15px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  color: #111827;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}
.fs-trigger:hover { border-color: #c9b8f0; }
.fs-trigger:focus-visible,
.fs-select.open .fs-trigger {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.15);
}
.fs-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-value.placeholder { color: #9ca3af; }
.fs-chevron {
  position: absolute;
  right: 14px;
  width: 14px;
  height: 14px;
  border-right: 2px solid #6b7280;
  border-bottom: 2px solid #6b7280;
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s ease;
}
.fs-select.open .fs-chevron { transform: rotate(225deg) translateY(-1px); }
.fs-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: var(--z-float);
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid #e8e8f0;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(20, 16, 50, 0.16);
  max-height: 264px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.fs-select.open .fs-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.fs-panel li {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #111827;
  cursor: pointer;
  transition: background 0.12s ease;
}
.fs-panel li:hover { background: #f5f0ff; }
.fs-panel li.placeholder { color: #9ca3af; }
.fs-panel li.selected {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 600;
}

/* ============================================================
   品类落地页通用版式(类前缀 lp- = line page)

   起初为 /game-boards 而做,现由三条产品线的落地页共用:
   /game-boards · /touch-displays · /skill-game-machines。
   前缀刻意不叫 gb- —— 那会让「触摸屏页面上出现 gb-hero」变成下一个误读源。

   Hallmark · genre: modern-minimal · macrostructure: Split Studio
   theme: 站点既有色板(hex,紫) · enrichment: 客户实拍图
   nav/footer: 站点既有(阶段二重构后的贴右报头 + 陈述/著录页脚)
   说明:字体对(Archivo + Inter)与 hex 色板沿用仓库现状,不引 OKLCH、不换字体;
        配色只用实色与同色相 —— 站点是紫+青,而紫→青渐变是被明令禁止的组合。
   间距:本页首次引入刻度(全站其余仍是散落 px,迁移另议)。
   pre-emit critique: P5 H5 E5 S5 R4 V5
   门禁结果:contrast pass(40–41) · nav N9 · footer Ft5 · honest pass(46) ·
            chrome pass(47) · tokens pass(48) · responsive pass(34,49,50–57) ·
            icons pass(30) · slop pass(42–45,54–56)
   ============================================================ */
.lp {
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --dur-long: 420ms;
}

/* 一次编排入场:首屏两半错位淡入(不再有第二处滚动动效) */
@keyframes lp-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lp-hero { padding: var(--space-xl) 0 var(--space-3xl); }

.lp-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-2xl) var(--space-3xl);
  align-items: center;
}

.lp-half { min-width: 0; }

.lp-hero .lp-half { animation: lp-in var(--dur-long) var(--ease-out) both; }
.lp-hero .lp-half:nth-child(2) { animation-delay: 60ms; }

.lp-h1 {
  font-family: var(--font-display);
  overflow-wrap: anywhere;
  min-width: 0;
  font-size: clamp(2rem, 3.4vw + 1rem, 3.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

.lp-lede {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-light);
  max-width: 60ch;
  margin-bottom: var(--space-xl);
}

.lp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
}

.lp-row { padding: var(--space-3xl) 0; }
.lp-row + .lp-row { border-top: 1px solid var(--border-light); }

/* 方向反过来:文字半移到右侧,图占左侧 */
.lp-row--flip .lp-half:first-child { order: 2; }

.lp-h2 {
  font-family: var(--font-display);
  overflow-wrap: anywhere;
  min-width: 0;
  font-size: clamp(1.45rem, 1.6vw + 1rem, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-md);
}

.lp-body {
  color: var(--text-light);
  line-height: 1.75;
  max-width: 58ch;
  margin-bottom: var(--space-lg);
}

/* 实物图:一张大图(首屏)与成排小卡共用卡片语言 */
.lp-figure {
  margin: 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg);
  overflow: hidden;
}

.lp-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  background: var(--bg-light);
}

.lp-figure figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-sm);
  align-items: baseline;
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--border-light);
}

.lp-figure-name { font-weight: 600; }
.lp-figure-spec { color: var(--text-light); font-size: 0.85rem; }

.lp-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
}

.lp-shots a {
  display: block;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg);
  min-width: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur-micro) var(--ease-out);
}

.lp-shots a:hover { transform: translateY(-2px); }

.lp-shots img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--bg-light);
}

.lp-shot-name,
.lp-shot-spec { display: block; padding: 0 var(--space-md); }

.lp-shot-name {
  font-weight: 600;
  font-size: 0.9rem;
  padding-top: var(--space-sm);
}

.lp-shot-spec {
  color: var(--text-light);
  font-size: 0.78rem;
  padding-bottom: var(--space-sm);
}

/* 规格带:唯一一处跨出网格的破格 —— 整幅出血的浅色带,上下各一条规则 */
.lp-band {
  padding: var(--space-3xl) 0;
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.lp-band-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-light);
  margin-bottom: var(--space-xl);
}

.lp-band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.lp-fact { display: flex; flex-direction: column; gap: var(--space-xs); }

.lp-fact-value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2vw + 0.8rem, 2.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.lp-fact-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
}

.lp-fact-note { font-size: 0.8rem; color: var(--text-light); }

.lp-pick {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-md);
}

.lp-pick a {
  display: block;
  background: var(--bg);
  min-width: 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur-micro) var(--ease-out);
}

.lp-pick a:hover { transform: translateY(-2px); }

.lp-pick img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--bg-light);
}

.lp-pick-name,
.lp-pick-spec { display: block; padding: 0 var(--space-sm); }

.lp-pick-name {
  font-size: 0.78rem;
  font-weight: 600;
  padding-top: var(--space-xs);
}

.lp-pick-spec {
  font-size: 0.7rem;
  color: var(--text-light);
  padding-bottom: var(--space-xs);
}

/* 发运条件:键值成行 —— 不用表格,读起来仍是"规格表" */
.lp-ship { display: flex; flex-direction: column; }

.lp-ship li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-light);
}

.lp-ship-k {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
}

.lp-ship-v { font-size: 0.92rem; }

/* 常见问题:原生 details,展开用 grid-template-rows 而不是 height */
.lp-faq { border-top: 1px solid var(--border-light); }

.lp-faq details { border-bottom: 1px solid var(--border-light); }

.lp-faq summary {
  cursor: pointer;
  padding: var(--space-md) 0;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
}

.lp-faq summary::-webkit-details-marker { display: none; }

.lp-faq summary::after {
  content: '+';
  color: var(--primary);
  font-weight: 400;
  transition: transform var(--dur-short) var(--ease-out);
}

.lp-faq details[open] summary::after { transform: rotate(45deg); }

.lp-faq p {
  color: var(--text-light);
  line-height: 1.7;
  padding: 0 0 var(--space-md);
  max-width: 60ch;
}

/* 键盘与鼠标同等:焦点环立即出现,不做动画 */
.lp-shots a:active,
.lp-pick a:active { transform: translateY(0); }

.lp a:focus-visible,
.lp summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (max-width: 1024px) {
  .lp-split { grid-template-columns: 1fr; gap: var(--space-xl); }
  .lp-row--flip .lp-half:first-child { order: 0; }
  .lp-band-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-pick { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .lp-hero { padding: var(--space-2xl) 0; }
  .lp-row { padding: var(--space-2xl) 0; }
  .lp-band { padding: var(--space-2xl) 0; }
  .lp-pick { grid-template-columns: repeat(2, 1fr); }
  .lp-ship li { grid-template-columns: 1fr; gap: var(--space-xs); }
}

@media (prefers-reduced-motion: reduce) {
  .lp-hero .lp-half { animation: none; }
  .lp-shots a,
  .lp-pick a,
  .lp-faq summary::after { transition-duration: 150ms; }
  .lp-shots a:hover,
  .lp-pick a:hover { transform: none; }
}

/* ============================================================
   全站减少动态效果(prefers-reduced-motion)
   读的是系统「减少动态效果」开关。需要它的是前庭功能障碍人群(位移会诱发眩晕/
   恶心)、偏头痛与对运动敏感的人 —— 这不是审美偏好,是明确的可用性要求。
   做法:位移类反馈取消,颜色/描边/透明度照旧(否则悬停就没有任何反馈);
   时长统一压到 150ms 以内。此前只有 /game-boards 一页有,其余页面把该设置当没看见。
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto; /* 平滑滚动也是位移 */
  }

  *,
  *::before,
  *::after {
    animation-duration: 150ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 150ms !important;
  }

  /* 位移类悬停反馈取消(不适感主要来自位移) */
  .product-card:hover,
  .feature-card:hover,
  .industry-card:hover,
  .faq-accordion-item:hover,
  .btn:hover,
  .footer-social a:hover,
  .whatsapp-float:hover,
  .lp-shots a:hover,
  .lp-pick a:hover,
  #backToTop,
  #backToTop.visible {
    transform: none !important;
  }

  /* 抽屉与下拉直接到位:right/top 是布局属性,过渡它等于整块重排 */
  .main-nav,
  .main-nav .dropdown,
  .main-nav .sub-dropdown {
    transition: none !important;
  }

  /* 本页的入场编排在减少动效下不播 */
  .lp-hero .lp-half {
    animation: none !important;
  }
}

/* 工作台提示条:收录开关关闭这类「静默故障」用它顶在最上面 */
.admin-alert {
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.admin-alert-warning {
  background: #fff8e6;
  border: 1px solid #ffd591;
  color: #8a5300;
}

.admin-alert-warning strong {
  color: #ad6800;
}

.admin-alert-warning code {
  background: rgba(0, 0, 0, 0.05);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.85em;
}

.admin-alert-warning a {
  color: #ad6800;
  font-weight: 600;
  text-decoration: underline;
}

/* 反垃圾蜜罐:人看不见,脚本会填。刻意不用 display:none ——
   部分机器人会跳过隐藏元素,用绝对定位移出视口更可靠。 */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
