/* ==========================================================================
   HONGSHENG — 惠州市宏盛通讯科技有限公司 官网样式
   设计语言：浅色工业 B2B。白底承载棚拍产品图，深海军蓝做重色带，
   信号橙只用于操作与强调，保证"专业采购页"而不是"消费电子页"的气质。
   ========================================================================== */

/* ── 1. 变量 ───────────────────────────────────────────────────────────── */
:root {
  --navy: #0f2c4c;
  --navy-2: #14395f;
  --navy-3: #0a2039;
  --ink: #12212e;
  --body: #3c4e5e;
  --muted: #6b7e8e;
  --line: #e2e8ee;
  --line-2: #d3dce4;
  --bg: #ffffff;
  --bg-soft: #f5f8fa;
  --bg-plate: #f4f6f8;
  --accent: #e8590c;
  --accent-ink: #b8430a;
  --accent-soft: #fff2e8;
  --teal: #0e7c86;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-1: 0 1px 2px rgba(16, 32, 48, 0.05), 0 10px 26px -20px rgba(16, 32, 48, 0.45);
  --shadow-2: 0 2px 4px rgba(16, 32, 48, 0.06), 0 22px 48px -26px rgba(16, 32, 48, 0.5);
  --wrap: 1200px;
  --header-h: 66px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", "Cascadia Mono", Menlo,
    Consolas, "Liberation Mono", monospace;
}

/* ── 2. 基础 ───────────────────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

/* hidden 属性必须真的隐藏：否则作者样式里的 display:flex/grid 会盖掉
   浏览器默认的 [hidden]{display:none}（同优先级下作者样式胜出）。
   翻页按钮、系列说明面板、画廊缩略图条、灯箱箭头都靠这条规则。 */
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.35rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.15rem); }
h3 { font-size: 1.14rem; }
p { margin: 0; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── 3. 布局工具 ───────────────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: clamp(56px, 7vw, 96px) 0; }
.section--soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }

.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { margin-top: 14px; font-size: 1.05rem; color: var(--muted); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
}

.lede { font-size: clamp(1.02rem, 0.96rem + 0.3vw, 1.16rem); color: var(--body); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-variant-ligatures: none; }

/* 屏幕阅读器可见、视觉隐藏 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ── 4. 按钮 ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.16s ease,
    border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 10px 17px; font-size: 0.88rem; }
.btn-lg { padding: 16px 28px; font-size: 1rem; }

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 22px -14px rgba(232, 89, 12, 0.9); }
.btn-primary:hover { background: var(--accent-ink); }

.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }

.btn-quiet { background: transparent; color: var(--navy); border-color: transparent; padding-inline: 8px; }
.btn-quiet:hover { color: var(--accent); }

.btn-onDark { background: #fff; color: var(--navy); }
.btn-onDark:hover { background: #eaf1f8; }

.btn-outlineDark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.38); }
.btn-outlineDark:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── 5. 页头 ───────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 8px 24px -22px rgba(16, 32, 48, 0.6); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}
.brand-mark span { color: var(--accent); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 0.98rem; font-weight: 750; letter-spacing: 0.01em; color: var(--ink); }
.brand-text em { font-style: normal; font-size: 0.7rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }

/* 公司 LOGO（由 产品资料/公司LOGO.jpg 处理而来：logo-plate.png + 2x 版本） */
.brand-logo {
  display: block;
  flex: 0 0 auto;
  width: 64px;
  height: 38px;
  border-radius: 9px;
}

.nav { display: flex; align-items: center; gap: 4px; margin-left: 10px; }
.nav a {
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--body);
  transition: color 0.16s ease, background-color 0.16s ease;
}
.nav a:hover { color: var(--navy); background: var(--bg-soft); }
.nav a.is-active { color: var(--navy); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
}
.lang button {
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.lang button.is-active { background: var(--navy); color: #fff; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ── 6. 首屏 ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 88% -10%, #e8f0f8 0%, rgba(232, 240, 248, 0) 62%),
    linear-gradient(180deg, #fbfcfd 0%, #ffffff 68%);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(15, 44, 76, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 44, 76, 0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 78%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(48px, 6vw, 84px) 24px clamp(56px, 6vw, 88px);
}
.hero-copy .lede { margin-top: 20px; max-width: 34em; }
/* 首屏标题按行均衡断行，避免末行只剩一个孤字（不支持的浏览器自动忽略） */
.hero-copy h1 { text-wrap: balance; }
.hero-cta { margin-top: 30px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-stats strong {
  display: block;
  font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.7rem);
  font-weight: 750;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.hero-stats span { display: block; margin-top: 2px; font-size: 0.83rem; color: var(--muted); }

.hero-media { position: relative; max-width: 560px; margin-inline: auto; }

/* 首屏 5 图轮播 */
.hero-slider { position: relative; }
.hero-viewport {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-2);
}
.hero-track {
  display: flex;
  will-change: transform;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-slide { flex: 0 0 100%; margin: 0; }
.hero-slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #fff;
}
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.hero-arrow svg { width: 20px; height: 20px; }
.hero-arrow:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.hero-arrow--prev { left: 14px; }
.hero-arrow--next { right: 14px; }

/* 底部缩略图导航：直接复用 5 张轮播图，不额外增加请求 */
.hero-thumbs {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 28px);
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 22px -16px rgba(16, 32, 48, 0.6);
}
/* 缩略图导航（首页首屏与产品详情弹层共用同一外观） */
.hero-thumb,
.gallery-thumb {
  flex: 0 0 auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.hero-thumb { width: 46px; height: 46px; }
.gallery-thumb { width: 44px; height: 44px; border-radius: 7px; }
.hero-thumb img,
.gallery-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-thumb:hover,
.gallery-thumb:hover { opacity: 1; border-color: var(--line-2); }
.hero-thumb.is-active,
.gallery-thumb.is-active {
  opacity: 1;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(232, 89, 12, 0.28);
}

.hero-toggle {
  position: absolute;
  right: 13px;
  bottom: 13px;
  width: 30px;
  height: 30px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.hero-toggle svg { width: 13px; height: 13px; }
.hero-toggle:hover { color: var(--navy); border-color: var(--navy); }

.hero-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(15, 44, 76, 0.92);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
}

/* ── 7. 品牌兼容横带 ───────────────────────────────────────────────────── */
.strip {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}
.strip-label {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto 14px;
  padding: 0 24px;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.marquee { position: relative; display: flex; gap: 0; overflow: hidden; }
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0)); }
.marquee::after { right: 0; background: linear-gradient(270deg, #fff, rgba(255, 255, 255, 0)); }
.marquee-track {
  display: flex;
  flex: 0 0 auto;
  gap: 14px;
  padding-right: 14px;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  flex: 0 0 auto;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--navy);
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── 8. 分类格 ─────────────────────────────────────────────────────────── */
/* ── 8. 产品线：一行 3 个（6 个系列正好两行铺满） ─────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.cat-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.cat-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #fff;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.cat-media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.cat-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; flex: 1; }
.cat-body h3 { font-size: 1.02rem; letter-spacing: -0.01em; }
.cat-body p {
  font-size: 0.89rem;
  line-height: 1.6;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cat-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
}
.cat-count {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--teal);
  background: #eef7f8;
  border: 1px solid #d8ebed;
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.cat-go { font-size: 0.86rem; font-weight: 650; color: var(--navy); white-space: nowrap; }
.cat-go::after { content: " →"; }
.cat-card:hover .cat-go { color: var(--accent); }

/* 无实拍图的类别：技术底纹 + 字形，而不是硬塞一张不相干的照片 */
.tile {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
  background:
    repeating-linear-gradient(135deg, rgba(15, 44, 76, 0.045) 0 10px, transparent 10px 20px),
    var(--bg-plate);
  color: var(--navy);
}
.tile svg { width: 46px; height: 46px; opacity: 0.5; }

/* ── 9. 产品卡 ─────────────────────────────────────────────────────────── */
.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 20px;
}
.p-card {
  position: relative;          /* 拉伸命中区的定位基准 */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: left;
  cursor: pointer;             /* 整卡可点，鼠标要给出提示 */
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.p-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); border-color: var(--line-2); }
.p-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #fff;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.p-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.35s ease;
}
.p-card:hover .p-media img { transform: scale(1.035); }  /* 悬停轻微放大，暗示整卡可点 */
.p-media .tile { padding: 12px; }
.p-tile-code {
  position: absolute;
  inset: auto 12px 12px 12px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--navy);
  text-align: center;
  letter-spacing: 0.02em;
}
.p-body { display: flex; flex-direction: column; gap: 7px; padding: 16px 18px 18px; flex: 1; }
.p-group {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.p-model { font-family: var(--mono); font-size: 1rem; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.p-spec {
  font-size: 0.88rem;
  color: var(--body);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.p-spec--list { font-family: var(--mono); font-size: 0.85rem; color: var(--teal); }
.p-fits {
  font-size: 0.82rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.p-open {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 0.87rem;
  font-weight: 650;
  color: var(--navy);
  background: none;
  border-inline: 0;
  border-bottom: 0;
  cursor: pointer;
  text-align: left;
}
/* 拉伸命中区：按钮的伪元素铺满整张卡片（含图片区），
   于是「点图片 / 点型号 / 点空白」都等于点这个按钮；
   键盘仍然只在这一个按钮上停留一次，不会出现多停靠点。 */
.p-open::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: var(--radius);
}
.p-card:hover .p-open { color: var(--accent); }
/* 键盘聚焦时，焦点环画在整张卡片上而不是那行小字上 */
.p-open:focus-visible { outline: none; }
.p-open:focus-visible::before {
  box-shadow: 0 0 0 3px rgba(232, 89, 12, 0.45);
}
.p-open::after { content: " →"; }

/* ── 10. 过滤条 ────────────────────────────────────────────────────────── */
.page-head {
  padding: clamp(36px, 4.5vw, 60px) 0 clamp(20px, 3vw, 32px);
  background: linear-gradient(180deg, #fbfcfd, #fff);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.6rem); }
.page-head p { margin-top: 14px; max-width: 62ch; color: var(--muted); }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 0.82rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: var(--accent); }

.filterbar {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.search {
  position: relative;
  flex: 1 1 320px;
  min-width: 240px;
}
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); }
.search input {
  width: 100%;
  padding: 13px 40px 13px 40px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.search input::placeholder { color: #9aa9b6; }
.search input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(15, 44, 76, 0.08); }
.search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--muted);
  cursor: pointer;
  display: none;
}
.search.is-filled .search-clear { display: block; }

.select {
  padding: 12px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  font-size: 0.9rem;
  color: var(--ink);
  cursor: pointer;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  padding: 8px 15px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--body);
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip b { font-family: var(--mono); font-weight: 600; opacity: 0.66; margin-left: 6px; font-size: 0.8em; }

.results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  justify-content: space-between;
  padding: 22px 0 18px;
}

/* 选中系列后显示的系列说明（耳机四类为《系列产品说明》原文） */
.series-panel {
  display: grid;
  gap: 10px;
  margin: 22px 0 4px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fbfdff, var(--bg-soft));
}
.series-panel h2 { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); }
.series-panel p { font-size: 0.97rem; color: var(--body); max-width: 84ch; }
.results-count { font-size: 0.92rem; color: var(--muted); }
.results-count b { color: var(--ink); font-weight: 700; }
.hint { font-size: 0.86rem; color: var(--muted); }
.hint kbd {
  font-family: var(--mono);
  font-size: 0.8em;
  padding: 2px 6px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--bg-soft);
  color: var(--ink);
}

.empty {
  padding: 64px 24px;
  text-align: center;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.empty h3 { margin-bottom: 8px; }
.empty p { color: var(--muted); margin-bottom: 18px; }

.load-more { display: flex; justify-content: center; padding: 36px 0 0; }

/* ── 11. 详情弹层 ──────────────────────────────────────────────────────── */
.dlg {
  width: min(880px, 94vw);
  max-height: 88vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.dlg::backdrop { background: rgba(10, 26, 42, 0.55); backdrop-filter: blur(3px); }
.dlg-inner { display: flex; flex-direction: column; max-height: 88vh; }
.dlg-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid var(--line);
}
.dlg-head h2 { font-family: var(--mono); font-size: 1.35rem; }
.dlg-head .p-group { margin-bottom: 6px; }
.dlg-close {
  margin-left: auto;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.dlg-close:hover { color: var(--ink); border-color: var(--navy); }
.dlg-body { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 26px; padding: 24px 26px; overflow: auto; }
.dlg-media {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.dlg-media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }

/* ── 11b. 弹层左侧多视图画廊（同型号侧视/背面图，缩略图导航与首页同款） ── */
.gallery { display: grid; gap: 10px; align-content: start; }
.gallery-view {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.gallery-track { display: flex; transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1); }
.gallery-slide { flex: 0 0 100%; margin: 0; }
.gallery-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 12px;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.gallery-nav svg { width: 15px; height: 15px; }
.gallery-nav:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.gallery-nav--prev { left: 7px; }
.gallery-nav--next { right: 7px; }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 6px; }

/* 点大图放大：鼠标给出放大镜提示，并提供一个可聚焦的放大按钮 */
.gallery-view { cursor: zoom-in; }
.gallery-zoom {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 28px;
  height: 28px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}
.gallery-zoom svg { width: 15px; height: 15px; }
.gallery-view:hover .gallery-zoom,
.gallery-zoom:focus-visible { opacity: 1; }
.gallery-zoom:hover { background: var(--navy); color: #fff; }

/* ── 11c. 图片放大灯箱 ─────────────────────────────────────────────────── */
.lightbox {
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(8, 20, 32, 0.88); backdrop-filter: blur(4px); }
.lightbox-frame { position: relative; display: inline-block; line-height: 0; }
.lightbox-frame img {
  max-width: 90vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.75);
}
.lightbox-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: #fff; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  cursor: pointer;
}
.lightbox-nav svg { width: 20px; height: 20px; }
.lightbox-nav:hover { background: #fff; }
.lightbox-nav--prev { left: -18px; }
.lightbox-nav--next { right: -18px; }
.lightbox-count {
  position: absolute;
  left: 50%;
  bottom: -30px;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}
.dlg-fields { display: grid; gap: 16px; align-content: start; }
.dlg-field dt { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.dlg-field dd { margin: 5px 0 0; color: var(--ink); font-size: 0.97rem; }
.dlg-field dd.mono { font-family: var(--mono); }
.feature-list { display: grid; gap: 8px; }
.feature-list li { position: relative; padding-left: 20px; font-size: 0.94rem; color: var(--body); }
.feature-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}
.fits-box {
  max-height: 190px;
  overflow: auto;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  font-family: var(--mono);
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--ink);
  word-break: break-word;
}
.dlg-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 18px 26px 22px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.dlg-foot .muted { font-size: 0.86rem; }

/* ── 12. 深色带 / 能力区 ───────────────────────────────────────────────── */
.band {
  background: var(--navy);
  color: #cfe0ee;
  background-image: radial-gradient(700px 340px at 12% 0%, rgba(255, 255, 255, 0.08), transparent 60%);
}
.band .section-head h2 { color: #fff; }
.band .section-head p { color: #a8c1d6; }
.band .eyebrow { color: var(--accent); }

.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 22px;
}
.cap {
  padding: 24px 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}
.cap h3 { color: #fff; font-size: 1rem; margin-bottom: 8px; }
.cap p { font-size: 0.92rem; color: #a8c1d6; }
.cap-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 11px;
  background: rgba(255, 122, 24, 0.16);
  color: #ff9c4d;
}
.cap-icon svg { width: 21px; height: 21px; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.stat strong {
  display: block;
  min-height: 2.35em;
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem);
  font-weight: 750;
  color: #fff;
  letter-spacing: -0.02em;
}
.stat span { font-size: 0.88rem; color: #a8c1d6; }

/* 浅色背景上的能力卡（联系页流程用） */
.cap--light { border-color: var(--line); background: #fff; }
.cap--light h3 { color: var(--ink); }
.cap--light p { color: var(--body); }
.cap--light .cap-icon { background: var(--accent-soft); color: var(--accent); font-weight: 750; }

/* ── 13. 收尾联系面板 ──────────────────────────────────────────────────── */
.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(30px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fbfdff, var(--bg-soft));
}

/* ── 工厂实景：4 个照片位，未放图时显示待补占位 ────────────────────────── */
.factory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.factory-shot {
  margin: 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 0; /* 与产品线卡片一致：直角 */
  overflow: hidden;
}
.factory-frame { position: relative; aspect-ratio: 4 / 3; background: var(--bg-plate); }
.factory-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.factory-shot.is-empty .factory-frame img { display: none; }
.factory-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  color: var(--navy);
  text-align: center;
  padding: 16px;
  background:
    repeating-linear-gradient(135deg, rgba(15, 44, 76, 0.05) 0 10px, transparent 10px 20px),
    var(--bg-plate);
}
.factory-ph svg { width: 34px; height: 34px; opacity: 0.45; }
.factory-ph span {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.factory-shot figcaption {
  padding: 13px 15px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--ink);
}

/* ── 14. 表单 ──────────────────────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.86rem; font-weight: 650; color: var(--ink); }
.field label span { color: var(--accent); }
.field input,
.field select,
.field textarea {
  padding: 13px 15px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(15, 44, 76, 0.08); }
.field small { font-size: 0.8rem; color: var(--muted); }
.form-note {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #ffe0c7;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  font-size: 0.88rem;
  color: #8a4a17;
}
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; }
.composed {
  display: none;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}
.composed.is-open { display: block; }
.composed textarea {
  width: 100%;
  min-height: 180px;
  padding: 13px 15px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--ink);
  background: #fff;
}

/* ── 15. 联系信息卡 ────────────────────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(26px, 4vw, 52px); align-items: start; }
.info-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-1);
}
.info-list { display: grid; gap: 20px; }
.info-list dt { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.info-list dd { margin: 6px 0 0; color: var(--ink); font-size: 0.97rem; word-break: break-word; }
.info-list dd a:hover { color: var(--accent); }
.info-list .btn-quiet { margin-left: 6px; font-size: 0.84rem; }
.info-list .big { font-family: var(--mono); font-size: 1.05rem; font-weight: 650; }
.info-foot { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--muted); }

/* ── 16. 关于页 ────────────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(26px, 4vw, 54px); align-items: center; }
.split--media-first .split-media { order: -1; }
.split-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-plate);
}
.split-media img { width: 100%; }
.split-media--pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; background: #fff; }
.split-media--pair figure { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-plate); }
.split-media--pair img { aspect-ratio: 3 / 4; object-fit: cover; }

.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 0; }
.prose p { font-size: 1.02rem; }
.prose strong { color: var(--ink); }

.fact-list { display: grid; gap: 14px; margin-top: 26px; }
.fact {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
}
.fact svg { width: 20px; height: 20px; margin-top: 3px; color: var(--accent); }
.fact b { display: block; color: var(--ink); font-size: 0.97rem; font-weight: 650; }
.fact span { font-size: 0.9rem; color: var(--muted); }

.market-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 14px; margin-top: 30px; }
.market {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}
.market svg { width: 20px; height: 20px; color: var(--navy); flex: 0 0 auto; }

/* ── 17. 页脚 ──────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy-3); color: #9db4c9; padding: clamp(44px, 5vw, 68px) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer p { font-size: 0.92rem; }
.site-footer .brand-text strong { color: #fff; }
.site-footer .brand-text em { color: #7f9ab2; }
.site-footer .brand-mark { background: rgba(255, 255, 255, 0.1); }
.footer-links { display: grid; gap: 10px; font-size: 0.92rem; }
.footer-links a:hover { color: #fff; }
.footer-contact { display: grid; gap: 12px; font-size: 0.92rem; }
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-top: clamp(36px, 4vw, 56px);
  padding: 20px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.84rem;
  color: #7f9ab2;
}

/* ── 18. 动效 ──────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 0.7, 0.3, 1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .btn, .p-card, .cat-card { transition: none; }
}

/* ── 19. 响应式 ────────────────────────────────────────────────────────── */
@media (max-width: 1040px) {
  .hero-inner { grid-template-columns: 1fr; }
  .cta-panel { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split--media-first .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav {
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(var(--header-h) + 6px);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-2);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: var(--radius-sm); }
  .nav a.is-active::after { display: none; }
  .nav a.is-active { background: var(--bg-soft); }
  .nav-toggle { display: block; }
  .header-actions .btn-primary { display: none; }
}

@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

@media (max-width: 620px) {
  .cat-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .hero-inner { padding-inline: 18px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-arrow { width: 36px; height: 36px; }
  .hero-arrow--prev { left: 8px; }
  .hero-arrow--next { right: 8px; }
  .hero-thumb { width: 38px; height: 38px; border-radius: 7px; }
  .gallery-thumb { width: 40px; height: 40px; }
  .filterbar { position: static; }
  .form-grid { grid-template-columns: 1fr; }
  .dlg-body { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .results-bar { flex-direction: column; align-items: flex-start; }
}
