/* ============================================================
   林达通讯科技有限公司 - 企业官网样式表
   技术栈：原生 CSS3 | BEM 命名规范 | 响应式设计
   ============================================================ */

/* ===== CSS 变量（设计令牌） ===== */
:root {
  /* 颜色系统 */
  --color-primary: #0A1628;       /* 深蓝黑 - 主色 */
  --color-brand: #1E90FF;         /* 科技蓝 - 品牌色 */
  --color-white: #FFFFFF;         /* 白色 */
  --color-bg-alt: #F4F7FB;        /* 浅灰蓝 - 交替背景 */
  --color-text-secondary: #666666; /* 灰色 - 辅助文字 */
  --color-accent: #FF6B35;        /* 强调色 */
  --color-text-primary: #333333;  /* 主要文字色 */
  --color-border: #E0E6ED;       /* 边框色 */
  --color-success: #22C55E;      /* 校验通过 */
  --color-error: #EF4444;        /* 校验错误 */

  /* 字体系统 */
  --font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-h1-size: 48px;
  --font-h1-size-mobile: 32px;
  --font-h2-size: 32px;
  --font-h2-size-mobile: 24px;
  --font-h3-size: 24px;
  --font-h3-size-mobile: 20px;
  --font-body-size: 16px;
  --font-small-size: 14px;
  --font-param-size: 14px;

  /* 布局 */
  --header-height: 70px;
  --container-width: 1200px;
  --section-padding: 80px 0;
  --section-padding-mobile: 50px 0;

  /* 过渡与动画 */
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --shadow-card: 0 2px 12px rgba(10, 22, 40, 0.08);
  --shadow-hover: 0 8px 24px rgba(10, 22, 40, 0.15);
  --shadow-header: 0 2px 20px rgba(0, 0, 0, 0.15);

  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

/* ===== CSS Reset ===== */

/*
 * 全局重置 - 移除浏览器默认间距
 * 使用 border-box 盒模型，padding/border 计入元素总宽高
 */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;               /* 锚点平滑滚动 */
  -webkit-text-size-adjust: 100%;        /* 防止 iOS 横屏自动放大文字 */
}

/* ===== 自定义滚动条 ===== */

/*
 * 全局统一细滚动条样式
 * Firefox 使用 scrollbar-width / scrollbar-color
 * WebKit 浏览器（Chrome/Safari/Edge）使用 ::-webkit-scrollbar 伪元素
 * 滚动条滑块 hover 时变为品牌蓝
 */

/* 页面级滚动条（html） */
html {
  scrollbar-width: thin;                 /* Firefox：细滚动条 */
  scrollbar-color: #c0c4cc transparent;  /* 滑块颜色 / 轨道颜色 */
}

html::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

html::-webkit-scrollbar-track {
  background: transparent;               /* 透明轨道 */
}

html::-webkit-scrollbar-thumb {
  background: #c0c4cc;
  border-radius: 3px;
  transition: background 0.2s;
}

html::-webkit-scrollbar-thumb:hover {
  background: var(--color-brand, #1E90FF); /* hover 变蓝 */
}

/* 所有可滚动容器（通用规则） */
* {
  scrollbar-width: thin;
  scrollbar-color: #c0c4cc transparent;
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: #c0c4cc;
  border-radius: 3px;
  transition: background 0.2s;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--color-brand, #1E90FF);
}

body {
  font-family: var(--font-family);          /* 字体栈：微软雅黑 → 苹方 → 系统无衬线 */
  font-size: var(--font-body-size);         /* 基准字号 16px */
  line-height: 1.6;                         /* 舒适阅读行高 */
  color: var(--color-text-primary);         /* 主要文字色 #333 */
  background-color: var(--color-white);     /* 纯白背景 */
  -webkit-font-smoothing: antialiased;      /* macOS 字体平滑 */
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;                      /* 图片自适应容器宽度 */
  height: auto;                          /* 保持宽高比 */
  display: block;                        /* 消除图片底部 4px 间隙 */
}

a {
  color: inherit;                        /* 默认继承父级文字色 */
  text-decoration: none;                 /* 移除下划线 */
  transition: color var(--transition-base);
}

ul, ol {
  list-style: none;                      /* 移除默认列表符号 */
}

button, input, textarea {
  font-family: inherit;                  /* 继承全局字体 */
  font-size: inherit;
  border: none;
  outline: none;                         /* 移除聚焦轮廓（由 :focus 自定义样式替代） */
}

/* ===== 通用 Section 样式 ===== */

/*
 * .section-title —— 各板块主标题
 * 居中显示 + 底部品牌色装饰线（60px 长、3px 高）
 * 装饰线用 ::after 伪元素实现，无需额外 DOM
 */
.section-title {
  font-size: var(--font-h2-size);          /* 桌面端 32px */
  font-weight: 700;
  text-align: center;
  color: var(--color-primary);
  margin-bottom: 12px;                     /* 标题与装饰线间距 */
  position: relative;                      /* 为 ::after 伪元素定位 */
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;                             /* 装饰线宽度 */
  height: 3px;                             /* 装饰线厚度 */
  background: var(--color-brand);          /* 科技蓝 #1E90FF */
  margin: 16px auto 0;                     /* 居中，与标题文字间隔 16px */
  border-radius: 2px;                      /* 圆角矩形 */
}

/*
 * .section-subtitle —— 各板块副标题
 * 灰色辅助文字，用于简要说明板块内容
 */
.section-subtitle {
  font-size: var(--font-body-size);        /* 16px */
  text-align: center;
  color: var(--color-text-secondary);      /* 灰色 #666 */
  margin-bottom: 50px;                     /* 与下方内容间距 */
}

/* ===== 导航栏 ===== */

/*
 * .header —— 顶部导航栏（sticky 吸顶）
 * - z-index: 1000 确保覆盖所有内容
 * - position: sticky 吸顶，高度 70px
 * - 默认透明背景 + 白色文字，适配首页深色 Hero
 */
.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(10, 22, 40, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* 白色底色模式：用于产品详情页等浅色背景页面 */
.header--scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.header--scrolled .header__logo {
  color: var(--color-text-primary);
}

.header--scrolled .header__nav-link {
  color: var(--color-text-primary);
}

.header--scrolled .header__nav-link:hover,
.header--scrolled .header__nav-link--active {
  color: var(--color-brand);
}

.header__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-white);
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
}

.header__logo-img {
  height:80px;
  width: auto;
  display: block;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__nav-link {
  display: block;
  padding: 8px 16px;
  color: var(--color-white);
  font-size: 15px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-base), background-color var(--transition-base);
  position: relative;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--color-brand);
  border-radius: 1px;
  transition: width var(--transition-base);
}

.header__nav-link:hover,
.header__nav-link--active {
  color: var(--color-white);
}

.header__nav-link--active::after,
.header__nav-link:hover::after {
  width: 60%;
}

/*
 * .header__menu-toggle —— 移动端汉堡菜单按钮
 * 默认隐藏（display: none），仅在 <= 767px 时显示
 * 由三条 .header__menu-bar 横条组成，点击时触发 nav 展开/收起
 */
.header__menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  cursor: pointer;
  padding: 4px;
}

.header__menu-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.header--scrolled .header__menu-bar {
  background-color: var(--color-text-primary);
}

/* ===== Hero 首屏 Banner ===== */

/*
 * .hero —— 首页首屏大横幅
 * - 100vh 全屏高度，flex 居中内容
 * - 深蓝黑径向渐变背景，营造科技感
 * - ::before 伪元素绘制光晕动画
 * - 可选的 .hero__overlay 叠加光纤网格纹理
 */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0A1628 0%, #0D2137 30%, #0F2A44 60%, #0A1628 100%);
  overflow: hidden;
  padding: 0 20px;
  /* 补偿 sticky header 占用的文档流空间，让 hero 起始于视口顶部 */
  margin-top: calc(-1 * var(--header-height));
}

/* 抽象光路装饰背景 */
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(30, 144, 255, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(30, 144, 255, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 40%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(2%, 1%) scale(1.05); }
}

/* 光纤线条 SVG 装饰 */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(30, 144, 255, 0.02) 2px,
      rgba(30, 144, 255, 0.02) 4px
    );
  pointer-events: none;
}

/* 左右内容组合容器 — 整体居中 */
.hero__container {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 45%;
  max-width: 540px;
  padding: 0 20px 0 0;
  display: flex;
  align-items: center;
}

.hero__content {
  position: relative;
  width: 100%;
  padding: 48px 44px;
  background: rgba(10, 22, 40, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.hero__title {
  font-size: var(--font-h1-size);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero__subtitle {
  font-size: 28px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  font-weight: 600;
}

.hero__highlight {
  color: var(--color-brand);
}

.hero__desc {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 36px;
  line-height: 1.6;
}

/* CTA 按钮 */
.hero__actions {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  transition: all var(--transition-base);
  cursor: pointer;
}

.hero__btn--outline {
  border: 2px solid var(--color-brand);
  color: var(--color-brand);
  background: transparent;
}

.hero__btn--outline:hover {
  background: var(--color-brand);
  color: var(--color-white);
  transform: translateY(-2px);
}

.hero__btn--solid {
  border: 2px solid var(--color-brand);
  background: var(--color-brand);
  color: var(--color-white);
}

.hero__btn--solid:hover {
  background: #1A7FE0;
  border-color: #1A7FE0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 144, 255, 0.35);
}

/* 向下滚动指示器 —— 底部箭头动画，提示用户继续向下浏览 */
.hero__scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollBounce 2s infinite;
}

.hero__scroll-arrow {
  display: block;
  width: 24px;
  height: 24px;
  border-right: 2px solid rgba(255, 255, 255, 0.5);
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  transform: rotate(45deg);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== 关于我们 ===== */

/*
 * 公司简介区域，包含：
 * 1. 左侧文字介绍 + 右侧数据统计（4 个指标卡片）
 * 2. 底部核心优势展示（4 列网格）
 * 背景色为浅灰蓝（--color-bg-alt），与 Hero 深色形成对比
 */
.about {
  padding: var(--section-padding);
  background-color: var(--color-bg-alt);
}

.about__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.about__intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
  align-items: center;
}

.about__text p {
  margin-bottom: 16px;
  line-height: 1.8;
  color: var(--color-text-primary);
}

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.about__stat {
  text-align: center;
  padding: 28px 20px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.about__stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.about__stat-number {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: var(--color-brand);
  margin-bottom: 6px;
}

.about__stat-label {
  font-size: var(--font-small-size);
  color: var(--color-text-secondary);
}

.about__advantages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.about__advantage {
  background: var(--color-white);
  padding: 32px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.about__advantage:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.about__advantage-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, rgba(30, 144, 255, 0.1), rgba(30, 144, 255, 0.05));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__advantage-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.about__advantage-desc {
  font-size: var(--font-small-size);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ===== 产品中心 ===== */

/*
 * 产品展示区域，功能点：
 * - .products__tabs：Tab 切换栏（全系列 / 衰减器 / 开关等分类）
 * - .products__grid：3 列产品卡片网格（平板 2 列，手机 1 列）
 * - 卡片悬浮上移 + 阴影加深效果
 * - 点击卡片触发弹窗（Modal）查看详情
 */
.products {
  padding: var(--section-padding);
  background-color: var(--color-white);
}

.products__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Tab 切换栏 */
.products__tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.products__tab {
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
}

.products__tab:hover {
  color: var(--color-brand);
  border-color: var(--color-brand);
}

.products__tab--active {
  color: var(--color-white);
  background: var(--color-brand);
  border-color: var(--color-brand);
}

/* 产品卡片网格 —— 3 列布局，hover 悬浮动效 */
.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.products__card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.products__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.products__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--color-white);
  transition: transform 0.4s ease;
}

.products__card:hover .products__card-image {
  transform: scale(1.05);
}

.products__card-body {
  padding: 20px;
}

.products__card-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.products__card-model {
  font-size: var(--font-small-size);
  color: var(--color-brand);
  font-weight: 500;
  margin-bottom: 8px;
}

.products__card-desc {
  font-size: var(--font-param-size);       /* 14px 参数级字号 */
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;                    /* 多行文本截断（2 行） */
  -webkit-line-clamp: 2;                   /* 限制最多显示 2 行 */
  -webkit-box-orient: vertical;
  overflow: hidden;                        /* 超出部分隐藏 */
}

.products__card-more {
  font-size: var(--font-small-size);
  color: var(--color-brand);
  font-weight: 500;
}

.products__card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-left: 4px;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.products__card-arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--color-brand);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.products__card:hover .products__card-arrow {
  transform: translateX(4px);
}

/* ===== 弹窗（Modal） ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal--open {
  display: flex;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.7);
  backdrop-filter: blur(4px);
}

.modal__content {
  position: relative;
  max-width: 700px;
  width: 90%;
  max-height: 85vh;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow-y: auto;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__close {
  position: sticky;
  top: 16px;
  float: right;
  margin-right: 4px;
  z-index: 10;
  font-size: 28px;
  color: var(--color-text-secondary);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  transition: color var(--transition-base);
}

.modal__close:hover {
  color: var(--color-primary);
}

.modal__body {
  padding: 32px;
}

/* ===== 产品图片画廊 ===== */
.modal__gallery {
  margin-bottom: 24px;
}

.modal__gallery-main {
  width: 100%;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 12px;
}

.modal__gallery-main .modal__product-image {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.modal__gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.modal__thumb {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.modal__thumb:hover {
  opacity: 0.85;
}

.modal__thumb--active {
  border-color: var(--color-brand);
  opacity: 1;
}

.modal__product-image {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.modal__product-image--clickable {
  cursor: zoom-in;
}

.modal__product-header {
  margin-bottom: 20px;
}

.modal__product-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.modal__product-model {
  font-size: var(--font-body-size);
  color: var(--color-brand);
  font-weight: 600;
}

/* 模块标题 */
.modal__section {
  margin-bottom: 24px;
}

.modal__section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-brand);
}

.modal__section-body {
  color: var(--color-text-primary);
}

/* 产品概述文本 */
.modal__overview-text {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 14px;
  color: var(--color-text-primary);
}

/* 特点列表 */
.modal__feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modal__feature-item {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 14px;
  line-height: 1.6;
  border-bottom: 1px dashed var(--color-border);
}

.modal__feature-item:last-child {
  border-bottom: none;
}

.modal__feature-item:before {
  content: '';
  position: absolute;
  left: 4px;
  top: 14px;
  width: 8px;
  height: 8px;
  background: var(--color-brand);
  border-radius: 50%;
  opacity: 0.5;
}

/* 参数表格 */
.modal__specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.modal__specs-table tr {
  border-bottom: 1px solid var(--color-border);
}

.modal__specs-table tr:last-child {
  border-bottom: none;
}

.modal__specs-table td {
  padding: 10px 12px;
  vertical-align: top;
  line-height: 1.5;
}

.modal__specs-label {
  width: 35%;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-bg-alt);
}

.modal__specs-value {
  color: var(--color-text-secondary);
}

/* 文档文本（产品概述补充） */
.modal__doc-text {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--color-border);
}

.modal__doc-text p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
}

/* 产品详细规格（从文档提取的表格） */
.modal__detail {
  margin-top: 24px;
}

.modal__detail-table {
  overflow-x: auto;
  margin-top: 12px;
}

.modal__detail-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.modal__detail-table th,
.modal__detail-table td {
  padding: 8px 12px;
  text-align: left;
  border: 1px solid var(--color-border);
  vertical-align: top;
}

.modal__detail-table th {
  background: var(--color-bg-alt);
  font-weight: 600;
  color: var(--color-primary);
  font-size: 13px;
}

.modal__detail-table td {
  font-size: 13px;
  color: var(--color-text-secondary);
}

.modal__detail-table tr:nth-child(even) {
  background: var(--color-bg-alt);
}

/* ===== 荣誉资质 ===== */
.honors {
  padding: var(--section-padding);
  background-color: var(--color-bg-alt);
}

.honors__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.honors__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.honors__item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.honors__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.honors__item img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: var(--color-white);
  padding: 8px;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(10, 22, 40, 0.9);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox--open {
  display: flex;
}

.lightbox__image {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: var(--color-white);
  cursor: pointer;
  transition: opacity var(--transition-base);
}

.lightbox__close:hover {
  opacity: 0.7;
}

/* ===== 合作客户 ===== */
.clients {
  padding: var(--section-padding);
  background-color: var(--color-white);
}

.clients__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.clients__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  align-items: center;
}

.clients__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  cursor: default;
}

.clients__item img {
  max-height: 60px;
  width: auto;
  transition: all var(--transition-base);
}

.clients__item:hover {
  box-shadow: var(--shadow-card);
}

.clients__item:hover img {
  opacity: 1;
  transform: scale(1.05);
}

/* ===== 联系我们 ===== */
.contact {
  padding: var(--section-padding);
  background-color: var(--color-bg-alt);
}

.contact__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.contact__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

/* 表单 */
.contact__form {
  background: var(--color-white);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.contact__form-group {
  margin-bottom: 20px;
}

.contact__label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.contact__required {
  color: var(--color-error);
}

.contact__input,
.contact__textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--color-text-primary);
  background: var(--color-white);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.contact__input:focus,
.contact__textarea:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.1);
}

.contact__input--error,
.contact__textarea--error {
  border-color: var(--color-error);
}

.contact__textarea {
  min-height: 120px;
  resize: vertical;
}

.contact__error {
  display: block;
  font-size: 13px;
  color: var(--color-error);
  margin-top: 4px;
  min-height: 18px;
}

.contact__submit {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-brand);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-base), transform var(--transition-base);
}

.contact__submit:hover {
  background: #1A7FE0;
  transform: translateY(-2px);
}

.contact__submit:active {
  transform: translateY(0);
}

/* 联系信息 */
.contact__info {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contact__info-card {
  flex: 1;
  background: var(--color-white);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact__info-item {
  display: flex;
  gap: 16px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
  align-items: flex-start;
}

.contact__info-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.contact__info-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 144, 255, 0.08);
  border-radius: 10px;
}

.contact__info-item h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.contact__info-item p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ===== 产品详情页（product.html） ===== */

/*
 * 独立产品详情落地页
 * - 区别于首页弹窗，此页面为独立 URL，适合 SEO 索引
 * - 包含面包屑导航、图片画廊、规格参数、特点列表等完整信息
 * - 结构与 Modal 内产品详情相似，但独立成页且内容更完整
 */
.product-detail {
  padding: 40px 0 60px;
  background: var(--color-bg-alt);
  min-height: 60vh;
}

.product-detail__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.product-detail__breadcrumb {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 28px;
}

.product-detail__breadcrumb a {
  color: var(--color-brand);
  text-decoration: none;
}

.product-detail__breadcrumb a:hover {
  text-decoration: underline;
}

.product-detail__breadcrumb span {
  color: var(--color-text-primary);
}

.product-detail__error {
  text-align: center;
  padding: 80px 20px;
}

.product-detail__error p {
  font-size: 18px;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

/* 图片画廊 —— 主图 + 水平滚动缩略图，点击切换主图 */
.product-detail__gallery {
  margin-bottom: 40px;
}

.product-detail__gallery-main {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 12px;
}

.product-detail__main-image {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
}

.product-detail__gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.product-detail__thumb {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.product-detail__thumb:hover {
  opacity: 0.85;
}

.product-detail__thumb--active {
  border-color: var(--color-brand);
  opacity: 1;
}

/* 产品信息区 —— 名称、型号、概述、特点、规格的白色卡片容器 */
.product-detail__info {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.product-detail__name {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.product-detail__model {
  font-size: 16px;
  color: var(--color-brand);
  font-weight: 600;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

/* 信息模块 —— 每个模块顶部带品牌色下边框作为视觉分割 */
.product-detail__section {
  margin-bottom: 28px;
}

.product-detail__section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-brand);
}

.product-detail__section-body {
  color: var(--color-text-primary);
}

.product-detail__overview-text {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.product-detail__feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-detail__feature-item {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 14px;
  line-height: 1.6;
  border-bottom: 1px dashed var(--color-border);
}

.product-detail__feature-item:last-child {
  border-bottom: none;
}

.product-detail__feature-item:before {
  content: '';
  position: absolute;
  left: 4px;
  top: 14px;
  width: 8px;
  height: 8px;
  background: var(--color-brand);
  border-radius: 50%;
  opacity: 0.5;
}

/* 文档文本 —— 从产品文档提取的补充说明文字 */
.product-detail__doc-text {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--color-border);
}

.product-detail__doc-text p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
  text-indent: 2em;
}

/* 参数表格 —— 左列标签（35% 宽，灰蓝底加粗） / 右列值（灰色） */
.product-detail__specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.product-detail__specs-table tr {
  border-bottom: 1px solid var(--color-border);
}

.product-detail__specs-table tr:last-child {
  border-bottom: none;
}

.product-detail__specs-table td {
  padding: 10px 12px;
  vertical-align: top;
  line-height: 1.5;
}

.product-detail__specs-label {
  width: 35%;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-bg-alt);
}

.product-detail__specs-value {
  color: var(--color-text-secondary);
}

/* 技术参数模块 —— 图片水平垂直居中展示 */
.product-detail__section--tech {
  margin-top: 28px;
}

.product-detail__tech-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 100px;
  padding: 20px 0;
}

.product-detail__tech-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  transition: opacity var(--transition-base);
}

.product-detail__tech-image:hover {
  opacity: 0.9;
}

/* 产品详情页 - 顶部返回链接 */
.product-detail__back {
  padding: 10px 0;
  background: var(--color-bg-alt, #f4f7fb);
  border-bottom: 1px solid var(--color-border, #e0e6ed);
}

.product-detail__back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  margin: 0 auto;
  margin-left: 24px;
  color: var(--color-primary, #1E90FF);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  background: rgba(30, 144, 255, 0.06);
  border: 1px solid rgba(30, 144, 255, 0.15);
  transition: all var(--transition-base, 0.25s);
  max-width: fit-content;
}

.product-detail__back-icon {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.product-detail__back-link:hover {
  color: var(--color-white);
  background: var(--color-brand);
  border-color: var(--color-brand);
  text-decoration: none;
}

.product-detail__back-link:hover .product-detail__back-icon {
  transform: translateX(-4px);
}

/* ===== Footer ===== */

/*
 * 页脚
 * - 深蓝黑背景（--color-primary），白色半透明文字
 * - 包含版权信息和 ICP 备案号
 * - ICP 链接 hover 时变为品牌蓝色
 */
.footer {
  background-color: var(--color-primary);
  padding: 40px 0;
  text-align: center;
}

.footer__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.footer__copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--font-small-size);
  margin-bottom: 8px;
}

.footer__icp {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.footer__icp a {
  color: rgba(255, 255, 255, 0.4);
}

.footer__icp a:hover {
  color: var(--color-brand);
}

/* ===== 滚动渐入动画 ===== */

/*
 * .reveal —— 视口滚动进入动画
 * - 初始状态：透明 + 向下偏移 30px
 * - JS 监听 IntersectionObserver，当元素进入视口时添加 .reveal--visible
 * - 过渡时间 0.6s，可用于任意块级元素
 */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 图片懒加载 ===== */

/*
 * .lazy-image —— 图片懒加载
 * - 初始透明，JS 加载完成后添加 .lazy-image--loaded 淡入
 * - 配合 loading="lazy" 属性使用，提升首屏加载性能
 */
.lazy-image {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lazy-image--loaded {
  opacity: 1;
}

/* ===== 图片查看器（全屏放大） ===== */

/*
 * .image-viewer —— 全屏图片浏览器
 * - z-index: 3000，覆盖所有元素
 * - 支持：放大/缩小、拖拽平移、前后切换、键盘操作
 * - 右上角关闭按钮、左右导航箭头、底部页码
 * - 放大后图片可拖拽（grab / grabbing 光标）
 */
.image-viewer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  align-items: center;
  justify-content: center;
}

.image-viewer--open {
  display: flex;
}

.image-viewer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.image-viewer__close {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 3010;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.image-viewer__close:hover {
  opacity: 1;
}

.image-viewer__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3010;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, background 0.2s;
}

.image-viewer__nav:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.25);
}

.image-viewer__nav--prev {
  left: 24px;
}

.image-viewer__nav--next {
  right: 24px;
}

.image-viewer__nav--hidden {
  display: none;
}

.image-viewer__content {
  position: relative;
  z-index: 3005;
  width: 90vw;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 20px 60px rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.3);
  contain: layout style paint;
}

.image-viewer__image {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 0;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
  transition: transform 0.15s ease;
  will-change: transform;
}

.image-viewer__image--zoomed {
  cursor: grab;
}

.image-viewer__image--zoomed:active {
  cursor: grabbing;
}

.image-viewer__counter {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3010;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  letter-spacing: 1px;
}

/* 移动端适配：图片查看器导航按钮缩小 + 关闭按钮调小 */
@media (max-width: 767px) {
  .image-viewer__nav {
    width: 40px;
    height: 40px;
  }
  .image-viewer__nav svg {
    width: 24px;
    height: 24px;
  }
  .image-viewer__nav--prev {
    left: 8px;
  }
  .image-viewer__nav--next {
    right: 8px;
  }
  .image-viewer__close {
    top: 12px;
    right: 16px;
    font-size: 32px;
  }
}

/* ===== 响应式：平板（1024px ~ 768px） ===== */

/*
 * 主要调整：
 * - 双列布局改为单列（关于我们、联系我们）
 * - 网格列数缩减（产品 3→2，荣誉 3→2，客户 5→3）
 * - 减小内边距
 */
@media (max-width: 1023px) {
  .about__intro {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about__advantages {
    grid-template-columns: repeat(2, 1fr);
  }

  .products__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .honors__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .clients__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-detail__info {
    padding: 28px;
  }

  .contact__wrapper {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ===== 响应式：手机（<= 767px） ===== */

/*
 * 主要调整：
 * - 汉堡菜单显示，导航变为垂直全宽列表
 * - 所有网格缩至 1~2 列
 * - 标题字号减小（h1: 48→32px, h2: 32→24px）
 * - 表单 / 卡片内边距缩小
 * - Section 间距从 80px 减至 50px
 */
@media (max-width: 767px) {
  .product-detail__info {
    padding: 20px;
  }

  .product-detail__name {
    font-size: 22px;
  }

  .product-detail__main-image {
    max-height: 280px;
  }

  :root {
    --section-padding: var(--section-padding-mobile);
  }

  .section-title {
    font-size: var(--font-h2-size-mobile);
  }

  /* 汉堡菜单 —— 移动端显示，点击展开导航列表 */
  .header__menu-toggle {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 16px 20px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
  }

  .header__nav--open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .header__nav-list {
    flex-direction: column;
    gap: 0;
  }

  .header__nav-link {
    padding: 14px 16px;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
  }

  .hero__title {
    font-size: var(--font-h1-size-mobile);
  }

  .hero__subtitle {
    font-size: 22px;
  }

  .hero__slide {
    flex-direction: column;
    gap: 30px;
    padding: 100px 20px 60px;
  }

  .hero__slide-bg {
    width: 80%;
    max-width: 400px;
    height: 40vh;
    max-height: 300px;
  }

  .hero__container {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .hero__content {
    width: 100%;
    max-width: 100%;
    padding: 36px 28px;
  }

  .hero__desc {
    font-size: 15px;
  }

  .about__advantages {
    grid-template-columns: 1fr;
  }

  .products__grid {
    grid-template-columns: 1fr;
  }

  .honors__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .honors__item img {
    height: 160px;
  }

  .clients__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact__form,
  .contact__info-card {
    padding: 24px;
  }

  .contact__form-row {
    grid-template-columns: 1fr;
  }

  .modal__detail-table table {
    font-size: 13px;
  }

  .modal__detail-table td,
  .modal__detail-table th {
    padding: 6px 8px;
  }
}

/* ===== 响应式：小屏手机（<= 480px） ===== */

/*
 * 针对 iPhone SE / 小屏 Android 的极限适配
 * 进一步缩小标题字号和按钮尺寸
 */
@media (max-width: 480px) {
  .hero__title {
    font-size: 26px;
  }

  .hero__subtitle {
    font-size: 18px;
  }

  .hero__desc {
    font-size: 14px;
  }

  .hero__btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  .hero__slide-bg {
    width: 90%;
    height: 30vh;
    max-height: 220px;
  }

  .hero__content {
    padding: 24px 18px;
  }

  .clients__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .honors__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   以下为 v3 版新增样式（Hero Swiper、标题双行、新闻、联系区深色、回到顶部、产品轮播、Footer增强）
   ============================================================ */

/* ===== 双行标题（英文 TAG + 中文标题） ===== */

/*
 * .section-title-en —— Section 英文 TAG（如 "ABOUT US"）
 * 位于 .section-title 上方，字号小，加粗，品牌色
 */
.section-title-en {
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  color: var(--color-brand);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* 深色背景下的英文标题（白色文字） */
.section-title-en--light {
  color: rgba(255, 255, 255, 0.8);
}

/* 深色背景下的中文标题 */
.section-title--light {
  color: var(--color-white);
}

/* 深色背景下的副标题 */
.section-subtitle--light {
  color: rgba(255, 255, 255, 0.6);
}

/* ===== Hero Swiper 轮播 ===== */

/*
 * Hero 区域使用 Swiper 实现全屏淡入淡出轮播
 * 每个 .hero__slide 包含背景图和文字内容
 * 保持原有深蓝黑渐变风格
 */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0A1628 0%, #0D2137 30%, #0F2A44 60%, #0A1628 100%);
  overflow: hidden;
  padding: 0;
}

.hero__swiper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__slide {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 60px;
  min-height: 100vh;
  padding: 0 20px;
}

/* 每个 slide 的产品图片 — 靠左显示，与右侧文字卡片整体居中 */
.hero__slide-bg {
  flex: 0 0 auto;
  width: 45%;
  max-width: 540px;
  height: 70vh;
  max-height: 500px;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero__slide-bg--1 {
  background-image: url('../images/swiper/LD-9208-D.png');
}

.hero__slide-bg--2 {
  background-image: url('../images/swiper/LD-9318-D.png');
}

.hero__slide-bg--3 {
  background-image: url('../images/swiper/LD-OSW.png');
}

.hero__slide-bg--4 {
  background-image: url('../images/swiper/LD9264Q.jpg');
}


/* 轮播分页圆点 */
.hero__pagination {
  bottom: 80px !important;
  z-index: 10;
}

.hero__pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.3);
  opacity: 1;
  margin: 0 6px !important;
  transition: background 0.3s, transform 0.3s;
}

.hero__pagination .swiper-pagination-bullet-active {
  background: var(--color-brand);
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(30, 144, 255, 0.5);
}

/* 左右导航箭头 */
.hero__button-prev,
.hero__button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(4px);
}

.hero__button-prev:hover,
.hero__button-next:hover {
  background: rgba(30, 144, 255, 0.25);
  border-color: var(--color-brand);
  color: var(--color-white);
}

.hero__button-prev {
  left: 24px;
}

.hero__button-next {
  right: 24px;
}

/* Swiper fade 模式下文字入场动画 */
.hero__slide .hero__content {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero__slide.swiper-slide-active .hero__content {
  opacity: 1;
  transform: translateY(0);
}

/* 光晕动画（保留原有） */
@keyframes heroGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(2%, 1%) scale(1.05); }
}

/* ===== 联系我们 - 深色背景版 ===== */

.contact {
  padding: var(--section-padding);
  background-color: #2A2A2A;
}

.contact__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.contact__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

/* 地图区域 */
.contact__map {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact__map-placeholder {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255, 255, 255, 0.5);
}

.contact__map-placeholder svg {
  margin-bottom: 16px;
  opacity: 0.4;
}

.contact__map-placeholder p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 4px;
}

.contact__map-link {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 20px;
  font-size: 14px;
  color: var(--color-brand);
  border: 1px solid var(--color-brand);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-base);
}

.contact__map-link:hover {
  background: var(--color-brand);
  color: var(--color-white);
}

/* 联系信息 + 表单卡片 */
.contact__info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact__info-card {
  background: var(--color-white);
  padding: 32px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.contact__info-item {
  display: flex;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
  align-items: flex-start;
}

.contact__info-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.contact__info-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 144, 255, 0.08);
  border-radius: 10px;
}

.contact__info-item h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.contact__info-item p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* 表单（在深色背景上改为白色卡片） */
.contact__form {
  background: var(--color-white);
  padding: 32px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.contact__form-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-brand);
}

.contact__form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact__form-group {
  margin-bottom: 16px;
}

.contact__label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.contact__required {
  color: var(--color-error);
}

.contact__input,
.contact__textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--color-text-primary);
  background: var(--color-white);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.contact__input:focus,
.contact__textarea:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.1);
}

.contact__input--error,
.contact__textarea--error {
  border-color: var(--color-error);
}

.contact__textarea {
  min-height: 100px;
  resize: vertical;
}

.contact__error {
  display: block;
  font-size: 13px;
  color: var(--color-error);
  margin-top: 4px;
  min-height: 18px;
}

.contact__submit {
  width: 100%;
  padding: 13px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-brand);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-base), transform var(--transition-base);
}

.contact__submit:hover {
  background: #1A7FE0;
  transform: translateY(-2px);
}

.contact__submit:active {
  transform: translateY(0);
}

/* ===== 回到顶部按钮 ===== */

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 30px;
  z-index: 999;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-brand);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(30, 144, 255, 0.35);
}

.back-to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #1A7FE0;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(30, 144, 255, 0.45);
}

.back-to-top:active {
  transform: translateY(0);
}

/* ===== 产品 Swiper 轮播 ===== */

.products__carousel-wrapper {
  position: relative;
}

.products__swiper {
  padding: 10px 4px 20px;
  overflow: hidden;
}

/* 产品卡片（在 Swiper slide 中） */
.products__swiper .products__card {
  width: 100%;
  margin: 0;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.products__swiper .products__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.products__swiper .products__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--color-white);
  transition: transform 0.4s ease;
}

.products__swiper .products__card:hover .products__card-image {
  transform: scale(1.05);
}

.products__swiper .products__card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.products__swiper .products__card-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.products__swiper .products__card-model {
  font-size: var(--font-small-size);
  color: var(--color-brand);
  font-weight: 500;
  margin-bottom: 8px;
}

.products__swiper .products__card-desc {
  font-size: var(--font-param-size);
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.products__swiper .products__card-more {
  font-size: var(--font-small-size);
  color: var(--color-brand);
  font-weight: 500;
}

.products__swiper .products__card-arrow {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  margin-left: 2px;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.products__swiper .products__card:hover .products__card-arrow {
  transform: translateX(3px);
}

/* 产品轮播导航按钮 */
.products__nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.products__button-prev,
.products__button-next {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-base);
}

.products__button-prev:hover,
.products__button-next:hover {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: var(--color-white);
}

/* Swiper 禁用态（不可点击时） */
.products__button-prev.swiper-button-disabled,
.products__button-next.swiper-button-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ===== Footer 增强 ===== */

.footer {
  background-color: var(--color-primary);
  padding: 40px 0;
  text-align: center;
}

.footer__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.footer__copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--font-small-size);
  margin-bottom: 8px;
}

.footer__icp {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.footer__icp a {
  color: rgba(255, 255, 255, 0.4);
}

.footer__icp a:hover {
  color: var(--color-brand);
}

/* ===== 响应式补充 ===== */

/* 平板适配 */
@media (max-width: 1023px) {
  .contact__wrapper {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contact__map {
    min-height: 250px;
    order: 1;
  }

  .contact__info {
    order: 0;
  }

  .hero__button-prev,
  .hero__button-next {
    display: none;
  }
}

/* 手机适配 */
@media (max-width: 767px) {
  .contact__form-row {
    grid-template-columns: 1fr;
  }

  .contact__info-card,
  .contact__form {
    padding: 24px;
  }

  .back-to-top {
    bottom: 24px;
    right: 16px;
    width: 40px;
    height: 40px;
  }

  .hero__pagination {
    bottom: 60px !important;
  }

  .hero__pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
  }
}

/* 小屏手机 */
@media (max-width: 480px) {
  .hero__pagination {
    bottom: 50px !important;
  }
}
