/* ============================================================
   Soundfire — main.css
   原生 CSS,主题通过 CSS 变量切换(:root 亮色 / [data-theme="dark"] 暗色)
   主色调:黑灰白单色,极简编辑风
   动效原则:只动 transform / opacity,保证流畅
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  /* 亮色主题(默认):白底 + 黑色强调 */
  --bg: #fafafa;
  --bg-soft: #f4f4f5;
  --surface: #ffffff;
  --text: #18181b;
  --text-muted: #71717a;
  --border: #e4e4e7;

  /* 单色强调:黑色为主 */
  --accent: #18181b;
  --accent-strong: #000000;
  --accent-soft: #f4f4f5;   /* 浅灰洗底 */
  --accent-contrast: #ffffff;
  --accent-text: #18181b;

  --shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);

  --radius: 26px;
  --radius-sm: 14px;
  --container: 1280px;
  --header-h: 68px;

  /* 深色反差带 / hero 深色画面用固定色 */
  --dark: #121215;
  --dark-2: #0c0c0f;

  /* 全站使用系统字体栈(不加载网络字体) */
  --font-title: "PingFang SC", "Microsoft YaHei",
          "Segoe UI", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-sub: "PingFang SC", "Microsoft YaHei",
          "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-text: "PingFang SC", "Microsoft YaHei",
          "Segoe UI", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font: var(--font-text);
}

/* 暗色主题:已砍掉,变量保留备用 */
html[data-theme="dark"] {
  --bg: #101012;
  --bg-soft: #17171a;
  --surface: #1d1d21;
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --border: #2c2c31;

  --accent: #f4f4f5;
  --accent-strong: #d4d4d8;
  --accent-soft: #26262b;
  --accent-contrast: #131316;
  --accent-text: #f4f4f5;

  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background 0.3s ease, color 0.3s ease;
}

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

a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--accent-text); text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 0.6em; }

/* ---------- 小标题层:与标题/正文区分的第三种字体 ---------- */
h3, h4,
.kicker,
.hero-badge,
.nav a,
.btn,
.tag,
.float-tag,
.scroll-cue,
.pc-idx,
.sv-idx,
.contact-row .label,
.field label {
  font-family: var(--font-sub);
}

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

section { padding: 110px 0; }
section.soft { background: var(--bg-soft); }

[id] { scroll-margin-top: 0; }
#hero, #contact { scroll-margin-top: 90px; }

/* ---------- 顶部导航(贴边,下滑变药丸悬浮) ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 35%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid transparent;
  border-bottom-color: var(--text);
  transition:
    top 0.35s ease, left 0.35s ease, right 0.35s ease, height 0.35s ease,
    border-radius 0.35s ease, background 0.35s ease,
    border-color 0.35s ease;
}
.header.scrolled {
  top: 14px; left: 18px; right: 18px;
  height: 58px;
  border-radius: 999px;
  border-color: var(--text);
}

.header .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s ease;
}
/* 顶栏 logo 图:黑色版用于浅色玻璃栏,白色版用于深色/反白栏(与 .on-dark 联动) */
.logo-img {
  height: 36px;
  width: auto;
  display: block;
}
.logo-img-white { display: none; }
/* 顶部贴边(黑实底)或 .on-dark(深色玻璃)时切换为白色版 */
.header:not(.scrolled) .logo-img-black,
.header.on-dark .logo-img-black { display: none; }
.header:not(.scrolled) .logo-img-white,
.header.on-dark .logo-img-white { display: block; }

/* 中文名副标:跟随 logo 颜色,反白时自动适配 */
.logo .logo-cn {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  opacity: 0.6;
  margin-left: 8px;
}

.logo .logo-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, #ffffff, #d4d4d8);
  display: inline-flex; align-items: center; justify-content: center;
  color: #131316; font-size: 0.9rem; font-weight: 700;
  transition: background 0.35s ease;
}
/* 滚动后处于浅色页面:logo 方块反转为黑底白字(深色板块上仍保持白底) */
.header.scrolled:not(.on-dark) .logo-mark {
  background: linear-gradient(135deg, #2a2a2e, #131316);
  color: #ffffff;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: color 0.2s;
}
/* 下划线动效:发丝线从左向右生长 */
.nav a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav a:hover::after,
.nav a.active::after { transform: scaleX(1); }
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--text); font-weight: 700; }

/* 主题 / 语言切换按钮 */
.icon-btn {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid color-mix(in srgb, var(--text) 16%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 28%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text);
  cursor: pointer;
  font-size: 0.95rem;
  transition: border-color 0.2s, transform 0.2s;
}
.icon-btn:hover { border-color: var(--accent-text); transform: translateY(-1px); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: 40px; }
.lang-btn {
  width: auto; height: auto;
  padding: 0;
  border: none;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: color-mix(in srgb, var(--text) 35%, var(--bg));
  transition: color 0.2s ease;
}
.lang-btn:hover {
  color: var(--text);
  transform: none;
}

/* 动态反差:顶栏下方是深色板块(hero / 服务带)时整体反白,JS 探测后切换 .on-dark */
.header.on-dark {
  background: color-mix(in srgb, var(--dark) 35%, transparent);
  border-color: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.42);
}
.header.scrolled.on-dark { border-color: rgba(255, 255, 255, 0.42); }
.header.on-dark .logo { color: #ffffff; }
.header.on-dark .nav a,
.header.on-dark .lang-btn,
.header.on-dark .nav-toggle { color: rgba(255, 255, 255, 0.72); }
.header.on-dark .nav a:hover,
.header.on-dark .nav a.active,
.header.on-dark .lang-btn:hover { color: #ffffff; }

/* 页面顶部(贴边状态)默认黑色实底,下滑变药丸后才切换为 35% 玻璃底 */
.header:not(.scrolled) { background: var(--dark); }

/* 移动端汉堡 */
.nav-toggle {
  display: none;
  border: none; background: none;
  font-size: 1.5rem; color: var(--text); cursor: pointer;
  line-height: 1;
  transition: color 0.25s ease;
}

/* ---------- Hero 首屏:深色大图 + 白字悬浮 ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 72px) 0 96px;
  overflow: hidden;
  border-radius: 0 0 44px 44px;
  background: var(--dark-2);
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: heroDrift 22s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1) translateX(0); }
  to   { transform: scale(1.06) translateX(-1.5%); }
}

.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 720px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-title);
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.hero h1 em { font-style: normal; color: #ffffff; }
@supports ((-webkit-text-stroke: 1px black)) {
  .hero h1 em {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.92);
  }
}
.hero p.lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.66);
  max-width: 34em;
  margin-bottom: 32px;
}
.hero .btn-primary { background: #ffffff; color: #131316; }
.hero .btn-primary:hover { background: #e4e4e7; color: #131316; }
.hero .btn-ghost { color: #ffffff; border-color: rgba(255, 255, 255, 0.42); }
.hero .btn-ghost:hover { border-color: #ffffff; color: #ffffff; }

/* 滚动提示 */
.scroll-cue {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.scroll-cue:hover { color: rgba(255, 255, 255, 0.9); text-decoration: none; }
.scroll-cue i {
  width: 1px; height: 44px;
  background: rgba(255, 255, 255, 0.55);
  animation: cueDrop 1.9s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cueDrop {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- 数字统计条 ---------- */
.stats { padding: 40px 0 12px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat { padding: 18px 30px; text-align: center; }
.stat:not(:first-child) { border-left: 1px solid var(--border); }
.stat-num {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat-num .suffix {
  font-size: 0.48em;
  font-weight: 700;
  color: var(--text-muted);
  margin-left: 5px;
}
.stat-label { color: var(--text-muted); font-size: 0.82rem; letter-spacing: 0.08em; margin-top: 6px; }

/* ---------- 板块标题(编辑风:发丝线生长 + 大标题 + 序号) ---------- */
.section-head {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  column-gap: 40px;
  row-gap: 10px;
  padding-top: 26px;
  margin-bottom: 52px;
}
.section-head::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s cubic-bezier(0.22, 0.61, 0.21, 1) 0.1s;
}
.section-head.aos-animate::before { transform: scaleX(1); }
.section-head .kicker {
  grid-column: 1;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.section-head .kicker::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: 4px;
}
.section-head h2 {
  grid-column: 1;
  font-family: var(--font-title);
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}
.section-head p { grid-column: 1; color: var(--text-muted); margin: 0; max-width: 46em; }
.section-head .index {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: start;
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
@supports ((-webkit-text-stroke: 1px black)) {
  .section-head .index {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--text);
    opacity: 0.5;
  }
}

/* ---------- 媒体框:图片揭示 + 悬停缓推 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.media-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 1.1s cubic-bezier(0.22, 0.61, 0.21, 1);
}
/* AOS 揭示:进入视口前轻微放大,触发后缓慢沉降 */
[data-aos]:not(.aos-animate) .media-frame img,
.media-frame[data-aos]:not(.aos-animate) img { transform: scale(1.12); }
.media-frame.aos-animate img { transform: scale(1); }
/* 悬停缓推(写在揭示之后以覆盖) */
.media-frame.aos-animate:hover img { transform: scale(1.05); }
/* 白底产品图:完整显示不裁切,留白以白色填充 */
.media-contain { background: #ffffff; }
.media-contain img { object-fit: contain; padding: 10px; }
/* 深色背景幻灯片:轮播按钮切换为白色描边 */
.carousel[data-btn-light] .carousel-btn { border-color: #ffffff; color: #ffffff; }
.carousel[data-btn-light] .carousel-btn:hover { background: rgba(255, 255, 255, 0.16); }
/* 竖构图幻灯片:完整显示不裁切,留白以白色填充 */
.carousel-slide[data-contain] { background: #ffffff; }
.carousel-slide[data-contain] img { object-fit: contain; padding: 10px; }

/* 图上悬浮标签(白玻璃 chip) */
.float-tag {
  position: absolute;
  top: 18px; left: 18px;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
}

/* ---------- 通用小组件 ---------- */
.tag {
  font-size: 0.78rem;
  padding: 3px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-soft) 75%, transparent);
  color: var(--accent-text);
  font-weight: 600;
}
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700;
  color: var(--accent-text);
}
.link-arrow::after { content: "→"; transition: transform 0.2s ease; }
.link-arrow:hover::after { transform: translateX(5px); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-strong); color: var(--accent-contrast); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent-text); color: var(--accent-text); }

/* ---------- 案例:三联卡片网格(图上幽灵巨号 + 玻璃标签) ---------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}
.case-card {
  display: flex;
  flex-direction: column;
  color: var(--text);
}
.case-card .media-frame {
  aspect-ratio: 4 / 3;
  margin-bottom: 20px;
}
.case-card.aos-animate:hover .media-frame img { transform: scale(1.05); }
.case-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.case-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* 图上的幽灵巨号:保留旧版交错排版的视觉记忆点 */
.case-num {
  position: absolute;
  right: 18px;
  bottom: -10px;
  font-family: var(--font-title);
  font-size: clamp(3.4rem, 5.5vw, 5.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.22);
  pointer-events: none;
  user-select: none;
}
@supports ((-webkit-text-stroke: 1px black)) {
  .case-num {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.55);
  }
}

.spec-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  border-top: 1px solid var(--border);
}
.spec-list li {
  position: relative;
  padding: 13px 0 13px 30px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
}
.spec-list li::before {
  content: "";
  position: absolute; left: 2px; top: 1.15em;
  width: 12px; height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- 设备与套装:四联大图卡片(一屏尽览) ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 44px 28px;
}
.product-card {
  display: flex;
  flex-direction: column;
  color: var(--text);
}
.product-card .media-frame {
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
}
.product-card.aos-animate:hover .media-frame img { transform: scale(1.05); }
.pc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--text);
  padding-top: 12px;
  margin-bottom: 8px;
}
.pc-idx {
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  transition: color 0.2s;
}
.product-card:hover .pc-idx { color: var(--text); }
.product-card h3 {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.product-card > p {
  color: var(--text-muted);
  margin: 0 0 14px;
  font-size: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pc-specs { margin: 0 0 16px; }
.pc-specs li { padding: 8px 0 8px 26px; font-size: 0.8rem; }
.product-card .link-arrow { margin-top: auto; font-size: 0.85rem; }


/* ---------- 服务能力:深色反差带 ---------- */
.services {
  background: var(--dark);
  color: #f4f4f5;
  padding: 110px 0;
}
.services-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  border-top: 2px solid #ffffff;
  padding-top: 26px;
  margin-bottom: 60px;
}
.services .kicker {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.services .kicker::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  margin-right: 10px;
  vertical-align: 4px;
}
.services h2 {
  font-family: var(--font-title);
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 6px 0 0;
}
.services-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
}
.services-cta::after { content: "→"; transition: transform 0.2s ease; }
.services-cta:hover { color: #ffffff; text-decoration: none; }
.services-cta:hover::after { transform: translateX(5px); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 44px;
}
.service {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 22px;
  transition: transform 0.3s ease;
}
.service:hover { transform: translateY(-4px); }
.sv-idx {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.45);
  font-variant-numeric: tabular-nums;
  transition: color 0.3s;
}
@supports ((-webkit-text-stroke: 1px black)) {
  .sv-idx {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.6);
  }
}
.service:hover .sv-idx { color: rgba(255, 255, 255, 0.85); }
.service h3 { font-size: 1.05rem; color: #ffffff; margin: 12px 0 8px; }
.service p { font-size: 0.88rem; color: rgba(255, 255, 255, 0.55); margin: 0; }

/* ---------- 联系:编辑风发丝线 ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: start;
}
.contact-info { border-top: 1px solid var(--text); }
.contact-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.contact-row .label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact-row .value { font-weight: 600; }

.contact-form { display: grid; gap: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field { display: grid; gap: 4px; }
.field label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field input, .field textarea {
  font: inherit;
  padding: 12px 2px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  color: var(--text);
  transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--text);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-status { font-size: 0.88rem; color: var(--text-muted); min-height: 1.4em; }

/* ---------- 页脚:描边巨字 ---------- */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 96px 0 28px;
}
.footer-mark {
  font-family: var(--font-title);
  font-size: clamp(3.2rem, 11vw, 9.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text);
  opacity: 0.08;
  user-select: none;
  margin-bottom: 22px;
}
@supports ((-webkit-text-stroke: 1px black)) {
  .footer-mark {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--text);
    opacity: 1;
  }
}
.footer-tag { max-width: 34em; color: var(--text-muted); font-size: 0.95rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  margin-bottom: 44px;
}
.footer h4 {
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer p, .footer a { color: var(--text-muted); font-size: 0.88rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a:hover { color: var(--accent-text); }
.copyright {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.footer .beian {
  display: block;
  margin-top: 8px;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

/* ---------- 回到顶部(毛玻璃底,与顶栏同一套配方;深色板块上 JS 切 .on-dark 反白) ---------- */
.back-top {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--text);
  background: color-mix(in srgb, var(--bg) 35%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.3s, transform 0.3s, visibility 0.3s,
    background 0.35s ease, border-color 0.35s ease, color 0.35s ease;
  z-index: 90;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top svg { display: block; width: 20px; height: 20px; }
.back-top.on-dark {
  background: color-mix(in srgb, var(--dark) 35%, transparent);
  border-color: rgba(255, 255, 255, 0.42);
  color: #ffffff;
}
/* 悬停反馈:毛玻璃 → 实底反色 + 上浮,与 .btn-primary:hover 同一语言 */
.back-top.show:hover { transform: translateY(-2px); }
.back-top:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: var(--accent-contrast);
}
.back-top.on-dark:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #121215;
}

/* ---------- 专页返回按钮悬浮态:下滑后固定左上角(顶栏下方),深色板块经过时反白 ---------- */
.back-float {
  position: fixed;
  left: 18px; top: calc(var(--header-h) + 14px);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--text);
  background: color-mix(in srgb, var(--bg) 35%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.3s, transform 0.3s, visibility 0.3s,
    background 0.35s ease, border-color 0.35s ease, color 0.35s ease;
  z-index: 90;
}
.back-float.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-float svg { display: block; width: 20px; height: 20px; transform: translateX(-2px); }
.back-float.show:hover { transform: translateY(-2px); }
.back-float:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: var(--accent-contrast);
}
.back-float.on-dark {
  background: color-mix(in srgb, var(--dark) 35%, transparent);
  border-color: rgba(255, 255, 255, 0.42);
  color: #ffffff;
}
.back-float.on-dark:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #121215;
}

/* ---------- 详情专页(detail-1~4.html) ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) 0 88px;
  background: linear-gradient(180deg, #16161b, var(--dark-2));
  color: #ffffff;
  border-radius: 0 0 44px 44px;
  overflow: hidden;
}
/* 杂志刊头:超大描边装饰字,内容由各专页 data-ghost 提供 */
.page-hero::after {
  content: attr(data-ghost);
  position: absolute;
  right: -0.03em;
  bottom: -0.14em;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(4.2rem, 12vw, 10rem);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.15);
  pointer-events: none;
  user-select: none;
}
@supports not (-webkit-text-stroke: 1px #000) {
  .page-hero::after { color: rgba(255, 255, 255, 0.05); }
}
.page-hero h1 {
  font-family: var(--font-title);
  font-size: clamp(2.6rem, 6.5vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 18px 0 14px;
  color: #ffffff;
}
.page-hero .ph-lead {
  color: rgba(255, 255, 255, 0.62);
  max-width: 34em;
  font-size: 1.02rem;
  line-height: 1.9;
  margin: 0;
}
.breadcrumb { font-size: 0.82rem; letter-spacing: 0.05em; color: rgba(255, 255, 255, 0.55); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255, 255, 255, 0.55); }
.breadcrumb a:hover { color: #ffffff; text-decoration: none; }

/* 返回按钮:页头内的圆形图标(左尖括号) */
.back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.back-btn:hover {
  color: #ffffff;
  border-color: #ffffff;
  transform: translateX(-4px);
}
.back-btn svg { display: block; transform: translateX(-2px); }

.detail-wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
  padding: 56px 0 5px;
}
/* 左列:轮播 + 正文(正文紧贴图片);参数表独立右列,不再撑开与图片的距离 */
.detail-left { min-width: 0; }
.detail-left .detail-body { padding: 64px 0 48px; max-width: 720px; }
.detail-media { aspect-ratio: 4 / 3; }
/* 参数表:规格单式排版 — 小号字距标签居左,数值居右,发丝线分行 */
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.spec-table th, .spec-table td {
  text-align: left;
  padding: 13px 2px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.spec-table th {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  width: 42%;
}
.spec-table td {
  text-align: right;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.spec-table tr:first-child td { font-weight: 800; letter-spacing: 0.01em; }
/* 正文:杂志稿排版 — kicker 小节标题 + 宽松行距 */
.detail-body { padding: 0 0 96px; max-width: 720px; }
.detail-body p { font-size: 1.02rem; line-height: 2; margin: 0 0 1.1em; }
.detail-body h2, .detail-wrap h2 {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 3em 0 1.1em;
}
.detail-body h2::before, .detail-wrap h2::before {
  content: "";
  display: block;
  width: 28px;
  border-top: 2px solid var(--text);
  margin-bottom: 14px;
}
.detail-body h2:first-child, .detail-wrap h2:first-child { margin-top: 0; }

/* ---------- 详情页:双设备区块 + 图片轮播 ---------- */
.device-block { padding: 48px 0 16px; }
.device-block + .device-block {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding-top: 72px;
}
.device-block .detail-wrap { padding-top: 40px; }
.device-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 20px;
  border-top: 2px solid var(--text);
  padding-top: 24px;
  margin-bottom: 34px;
}
.device-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}
/* 设备编号:超大描边数字(不支持的浏览器回退为灰色实心) */
.device-head .pc-idx {
  font-size: clamp(3rem, 6vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text);
  margin-right: 6px;
}
@supports not (-webkit-text-stroke: 1px #000) {
  .device-head .pc-idx { color: var(--text-muted); }
}

.carousel {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.21, 1);
}
.carousel-slide { flex: 0 0 100%; height: 100%; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid #18181b;          /* 黑色描边 */
  background: transparent;            /* 完全透明,只剩毛玻璃模糊 */
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #18181b;                     /* 黑色箭头 */
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  opacity: 1;                          /* 整体常显 */
  transition: background 0.25s, color 0.25s;
  z-index: 2;
}
.carousel-btn:hover { background: rgba(0, 0, 0, 0.08); color: #000000; }
.carousel-btn svg { display: block; }
.carousel-btn.next svg { transform: scaleX(-1); } /* 左箭头图标水平翻转成右箭头 */
.carousel-btn.prev { left: 14px; }
.carousel-btn.next { right: 14px; }
.carousel-dots {
  position: absolute;
  left: 50%; bottom: 14px;
  transform: translateX(-50%);
  display: flex; gap: 8px;
  z-index: 2;
}
.carousel-dots button {
  width: 8px; height: 8px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #18181b;          /* 黑色描边 */
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.carousel-dots button.active { background: #18181b; transform: scale(1.25); }

/* ---------- 图片灯箱:点击轮播图全屏查看 ---------- */
.lightbox {
  position: fixed; inset: 0;
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 10, 12, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.lightbox.show { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  cursor: zoom-in;
  transition: transform 0.18s ease;
}
.lightbox img.zoomed { cursor: grab; }
.lightbox img.dragging { cursor: grabbing; transition: none; }
.lightbox-close {
  position: absolute; top: 22px; right: 24px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lightbox-close:hover { background: #ffffff; color: #121215; }
.lightbox-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lightbox-btn:hover { background: #ffffff; color: #121215; }
.lightbox-btn.lightbox-prev { left: 24px; }
.lightbox-btn.lightbox-next { right: 24px; }
.lightbox-btn svg { display: block; }
.lightbox-btn.lightbox-next svg { transform: scaleX(-1); }
.lightbox-dots {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  display: flex; gap: 8px;
}
.lightbox-dots button {
  width: 8px; height: 8px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.lightbox-dots button.active { background: #ffffff; transform: scale(1.25); }
@media (max-width: 760px) {
  .lightbox-btn { width: 40px; height: 40px; }
  .lightbox-btn.lightbox-prev { left: 12px; }
  .lightbox-btn.lightbox-next { right: 12px; }
}

/* ---------- 专页底部 CTA 条 ---------- */
.detail-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  border-top: 2px solid var(--text);
  padding: 36px 0 88px;
  margin-top: 0;
}
.detail-cta h4 {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.detail-cta p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

/* ---------- 动效降级:尊重系统"减少动态效果" ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg img { animation: none; }
  .scroll-cue i { animation: none; transform: scaleY(1); }
  .media-frame img { transition: none; }
  [data-aos]:not(.aos-animate) .media-frame img,
  .media-frame[data-aos]:not(.aos-animate) img { transform: scale(1); }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 44px 28px; }

  .case-grid { gap: 32px 20px; }
  .services-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .stats-grid { grid-template-columns: 1fr 1fr; row-gap: 26px; }
  .stat { padding: 12px 24px; }
  .stat:nth-child(3) { border-left: none; }
}

@media (max-width: 900px) {
  .case-grid { grid-template-columns: 1fr; gap: 44px; }
  .case-card .media-frame { aspect-ratio: 16 / 9; }
  .contact-wrap,
  .detail-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-wrap { gap: 32px; }
  /* 窄屏单列:恢复 图 → 参数表 → 正文 的顺序 */
  .detail-left { display: contents; }
  .detail-wrap > .detail-side { order: 2; }
  .detail-left .detail-body { order: 3; }
}

/* 触摸设备:无 hover,箭头常显 */
@media (hover: none) {
  .carousel-btn { opacity: 1; }
}

@media (max-width: 760px) {
  section { padding: 72px 0; }
  .services { padding: 72px 0; }
  .section-head { grid-template-columns: 1fr; }
  .section-head .index { display: none; }
  .product-grid { grid-template-columns: 1fr; gap: 44px; }

  .contact-wrap { gap: 48px; }
  .contact-row { grid-template-columns: 90px 1fr; }
  .stats { padding: 26px 0 4px; }
  .stat { padding: 8px 6px; }
  .stat:not(:first-child) { border-left: none; }
  .scroll-cue { bottom: 16px; }
  .hero { min-height: 88vh; border-radius: 0 0 30px 30px; }
  .page-hero { border-radius: 0 0 30px 30px; }
  /* 移动端菜单:深色玻璃面板,白字(与深色 hero 一致) */
  .nav {
    position: fixed;
    top: calc(var(--header-h) + 8px); left: 16px; right: 16px;
    flex-direction: column;
    align-items: stretch;
    background: color-mix(in srgb, var(--dark) 78%, transparent);
    -webkit-backdrop-filter: blur(18px) saturate(1.5);
    backdrop-filter: blur(18px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    padding: 14px 18px 18px;
    gap: 6px;
    display: none;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; color: rgba(255, 255, 255, 0.8); }
  .nav a:hover, .nav a.active { color: #ffffff; }
  .nav a::after { display: none; }
  .nav-toggle { display: block; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
