/* ============================================================================
   Coinbase-light — Asquad in-house design system
   Design DNA referenced from Coinbase: Coinbase Blue (#0052ff) as the single
   functional brand accent, white/near-black alternating sections, 56px pill
   CTAs, cool-gray (#eef0f3) secondary surface, ultra-tight 1.0 display
   line-height. Authored from scratch — no Coinbase markup or assets copied.
   ============================================================================ */

:root {
  /* Brand & core */
  --cb-blue: #0052ff;
  --cb-blue-hover: #578bfa;
  --cb-link: #0667d0;

  /* Surfaces */
  --white: #ffffff;
  --near-black: #0a0b0d;
  --dark-card: #282b31;
  --gray-surface: #eef0f3;
  --gray-soft: #f7f8fa;

  /* Text */
  --text: #0a0b0d;
  --text-muted: #5b616e;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: #9aa0ab;

  /* Lines */
  --line: rgba(91, 97, 110, 0.18);
  --line-strong: rgba(91, 97, 110, 0.28);
  --line-dark: rgba(255, 255, 255, 0.12);

  /* Radii */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 40px;
  --r-pill: 56px;
  --r-full: 100000px;

  /* Type */
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;

  /* Layout */
  --maxw: 1200px;
  --gutter: 24px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--text);
  background: var(--white);
  font-size: 18px;
  line-height: 1.56;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ----------------------------------------------------------------- Type */
h1, h2, h3, h4, h5 { margin: 0; font-weight: 400; letter-spacing: -0.02em; }

h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 80px);
  line-height: 1.0;
  font-weight: 500;
  letter-spacing: -0.035em;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.03em;
}

h3 { font-size: 18px; font-weight: 600; line-height: 1.33; letter-spacing: -0.01em; }
h4 { font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; }
h5 { font-size: 13px; font-weight: 600; line-height: 1.4; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); }

p { margin: 0; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cb-blue);
}

.prose { color: var(--text-muted); font-size: 18px; line-height: 1.6; max-width: 62ch; }
.prose p + p { margin-top: 18px; }

/* --------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  padding: 15px 24px;
  border-radius: var(--r-pill);
  border: 1px solid var(--gray-surface);
  background: var(--gray-surface);
  color: var(--text);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--cb-blue-hover); border-color: var(--cb-blue-hover); color: #fff; }
.btn:focus-visible { outline: 2px solid var(--near-black); outline-offset: 2px; }

.btn-primary {
  background: var(--cb-blue);
  border-color: var(--cb-blue);
  color: #fff;
}
.btn-primary:hover { background: var(--cb-blue-hover); border-color: var(--cb-blue-hover); color: #fff; }

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { background: var(--gray-surface); border-color: var(--line-strong); color: var(--text); }

/* On dark sections */
.on-dark .btn { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.14); color: #fff; }
.on-dark .btn:hover { background: var(--cb-blue-hover); border-color: var(--cb-blue-hover); }
.on-dark .btn-primary { background: var(--cb-blue); border-color: var(--cb-blue); }
.on-dark .btn-primary:hover { background: var(--cb-blue-hover); border-color: var(--cb-blue-hover); }

/* ------------------------------------------------------------------- Nav */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand img { height: 28px; width: auto; }
.brand .dot {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--cb-blue);
  position: relative;
  flex: none;
}
.brand .dot::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2.5px solid #fff;
  border-radius: 50%;
}
.navlinks { display: flex; gap: 30px; }
.navlinks a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.navlinks a:hover { color: var(--text); }
.nav-actions { display: flex; gap: 12px; align-items: center; }

/* ------------------------------------------------------------------ Hero */
/* 两态（Shopify image-banner 范式），同高、内容同为底部左对齐：
   · 有照片 → 整幅出血 <img> + 均匀淡遮罩，文案压图（白字）
   · 无照片 → 本模板自己的干净白底 + 近黑字（机构金融基调，不加渐变球/光晕） */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  min-height: 74vh;
  padding: 96px 0 80px;
}
.hero-inner { width: 100%; }

/* 有照片 —— 图就是舞台 */
.hero--media { color: #fff; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media .hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero--media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.32); /* Dawn image-overlay 式均匀一层，非底部重渐变 */
}
.hero--media .hero-inner { text-shadow: 0 1px 16px rgba(0, 0, 0, 0.28); }

/* 无照片 —— 干净白底（多数卖家落在这一态） */
.hero--plain {
  background: var(--white);
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--cb-blue);
  background: var(--gray-surface);
  border-radius: var(--r-full);
  padding: 7px 14px 7px 11px;
  margin-bottom: 28px;
}
.hero .badge .g {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cb-blue);
  box-shadow: 0 0 0 4px rgba(0, 82, 255, 0.16);
}
.hero h1 { max-width: 14ch; }
.hero .sub {
  margin-top: 24px;
  max-width: 56ch;
  font-size: 21px;
  line-height: 1.5;
  color: var(--text-muted);
}
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 36px; }
.cta-note { font-size: 14px; color: var(--text-muted); }

.trustbar { margin-top: 64px; }
.trustbar .lbl {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.trustbar .chips { display: flex; flex-wrap: wrap; gap: 10px; }
.trustbar .chips span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: var(--gray-surface);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 9px 16px;
}

/* 压图态的 hero 子元素反色 —— 放在基础规则之后，靠源码顺序覆盖（同特异度） */
.hero--media .badge {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  text-shadow: none;
}
.hero--media .badge .g { background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.22); }
.hero--media .sub { color: rgba(255, 255, 255, 0.88); }
.hero--media .cta-note { color: rgba(255, 255, 255, 0.72); }
.hero--media .trustbar .lbl { color: rgba(255, 255, 255, 0.62); }
.hero--media .trustbar .chips span {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.26);
  text-shadow: none;
}

/* --------------------------------------------------------------- Blocks */
.block { padding: 88px 0; }
.block-tight { padding: 56px 0; }

.sec-head { max-width: 720px; margin-bottom: 52px; }
.sec-head .eyebrow { display: block; margin-bottom: 16px; }
.sec-head h2 { margin-bottom: 18px; }
.sec-head p { color: var(--text-muted); font-size: 19px; line-height: 1.55; }

/* dark section */
.dark {
  background: var(--near-black);
  color: var(--text-on-dark);
}
.dark h2, .dark h3, .dark h4 { color: #fff; }
.dark .sec-head p { color: var(--text-on-dark-muted); }
.dark .eyebrow { color: #6f9bff; }

/* ---------------------------------------------------------------- Grids */
.grid { display: grid; gap: 22px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

/* feature card (light) */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card .ic {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--gray-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cb-blue);
  margin-bottom: 22px;
}
.card .ic svg { width: 24px; height: 24px; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 16px; line-height: 1.55; }

/* card variant on dark */
.dark .card {
  background: var(--dark-card);
  border-color: var(--line-dark);
}
.dark .card:hover { border-color: rgba(255,255,255,0.22); }
.dark .card .ic { background: rgba(255,255,255,0.06); color: #6f9bff; }
.dark .card p { color: var(--text-on-dark-muted); }

/* split feature (image + copy) */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.split .panel {
  border-radius: var(--r-xl);
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  background: var(--gray-surface);
  border: 1px solid var(--line);
}
.split .panel img { width: 100%; height: 100%; object-fit: cover; }
.split .panel .glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 28% 20%, rgba(0, 82, 255, 0.18), transparent 60%),
    radial-gradient(90% 80% at 80% 85%, rgba(87, 139, 250, 0.22), transparent 55%),
    linear-gradient(135deg, #e7edff 0%, #f3f6ff 60%, #ffffff 100%);
}
.split .copy h2 { margin-bottom: 18px; }
.split .copy .prose { margin-bottom: 26px; }
.featlist { list-style: none; padding: 0; margin: 0 0 28px; }
.featlist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: var(--text);
}
.featlist li:first-child { border-top: none; }
.featlist li .ck {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 82, 255, 0.1);
  color: var(--cb-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.featlist li .ck svg { width: 13px; height: 13px; }
.featlist li span.t b { font-weight: 600; }
.featlist li span.t small { display: block; color: var(--text-muted); font-size: 14px; font-weight: 400; }

/* ---------------------------------------------------------------- Products */
/* 零售橱窗卡：3:4 竖构图铺满 + hover 换第二张图。保留本模板的 1px 描边白卡语言
   （Coinbase DNA 是「干净描边面板」，不是无边框），只是圆角收紧、去 hover 位移。 */
.prod {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.18s ease;
}
.prod:hover { border-color: var(--cb-blue); }
.prod .img {
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: hidden;
  background: var(--gray-surface);
}
/* 主图与 rollover 第二图叠放，都铺满 3:4 画面 */
.prod .img .pc-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, opacity 0.45s ease;
}
.prod .img .pc-img-2 { opacity: 0; }
.prod:hover .pc-img { transform: scale(1.03); }
.prod:hover .pc-img-2 { opacity: 1; }
/* 无图占位：干净中性面板 + 极淡描边圆（不做渐变球/光晕） */
.prod .img .glow {
  position: absolute;
  inset: 0;
  background: var(--gray-surface);
}
.prod .img .glow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
}
.prod .meta { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.prod h4 { font-size: 18px; margin-bottom: 6px; }
.prod .meta p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.empty {
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  padding: 56px 32px;
  text-align: center;
  background: var(--gray-soft);
}
.empty p { color: var(--text-muted); margin-bottom: 22px; font-size: 18px; }

/* ----------------------------------------------------------------- Stats */
.statband {
  background: var(--gray-surface);
  border-radius: var(--r-xl);
  padding: 56px 48px;
}
.statgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat .n {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--near-black);
}
.stat .n span { color: var(--cb-blue); }
.stat .l { margin-top: 10px; font-size: 15px; color: var(--text-muted); }

/* ------------------------------------------------------------------ Final CTA */
.final {
  background: var(--near-black);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 80px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 120% at 50% -10%, rgba(0, 82, 255, 0.45), transparent 60%),
    radial-gradient(50% 90% at 85% 110%, rgba(87, 139, 250, 0.28), transparent 60%);
  pointer-events: none;
}
.final > * { position: relative; }
.final .eyebrow { color: #7aa2ff; }
.final h2 { color: #fff; margin-bottom: 18px; }
.final p { color: rgba(255, 255, 255, 0.7); max-width: 56ch; margin: 0 auto 8px; font-size: 18px; }

/* ----------------------------------------------------------------- Page head */
.pagehead {
  background: var(--gray-soft);
  border-bottom: 1px solid var(--line);
  padding: 64px 0 56px;
}
.crumb { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.crumb a { color: var(--cb-link); }
.crumb a:hover { text-decoration: underline; }
.pagehead .eyebrow { display: block; margin-bottom: 14px; }
.pagehead h1 { font-size: clamp(38px, 5.2vw, 60px); margin-bottom: 18px; }

/* --------------------------------------------------------------- Pager */
.pager { display: flex; gap: 12px; margin-top: 48px; }
.pager-nums { display: flex; gap: 6px; align-items: center; }
.pager-num { min-width: 44px; padding: 15px 14px; justify-content: center; }
.pager-num.is-current { background: var(--cb-blue); border-color: var(--cb-blue); color: #fff; pointer-events: none; }
.pager-gap { color: var(--text-muted); font-size: 13px; padding: 0 2px; user-select: none; }

/* -------------------------------------------------------------- Contact */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.field {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
}
.field h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.field a { color: var(--cb-link); font-size: 18px; font-weight: 600; }
.field a:hover { text-decoration: underline; }
.field p { color: var(--text); font-size: 17px; }

/* ----------------------------------------------------------- Product detail */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.detail .hero-img {
  border-radius: var(--r-xl);
  aspect-ratio: 4 / 3;
  max-height: 420px;
  overflow: hidden;
  position: sticky;
  top: 96px;
  background: var(--gray-surface);
  border: 1px solid var(--line);
}
.detail .hero-img img { width: 100%; height: 100%; object-fit: cover; }
.detail .hero-img .img-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
}
.detail .hero-img .img-fallback svg { opacity: 0.65; }
.detail .hero-img .img-fallback span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  opacity: 0.75;
}
.detail .eyebrow { display: block; margin-bottom: 14px; }
.detail h1 { font-size: clamp(34px, 4.4vw, 48px); margin-bottom: 18px; }

.spectable {
  margin: 28px 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.srow {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 20px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.srow:first-child { border-top: none; }
.srow:nth-child(even) { background: var(--gray-soft); }
.srow .k { color: var(--text-muted); font-weight: 500; }
.srow .v { color: var(--text); font-weight: 600; text-align: right; }

.spec-note {
  margin: 28px 0;
  padding: 16px 18px;
  background: var(--gray-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ── Gallery (thumbnail row) ─────────────────────────────── */
.gallery {
  min-width: 0;
}
.thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.thumb {
  width: 66px;
  height: 66px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--gray-soft);
  cursor: pointer;
  transition: 0.15s ease;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb:hover {
  border-color: var(--line-strong);
}
.thumb.active {
  border-color: var(--cb-blue);
  box-shadow: 0 0 0 1px var(--cb-blue);
}

/* ── Price block ─────────────────────────────────────────── */
.price-ladder,
.price-variant {
  width: 100%;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  border-collapse: collapse;
  overflow: hidden;
  font-size: 14px;
}
.price-ladder th,
.price-variant th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--gray-soft);
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
}
.price-ladder th:last-child,
.price-variant th:last-child {
  text-align: right;
}
.price-ladder td,
.price-variant td {
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-weight: 500;
}
.price-ladder td:first-child,
.price-variant td:first-child {
  color: var(--text-muted);
  font-weight: 400;
}
.price-ladder td:last-child,
.price-variant td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--cb-blue);
}
.price-ladder tr:first-child td,
.price-variant tr:first-child td {
  border-top: none;
}
.price-range {
  margin: 24px 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--cb-blue);
}
.price-inquire {
  display: inline-flex;
  align-items: center;
  margin: 24px 0;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(0, 82, 255, 0.06);
  font-size: 15px;
  font-weight: 600;
  color: var(--cb-blue);
}

/* ── Certification chips ─────────────────────────────────── */
.cert-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* ── Trade facts (MOQ / lead time / customization) ───────── */
.facts {
  margin: 0 0 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.facts:empty {
  display: none;
}
.fact {
  display: flex;
  gap: 16px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.fact:first-child {
  border-top: none;
}
.fact:nth-child(even) {
  background: var(--gray-soft);
}
.fact-k {
  flex: 0 0 108px;
  color: var(--text-muted);
  font-weight: 500;
}
.fact-v {
  color: var(--text);
  font-weight: 600;
  margin-left: auto;
  text-align: right;
}

/* ── Product card price ──────────────────────────────────── */
.card-price {
  display: block;
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--cb-blue);
}

/* ── Save to inquiry list（收藏协议 fav-btn）────────────────── */
.fav-btn-card {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.fav-btn-card:hover {
  color: var(--cb-blue);
  border-color: var(--line-strong);
  transform: scale(1.08);
}
.fav-btn-card.is-active {
  color: var(--cb-blue);
  border-color: var(--cb-blue);
}
.fav-btn-card.is-active svg {
  fill: var(--cb-blue);
  stroke: var(--cb-blue);
}
.fav-btn-detail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.fav-btn-detail.is-active svg {
  fill: currentColor;
}
.fav-btn .fav-label-added {
  display: none;
}
.fav-btn.is-active .fav-label-add {
  display: none;
}
.fav-btn.is-active .fav-label-added {
  display: inline;
}

/* ── 商品详情页（detail-rich 富文本）───────────────────────── */
.detail-rich {
  /* 卖家自撰长文按「好读的文章」排版：measure 收到 ~72ch（playbook §3.1 例外） */
  max-width: 72ch;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
}
.detail-rich h1,
.detail-rich h2,
.detail-rich h3 {
  font-family: var(--font-display);
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 32px 0 12px;
}
.detail-rich h1 {
  font-size: 30px;
}
.detail-rich h2 {
  font-size: 25px;
}
.detail-rich h3 {
  font-size: 20px;
}
.detail-rich p {
  margin: 0 0 15px;
}
.detail-rich img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-md);
  display: block;
  margin: 20px auto;
  border: 1px solid var(--line);
}
.detail-rich ul,
.detail-rich ol {
  margin: 0 0 15px;
  padding-left: 22px;
}
.detail-rich li {
  margin-bottom: 6px;
}
.detail-rich hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}
.detail-rich a {
  color: var(--cb-link);
}
.detail-rich table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}
.detail-rich th,
.detail-rich td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
}
.detail-rich th {
  background: var(--gray-soft);
  color: var(--text);
  font-weight: 600;
}
.detail-rich blockquote {
  margin: 20px 0;
  padding: 12px 20px;
  border-left: 3px solid var(--cb-blue);
  background: var(--gray-soft);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

/* ----------------------------------------------------------------- Footer */
footer { background: var(--near-black); color: var(--text-on-dark-muted); padding: 72px 0 36px; }
.foot {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark);
}
footer .brand { color: #fff; }
footer .brand .dot { background: var(--cb-blue); }
.foot .desc { margin-top: 16px; font-size: 15px; line-height: 1.6; color: var(--text-on-dark-muted); max-width: 36ch; }
.foot h5 { color: rgba(255, 255, 255, 0.5); margin-bottom: 18px; }
.foot a, .foot span.desc { display: block; color: var(--text-on-dark-muted); font-size: 15px; margin-bottom: 12px; transition: color 0.15s ease; }
.foot a:hover { color: #fff; }
.legal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
}

/* ----------------------------------------------------------- Responsive */
@media (max-width: 980px) {
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .statgrid { grid-template-columns: repeat(2, 1fr); }
  .split, .detail { grid-template-columns: 1fr; gap: 36px; }
  .detail .hero-img { position: relative; top: 0; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .navlinks { display: none; }
  .block { padding: 60px 0; }
  .hero { padding: 64px 0 56px; }
  .g3, .g2, .g4, .contact-grid { grid-template-columns: 1fr; }
  .statgrid { grid-template-columns: repeat(2, 1fr); }
  .final, .statband { padding: 48px 24px; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .foot { grid-template-columns: 1fr; }
  .statgrid { grid-template-columns: 1fr; }
}

/* ═══════════════ 陈列区块（lookbook / testimonial / press / promo）═══════════════ */
/* 外壳 section[id] 恒渲染（reorderSections 承重），内部内容 gate；无内容时
   .band 无自身内边距 → 整段收成 0 高度，不留空白带。 */
.band { width: 100%; }

/* ------------------------------------------------------- Lookbook (collage) */
.lookbook {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
}
.lookbook .lb-cell {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--gray-surface);
  aspect-ratio: 4 / 5;
  transition: border-color 0.18s ease;
}
.lookbook .lb-cell:first-child {
  grid-row: span 2;
  aspect-ratio: auto;
}
.lookbook .lb-cell:hover { border-color: var(--cb-blue); }
.lookbook .lb-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.lookbook .lb-cell:hover img { transform: scale(1.04); }

/* ------------------------------------------------------------ Testimonial */
.testimonial {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.testimonial .tq {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 26px;
}
.testimonial .tname { display: block; font-size: 15px; font-weight: 600; color: var(--text); }
.testimonial .trole { display: block; font-size: 14px; color: var(--text-muted); margin-top: 4px; }

/* -------------------------------------------------------- Press / logo row */
.press-strip {
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px 0;
}
.press-strip .press-lbl {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.press-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 44px; }
.press-row span {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-muted);
}

/* ---------------------------------------------------------------- Promo band */
.promo-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  background: var(--gray-surface);
  border-radius: var(--r-xl);
  padding: 52px 48px;
}
.promo-band .promo-copy { max-width: 60ch; }
.promo-band .promo-copy .eyebrow { display: block; margin-bottom: 14px; }
.promo-band .promo-copy h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 12px; }
.promo-band .promo-copy p { color: var(--text-muted); font-size: 17px; line-height: 1.55; }
.promo-band .btn { flex: none; }

/* ═══════════ Collapsible rows（Shopify Dawn 范式，产品详情页）═══════════ */
/* 规格 / 认证 / 交易条款折叠；价格表与询盘 CTA 始终常显。原生 <details>，无 JS 也能展开。 */
.acc {
  border-top: 1px solid var(--line);
  margin: 0;
}
.acc:last-of-type { border-bottom: 1px solid var(--line); }
.acc-sum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 2px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}
.acc-sum::-webkit-details-marker { display: none; }
.acc-sum::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s ease;
}
.acc[open] > .acc-sum::after { transform: rotate(-135deg) translate(-2px, -2px); }
.acc-sum:focus-visible { outline: 2px solid var(--cb-blue); outline-offset: 2px; }
.acc-body { padding: 0 0 20px; }
/* 折叠体内的既有组件去掉自身外边距，交给 .acc-body 统一控 */
.acc-body .spectable,
.acc-body .cert-chips,
.acc-body .facts { margin: 0; }

/* ═══════════ 详情页图库：crossfade + lightbox ═══════════ */
.detail .hero-img .main-img { transition: opacity 0.18s ease; cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(10, 11, 13, 0.86);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  animation: lb-in 0.2s ease;
  cursor: zoom-out;
}
@keyframes lb-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--r-md);
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.24); }
.lightbox-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 980px) {
  .lookbook { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .hero { min-height: 68vh; }
  .lookbook { grid-template-columns: 1fr; }
  .lookbook .lb-cell:first-child { grid-row: auto; aspect-ratio: 4 / 5; }
  .promo-band { padding: 34px 26px; }
}

/* reduced-motion：关掉缩放/淡入动效，rollover 的 opacity 切换保留（功能不能丢） */
@media (prefers-reduced-motion: reduce) {
  .pc-img { transition: none; }
  .prod:hover .pc-img { transform: none; }
  .lookbook .lb-cell img { transition: none; }
  .lookbook .lb-cell:hover img { transform: none; }
  .detail .hero-img .main-img { transition: none; }
  .acc-sum::after { transition: none; }
  .lightbox { animation: none; }
}

/* ── header brand（WEB-HDR1）：公司名单行、超出省略号截断（完整名在 title）。
   名字是页头里唯一可收缩项，右侧按钮 / 菜单不被挤压，页头不被撑高。
   用「可任意处断行 + 限 1 行」而非 nowrap：nowrap 的最小内容宽 = 整个名字，brand 要么
   截不动、要么得设 min-width:0 —— 后者在整行放不下时会把 brand 压到比图标还窄、图标压到
   旁边链接上。这样 brand 最窄 = 图标 + 1 个字，永不与邻居重叠。 */
nav .brand {
  flex-shrink: 1;
}
nav .brand > :not(.brand-name),
nav .brand ~ * {
  flex-shrink: 0;
}
nav .brand-name {
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
}
/* 手机宽（≤480）：页头按钮一个不藏，只收紧按钮字号 / 左右内边距 / 间距给公司名让位。
   数值 = 本模板原值与 14px / 12px / 8px 取小（只减不增）。全按 class 选元素：静态站与
   WordPress 两档共用这份 CSS，不依赖只在静态站注入的汉堡菜单或按 .html 改写的链接。 */
@media (max-width: 480px) {
  nav .brand {
    gap: 8px;
  }
  nav .brand ~ * {
    gap: 8px;
  }
  nav .brand ~ * :is(.btn, .ghost) {
    font-size: 14px;
    padding-left: 12px;
    padding-right: 12px;
    white-space: nowrap;
  }
}

/* 最窄手机宽（WEB-HDR2，≤400）且页头有 logo：只显示 logo，公司名视觉隐藏——不删节点、不用
   display:none，读屏照读，完整名仍在链接 title 与 logo alt。「有 logo」按 authored 结构判定：
   有 logo 时 <img> 紧挨在 .brand-name 前，无 logo 时那里是占位图标 span，所以无 logo 的站照旧
   单行省略。静态 / WordPress 两档同一份 HTML 与 CSS。断点：30 套实测 ≤400 宽时过半模板连
   「ACME」都放不下，412 起 28/30 放得下（常见机型 360 / 375 / 390 / 393 在内，412 / 414 / 430 在外）。 */
@media (max-width: 400px) {
  nav .brand > img + .brand-name {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
}
