/* ============================================================
   Luxey Lighting — Shared Stylesheet
   Theme: clean light background + energy green accent (#31A050)
   Inspired by rclite.com layout rhythm, szluxey.com color identity
   ============================================================ */

/* ---------- Self-hosted webfonts (latin subset, variable) ---------- */
@font-face {
  font-family: "Sora";
  src: url("fonts/sora-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-soft: #f4f8f5;
  --bg-card: #ffffff;
  --bg-elevated: #edf4ee;

  --line: rgba(16, 32, 22, 0.09);
  --line-strong: rgba(16, 32, 22, 0.18);

  --text: #152019;
  --text-muted: #51626a;
  --text-dim: #7d8b92;

  --green: #31A050;
  --green-bright: #1e8a40;
  --green-dark: #1f7a3c;
  --green-tint: rgba(49, 160, 80, 0.10);
  --green-glow: rgba(49, 160, 80, 0.30);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  /* 产品页图片卡片：正文两栏与应用图集各一档，全站统一 */
  --card-h-apps: 330px;

  --shadow: 0 18px 45px -18px rgba(16, 48, 26, 0.22);
  --shadow-sm: 0 8px 24px -12px rgba(16, 48, 26, 0.16);

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --font-display: "Sora", "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --font-accent: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font: var(--font-body);

  --container: 1200px;
  --header-h: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  font-synthesis: none;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--green); color: #fff; }

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

/* ---------- Typography helpers ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.15rem, 4.6vw, 3.5rem); letter-spacing: -0.032em; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.45rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.018em; }
h4 { letter-spacing: -0.012em; }

/* 卡片标题 h3→h2、TCO 列标题 h4→h3 升级后保持原视觉（GEO 标题层级，勿删） */
.product-item h2 { font-size: 1.3rem; letter-spacing: -0.018em; }
.tco-wrap > h2 { font-size: 1.3rem; letter-spacing: -0.018em; }
.tco-col h3 { font-size: 1rem; letter-spacing: -0.012em; }
p { text-wrap: pretty; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-bright);
}
.eyebrow::before {
  content: "";
  width: 30px; height: 3px;
  background: var(--green);
  border-radius: 2px;
}

.section { padding: 88px 0; }
.section-tight { padding: 64px 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin: 14px 0 16px; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

.text-muted { color: var(--text-muted); }
.text-green { color: var(--green-bright); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.25s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 10px 30px -10px var(--green-glow);
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); }

.btn-outline {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.5);
}
.btn-outline:hover { border-color: var(--green); color: var(--green-bright); }

.btn-ghost { color: var(--text-muted); }
.btn-ghost:hover { color: var(--green-bright); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.logo-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--green-bright), var(--green-dark));
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 6px 16px -6px var(--green-glow);
}
.logo span b { color: var(--green-bright); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: rgba(16, 32, 22, 0.05); }
.nav-links a.active { color: var(--green-bright); }

.nav-cta { display: flex; align-items: center; gap: 14px; }

/* 语言切换 EN | ES */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-soft);
}
.lang-switch a {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  line-height: 1.2;
  transition: color 0.2s, background 0.2s;
}
.lang-switch a:hover { color: var(--green-dark); }
.lang-switch a.is-active {
  background: var(--green);
  color: #fff;
}
@media (max-width: 520px) {
  .lang-switch { gap: 0; padding: 2px; }
  .lang-switch a { padding: 4px 8px; font-size: 0.72rem; }
}

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  place-items: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* Dropdown */
.has-drop { position: relative; }
.has-drop > a { display: flex; align-items: center; gap: 5px; }
.has-drop > a .caret { transition: transform 0.2s ease; }
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 210px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}
.has-drop:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.has-drop:hover > a .caret { transform: rotate(180deg); }
.dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.92rem;
  white-space: nowrap;
}
.dropdown a:hover { background: var(--green-tint); color: var(--text); }
/* Solutions 下拉：两族共 10 个场景名 + 西语标签比英文长一截，允许换行，
   否则 nowrap 会把面板撑到 380px 以上、在小屏上顶出视口 */
.dropdown--wide { min-width: 268px; max-width: 320px; }
.dropdown--wide a { white-space: normal; line-height: 1.35; }
/* 分组标签（Solar Lighting / Outdoor Lighting / Indoor Lighting）：
   不是链接，靠颜色 + 字重 + 上方分隔线把 11 个链接切成三块。
   以前是 0.72rem + 灰 + opacity .75，读起来像被淡化的小字，分不出组。 */
.dropdown .drop-head {
  display: block;
  margin-top: 8px;
  padding: 11px 12px 4px;
  border-top: 1px solid var(--line-strong);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-bright);
}
/* 第一组贴着面板顶，不要多余的分隔线 */
.dropdown > .drop-head:first-child {
  margin-top: 0;
  padding-top: 5px;
  border-top: 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 110px 0 120px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(700px 420px at 82% -10%, rgba(49, 160, 80, 0.14), transparent 60%),
    radial-gradient(520px 360px at 10% 10%, rgba(49, 160, 80, 0.08), transparent 55%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(16,32,22,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,32,22,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}
.hero-inner { max-width: 820px; }
.hero h1 { margin: 20px 0 22px; }
.hero h1 .accent {
  background: linear-gradient(100deg, var(--green-dark), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead { font-size: 1.2rem; color: var(--text-muted); max-width: 640px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero-stat .num { font-size: 2.2rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.hero-stat .num em { font-style: normal; color: var(--green-bright); }
.hero-stat .label { color: var(--text-dim); font-size: 0.92rem; }

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(49, 160, 80, 0.4);
  box-shadow: var(--shadow);
}

/* Feature card */
.feature-card .icon {
  width: 52px; height: 52px;
  border-radius: 13px;
  background: var(--green-tint);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--green-bright);
}
.feature-card .icon svg { width: 26px; height: 26px; }
/* 场景页「三件事」卡片：编号徽标（01/02/03）代替图标，标题定高两行，
   否则一张卡标题折两行、另一张一行，正文起始线会参差 */
.icon--num {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.sol-card h3 { line-height: 1.35; min-height: 2.7em; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }
/* 带链接的方案卡片：整块可点（伪元素铺满卡片，文字仍是链接名） */
.feature-card { position: relative; }
.feature-card > a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  z-index: 1;
}
.feature-card:has(> a) { cursor: pointer; }
.feature-card:has(> a):hover,
.feature-card:has(> a):focus-within {
  border-color: rgba(49, 160, 80, 0.4);
  box-shadow: var(--shadow);
}

/* Product category card */
.cat-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--bg-card), var(--bg-soft));
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.cat-card:hover { transform: translateY(-6px); border-color: rgba(49,160,80,0.45); }
.cat-media {
  height: 236px;
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: 12px 16px;
}
/* category collages must stay complete: never crop the products */
.cat-media.has-img img {
  width: auto; height: auto;
  max-width: 100%; max-height: 100%;
  object-fit: contain;
}
.cat-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(244, 248, 245, 0.55));
}
.cat-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.cat-body h3 { font-size: 1.3rem; margin-bottom: 10px; }
.cat-body p { color: var(--text-muted); font-size: 0.95rem; flex: 1; margin-bottom: 20px; }
.cat-body .link {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--green-bright); font-weight: 600; font-size: 0.95rem;
}
.cat-body .link svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.cat-card:hover .link svg { transform: translateX(4px); }

/* gradient media placeholders (SVG-based, no external images) */
.media-solar   { background: radial-gradient(circle at 30% 25%, #ffd166 0 6%, transparent 6.5%), linear-gradient(150deg, #e5f4e9, #ffffff 70%); }
.media-outdoor { background: radial-gradient(circle at 68% 30%, rgba(49,160,80,0.35), transparent 55%), linear-gradient(150deg, #e8f1f6, #ffffff 75%); }
.media-indoor  { background: radial-gradient(circle at 35% 35%, rgba(63,191,99,0.28), transparent 55%), linear-gradient(150deg, #efeaf6, #ffffff 75%); }

/* ---------- Testimonials ---------- */
.testi-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.testi-card:hover { transform: translateY(-4px); border-color: rgba(49,160,80,0.4); }
.testi-card .stars { color: #ffcd35; letter-spacing: 2px; font-size: 1rem; margin-bottom: 16px; }
.testi-card blockquote { font-size: 0.98rem; color: var(--text); margin-bottom: 22px; flex: 1; }
.testi-card .who { display: flex; align-items: center; gap: 12px; }
.testi-card .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 1rem; color: #ffffff;
  background: linear-gradient(135deg, var(--green-bright), #1f7a3c);
}
.testi-card .who .name { font-weight: 600; font-size: 0.95rem; }
.testi-card .who .role { color: var(--text-dim); font-size: 0.82rem; }

/* long-form case-study review spans the full row, set in two columns */
.testi-card--wide { grid-column: 1 / -1; }
.testi-card--wide blockquote {
  column-count: 2;
  column-gap: 44px;
  font-size: 0.95rem;
  line-height: 1.74;
}

@media (max-width: 860px) {
  .testi-card--wide blockquote { column-count: 1; }
}

/* ---------- Blog card ---------- */
.blog-card {
  display: flex; flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.blog-card:hover { transform: translateY(-5px); border-color: rgba(49,160,80,0.4); }
/* 缩略图统一规格：固定 3:2 画框 + 满幅裁切，任何原始比例都填满整格。
   原图比例从 0.56 到 2.57 不等，靠 max-width 撑会各自留白/裁切不一致。 */
.blog-card .thumb {
  aspect-ratio: 3 / 2;
  background: #fff;
  overflow: hidden;
}
.blog-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* 白底信息图 / 文档截图 / 拼图：满幅裁切会把图表和文字切一半（真实故障：ATEX 示意图只剩局部），
   故完整显示，四周留浅底。格子尺寸仍与照片完全一致。 */
.blog-card .thumb img.thumb-doc {
  object-fit: contain;
  padding: 10px;
}
.blog-card .body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.blog-card .tag { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-bright); margin-bottom: 10px; }
/* 博客卡片标题：列表页走 h2、首页走 h3（首页有 h2 分区包裹），规格必须一致 */
.blog-card h2, .blog-card h3 { font-size: 1.2rem; letter-spacing: -0.015em; margin-bottom: 10px; line-height: 1.38; }
.blog-card p { color: var(--text-muted); font-size: 0.93rem; flex: 1; margin-bottom: 18px; }
.blog-card .link { color: var(--green-bright); font-weight: 600; font-size: 0.9rem; }
/* 前端分页：隐藏必须用 !important，.blog-card 自己是 display:flex，
   作者样式优先级高于浏览器对 [hidden] 的默认 display:none */
.blog-card.is-paged-out { display: none !important; }

/* 博客列表分页条 */
.blog-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}
.blog-pager .pager-nums { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-pager button {
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.blog-pager button:hover:not(:disabled) {
  border-color: var(--green-bright);
  color: var(--green-bright);
}
.blog-pager button.is-active {
  background: var(--green-bright);
  border-color: var(--green-bright);
  color: #fff;
}
.blog-pager button:disabled { opacity: 0.4; cursor: default; }
.blog-pager .pager-arrow svg { width: 18px; height: 18px; display: block; margin: 0 auto; }
.blog-pager .pager-info {
  width: 100%;
  text-align: center;
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}

.case-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.case-card:hover { transform: translateY(-5px); border-color: rgba(49,160,80,0.4); box-shadow: var(--shadow-sm); }
.case-body h2 .case-link { color: var(--text); text-decoration: none; }
.case-body h2 .case-link:hover { color: var(--green-bright); }
.case-card .case-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.case-media {
  aspect-ratio: 16 / 10;
  background: #fff;
  overflow: hidden;
}
.case-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-media-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.case-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.case-body .tag { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-bright); margin-bottom: 10px; }
.case-body h2 { font-size: 1.2rem; line-height: 1.35; margin-bottom: 10px; }
.case-body > p { color: var(--text-muted); font-size: 0.93rem; margin-bottom: 16px; flex: 1; }
.case-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.case-points li {
  position: relative; padding-left: 22px;
  font-size: 0.88rem; color: var(--text);
}
.case-points li::before {
  content: ""; position: absolute; left: 0; top: 0.38em;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(49,160,80,0.14);
}
.case-points li::after {
  content: ""; position: absolute; left: 4px; top: calc(0.38em + 2px);
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--green-bright);
}

/* case detail gallery — 图片完整显示，按自身比例瀑布流排版 */
.case-gallery {
  column-count: 2;
  column-gap: 16px;
  margin: 24px 0 8px;
}
.case-gallery-item {
  margin: 0 0 16px;
  break-inside: avoid;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.case-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 640px) {
  .case-gallery { column-count: 1; }
}

.cases-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.cases-strip__item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.cases-strip__item:hover { transform: translateY(-4px); border-color: rgba(49,160,80,0.45); }
.cases-strip__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cases-strip__label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 24px 12px 10px;
  font-size: 0.8rem; font-weight: 600; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0));
}
.cases-strip__cta { text-align: center; margin-top: 26px; }

.thumb-solar { background: linear-gradient(150deg, #e5f4e9, #ffffff); }
.thumb-rgb    { background: linear-gradient(150deg, #f6e9f1, #ffffff); }
.thumb-flicker{ background: linear-gradient(150deg, #e9eff6, #ffffff); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #e3f4e8, #ffffff 70%);
  border: 1px solid rgba(49,160,80,0.28);
  padding: 64px 56px;
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(500px 260px at 50% 0%, rgba(49,160,80,0.12), transparent 70%);
}
.cta-band h2 { margin-bottom: 16px; position: relative; }
.cta-band p { color: var(--text-muted); max-width: 560px; margin: 0 auto 32px; position: relative; }
.cta-band .btn { position: relative; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 72px 0 0;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}
.footer-brand p { color: var(--text-muted); font-size: 0.92rem; margin: 16px 0 22px; max-width: 300px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a,
.contact-social a {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  display: grid; place-items: center;
  color: var(--text-muted);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.footer-social a:hover,
.contact-social a:hover {
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -8px var(--hover-shadow, rgba(0,0,0,0.35));
}
.footer-social svg, .contact-social svg { width: 18px; height: 18px; }

/* per-brand hover colors */
.s-li:hover  { background: #0A66C2 !important; --hover-shadow: rgba(10,102,194,0.45); }
.s-fb:hover  { background: #1877F2 !important; --hover-shadow: rgba(24,119,242,0.45); }
.s-ig:hover  { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important; --hover-shadow: rgba(214,36,159,0.4); }
.s-wa:hover  { background: #25D366 !important; --hover-shadow: rgba(37,211,102,0.45); }
.s-yt:hover  { background: #FF0000 !important; --hover-shadow: rgba(255,0,0,0.45); }
.footer-col .footer-h { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); margin: 0 0 18px; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul a { color: var(--text-muted); font-size: 0.92rem; transition: color 0.2s ease; }
.footer-col ul a:hover { color: var(--green-bright); }
.footer-bottom {
  border-top: 1px solid var(--line);
  /* 右侧留出 WhatsApp 浮标的宽度（58px 按钮 + 20px 边距 + 余量），
     否则 11 项证书行末端会被按钮压住 */
  padding: 24px 88px 24px 0;
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between;
  color: var(--text-dim); font-size: 0.85rem;
}
.footer-bottom .legal { display: flex; flex-direction: column; gap: 6px; }
.footer-bottom .legal-links a { color: var(--text-dim); text-decoration: none; transition: color 0.2s ease; }
.footer-bottom .legal-links a:hover { color: var(--green-bright); }
.footer-bottom .certs { color: var(--text-dim); font-size: 0.82rem; }

/* 窄屏：浮标 54px + 14px 边距，且提示气泡还会再压一段，证书行提前换行避开 */
@media (max-width: 680px) {
  .nav-cta .btn { display: none; }
  .footer-bottom { padding-right: 0; }
  .footer-bottom .certs { max-width: calc(100% - 76px); }
}

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  position: relative;
  padding: 84px 0 72px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(600px 300px at 70% -20%, rgba(49,160,80,0.10), transparent 60%);
}
.page-hero h1 { margin: 16px 0 16px; }
/* 无导语的 hero（如 /solutions）收紧下留白，否则 h1 到分割线会空出 88px */
.page-hero:not(:has(p)) { padding-bottom: 52px; }
.page-hero:not(:has(p)) h1 { margin-bottom: 0; }
.page-hero p { color: var(--text-muted); max-width: 640px; font-size: 1.1rem; }
.breadcrumb { font-size: 0.85rem; color: var(--text-dim); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--green-bright); }
.breadcrumb .sep { margin: 0 8px; }

/* 「最后更新」行：给 AI 与人类同一份新鲜度信号，字号必须明显小于正文，
   否则会和 hero 导语抢层级（.page-hero p 默认 1.1rem，这里要压回去） */
.pd-hero-copy p.pd-updated,
.page-hero p.pd-updated {
  margin: 10px 0 0;
  max-width: none;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-dim);
  letter-spacing: 0.01em;
}
.pd-updated time { font-variant-numeric: tabular-nums; }

/* ---------- Product grid page ---------- */
.product-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
  display: flex; flex-direction: column;
}
.product-item:hover { transform: translateY(-5px); border-color: rgba(49,160,80,0.4); }
.product-item .thumb {
  height: 300px;
  padding: 12px 14px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
}
/* product photos must never be cropped: scale to fit inside the frame */
.product-item .thumb img {
  width: auto; height: auto;
  max-width: 100%; max-height: 100%;
  object-fit: contain;
}
@media (max-width: 640px) {
  .product-item .thumb { height: 250px; }
}
.product-item .body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.product-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.product-item p { color: var(--text-muted); font-size: 0.9rem; flex: 1; margin-bottom: 16px; }
.product-item .meta { font-size: 0.8rem; color: var(--text-dim); display: flex; gap: 8px; flex-wrap: wrap; }
.product-item .meta span { background: var(--bg-elevated); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); }

/* ---------- About / Quality ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .visual {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  min-height: 360px;
  display: grid; place-items: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  background: radial-gradient(circle at 50% 40%, rgba(49,160,80,0.10), transparent 60%), var(--bg-soft);
}
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0;
}
.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
}
.stat-box .num { font-size: 2rem; font-weight: 800; color: var(--green-bright); white-space: nowrap; }
.stat-box .label { color: var(--text-muted); font-size: 0.88rem; margin-top: 6px; }

.cert-list { display: flex; flex-wrap: wrap; gap: 12px; }
.cert-list span {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
/* 11 项在手机上会碎成 4 行、最后一行只剩一个 NOM，收一点内边距压回 3 行 */
@media (max-width: 480px) {
  .cert-list { gap: 8px; }
  .cert-list span { padding: 7px 11px; font-size: 0.8rem; }
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 720px) {
  .cert-grid { grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr)); }
}
.cert-grid figure {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cert-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  display: block;
  background: #fff;
}
.cert-grid figcaption {
  padding: 12px 14px 14px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cert-grid figcaption small { font-weight: 400; font-size: 0.76rem; color: var(--text-muted); line-height: 1.5; }
.cert-note { margin-top: 24px; font-size: 0.88rem; color: var(--text-muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.info-list { display: flex; flex-direction: column; gap: 22px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-item .icon {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: var(--green-tint); display: grid; place-items: center; color: var(--green-bright);
}
.info-item .icon svg { width: 22px; height: 22px; }
.info-item .info-h { font-size: 1rem; margin: 0 0 4px; }
.info-item p { color: var(--text-muted); font-size: 0.95rem; }

.form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  padding: 13px 15px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--green);
}
.field textarea { resize: vertical; min-height: 130px; }

/* ---------- FAQ ---------- */
.faq-group-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  margin: 34px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.faq-group-title:first-of-type { margin-top: 0; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-card);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { font-size: 1.5rem; color: var(--green-bright); transition: transform 0.25s ease; }
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item .answer { padding: 0 24px 22px; color: var(--text-muted); font-size: 0.95rem; }
/* 答案里的行内链接（如指向 TCO 计算器）：全局 a 是继承色 + 无下划线，这里要显式区分 */
.faq-item .answer a { color: var(--green-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.faq-item .answer a:hover { color: var(--green-bright); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .cases-strip { grid-template-columns: repeat(3, 1fr); }
}
/* 8 个一级菜单 + 语言切换 + CTA：收到 1120 才折叠成汉堡。
   一度提到 1200，结果 1280 笔记本把窗口拉窄一点整排菜单就消失，
   用户以为导航坏了 —— 宁可多收两档字号，也别提前藏菜单。
   实测（含 15px 滚动条）：1121 起横排刚好放得下，1101 还差 3px */
@media (max-width: 1120px) {
  /* 只收菜单，CTA 留在顶栏（平板宽度够放，别把主转化按钮藏起来） */
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px;
    gap: 4px;
    /* 3 个下拉全部展开时菜单总高 1281px，iPhone 视口只有 664px。
       菜单是 sticky header 的绝对定位子元素，页面滚动带不动它，
       超出部分永久点不到（Contact 落在 y=1340）。给视口高度上限 + 内部滚动。
       dvh 跟随移动端地址栏伸缩，老浏览器回落到上面的 vh。 */
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .nav-links.open a { padding: 12px 10px; }
  .has-drop .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; padding-left: 12px; min-width: 0;
  }
  /* 折叠态下 dropdown 是文档流里的一块，桌面那套 268–320px 的浮层宽度
     在这里只会在右侧留一大片空白（768 平板实测面板只占 41% 宽）。撑满。 */
  .has-drop .dropdown--wide { max-width: none; }
  /* JS 接管后（main.js 加 is-collapsible）：下拉默认收起，点父项才展开，
     首屏就能看全 8 个一级项，不用先滚 600px 才知道下面还有 Contact。
     没有 JS 时保持上面「全部展开 + 内部可滚动」的降级形态，不会点不到。 */
  .nav-links.is-collapsible .has-drop .dropdown { display: none; }
  .nav-links.is-collapsible .has-drop.is-open .dropdown { display: block; }
  .nav-links.is-collapsible .has-drop.is-open > a .caret { transform: rotate(180deg); }
}
/* 桌面中等宽度（861–1440）：压缩导航留白，防止西语等长文案顶溢出 */
@media (max-width: 1440px) {
  .nav { gap: 14px; }
  .nav-links a { padding: 8px 10px; font-size: 0.9rem; }
  .nav-cta { gap: 10px; }
  .nav-cta .btn { padding: 11px 20px; font-size: 0.9rem; }
}
/* 8 个一级菜单（含新增 Solutions）在 1280–1400 之间仍会顶出视口：
   西语版实测 min-content 1319px。再收一档，把 1280 这一档救回来，
   而不是把汉堡断点提到 1320 —— 1280 的笔记本不该看不到菜单 */
@media (max-width: 1400px) {
  .nav { gap: 10px; }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 8px 8px; font-size: 0.86rem; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn { padding: 10px 16px; font-size: 0.86rem; }
}
/* 1121–1200 这段仍偏挤：再收一档内边距，把这一档的字号也压下来 */
@media (max-width: 1200px) {
  .nav { gap: 10px; }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 8px 7px; font-size: 0.84rem; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn { padding: 10px 14px; font-size: 0.84rem; }
}
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .cases-strip { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 72px 0 80px; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 48px 28px; }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr; gap: 14px; }
  .stat-box { padding: 22px 10px; }
  .stat-box .num { font-size: 1.5rem; }
  .hero-stats { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

/* reveal animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Detail pages (product & blog) ---------- */
.detail-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
}
.detail-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.detail-split .info h1 { margin: 16px 0 18px; }
.detail-split .info p { color: var(--text-muted); margin-bottom: 14px; }
.detail-split .info .actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

/* spec table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.spec-table th { color: var(--text); font-weight: 600; width: 220px; background: var(--bg-elevated); }
.spec-table td { color: var(--text-muted); }

/* article */
.article {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.05rem;
}
.article .article-hero {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  margin: 32px 0 36px;
}
/* 竖图 hero：完整显示 + 高度上限，留白用浅灰背景过渡，避免占满整屏 */
.article .article-hero--tall {
  max-height: 520px;
  width: 100%;
  object-fit: contain;
  background: var(--bg-soft, #f5f5f5);
}
/* 宽幅 hero：放在 .article 之外、.container 之内，撑满内容区而不缩在 780 正文栏里。
   高宽比控制在 16:9 ~ 2:1 之间，cover 裁切比 contain 留黑边好看。 */
.article-hero--bleed {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  margin: 0 0 36px;
}
.article p { color: var(--text-muted); margin-bottom: 20px; }
.article h2 { font-size: 1.5rem; margin: 40px 0 16px; color: var(--text); }
.article .sources { margin-top: 32px; padding-top: 14px; border-top: 1px solid var(--line); }
.article .sources h2 { font-size: 1.15rem; margin: 0 0 12px; }
.article .sources ul { font-size: 0.95rem; }
.article .sources li { margin-bottom: 8px; }
.article h3 { font-size: 1.15rem; margin: 28px 0 12px; color: var(--text); }
.article ul { margin: 0 0 20px; padding-left: 4px; }

/* 正文内链：默认继承正文色 + 无下划线等于看不见，这里显式给绿字下划线 */
.article :is(p, li, td) > a {
  color: var(--green-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(49, 160, 80, 0.45);
}
.article :is(p, li, td) > a:hover {
  text-decoration-color: var(--green);
}
.article ul li {
  position: relative;
  padding-left: 24px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.article ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--green);
}

/* 正文档内联代码（`lm/W` 这种） */
.article code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: #f2f5f3;
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--text);
}
/* 正文代码块：采购公式、RFQ 模板——长行横滑，不撑破版心 */
.article .article-code {
  margin: 24px 0 28px;
  padding: 18px 20px;
  background: #f6f8f7;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.75;
  color: var(--text);
}
.article .article-code code {
  display: block;
  background: none;
  padding: 0;
  font-size: 1em;
  white-space: pre;
}
/* 有序列表：七步采购、五个误区——绿色圆号，不用方块点 */
.article ol {
  margin: 0 0 20px;
  padding-left: 0;
  list-style: none;
  counter-reset: artol;
}
.article ol li {
  position: relative;
  padding-left: 32px;
  color: var(--text-muted);
  margin-bottom: 10px;
  counter-increment: artol;
}
.article ol li::before {
  content: counter(artol);
  position: absolute;
  left: 0; top: 0.16em;
  width: 21px; height: 21px;
  border-radius: 50%;
  background: rgba(49, 160, 80, 0.13);
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 21px;
  text-align: center;
}
.article .meta-line {
  display: flex; gap: 16px; align-items: center;
  color: var(--text-dim); font-size: 0.88rem;
  margin-top: 8px;
}
.article blockquote {
  border-left: 3px solid var(--green);
  padding: 6px 0 6px 20px;
  margin: 24px 0;
  color: var(--text);
  font-style: italic;
}

/* 正文表格（技术类文章：型号对照、自查清单） */
.article .table-wrap {
  overflow-x: auto;
  margin: 28px 0 32px;
}
/* 窄屏：表格字号与内边距收紧，让三列对照表尽量整幅落在屏内，实在放不下才横向滑 */
@media (max-width: 640px) {
  .article .table-wrap .article-table { font-size: 0.85rem; }
  .article .table-wrap .article-table th,
  .article .table-wrap .article-table td { padding: 8px 8px; }
}
.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.article-table th,
.article-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
  vertical-align: top;
}
.article-table th {
  color: var(--text);
  background: #f4f8f5;
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
}
.article-table tr:last-child td { border-bottom: 0; }
.article .article-fig figcaption {
  margin-top: 10px;
  padding-left: 10px;
  border-left: 2px solid rgba(49, 160, 80, 0.35);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-dim);
  text-align: left;
}
.article .article-signature {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* media with img */
.cat-media img, .thumb img, .visual img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.cat-media.has-img::after { background: linear-gradient(180deg, transparent 55%, rgba(244,248,245,0.55)); }

/* hero 背景图：用 <img> 而不是 background-image。
   背景图无法带 fetchpriority，浏览器要等 CSS 应用后才发起请求，LCP 会晚一截；
   <img> 能被预加载扫描器在解析 HTML 时立即发现。
   高度不能写 height:100%：img 是替换元素，按 CSS 2.1 §10.5，包含块高度不是显式指定时
   百分比高度会退化成 auto，于是按 1600×441 的固有比例算出 397px，hero 下半截露白。
   改用 flex 的 align-items:stretch 拉伸，img 不写 height。 */
.hero-img-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  display: flex;
}
.hero-img-bg img {
  display: block;
  width: 100%;
  object-fit: cover;
  object-position: center;
}
/* ≤640 手机端：这张图是 1600×441 的超宽横幅，cover 到 390×1100 要放大 2.5 倍、
   只露原图中间 10% 的宽度（正好是深色夜空），再叠加 .hero-veil 0.97 的白色遮罩，
   视觉上几乎完全不可见。隐藏后 LCP 交给文字段落，更早绘制。
   注意分工：省流量靠 HTML 里 <picture> 的 media source（display:none 拦不住下载，
   预加载扫描器只看 HTML）；这里只负责让它不参与 LCP 计算。 */
@media (max-width: 640px) {
  .hero-img-bg { display: none; }
}
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(255,255,255,0.97) 25%, rgba(255,255,255,0.82) 60%, rgba(255,255,255,0.45));
}
.hero .hero-bg { z-index: -3; }

@media (max-width: 860px) {
  .detail-split { grid-template-columns: 1fr; gap: 32px; }
  .spec-table th { width: 150px; }
}

/* real blog article figures */
.article-fig {
  margin: 28px 0;
  text-align: center;
}
.article-fig img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* 数据图表（SVG）在手机上按整幅挤会小到看不清，改成横向滚动，跟正文表格一个做法 */
@media (max-width: 600px) {
  .article-fig:has(img[src$=".svg"]) { overflow-x: auto; text-align: left; }
  .article-fig:has(img[src$=".svg"]) img { min-width: 600px; }
  .article .article-code { padding: 14px 14px; font-size: 0.78rem; }
}

/* brand logo image */
.logo-img {
  height: 46px;
  width: auto;
  display: block;
}
@media (max-width: 860px) {
  .logo-img { height: 38px; }
}
/* footer mascot logo: standalone image, not a link */
.footer-brand .logo-img { height: 88px; margin-bottom: 4px; }
.footer-brand .logo--static { cursor: default; }
@media (max-width: 860px) {
  .footer-brand .logo-img { height: 68px; }
}

/* contact page: clickable info + social row */
.info-item p a { color: var(--green-bright); }
.info-item p a:hover { text-decoration: underline; }
.contact-social { display: flex; gap: 10px; margin-top: 8px; }

/* ---------- Contact form: status + honeypot ---------- */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.form-status { display: none; }
.form-status.show {
  display: block;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.93rem;
  line-height: 1.55;
  margin-bottom: 18px;
}
.form-status.success {
  background: rgba(49, 160, 80, 0.09);
  border: 1px solid rgba(49, 160, 80, 0.35);
  color: #1c6b37;
}
.form-status.error {
  background: rgba(214, 69, 69, 0.07);
  border: 1px solid rgba(214, 69, 69, 0.28);
  color: #a63333;
}
.form-status a { color: inherit; text-decoration: underline; font-weight: 600; }
.form-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.form-note a { color: var(--green-bright); }
.btn[disabled] { opacity: 0.65; cursor: wait; }

/* ============================================================
   Product detail pages — layout mirroring the original site
   (hero split -> alternating variant blocks -> features -> apps)
   ============================================================ */

/* hero */
.pd-hero { background: var(--bg-soft); padding: 68px 0 72px; border-bottom: 1px solid var(--line); }
.pd-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.pd-hero-copy h1 { font-size: 2.25rem; line-height: 1.22; margin: 16px 0 20px; }
.pd-hero-copy p { color: var(--text-muted); line-height: 1.85; margin-bottom: 14px; }
.pd-hero-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.pd-hero-media img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); display: block;
}

/* generic section */
.pd-section { padding: 76px 0; }
.pd-section--alt { background: var(--bg-soft); }
.pd-title {
  text-align: center; font-size: 1.85rem; line-height: 1.32;
  max-width: 880px; margin: 0 auto 44px;
}

/* image / text split */
.pd-split { display: grid; grid-template-columns: 1fr 1.06fr; gap: 56px; align-items: center; }
.pd-split--flip .pd-media { order: 1; }
.pd-split--flip .pd-copy { order: 2; }
/* 图少文少的分栏：多图并排两列压低高度，单图限高，避免大片留白。
   竖图/超宽图（异常宽高比）自动通栏，不被压变形 */
.pd-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-content: center; }
.pd-media figure { margin: 0; }
.pd-media img {
  /* 方形白卡：1:1 产品图正好铺满，4:3 场景图上下留白，两种卡同高 */
  width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: contain;
  display: block; border-radius: var(--radius);
  border: 1px solid var(--line); background: #fff;
  cursor: zoom-in;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.pd-media figure:hover img { transform: scale(1.025); box-shadow: var(--shadow-sm); }
/* 竖图（portrait）或超宽图（panorama）→ 独占一行，保持比例 */
.pd-media figure.portrait,
.pd-media figure.panorama { grid-column: 1 / -1; }
.pd-media figure.portrait img,
.pd-media figure:only-child img {
  aspect-ratio: auto; width: auto; max-width: 100%; max-height: 420px; margin: 0 auto;
}
.pd-media figure.panorama img { aspect-ratio: auto; }
.pd-media figure:only-child { grid-column: 1 / -1; }
/* 单幅场景实拍（产线、工地）：按原比例铺满容器，不套方形卡 */
.pd-media figure.fill img { aspect-ratio: auto; height: auto; }

/* ---------- 车间实拍细节图（split-detail） ----------
   源图横竖混排（4:3 横图、3:4 竖图都有），main.js 会把比例 <0.85 的竖图标成
   portrait 并让它通栏，2×2 网格会散成一列。这里全部改回单格，并用方形白卡
   + object-fit:contain 兜住比例差异，横图竖图都是同样大小的格子。 */
.pd-media--detail,
.pd-media--parts { max-width: 1000px; margin: 0 auto; align-content: start; }
.pd-media--parts { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.pd-media--detail figure,
.pd-media--detail figure.portrait,
.pd-media--detail figure.panorama,
.pd-media--detail figure:only-child,
.pd-media--parts figure,
.pd-media--parts figure.portrait,
.pd-media--parts figure.panorama,
.pd-media--parts figure:only-child { grid-column: auto; }

.pd-media--detail img,
.pd-media--detail figure.portrait img,
.pd-media--detail figure.panorama img,
.pd-media--detail figure:only-child img,
.pd-media--parts img {
  width: 100%; height: auto; aspect-ratio: 1 / 1;
  max-height: none; object-fit: contain;
  padding: 12px; box-sizing: border-box;
  background: #fff;
}
/* 实拍图放大只会更糊，不做 hover 缩放；点击 lightbox 仍可用 */
.pd-media--detail figure:hover img,
.pd-media--parts figure:hover img { transform: none; box-shadow: none; }

.pd-media--detail figcaption,
.pd-media--parts figcaption {
  font-size: 0.8rem; line-height: 1.55; color: var(--text-dim);
  margin-top: 8px; text-align: center;
}
.pd-media--parts figcaption { font-size: 0.76rem; }
/* 细节图说明改成「图上标注」体例：短标签 + 一行说明。
   竞品把这段文字烧进 JPG，爬虫读不到、翻译要重做图；这里用真文本，视觉一样但可索引。 */
.pd-media figcaption,
.pd-figure-wide figcaption { text-align: left; margin-top: 14px; }
/* 小格子（细节图/五部件图）说明仍然贴紧，14px 会把这些 4 列小图拉开 */
.pd-media--detail figcaption,
.pd-media--parts figcaption { margin-top: 8px; }
/* 宽图下的说明收窄到可读行宽，否则 1000px 一行小字太难读 */
.pd-figure-wide figcaption { max-width: 76ch; }
figcaption .cap-label {
  display: block; font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.055em; text-transform: uppercase;
  color: var(--text); line-height: 1.35; margin-bottom: 3px;
}
figcaption .cap-note {
  display: block; font-size: 0.78rem; font-weight: 400;
  color: var(--text-dim); line-height: 1.55;
}
.pd-media--parts figcaption .cap-label { font-size: 0.76rem; letter-spacing: 0.04em; }
.pd-media--parts figcaption .cap-note { font-size: 0.73rem; }
@media (max-width: 700px) {
  figcaption .cap-label { font-size: 0.8rem; }
  figcaption .cap-note { font-size: 0.76rem; }
  .pd-media--parts figcaption .cap-note { font-size: 0.74rem; }
}
@media (max-width: 820px) {
  /* 双类是为了压过文件末尾 @media(max-width:920px) 里的 .pd-media{1fr}：
     小配件图在手机上排 2 列够看，排 1 列会让这一节拖得太长 */
  .pd-media.pd-media--parts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.pd-copy p { color: var(--text-muted); line-height: 1.8; margin-bottom: 14px; }
.pd-copy .pd-lead { margin-bottom: 20px; }
.pd-copy--center { max-width: 780px; margin: 0 auto; }
.pd-copy ul { margin: 18px 0 0; }
.pd-copy ul + p { margin-top: 20px; }
.pd-copy a { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; }
.pd-copy a:hover { color: var(--green-bright); }

/* 分栏区块内的次级小标题（如规格书里的功能段落标题） */
.pd-subtitle { text-align: center; font-size: 1.25rem; line-height: 1.4; margin: 52px 0 20px; }
.pd-dist { margin: 0 auto; max-width: 760px; }
.pd-dist img { width: 100%; display: block; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: zoom-in; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.pd-dist:hover img { transform: scale(1.01); box-shadow: var(--shadow-sm); }
/* 结构标注图（带引线说明）：比 .pd-dist 宽，保证图上的小字看得清 */
.pd-figure-wide { margin: 0 auto; max-width: 1000px; }
.pd-figure-wide img { width: 100%; display: block; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: zoom-in; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.pd-figure-wide:hover img { transform: scale(1.005); box-shadow: var(--shadow-sm); }
.pd-subtitle:first-of-type { margin-top: 0; }
/* 小标题紧跟规格表时要留出呼吸，否则会被 :first-of-type 的 0 顶到表格边上 */
.pd-spec-table-wrap + .pd-subtitle { margin-top: 52px; }
/* 表格下面的一句补充/延伸阅读：居中、灰字，别贴着表格，也别顶到小标题 */
.pd-table-note { max-width: 1000px; margin: 16px auto 0; font-size: 0.95rem; color: var(--text-muted); text-align: center; }
.pd-table-note + .pd-subtitle { margin-top: 52px; }

/* AIOH 系列 6 档规格表 */
.pd-spec-table-wrap { margin: 8px auto 0; max-width: 1000px; overflow-x: auto; }
.pd-spec-table {
  width: 100%; border-collapse: collapse; font-size: 0.92rem;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.pd-spec-table th, .pd-spec-table td {
  padding: 13px 14px; text-align: center; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.pd-spec-table thead th {
  background: var(--green); color: #fff; font-weight: 600;
  font-size: 0.86rem; letter-spacing: 0.02em;
}
.pd-spec-table tbody tr:nth-child(even) { background: var(--bg-soft); }
.pd-spec-table tbody tr:last-child td { border-bottom: 0; }
.pd-spec-table tbody td:first-child { font-weight: 600; color: var(--text); }
/* 五列以上的数值表（LUX-SPT 4 档 + 参数列）：单元格允许折行，
   否则 nowrap 会把 1000px 的容器撑出横向滚动条 */
.pd-spec-table--wrap th, .pd-spec-table--wrap td { white-space: normal; }
/* 规格表下的一句口径说明：比正文小一档，跟着表格走得齐 */
.pd-note {
  max-width: 1000px; margin: 14px auto 0;
  font-size: 0.88rem; line-height: 1.65; color: var(--text-muted);
}
/* 文字型对照表（防爆页：Ex 标记解码、AEL vs AELL）：允许折行并左对齐。
   默认 nowrap 会让一个三十来字的单元格把这行撑出横向滚动条。 */
.pd-spec-table--text th, .pd-spec-table--text td {
  white-space: normal; text-align: left; vertical-align: top;
}
.pd-spec-table--text tbody td:first-child { white-space: nowrap; }
@media (max-width: 700px) {
  /* 手机上首列若坚持 nowrap，「Protección contra sobretensiones」会把整表撑到 557px，
     另外两列被压到 120px 宽、一格换六行，行高爆炸。这里放开折行并收紧内边距。 */
  .pd-spec-table--text th, .pd-spec-table--text td { padding: 9px 9px; font-size: 0.82rem; }
  .pd-spec-table--text tbody td:first-child { white-space: normal; }
}
/* 全系通用参数行（Cycle life / Controller），值跨列合并 */
.pd-spec-table tbody tr.spec-shared { background: var(--green-tint); }
.pd-spec-table tbody tr.spec-shared td { border-bottom: 1px solid var(--line); }
.pd-spec-table tbody tr.spec-shared td:first-child { text-align: left; padding-left: 18px; }
.pd-spec-table tbody tr.spec-shared td + td { white-space: normal; color: var(--text); font-weight: 500; }
.pd-spec-table tbody tr.spec-shared:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  /* 手机上表格本身横向滚动，通用行的值左对齐，保证不用滑动就能读到开头 */
  .pd-spec-table tbody tr.spec-shared td + td { text-align: left; padding-left: 18px; }
}

/* ◆ bullet list (as in the original) */
.pd-bullets { margin: 0 0 22px; list-style: none; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.pd-bullets li { padding-left: 26px; position: relative; color: var(--text-muted); line-height: 1.7; }
.pd-bullets li::before {
  content: "\25C6"; position: absolute; left: 0; top: 3px;
  color: var(--green); font-size: 0.72rem;
}
.pd-bullets li strong { color: var(--text); }
.pd-bullets--center { max-width: 780px; margin-left: auto; margin-right: auto; }

/* ✓ checklist */
.pd-check { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pd-check li { padding-left: 32px; position: relative; color: var(--text-muted); line-height: 1.65; }
.pd-check li::before {
  content: "\2713"; position: absolute; left: 0; top: 2px;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--green-tint); color: var(--green-bright);
  font-size: 0.72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* CTA under each block */
.pd-cta { text-align: center; margin-top: 48px; }
/* 西语 CTA 文案比英文长，窄屏允许折行，否则会撑出 54px 横向滚动 */
@media (max-width: 520px) {
  .pd-cta .btn { white-space: normal; max-width: 100%; line-height: 1.45; }
}

/* figure group (production line / aging test) */
.pd-figure-group { margin-top: 56px; }
.pd-figure-group h3 { text-align: center; font-size: 1.12rem; margin-bottom: 24px; }
.pd-figure-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.pd-figure-row img {
  width: 100%; display: block; border-radius: var(--radius);
  border: 1px solid var(--line);
}
/* 规格书图纸（安装方式、配光曲线）：原图竖长，限宽居中，否则一张图占满整屏 */
.pd-figure-row figure.pd-figure-narrow { max-width: 860px; margin: 0 auto; }
.pd-figure-row figure.pd-figure-tall { max-width: 620px; margin: 0 auto; }

/* AIOX 零部件细节图（Built in the Details） */
.pd-details-title {
  text-align: center; font-size: 1.25rem; line-height: 1.4;
  letter-spacing: 0.08em; text-transform: uppercase; margin: 60px 0 6px;
}
.pd-details-sub {
  text-align: center; color: var(--text-muted); font-size: 0.95rem;
  margin: 0 auto 34px; letter-spacing: 0.01em;
}
.pd-details-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.pd-detail {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin: 0;
}
.pd-detail figure {
  margin: 0; aspect-ratio: 4 / 3; background: #f7faf8;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line);
}
/* contain：一图一物的产品照，裁切会切掉堵头、边条这类细长件 */
.pd-detail img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 10px; }
.pd-detail > div { padding: 16px 18px 20px; }
.pd-detail h4 {
  margin: 0 0 8px; font-size: 0.8rem; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--text); font-weight: 600;
}
.pd-detail p { margin: 0; color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* AIOAS 电池包包装与防护细节 */
.pd-pack-head { text-align: center; margin: 48px 0 10px; }
.pd-pack-kicker {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--green-dark); font-weight: 600;
}
.pd-pack-h { font-size: 1.15rem; letter-spacing: 0.06em; text-transform: uppercase; margin: 6px 0 4px; }
.pd-pack-note { text-align: center; color: var(--text-muted); font-size: 0.92rem; margin: 0 0 22px; }
.pd-pack-grid { display: grid; gap: 22px; }
.pd-pack-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pd-pack-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .pd-pack-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pd-pack-grid--2,
  .pd-pack-grid--3 { grid-template-columns: 1fr; }
}
.pd-pack {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.pd-pack figure {
  margin: 0; aspect-ratio: 4 / 3; background: #f7faf8;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.pd-pack img { width: 100%; height: 100%; object-fit: cover; padding: 10px; display: block; }
.pd-pack > div { padding: 16px 18px 20px; }
.pd-pack-num {
  display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  color: var(--green); margin-bottom: 6px;
}
.pd-pack h4 { margin: 0 0 6px; font-size: 0.86rem; letter-spacing: 0.05em; text-transform: uppercase; }
.pd-pack p { margin: 0; color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
.pd-pack p em { font-style: normal; display: block; margin-top: 8px; color: var(--text-dim); font-size: 0.85rem; }
.pd-pack-closing {
  margin: 46px auto 0; text-align: center; font-size: 1.05rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--text);
}

/* key / special features block */
.pd-feature-sub { text-align: center; color: var(--text); font-size: 1.02rem; margin: 0 auto 8px;
  /* 参数行是 IKO8/PIR/DALI/... 这种没有空格的斜杠串，375 宽下会把整页撑出横向滚动 */
  overflow-wrap: anywhere; }
/* 只有紧跟 h2 的第一行才上提，否则连续两行会互相压住 */
.pd-title + .pd-feature-sub { margin-top: -26px; }
.pd-feature-line { text-align: center; color: var(--text-muted); max-width: 820px; margin: 0 auto 14px; line-height: 1.8; }
.pd-feature-media { max-width: 980px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 20px; }
.pd-feature-media figure { margin: 0; }
.pd-feature-media img {
  width: 100%; display: block; border-radius: var(--radius);
  border: 1px solid var(--line); background: #fff;
}
.pd-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.pd-chip {
  display: inline-block; padding: 8px 18px; border-radius: 999px;
  background: var(--green-tint); color: var(--green-dark);
  font-weight: 600; font-size: 0.9rem;
}

/* applications mosaic — 每行两张、统一高度裁切，凑不成一对的最后一张占满整行 */
.pd-apps-lead { text-align: center; color: var(--text-muted); max-width: 860px; margin: -18px auto 44px; line-height: 1.85; }
.pd-apps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(430px, 100%), 1fr)); gap: 20px; align-items: stretch; }
.pd-apps-grid figure {
  margin: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px;
  display: flex; align-items: center; justify-content: center;
}
.pd-apps-grid img {
  width: 100%; height: var(--card-h-apps); object-fit: contain;
  display: block; border-radius: calc(var(--radius) - 4px);
}
/* 奇数张（3 张）时最后一张横跨整行，避免留半宽孤图 */
.pd-apps-grid figure:last-child:nth-child(odd):not(:only-child) { grid-column: 1 / -1; }
.pd-apps-grid figure:last-child:nth-child(odd):not(:only-child) img { height: 400px; }
/* single mosaic image (e.g. tri-proof application collage) fills the row */
.pd-apps-grid figure:only-child { padding: 0; border: none; background: none; }
.pd-apps-grid figure:only-child img { height: auto; max-height: none; width: 100%; border-radius: var(--radius); object-fit: contain; }

/* 电池组装三道防护：三条并列卡片，图上文下（图固定 4:3，不裁主体） */
.batt-craft { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 22px; }
.batt-craft__card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.batt-craft__media { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.batt-craft__media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.batt-craft__body { padding: 20px 22px 24px; }
.batt-craft__num {
  display: block; margin-bottom: 8px;
  font-size: 0.72rem; letter-spacing: 0.14em; font-weight: 600; color: var(--green-dark);
}
.batt-craft__body h3 { margin: 0 0 10px; font-size: 1.04rem; line-height: 1.45; }
.batt-craft__body p { margin: 0; font-size: 0.94rem; line-height: 1.78; color: var(--text-muted); }

@media (max-width: 920px) {
  .pd-hero { padding: 48px 0; }
  .pd-hero-grid, .pd-split { grid-template-columns: 1fr; gap: 36px; }
  .pd-media { grid-template-columns: 1fr; }
  .pd-split--flip .pd-media { order: 1; }
  .pd-split--flip .pd-copy { order: 2; }
  .pd-hero-copy h1 { font-size: 1.7rem; }
  .pd-title { font-size: 1.45rem; margin-bottom: 32px; }
  .pd-section { padding: 52px 0; }
  .pd-apps-grid img { height: 240px; }
  .pd-apps-grid figure:last-child:nth-child(odd):not(:only-child) img { height: 300px; }
}
.pd-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; max-width: 1000px; margin: 40px auto 0; }
.pd-feature-grid figure {
  margin: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  display: flex; align-items: center; justify-content: center;
  min-height: 250px;
}
/* exactly four items: use a balanced 2x2 instead of a 3+1 orphan */
.pd-feature-grid:has(> figure:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
@media (max-width: 600px) {
  .pd-feature-grid { grid-template-columns: 1fr; }
  .pd-feature-grid figure { min-height: 176px; padding: 16px; }
  .pd-feature-grid img { max-height: 144px; }
}
.pd-feature-grid img {
  display: block; width: auto; height: auto;
  max-width: 100%; max-height: 210px; object-fit: contain;
}

/* contact page: WhatsApp / WeChat QR codes */
.qr-row { display: flex; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.qr-row figure { margin: 0; text-align: center; }
.qr-row img {
  width: 150px; height: 150px; display: block;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 8px; transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
}
.qr-row figure:hover img { transform: translateY(-3px); box-shadow: var(--shadow); }
.qr-row figcaption { font-size: 0.85rem; font-weight: 600; color: var(--text); margin-top: 8px; }
@media (max-width: 480px) {
  .qr-row img { width: 128px; height: 128px; }
}

/* ============================================================
   Typography refinement — display / body / accent pairing
   Sora (headings) + Inter (UI & body) + Instrument Serif (quotes)
   ============================================================ */

/* labels and small caps */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 0.95rem;
}

/* editorial quotes in newsletter-style italic serif */
blockquote {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.14rem;
  line-height: 1.5;
  letter-spacing: 0.004em;
  text-wrap: pretty;
}

/* numeric emphasis: stats, prices, spec numbers */
.hero-stat .num,
.num,
.pd-chip,
.stat-num {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* navigation & controls stay in the neutral text face */
.nav a,
.dropdown a,
.btn,
button,
input,
select,
textarea,
.tag,
.pd-chip,
label {
  font-family: var(--font-body);
}

.btn {
  font-weight: 600;
  letter-spacing: 0.012em;
}

.nav a { font-weight: 500; letter-spacing: 0.002em; }

/* footer column titles + card headings */
.footer-col .footer-h,
.info-item .info-h {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* article body: slightly wider measure & calmer rhythm */
.article p,
.article li {
  font-size: 1.02rem;
  line-height: 1.78;
  letter-spacing: 0.004em;
}

/* 带 width/height 属性的图片：宽高只用于占位防跳动，实际高度必须自适应，
   否则浏览器会把 height 属性当成固定高度，把横图拉成竖条 */
img[width][height] { height: auto; }

/* subtle optical polish on very large headings */
h1, .hero h1, .page-hero h1 {
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}

/* ---------- Quality page: alternating photo rows (mirrors szluxey.com/quanlity-luxey-lighting) ---------- */
.qz-band { padding: clamp(54px, 6.4vw, 88px) 0; }
.qz-band--soft { background: var(--bg-soft); }

.qz-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5.4vw, 76px);
  align-items: center;
}
.qz-row + .qz-row { margin-top: clamp(44px, 6vw, 84px); }
.qz-row--flip .qz-row__media { order: -1; }

.qz-row__media { margin: 0; }
.qz-row__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  background: var(--bg-soft);
}
/* tall shots of test benches keep their full frame, never cropped */
.qz-row__media--portrait img {
  width: auto;
  max-width: min(100%, 400px);
  max-height: 520px;
  margin-left: auto;
  margin-right: 0;
}
/* photo on the left of the row hugs the outer (left) edge, same as the text hugs the right */
.qz-row--flip .qz-row__media--portrait img {
  margin-left: 0;
  margin-right: auto;
}

.qz-row__text .eyebrow { margin-bottom: 10px; }

.qz-title {
  font-size: clamp(1.32rem, 2.35vw, 1.7rem);
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--green-dark);
  margin: 8px 0 14px;
}
.qz-lead {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.76;
  margin: 0 0 20px;
}
.qz-points { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 12px; }
.qz-points li {
  position: relative;
  padding-left: 30px;
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.qz-points li::before {
  content: "\1F4A1";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.qz-row__text h3 {
  font-size: clamp(1.16rem, 1.85vw, 1.4rem);
  line-height: 1.32;
  letter-spacing: -0.012em;
  margin: 0 0 14px;
}
.qz-row__text p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
}
/* photo on the left, copy hugs the outer edge — same rhythm as the original site */
.qz-row--flip .qz-row__text { text-align: right; }

@media (max-width: 860px) {
  .qz-row { grid-template-columns: 1fr; gap: 22px; }
  .qz-row--flip .qz-row__media { order: 0; }
  .qz-row--flip .qz-row__text { text-align: left; }
  .qz-row__media--portrait img { max-width: 100%; max-height: none; }
}

/* ============================================================
   WhatsApp floating chat（全站右下角气泡，由 main.js 注入）
   配置在 assets/main.js 顶部 WA 对象里：号码 / 预设消息 / 提示文案
   ============================================================ */
.wa-fab {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: linear-gradient(160deg, #3ec46a, #25a244 72%);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 28px -10px rgba(18, 87, 44, 0.6), 0 2px 6px rgba(16, 48, 26, 0.16);
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition: transform 0.34s cubic-bezier(0.2, 0.8, 0.25, 1), opacity 0.34s ease,
    box-shadow 0.2s ease;
}
.wa-fab.is-on { opacity: 1; transform: none; pointer-events: auto; }
.wa-fab:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 16px 34px -12px rgba(18, 87, 44, 0.66); }
.wa-fab:focus-visible { outline: 3px solid rgba(49, 160, 80, 0.45); outline-offset: 3px; }
.wa-fab svg { width: 30px; height: 30px; display: block; }

/* 首次进入的呼吸光圈：只跑 3 次，避免长期闪烁 */
.wa-fab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  animation: wa-pulse 2.6s ease-out 1.8s 3;
}
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(49, 160, 80, 0.42); }
  70% { box-shadow: 0 0 0 16px rgba(49, 160, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(49, 160, 80, 0); }
}

/* 气泡上方的小提示卡（第一次访问才出现，可关闭） */
.wa-teaser {
  position: fixed;
  right: 20px;
  bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  z-index: 899;
  max-width: min(296px, calc(100vw - 40px));
  padding: 12px 34px 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.2, 0.8, 0.25, 1);
}
.wa-teaser.is-on { opacity: 1; transform: none; pointer-events: auto; }
.wa-teaser::after {
  content: "";
  position: absolute;
  right: 23px;
  bottom: -6px;
  width: 11px;
  height: 11px;
  background: #fff;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}
.wa-teaser b { display: block; font-size: 0.82rem; letter-spacing: 0.02em; color: var(--green-bright); margin-bottom: 2px; }
.wa-teaser__close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}
.wa-teaser__close:hover { background: var(--bg-soft); color: var(--text); }

@media (max-width: 640px) {
  .wa-fab { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: 54px; height: 54px; }
  .wa-fab svg { width: 28px; height: 28px; }
  .wa-teaser { right: 14px; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); font-size: 0.86rem; }
  .wa-teaser::after { right: 21px; }
}

/* 移动端菜单展开时收起 WhatsApp 悬浮件。fab 固定在右下角、teaser 3.2 秒后
   自动弹出，两者都会压住菜单最后几项（实测 Contact 被盖住）。菜单是内部
   滚动，触发不了 teaser 原有的「页面滚动 120px 就收起」逻辑，必须显式隐藏。 */
@media (max-width: 1120px) {
  body.nav-open .wa-fab,
  body.nav-open .wa-fab.is-on,
  body.nav-open .wa-teaser,
  body.nav-open .wa-teaser.is-on {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-fab, .wa-teaser { transition: none; }
  .wa-fab { transform: none; }
  .wa-fab::after { animation: none; }
}

@media print {
  .wa-fab, .wa-teaser { display: none !important; }
}

/* ============================================================
   Lightbox（产品分栏图/应用图集点击放大看原图）
   由 main.js 注入：点 .pd-media img / .pd-apps-grid img 打开
   ============================================================ */
.lb {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(12, 18, 14, 0.82);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s ease;
}
.lb.is-on { opacity: 1; pointer-events: auto; }
.lb img {
  max-width: min(92vw, 1200px);
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  transform: scale(0.96);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.25, 1);
}
.lb.is-on img { transform: none; }
.lb__close {
  position: absolute; top: 18px; right: 18px;
  width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, 0.14); color: #fff;
  font-size: 22px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
}
.lb__close:hover { background: rgba(255, 255, 255, 0.26); }
/* 细节卡片图：可点击放大，右下角给一个 + 作提示 */
.pd-detail figure, .pd-pack figure, .batt-craft__media { position: relative; }
.pd-detail figure::after, .pd-pack figure::after, .batt-craft__media::after {
  content: '+'; position: absolute; right: 12px; bottom: 12px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(21, 32, 25, 0.66); color: #fff;
  font-size: 20px; line-height: 30px; text-align: center;
  opacity: 0; transition: opacity 0.18s ease; pointer-events: none;
}
.pd-detail figure:hover::after, .pd-pack figure:hover::after, .batt-craft__media:hover::after,
.pd-detail figure:focus-within::after, .pd-pack figure:focus-within::after,
.batt-craft__media:focus-within::after { opacity: 1; }
img.is-zoomable { cursor: zoom-in; }
img.is-zoomable:focus-visible { outline: 2px solid var(--green); outline-offset: -4px; }
@media (prefers-reduced-motion: reduce) {
  .lb, .lb img { transition: none; }
}

/* ============================================================
   多系列产品页：粘性系列导航 + 三档对比表
   仅用于一页装多个系列的页面（如 solar-led-street-light）
   ============================================================ */
.series-nav {
  position: sticky; top: var(--header-h); z-index: 90;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.series-nav__inner {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 0; overflow-x: auto;
  scrollbar-width: none;
}
.series-nav__inner::-webkit-scrollbar { display: none; }
.series-nav__link {
  display: inline-flex; align-items: baseline; gap: 7px;
  padding: 8px 15px; border-radius: 999px; white-space: nowrap;
  font-size: 0.92rem; font-weight: 600; color: var(--text-muted);
  transition: background 0.2s ease, color 0.2s ease;
}
.series-nav__link span { font-size: 0.76rem; font-weight: 500; color: var(--text-dim); }
.series-nav__link:hover { background: var(--bg-soft); color: var(--text); }
.series-nav__link.is-active { background: var(--green); color: #fff; }
.series-nav__link.is-active span { color: rgba(255, 255, 255, 0.86); }

/* 产品页 FAQ：问题独占一行，否则短问题的答案会紧贴问题，读起来像同一句话 */
#faq .pd-copy p { margin-bottom: 26px; }
#faq .pd-copy p strong {
  display: block; margin-bottom: 8px;
  color: var(--text); font-size: 1.02rem; font-weight: 600; line-height: 1.5;
}

/* 锚点跳转时躲开吸顶的 header + 系列导航 */
#compare, #battery-build, #aioh, #aioas, #aiox { scroll-margin-top: calc(var(--header-h) + 62px); }
/* 防爆产品页新增章节（无系列导航，只需躲 header） */
#what-is-atex, #ex-marking, #ael-or-aell, #tender-documents, #models, #specs, #faq { scroll-margin-top: calc(var(--header-h) + 16px); }

/* 每个系列的一句话定位 */
.series-tagline {
  text-align: center; max-width: 800px;
  margin: -24px auto 34px; padding: 0 4px;
  font-size: 1.02rem; line-height: 1.72; color: var(--text-muted);
}
.series-tagline strong { color: var(--green-dark); font-weight: 700; }

/* 三档对比表 */
.series-compare { min-width: 700px; }
.series-compare th, .series-compare td { white-space: normal; }
/* 功率/质保列不让折行：西语表头更长、列更窄，会断成「3–5 / años」「30–120 / W」 */
.series-compare td:nth-child(2), .series-compare td:nth-child(3), .series-compare td:nth-child(4), .series-compare td:nth-child(5) { white-space: nowrap; }
.series-compare td { vertical-align: top; }
.series-compare th:last-child, .series-compare td:last-child { text-align: left; min-width: 180px; }
.series-compare a { color: var(--green-bright); }
.series-compare a:hover { text-decoration: underline; }
.series-compare .sc-sub {
  display: block; margin-top: 4px; white-space: nowrap;
  font-size: 0.76rem; font-weight: 400; color: var(--text-dim);
}
.series-compare .sc-lbl { display: none; }
.series-compare__note {
  max-width: 820px; margin: 20px auto 0; text-align: center;
  font-size: 0.92rem; line-height: 1.72; color: var(--text-dim);
}

@media (max-width: 720px) {
  #compare, #battery-build, #aioh, #aioas, #aiox { scroll-margin-top: calc(var(--header-h) + 56px); }
  .series-nav__inner { padding: 6px 0; gap: 2px; }
  .series-nav__link { padding: 7px 12px; font-size: 0.86rem; }
  .series-tagline { margin: -14px auto 26px; font-size: 0.96rem; }

  /* 表格在窄屏转为逐档卡片，避免 6 列挤成横向滚动 */
  .series-compare { min-width: 0; background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
  .series-compare thead { display: none; }
  .series-compare tbody, .series-compare tr, .series-compare td { display: block; width: 100%; }
  .series-compare tbody tr:nth-child(even) { background: transparent; }
  .series-compare tr {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); margin-bottom: 14px; overflow: hidden;
  }
  .series-compare td {
    padding: 11px 16px; text-align: left;
    border-bottom: 1px solid var(--line); white-space: normal;
  }
  .series-compare.pd-spec-table tbody td:first-child {
    background: var(--green); padding: 14px 16px;
  }
  .series-compare tbody td:first-child a { color: #fff; }
  .series-compare td:first-child .sc-sub { color: rgba(255, 255, 255, 0.84); white-space: normal; }
  .series-compare td:last-child { border-bottom: 0; padding-bottom: 14px; }
  .series-compare .sc-lbl {
    display: block; margin-bottom: 2px;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--text-dim);
  }
}

/* ── About: "A Day Off the Line" 团队日常图集 ─────────────────────────── */
/* 2×2 等宽网格，统一 16:10 裁切：原片是手机拼图，取单格后都接近 1.6，
   用 16:10 + cover 基本不裁，不会切到人脸。 */
.team-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.tg-item { margin: 0; }
.tg-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  background: #eef1f3;
}
.tg-item figcaption {
  margin-top: 10px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}
@media (max-width: 760px) {
  .team-gallery { grid-template-columns: 1fr; gap: 18px; }
  .tg-item figcaption { margin-top: 8px; }
}

/* ── About: "From the Line to the Container" 供应链图集 ───────────────── */
/* 和 .team-gallery 同一套裁切（16:10 + cover），只是排成三列、共六张，
   按「库存 → 总装 → 成品区 → 包装 → 装柜 → 发运」的顺序读。 */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.pg-item { margin: 0; }
.pg-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  background: #eef1f3;
}
.pg-item figcaption {
  margin-top: 10px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}
@media (max-width: 980px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 640px) {
  .photo-grid { grid-template-columns: 1fr; gap: 16px; }
  .pg-item figcaption { margin-top: 8px; }
}
