/* =========================================================
   黑甄珠养发 · BLACK PEARL HAIR CARE
   styles.css — 全站样式（响应式优先 / 无外部依赖）
   作者：网站开发与部署专家
   ========================================================= */

/* ---------- 1. 设计变量 ---------- */
:root {
  /* 色板：取自产品包装（深蓝 + 香槟金 + 珠光白） */
  --ink: #0e1424;
  --ink-soft: #182034;
  --ink-line: rgba(255, 255, 255, 0.14);
  --gold: #c19a5b;
  --gold-light: #e3c68d;
  --gold-deep: #a8813f;
  --cream: #faf7f1;
  --paper: #ffffff;
  --text: #1a2032;
  --muted: #5b6579;
  --muted-light: rgba(246, 243, 237, 0.72);
  --line: rgba(14, 20, 36, 0.1);

  /* 排版 */
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC",
    Georgia, "Times New Roman", serif;

  /* 尺度 */
  --container: 1180px;
  --radius: 16px;
  --radius-lg: 22px;
  --header-h: 72px;
  --shadow-sm: 0 2px 8px rgba(14, 20, 36, 0.06);
  --shadow: 0 18px 44px rgba(14, 20, 36, 0.12);
  --shadow-lg: 0 30px 70px rgba(14, 20, 36, 0.22);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. 基础重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; letter-spacing: 0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

/* 键盘焦点必须可见（无障碍底线） */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 999;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  transform: translateY(-150%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- 3. 通用组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
    background-color 0.22s var(--ease), color 0.22s var(--ease),
    border-color 0.22s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  color: #1a1206;
  box-shadow: 0 10px 24px rgba(193, 154, 91, 0.32);
}
.btn-gold:hover { box-shadow: 0 16px 34px rgba(193, 154, 91, 0.42); }

.btn-ghost {
  border-color: rgba(14, 20, 36, 0.22);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(14, 20, 36, 0.04); }

.btn-outline {
  border-color: rgba(14, 20, 36, 0.16);
  background: var(--paper);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-deep); }

.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 14px;
}

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--cream { background: linear-gradient(180deg, #fffdf9, var(--cream)); }
.section--dark {
  background:
    radial-gradient(900px 460px at 82% -10%, rgba(193, 154, 91, 0.16), transparent 60%),
    linear-gradient(160deg, #101728 0%, var(--ink) 55%, #0a1020 100%);
  color: #f6f3ed;
}
.section--dark .eyebrow { color: var(--gold-light); }
.section--dark .section-sub { color: rgba(246, 243, 237, 0.78); }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }

.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: 0.01em;
}

.section-sub {
  margin-top: 16px;
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--muted);
  line-height: 1.8;
}
.section-sub code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(193, 154, 91, 0.16);
  padding: 1px 6px;
  border-radius: 5px;
}

.note {
  margin-top: 28px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.text-link {
  display: inline-block;
  align-self: flex-start; /* 避免在 flex 列容器里被拉伸成整行下划线 */
  margin-top: 18px;
  font-weight: 600;
  color: var(--gold-deep);
  border-bottom: 1px solid rgba(193, 154, 91, 0.45);
  padding-bottom: 2px;
  transition: gap 0.2s var(--ease), color 0.2s var(--ease);
}
.text-link:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- 4. 顶部导航 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(250, 247, 241, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 253, 249, 0.94);
  box-shadow: 0 8px 26px rgba(14, 20, 36, 0.08);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo {
  width: 172px;
  height: auto; /* 透明 PNG，可直接叠在任意底色上 */
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}
.primary-nav a {
  font-size: 15px;
  font-weight: 500;
  color: #333c4f;
  padding: 6px 2px;
  position: relative;
  transition: color 0.2s var(--ease);
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width 0.25s var(--ease);
}
.primary-nav a:hover { color: var(--ink); }
.primary-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}
.lang-btn {
  border: 0;
  background: transparent;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.lang-btn.is-active { background: var(--ink); color: #fff; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: relative; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 4px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-4px) rotate(-45deg); }

/* ---------- 5. 首屏 ---------- */
.hero {
  position: relative;
  overflow-x: clip; /* 兜底：装饰元素不得撑出横向滚动条 */
  padding-top: calc(var(--header-h) + clamp(32px, 6vw, 72px));
  padding-bottom: clamp(48px, 7vw, 96px);
  background:
    radial-gradient(760px 420px at 88% 6%, rgba(193, 154, 91, 0.18), transparent 62%),
    radial-gradient(620px 380px at 4% 88%, rgba(24, 32, 52, 0.07), transparent 65%),
    linear-gradient(180deg, #fffdf9, var(--cream));
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

/* 英文标题更长，单独收一点字号，避免过多换行 */
html[lang="en"] .hero-copy h1 { font-size: clamp(31px, 4.3vw, 52px); }

.hero-copy h1 {
  font-family: var(--font-serif);
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.16;
  letter-spacing: 0.01em;
}
.hero-copy h1 .accent {
  background: linear-gradient(100deg, var(--gold-deep), var(--gold) 40%, var(--gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy .lead {
  margin-top: 22px;
  max-width: 34em;
  font-size: clamp(15px, 1.7vw, 17px);
  color: var(--muted);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 48px);
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-badges li { display: flex; flex-direction: column; gap: 2px; }
.hero-badges strong {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1;
  color: var(--ink);
}
.hero-badges span { font-size: 13px; color: var(--muted); letter-spacing: 0.04em; }

.hero-visual { position: relative; }
.hero-shot {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.hero-shot img { width: 100%; }
.hero-shot--main { position: relative; z-index: 2; }
.hero-shot--sub {
  position: absolute;
  right: -6%;
  bottom: -14%;
  width: 46%;
  z-index: 3;
  border: 3px solid var(--cream);
  box-shadow: 0 22px 50px rgba(14, 20, 36, 0.3);
}
.hero-glow {
  position: absolute;
  inset: 12% 0 -18% 10%;
  z-index: 1;
  background: radial-gradient(closest-side, rgba(193, 154, 91, 0.35), transparent 72%);
  filter: blur(12px);
}

/* ---------- 6. 信任条 ---------- */
.trust-bar {
  background: var(--ink);
  color: rgba(246, 243, 237, 0.86);
  padding: 16px 0;
  overflow: hidden;
}
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 28px;
  font-size: 13px;
  letter-spacing: 0.08em;
}
.trust-inner span { position: relative; padding-left: 16px; }
.trust-inner span::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 5px; height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- 7. 产品 ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 34px);
}

.product-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.product-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0c1120; }
.product-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.product-card:hover .product-media img { transform: scale(1.04); }

.product-tag {
  position: absolute;
  top: 16px; left: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  backdrop-filter: blur(6px);
}
.product-tag--gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #221704; }

.product-body { padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-family: var(--font-serif); font-size: clamp(21px, 2.2vw, 26px); }
.product-en {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 6px;
  margin-bottom: 14px;
}
.product-body > p:not(.product-en) { color: var(--muted); font-size: 15px; line-height: 1.8; }

.spec-list {
  margin: 22px 0 0;
  border-top: 1px solid var(--line);
}
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.spec-list span { color: var(--muted); }
.spec-list strong { font-weight: 600; text-align: right; }

/* ---------- 8. 案例视频（案例墙） ---------- */
.case-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 24px);
}
/* 案例墙：三列竖屏栅格（2 张案例卡 + 1 个案例库面板正好一行）
   注意：`.case-row` 也是三列，这里只覆写间距，不要再写 repeat(4) —— 否则
   `.case-more` 占 1 列时会多出一个空列，整块内容偏左 */
.case-row--reel {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(16px, 2.2vw, 24px);
}

.case-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.062), rgba(255, 255, 255, 0.022));
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.case-card:hover {
  transform: translateY(-5px);
  border-color: rgba(227, 198, 141, 0.55);
  box-shadow: 0 24px 54px rgba(4, 8, 18, 0.45);
}

/* 画面区 */
.case-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #070b15;
  overflow: hidden;
  isolation: isolate;
}
.case-card--vert .case-media { aspect-ratio: 9 / 16; }

/* 三层结构：模糊底→静态封面→视频（播放时才显影）
   视频元素本身会画黑底，因此不能靠它做占位。 */
.case-backdrop {
  position: absolute;
  inset: -10%;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: blur(26px) saturate(1.15) brightness(0.58);
  transform: scale(1.06);
  transition: opacity 0.4s var(--ease);
}
.case-still {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s var(--ease);
}
/* 竖版：主体 contain 完整显示，留白处由模糊底填充，任何比例都不裁切包装 */
.case-card--vert .case-still { object-fit: contain; }

.case-media video {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.case-card--vert .case-media video { object-fit: contain; }

/* 开始播放才把视频显出来，并且把封面隐藏 */
.case-card.is-playing .case-media video { opacity: 1; }
.case-card.is-playing .case-still,
.case-card.is-playing .case-backdrop { opacity: 0; }

/* 播放遮罩：自定义，避免未上传时露出 0:00 原生控制条 */
.case-play {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: linear-gradient(
    180deg,
    rgba(8, 13, 26, 0.08) 0%,
    rgba(8, 13, 26, 0.16) 45%,
    rgba(8, 13, 26, 0.6) 100%
  );
  transition: background 0.3s var(--ease);
}
.case-play:hover {
  background: linear-gradient(
    180deg,
    rgba(8, 13, 26, 0.02) 0%,
    rgba(8, 13, 26, 0.1) 45%,
    rgba(8, 13, 26, 0.52) 100%
  );
}
.case-play-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 34px rgba(4, 8, 18, 0.5), 0 0 0 9px rgba(255, 255, 255, 0.08);
  transition: transform 0.28s var(--ease), background-color 0.28s var(--ease);
}
.case-play-icon::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 5px;
  border-left: 15px solid #101728;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}
.case-play:hover .case-play-icon { transform: scale(1.08); background: var(--gold-light); }
/* 未上传时按钮半透明，点击给出提示 */
.case-card:not(.is-ready) .case-play-icon { opacity: 0.5; }
.case-card.is-playing .case-play { display: none; }

.case-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  background: rgba(8, 13, 26, 0.66);
  border: 1px solid rgba(227, 198, 141, 0.44);
  color: var(--gold-light);
  font-weight: 600;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* 时长角标：右下角，播放时让位给原生控制条 */
.case-duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(8, 13, 26, 0.68);
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.case-card.is-playing .case-duration { opacity: 0; }

.case-index {
  position: absolute;
  left: 14px;
  top: 11px;
  z-index: 4;
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.case-body { padding: 18px 20px 22px; }
.case-body h3 { font-size: 16.5px; font-family: var(--font-sans); color: var(--cream); }
.case-body p { margin-top: 7px; font-size: 13.5px; color: var(--muted-light); line-height: 1.72; }

/* 英文解说：视频是中文原声 + 中文字幕，这里固定给海外客户一段英文旁白。
   选择器写成 .case-body .case-en，否则会被上面的 `.case-body p`(0,1,1) 覆盖 */
.case-body .case-en {
  margin-top: 11px;
  padding-left: 11px;
  border-left: 2px solid rgba(193, 154, 91, 0.46);
  font-size: 12.5px;
  line-height: 1.68;
  color: rgba(246, 243, 237, 0.6);
}
.case-en-label {
  display: block;
  margin-bottom: 3px;
  font-size: 9.5px;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.82;
}
/* 英文版下隐藏：中文说明已被替换成英文，避免两段英文重复 */
html[lang="en"] .case-en { display: none; }

/* 案例库面板：做成和视频卡同尺寸的第三张「海报卡」——
   门店实拍铺满（cover）、文字压在底部，靠栅格自动等高，
   不需要任何 flex 撑高技巧，也就不会出现中间一大块空白。
   层级：::before 照片 → ::after 压暗渐变 → .case-more-inner 文字 */
.case-more {
  grid-column: auto;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(227, 198, 141, 0.26);
  border-radius: var(--radius-lg);
  background-color: #0a1120;
  padding: clamp(20px, 2.4vw, 30px);
}
.case-more::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  /* 路径必须相对本 CSS 文件写死：用 var(--poster) 时 url() 会按样式表位置解析，
     从 index.html 传进来的相对路径会变成 assets/css/assets/images/... 而 404 */
  background-image: url("../images/store-front.jpg");
  background-size: cover;
  background-position: 68% 48%;
  filter: saturate(0.9) brightness(1.04);
}
.case-more::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(6, 11, 22, 0.18) 0%,
    rgba(6, 11, 22, 0.55) 34%,
    rgba(6, 11, 22, 0.9) 62%,
    rgba(6, 11, 22, 0.97) 100%
  );
}
.case-more-inner { display: flex; flex-direction: column; gap: 10px; }
.case-more-top { display: grid; gap: 10px; }
.case-more .eyebrow { margin-bottom: 2px; }
.case-more h3 {
  font-size: clamp(19px, 2.1vw, 23px);
  font-family: var(--font-serif);
  color: var(--cream);
  line-height: 1.35;
}
.case-more p { font-size: 14px; color: var(--muted-light); line-height: 1.72; }
.case-more .btn { align-self: flex-start; margin-top: 8px; }

/* 深色方案卡：提高优先级，否则被后面的 .plan li / .plan > p 覆盖成深色字 */
.plan.plan--featured li {
  color: rgba(246, 243, 237, 0.88);
  border-color: rgba(255, 255, 255, 0.12);
}
.plan.plan--featured > p:not(.plan-en) { color: rgba(246, 243, 237, 0.82); }
.plan.plan--featured h3 { color: #f6f3ed; }

/* 标题断行更均匀 */
.section-head h2,
.split h2,
.case-more h3,
.plan h3 { text-wrap: balance; }

/* 数据条 */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(36px, 5vw, 60px);
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--ink-line);
  text-align: center;
}
.stat-strip strong {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.4vw, 40px);
  color: var(--gold-light);
  line-height: 1.1;
}
.stat-strip span { font-size: 13px; color: var(--muted-light); letter-spacing: 0.06em; }

/* 案例库清单 */
.case-more-list {
  margin: 4px 0 6px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}
.case-more-list li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted-light);
}
.case-more-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 1px;
  background: var(--gold);
}

/* ---------- 9. 优势 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature {
  background: var(--paper);
  padding: clamp(24px, 3vw, 34px);
  transition: background-color 0.3s var(--ease);
}
.feature:hover { background: #fffdf8; }
.feature-no {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 14px;
}
.feature h3 { font-size: 17px; margin-bottom: 10px; }
.feature p { font-size: 14.5px; color: var(--muted); line-height: 1.78; }

/* ---------- 10. 门店 ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.split-copy h2 {
  font-family: var(--font-serif);
  font-size: clamp(25px, 3.6vw, 38px);
}
.split-copy .section-sub { margin-bottom: 22px; }

.check-list { display: grid; gap: 12px; margin: 0 0 28px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  color: #2c3547;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 17px; height: 10px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
  border-radius: 1px;
}

.split-media { display: grid; grid-template-columns: 1fr; gap: 18px; }
.split-media figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.split-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.split-media figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 16px 12px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(transparent, rgba(10, 16, 32, 0.75));
}

/* ---------- 11. 合作方式 ---------- */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 28px);
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 36px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(193, 154, 91, 0.5); }
.plan--featured {
  background: linear-gradient(165deg, #101728, #0a1020);
  border-color: rgba(227, 198, 141, 0.42);
  color: #f6f3ed;
  box-shadow: var(--shadow-lg);
}
.plan--featured p { color: rgba(246, 243, 237, 0.8); }
.plan--featured li { color: rgba(246, 243, 237, 0.86); border-color: rgba(255, 255, 255, 0.12); }
.plan-flag {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #221704;
  white-space: nowrap;
}
.plan h3 { font-family: var(--font-serif); font-size: 22px; }
.plan-en {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 6px 0 16px;
}
.plan--featured .plan-en { color: var(--gold-light); }
.plan > p:not(.plan-en) { font-size: 14.5px; color: var(--muted); line-height: 1.78; }
.plan ul { margin: 22px 0 26px; }
.plan li {
  padding: 10px 0;
  font-size: 14px;
  border-top: 1px solid var(--line);
  color: #2c3547;
}
.plan .btn { margin-top: auto; }

/* ---------- 12. 联系 ---------- */
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.contact-copy h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.8vw, 40px);
}

.contact-list { display: grid; gap: 2px; margin-top: 34px; }
.contact-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  padding: 14px 0;
  border-top: 1px solid var(--ink-line);
}
.contact-label {
  min-width: 108px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(246, 243, 237, 0.5);
}
.contact-list a, .contact-list strong { font-size: 16px; color: #fff; font-weight: 600; }
.contact-list a:hover strong { color: var(--gold-light); }

.inline-copy { display: inline-flex; align-items: center; gap: 10px; }
.copy-btn {
  border: 1px solid var(--ink-line);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(246, 243, 237, 0.85);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.copy-btn:hover { background: var(--gold); color: #1a1206; border-color: transparent; }

.contact-form {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px);
  backdrop-filter: blur(8px);
}
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 13px; letter-spacing: 0.04em; color: rgba(246, 243, 237, 0.72); }

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 15px;
  font-family: inherit;
  font-size: 15px;
  color: #fff;
  background: rgba(10, 16, 32, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 11px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.contact-form textarea { resize: vertical; min-height: 96px; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(246, 243, 237, 0.34); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(193, 154, 91, 0.22);
}
.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"],
.contact-form select[aria-invalid="true"] {
  border-color: #ff9b8a;
  box-shadow: 0 0 0 3px rgba(255, 155, 138, 0.18);
}
.contact-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold-light) 50%), linear-gradient(135deg, var(--gold-light) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.contact-form option { color: #111; }

.contact-form .btn { margin-top: 8px; }
.form-hint { margin-top: 12px; font-size: 12.5px; color: rgba(246, 243, 237, 0.5); line-height: 1.7; }
.form-status { margin-top: 10px; font-size: 13.5px; min-height: 20px; color: var(--gold-light); }
.form-status.is-error { color: #ffb4a8; }

/* ---------- 13. 页脚 ---------- */
.site-footer {
  background: #080d18;
  color: rgba(246, 243, 237, 0.72);
  padding-top: clamp(48px, 6vw, 72px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(32px, 4vw, 48px);
}
.footer-logo {
  width: 176px;
  height: auto;
  /* 深色页脚上把 logo 反白，保持统一的高级感 */
  filter: brightness(0) invert(1);
  opacity: 0.94;
}
.footer-brand p { margin-top: 16px; font-size: 13.5px; line-height: 1.8; }

.footer-nav h3,
.footer-contact h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
}
.footer-nav ul { display: grid; gap: 10px; }
.footer-nav a, .footer-contact a { font-size: 14px; transition: color 0.2s var(--ease); }
.footer-nav a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact p { font-size: 14px; margin-bottom: 10px; }
.footer-contact p:last-child { font-size: 12.5px; color: rgba(246, 243, 237, 0.5); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 22px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: flex-start;
}
.disclaimer {
  flex: 1 1 520px;
  font-size: 12px;
  line-height: 1.75;
  color: rgba(246, 243, 237, 0.42);
}
.copyright { font-size: 12.5px; color: rgba(246, 243, 237, 0.55); display: grid; gap: 6px; }
.icp a { color: rgba(246, 243, 237, 0.42); }
.icp a:hover { color: var(--gold-light); }

/* 移动端悬浮按钮 */
.mobile-bar {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 90;
  display: none;
}
.mobile-bar .btn { box-shadow: 0 14px 30px rgba(14, 20, 36, 0.28); }

/* ---------- 14. 进场动画 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 14.5 视觉精修 ---------- */

/* 章节眉题：左右各一道细线，增强编辑感（仅章节标题，不影响 case-more / 页脚的 eyebrow） */
.section-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section-head .eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .eyebrow::after {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

/* 首屏主图：内嵌金色细框 + 底部暗角，衬托包装的金属质感 */
.hero-shot--main { box-shadow: 0 30px 70px rgba(14, 20, 36, 0.26); }
.hero-shot--main::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(193, 154, 91, 0.45),
    inset 0 -90px 90px -70px rgba(14, 20, 36, 0.34);
}
.hero-shot--sub { transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.hero-shot--sub:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(14, 20, 36, 0.34);
}

/* 首屏数字：金色竖线分隔，读起来更像数据栏 */
.hero-badges li { position: relative; }
.hero-badges li + li { padding-left: clamp(18px, 3vw, 34px); }
.hero-badges li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(180deg, rgba(193, 154, 91, 0.55), rgba(193, 154, 91, 0.06));
}

/* 产品卡：悬停金色描边 */
.product-card { border-color: rgba(14, 20, 36, 0.09); }
.product-card:hover { border-color: rgba(193, 154, 91, 0.5); }
.product-media img { will-change: transform; }

/* 规格表：最后一行去掉多余底线，数值用主文字色 */
.spec-list li:last-child { border-bottom: 0; padding-bottom: 2px; }
.spec-list strong { color: var(--ink); letter-spacing: 0.01em; }

/* 门店实拍图：统一圆角与轻投影 */
.split-media figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* ---------- 15. 响应式 ---------- */
@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .primary-nav ul { gap: 14px; }
  .primary-nav a { font-size: 14px; }
}

@media (max-width: 940px) {
  :root { --header-h: 66px; }

  .primary-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(255, 253, 249, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(14, 20, 36, 0.12);
    padding: 8px 24px 22px;
    display: none;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav li { border-bottom: 1px solid var(--line); }
  .primary-nav a { display: block; padding: 14px 4px; font-size: 16px; }
  .primary-nav a::after { display: none; }

  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 8px; }
  .hero-shot--sub { width: 42%; right: 0; bottom: -10%; }

  .product-grid { grid-template-columns: 1fr; }
  .case-row { grid-template-columns: 1fr; }
  .case-row--reel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-more { grid-column: span 2; }
  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  .plan-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .container { padding-inline: 18px; }
  .brand-logo { width: 148px; }
  .header-actions { gap: 8px; }
  .lang-btn { padding: 5px 9px; font-size: 12.5px; }

  .hero { padding-top: calc(var(--header-h) + 24px); }
  .hero-copy h1 { font-size: clamp(30px, 9vw, 40px); }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-badges { gap: 18px 28px; }
  .hero-shot--sub { display: none; }

  .feature-grid { grid-template-columns: 1fr; }
  .split-media { grid-template-columns: 1fr; }

  /* 案例墙：手机改单列。竖版视频在 4:5 的框里居中，两侧由同帧模糊底兜住，
     这样既完整显示画面，卡片也不会被 9:16 拉得过高 */
  .case-row { gap: 14px; }
  .case-row--reel { grid-template-columns: 1fr; gap: 16px; }
  .case-card--vert .case-media { aspect-ratio: 4 / 5; }
  .case-more { grid-column: auto; }
  .case-body { padding: 14px 15px 16px; }
  .case-body h3 { font-size: 15px; line-height: 1.42; }
  .case-body p { font-size: 12.8px; line-height: 1.68; }
  .case-body .case-en { margin-top: 10px; padding-left: 10px; font-size: 11.8px; line-height: 1.64; }
  .case-en-label { font-size: 9px; letter-spacing: 0.14em; }
  .case-play-icon { width: 48px; height: 48px; }
  .case-play-icon::before {
    border-left-width: 12px;
    border-top-width: 7px;
    border-bottom-width: 7px;
  }
  .case-index { font-size: 11px; left: 10px; top: 9px; }
  .case-badge { font-size: 10px; padding: 3px 8px; top: 9px; right: 9px; }
  .case-more { grid-column: auto; min-height: clamp(340px, 78vw, 420px); padding: 22px 18px; }
  .case-more-list li { font-size: 12.5px; }
  .case-more .btn { align-self: stretch; text-align: center; }
  .field-row { grid-template-columns: 1fr; }
  .contact-list li { flex-direction: column; gap: 4px; }
  .contact-label { min-width: 0; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }

  /* 移动端给内容留出悬浮按钮的空间 */
  .site-footer { padding-bottom: 92px; }
  .mobile-bar { display: block; }
}

/* ---------- 16. 资质与检测报告页（certifications.html） ----------
   独立二级页，只被 certifications.html 使用；选择器统一带 cert- 前缀，
   主干页面一个字都不受影响的。 */

/* 主页「为何合作」底部的资质入口：一行小字，不与主 CTA 抢注意力 */
.cert-entry {
  margin-top: clamp(28px, 3.6vw, 44px);
  padding-top: clamp(18px, 2.4vw, 26px);
  border-top: 1px dashed var(--line);
  font-size: 13.5px;
  color: var(--muted);
}
.cert-entry a {
  color: var(--gold-deep);
  font-weight: 600;
  border-bottom: 1px solid rgba(193, 154, 91, 0.45);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.cert-entry a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* 页首 */
.cert-hero {
  padding-top: calc(var(--header-h) + clamp(32px, 5vw, 64px));
  padding-bottom: clamp(40px, 6vw, 68px);
  background:
    radial-gradient(760px 420px at 88% 0%, rgba(193, 154, 91, 0.15), transparent 62%),
    linear-gradient(180deg, #fffdf9, var(--cream));
  border-bottom: 1px solid var(--line);
}
.cert-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--muted);
}
.cert-crumbs a { border-bottom: 1px solid transparent; }
.cert-crumbs a:hover { color: var(--gold-deep); border-bottom-color: var(--gold); }
.cert-crumbs [aria-current] { color: var(--text); font-weight: 600; }

.cert-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4.4vw, 46px);
  letter-spacing: 0.01em;
  text-wrap: balance;
}
.cert-lead {
  max-width: 800px;
  margin-top: 18px;
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.85;
  color: var(--muted);
}

/* 页首数据条 */
.cert-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  margin-top: clamp(28px, 4vw, 44px);
}
.cert-stats li {
  padding: 20px 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
}
.cert-stats strong {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: 0.01em;
  word-break: break-all;
}
.cert-stats span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* 文件清单 */
.cert-artifacts { background: var(--cream); }

.cert-doc {
  padding: clamp(20px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.cert-doc + .cert-doc { margin-top: clamp(16px, 2vw, 22px); }

/* 每份文件是一张卡；只有 1 页的文件（注册证）改成「文字左 / 原件右」，
   否则一张 168px 的小图吊在 900px 宽卡片下面，右边空一大片 */
.cert-doc--single {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(180px, 20vw, 244px);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

.cert-doc-head { max-width: 900px; }
.cert-doc-tag {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-deep);
  background: rgba(193, 154, 91, 0.14);
  border: 1px solid rgba(193, 154, 91, 0.3);
}
.cert-doc-head h3 {
  margin-top: 12px;
  font-size: clamp(17px, 2.1vw, 22px);
  line-height: 1.35;
}

.cert-doc-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px dashed var(--line);
}
.cert-doc-meta dt {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}
.cert-doc-meta dd {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  word-break: break-word;
}

.cert-doc-verdict {
  margin-top: 16px;
  padding-left: 14px;
  border-left: 2px solid rgba(193, 154, 91, 0.55);
  font-size: 14px;
  line-height: 1.78;
  color: var(--muted);
}

/* 缩略图行：列数按该文件的实际页数给。
   用 auto-fill 会排出 8+3 这种歪行（11 页时），所以按 count 定列：
   11 页 → 6 列（6+5）；5 页 → 5 列排满一行 */
.cert-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}
.cert-thumbs[data-count="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cert-thumbs[data-count="1"] { grid-template-columns: minmax(0, 1fr); margin-top: 0; }

.cert-thumb {
  position: relative;
  display: block;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
    border-color 0.22s var(--ease);
}
.cert-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.414; /* A4 比例，避免加载前抖动 */
  object-fit: cover;
  object-position: top center;
  display: block;
}
.cert-thumb:hover,
.cert-thumb:focus-visible {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 10px 22px rgba(14, 20, 36, 0.14);
}
.cert-thumb-more {
  position: absolute;
  inset: auto 0 0 0;
  padding: 6px 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  color: #1a1206;
  background: linear-gradient(180deg, rgba(227, 198, 141, 0.86), rgba(193, 154, 91, 0.94));
}

/* 如实呈现（深色块） */
.cert-note-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.cert-note h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.25;
}
.cert-note p {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted-light);
}
.cert-quote {
  margin: 22px 0 0;
  padding: 18px 22px;
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  background: rgba(255, 255, 255, 0.055);
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.75;
  color: #f2ece1;
}

.cert-note-side {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
  padding: clamp(20px, 2.6vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
}
.cert-note-side h3 {
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--gold-light);
}
.cert-note-list { margin-top: 14px; display: grid; gap: 12px; }
.cert-note-list li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted-light);
}
.cert-note-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.cert-note-foot {
  margin-top: auto !important;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12.5px !important;
  line-height: 1.7 !important;
  color: rgba(246, 243, 237, 0.6) !important;
}

/* 如何核验 */
.cert-verify { background: linear-gradient(180deg, #fffdf9, var(--cream)); }

.cert-verify-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  counter-reset: certv;
}
.cert-verify-list li {
  position: relative;
  padding: clamp(20px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.cert-verify-no {
  display: block;
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1;
  color: rgba(193, 154, 91, 0.5);
}
.cert-verify-list h3 {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.45;
}
.cert-verify-list p {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.78;
  color: var(--muted);
}
.cert-verify-url {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px !important;
  color: var(--gold-deep) !important;
  letter-spacing: 0.02em;
  word-break: break-all;
}

/* 索取原件 */
.cert-cta { padding-top: 0; }
.cert-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid rgba(193, 154, 91, 0.34);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(560px 300px at 100% 0%, rgba(193, 154, 91, 0.16), transparent 62%),
    linear-gradient(160deg, #101728, var(--ink) 70%);
  color: #f6f3ed;
}
.cert-cta-inner > div:first-child { flex: 1 1 420px; }
.cert-cta-inner h2 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 32px);
}
.cert-cta-inner p {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted-light);
  max-width: 620px;
}
.cert-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex: 0 0 auto;
}
.btn-ghost-light {
  border-color: rgba(255, 255, 255, 0.28);
  color: #f6f3ed;
  background: transparent;
}
.btn-ghost-light:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.06);
}

/* 图片查看器 */
body.is-locked { overflow: hidden; }

.cert-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 40px);
  background: rgba(8, 12, 22, 0.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.24s var(--ease);
}
.cert-lightbox.is-open { opacity: 1; }
.cert-lightbox[hidden] { display: none; }

.cert-box-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-height: 100%;
  min-height: 0;
}
.cert-box-figure img {
  max-width: min(940px, 100%);
  max-height: calc(100dvh - 140px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.cert-box-cap {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(246, 243, 237, 0.78);
  text-align: center;
}

.cert-box-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.cert-box-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--gold-light);
}
.cert-box-close { top: clamp(12px, 2.4vw, 24px); right: clamp(12px, 2.4vw, 24px); }
.cert-box-prev { left: clamp(8px, 2vw, 24px); top: 50%; transform: translateY(-50%); }
.cert-box-next { right: clamp(8px, 2vw, 24px); top: 50%; transform: translateY(-50%); }
.cert-box-btn[hidden] { display: none; }

/* 响应式 */
@media (max-width: 940px) {
  .cert-note-inner { grid-template-columns: minmax(0, 1fr); }
  .cert-verify-list { grid-template-columns: minmax(0, 1fr); }
  .cert-doc-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .cert-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cert-stats li { padding: 16px 14px 18px; }
  .cert-stats strong { font-size: 22px; }
  .cert-stats span { font-size: 12px; }

  .cert-doc { padding: 18px 15px; border-radius: var(--radius); }
  /* 手机上左右分栏会让原件缩得太小，退回上下排列 */
  .cert-doc--single { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .cert-thumbs,
  .cert-thumbs[data-count="5"],
  .cert-thumbs[data-count="11"] { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .cert-thumbs[data-count="1"] { grid-template-columns: minmax(0, 62%); justify-content: center; }
  .cert-doc-verdict { font-size: 13px; }

  .cert-cta-inner { padding: 22px 18px; }
  .cert-cta-actions { width: 100%; }
  .cert-cta-actions .btn { flex: 1 1 auto; }

  .cert-box-btn { width: 40px; height: 40px; font-size: 20px; }
  .cert-box-figure img { max-height: calc(100dvh - 120px); }
}

/* ---------- 17. 偏好与打印 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .mobile-bar, .hero-visual, .contact-form { display: none !important; }
  body { color: #000; background: #fff; }
  .section--dark, .site-footer { background: #fff !important; color: #000 !important; }
}
