/* =========================================================
   图优三维 TuYou3D — 科研精密仪器风设计系统
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f8fc;
  --bg-dark: #0b1120;
  --bg-dark-2: #111a2e;
  --surface: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --primary-soft: #eff6ff;
  --laser: #059669;
  --laser-soft: #ecfdf5;
  --cyan: #0ea5e9;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.14);

  --font-sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
  border-radius: 8px;
}

.btn-lg {
  padding: 13px 24px;
  font-size: 0.98rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.22);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.28);
}

.btn-outline {
  background: #fff;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.btn-white {
  background: #fff;
  color: var(--bg-dark);
}

.btn-white:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}

.btn-ghost-white {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-ghost-white:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* ---------- Header & Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.nav-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
  white-space: nowrap;
}

.brand-text strong {
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--text);
}

.brand-text small {
  font-size: 0.67rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.18s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-cta-short {
  display: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 10px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 20px 22px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  padding: 8px 4px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ---------- Hero ---------- */
.hero {
  padding: 68px 0 80px;
  background:
    radial-gradient(circle at 12% 15%, rgba(29, 78, 216, 0.06), transparent 42%),
    radial-gradient(circle at 86% 20%, rgba(5, 150, 105, 0.06), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #f8fafd 100%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-areas:
    "copy visual"
    "metrics visual";
  column-gap: 44px;
  row-gap: 0;
  align-items: center;
}

.hero-copy {
  grid-area: copy;
}

.hero-visual {
  grid-area: visual;
}

.hero-metrics {
  grid-area: metrics;
  align-self: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--laser);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.18);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

.text-gradient {
  background: linear-gradient(115deg, #1d4ed8 0%, #0284c7 52%, #059669 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 28px;
  font-size: 1.04rem;
  color: var(--text-secondary);
  max-width: 560px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.metric-item strong {
  display: block;
  font-size: 1rem;
  color: var(--text);
}

.metric-item span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Hero Viewport Card */
.viewport-card {
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.viewport-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-dark-2);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.viewport-dots {
  display: flex;
  gap: 6px;
}

.viewport-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.35);
}

.viewport-title {
  font-size: 0.78rem;
  color: #cbd5e1;
  font-family: var(--font-mono);
}

.canvas-wrap {
  position: relative;
  width: 100%;
  background: radial-gradient(circle at 50% 45%, #172540 0%, #090f1d 100%);
}

.hero-canvas-wrap {
  height: 410px;
}

.hero-cloud-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  color: #cbd5e1;
  font-size: 0.85rem;
  pointer-events: none;
}

.hero-cloud-status[hidden] {
  display: none;
}

.canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

.canvas-wrap canvas:active {
  cursor: grabbing;
}

.canvas-hud {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.hud-chip {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: #e2e8f0;
  font-size: 0.74rem;
}

.hud-subtle {
  color: #94a3b8;
}

/* 按输入设备切换操作提示：鼠标设备显示 hint-pointer，纯触屏设备显示 hint-touch */
.hint-touch {
  display: none;
}

@media (hover: none) and (pointer: coarse) {
  .hint-pointer {
    display: none;
  }

  .hint-touch {
    display: inline;
  }
}

/* 首屏普通滚轮滚动页面时的「Ctrl + 滚轮缩放」轻提示 */
.canvas-wheel-hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(9, 15, 29, 0.42);
  color: #e2e8f0;
  font-size: 0.92rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.canvas-wheel-hint.is-visible {
  opacity: 1;
}

.canvas-wheel-hint span {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.canvas-wheel-hint kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(30, 41, 59, 0.95);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-align: center;
}

/* ---------- Sections ---------- */
.section {
  padding: 84px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.section-head.center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 2.5vw, 2.15rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.section-head p {
  margin: 0;
  color: var(--text-secondary);
  max-width: 650px;
}

/* Filter Tabs */
.filter-tabs {
  display: inline-flex;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: 11px;
  gap: 4px;
}

.filter-tab {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.18s ease;
}

.filter-tab.active {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* ---------- Product Cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.product-media {
  position: relative;
  height: 230px;
  background: linear-gradient(135deg, #0f172a 0%, #172540 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card[data-cat="structured"] .product-media {
  width: 100%;
  height: auto;
  max-height: 230px;
  aspect-ratio: 20 / 9;
}

.product-media img.product-real-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-media img.product-real-photo.is-loaded {
  opacity: 1;
}

.product-card[data-id="bino-laser"] img.product-real-photo {
  object-position: center top;
}

.product-media .schematic-svg {
  width: 100%;
  height: 100%;
  padding: 14px 20px;
}

.product-photo-trigger {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-photo-trigger:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: -3px;
}

.product-card:hover .product-real-photo {
  transform: scale(1.03);
}

.card-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.badge-cat {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
}

.badge-cat.laser {
  background: rgba(6, 78, 59, 0.86);
  color: #a7f3d0;
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.badge-cat.structured {
  background: rgba(37, 99, 235, 0.28);
  color: #bfdbfe;
  border: 1px solid rgba(96, 165, 250, 0.4);
}

.badge-tier {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
}

.product-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.product-body h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.35;
}

.product-title-btn {
  border: none;
  background: none;
  padding: 0;
  text-align: left;
  color: inherit;
  font: inherit;
  font-weight: 700;
  transition: color 0.18s ease;
}

.product-title-btn:hover {
  color: var(--primary);
}

.card-task-fit {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 4px 0 14px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--primary-soft);
  border: 1px solid rgba(29, 78, 216, 0.14);
}

.card-task-label {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.78);
  padding: 2px 7px;
  border-radius: 999px;
}

.card-task-fit p {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
}

.card-highlights-head {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}

.card-key-diffs {
  margin: 0 0 18px;
  font-size: 0.86rem;
  line-height: 1.55;
}

.card-key-diffs li {
  margin-bottom: 7px;
}

.card-key-diffs li:last-child {
  margin-bottom: 0;
}

.card-key-diffs strong {
  color: var(--text);
  font-weight: 700;
}

.card-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 14px;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.card-meta-strip span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-meta-strip span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.65;
}

.price-block {
  text-align: right;
  flex-shrink: 0;
}

.price-main {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-mono);
  line-height: 1.15;
}

.price-sub {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.product-tagline {
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.spec-pill {
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.product-highlights {
  margin: 0 0 18px;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.product-highlights li {
  margin-bottom: 5px;
}

.card-deliverables {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.card-deliv-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.79rem;
  line-height: 1.45;
}

.card-deliv-tag {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.card-deliv-tag.hw {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.card-deliv-tag.sw {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.card-deliv-val {
  color: var(--text-secondary);
}

.promo-strip {
  margin-bottom: 18px;
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--laser-soft);
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.82rem;
  font-weight: 600;
}

.product-actions {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
}

.product-actions .btn {
  flex: 1;
}

.product-actions .btn-icon-share {
  flex: 0 0 auto;
  width: 42px;
  padding: 0;
  color: var(--text-secondary);
}

.product-actions .btn-icon-share:hover {
  color: var(--primary);
}

/* ---------- Selection Guide & Comparison Table ---------- */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.guide-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.guide-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.guide-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
}

.tag-laser {
  background: var(--laser-soft);
  color: var(--laser);
}

.tag-sl {
  background: var(--primary-soft);
  color: var(--primary);
}

.guide-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.guide-card p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.table-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.table-scroll-hint {
  display: none;
  padding: 9px 14px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 820px;
  font-size: 0.88rem;
}

.compare-table th,
.compare-table td {
  padding: 15px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.compare-table thead th {
  background: #f8fafc;
  font-weight: 700;
  color: var(--text);
  border-bottom: 2px solid var(--border);
}

.compare-table thead th:first-child,
.compare-table tbody th {
  position: sticky;
  left: 0;
  z-index: 2;
  box-shadow: inset -1px 0 0 var(--border), 4px 0 10px -6px rgba(15, 23, 42, 0.16);
}

.compare-table thead th:first-child {
  z-index: 3;
}

.compare-table tbody th {
  width: 145px;
  background: #fcfdff;
  color: var(--text-secondary);
  font-weight: 600;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-price {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
}

.compare-demo-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-soft);
  border: none;
  padding: 5px 10px;
  border-radius: 6px;
}

.compare-demo-btn:hover {
  background: #dbeafe;
}

/* ---------- Interactive 3D Lab ---------- */
.lab-shell {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}

.lab-stage {
  position: relative;
  min-height: 510px;
  background: radial-gradient(circle at 50% 45%, #172540 0%, #070d19 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: var(--shadow-lg);
}

.lab-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

.lab-stage canvas:active {
  cursor: grabbing;
}

.lab-overlay-top {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.lab-stat {
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  padding: 8px 13px;
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  color: #94a3b8;
}

.lab-stat strong {
  font-size: 0.88rem;
  color: #f8fafc;
  font-family: var(--font-mono);
}

.lab-overlay-bottom {
  position: absolute;
  left: 16px;
  bottom: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.68);
  color: #94a3b8;
  font-size: 0.74rem;
  pointer-events: none;
}

.lab-controls {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-sm);
}

.control-group > label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  background: var(--bg-alt);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.segmented-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.upload-cloud-btn {
  border-style: dashed;
  border-color: #93c5fd;
  background: #f8fbff;
  color: var(--primary);
}

.upload-cloud-btn:hover {
  border-style: solid;
  background: var(--primary-soft);
}

.lab-stage.drag-over {
  outline: 3px dashed #38bdf8;
  outline-offset: -6px;
}

.range-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.range-header label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.range-header span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 700;
}

.range-input {
  width: 100%;
  accent-color: var(--primary);
  cursor: pointer;
}

.control-actions-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.seg-btn {
  border: none;
  background: transparent;
  padding: 8px 6px;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.16s ease;
}

.seg-btn.active {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
}

.toggle-row:last-child {
  margin-bottom: 0;
}

.toggle-row strong {
  display: block;
  font-size: 0.84rem;
  color: var(--text);
}

.toggle-row small {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.toggle-row input {
  display: none;
}

.toggle-ui {
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.toggle-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.toggle-row input:checked + .toggle-ui {
  background: var(--laser);
}

.toggle-row input:checked + .toggle-ui::after {
  transform: translateX(18px);
}

.control-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.demo-downloads {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.demo-downloads-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.demo-download-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.demo-dl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 0.78rem;
}

.demo-dl-name {
  font-weight: 600;
  color: var(--text);
}

.demo-dl-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.code-chip {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 2px 7px;
  border-radius: 5px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.link-mini {
  color: var(--primary);
  font-weight: 600;
  background: none;
  border: none;
  padding: 2px 4px;
  font-size: 0.76rem;
}

.link-mini:hover {
  text-decoration: underline;
}

/* ---------- Architecture ---------- */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.arch-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.arch-card-accent {
  border-color: rgba(29, 78, 216, 0.35);
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
}

.arch-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.arch-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.arch-card p {
  margin: 0 0 18px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.arch-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---------- Assurance ---------- */
.assurance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.assurance-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.icon-badge svg {
  width: 24px;
  height: 24px;
}

.icon-badge.blue {
  background: var(--primary-soft);
  color: var(--primary);
}

.icon-badge.green {
  background: var(--laser-soft);
  color: var(--laser);
}

.icon-badge.slate {
  background: #f1f5f9;
  color: var(--text);
}

.assurance-card h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

.assurance-card p {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.muted-note {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---------- FAQ ---------- */
.faq-container {
  max-width: 860px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 22px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--primary);
}

.faq-a {
  display: none;
  padding: 0 22px 18px;
  color: var(--text-secondary);
  font-size: 0.91rem;
  line-height: 1.7;
}

.faq-item.open .faq-a {
  display: block;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(125deg, #0b1120 0%, #172a52 60%, #0d3b46 100%);
  color: #fff;
  padding: 62px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.cta-banner h2 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 2.3vw, 1.9rem);
}

.cta-banner p {
  margin: 0;
  color: #cbd5e1;
  max-width: 600px;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #070c17;
  color: #94a3b8;
  padding: 36px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.footer-brand strong {
  color: #f8fafc;
  display: block;
  margin-bottom: 4px;
}

.footer-brand p {
  margin: 0;
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a:hover {
  color: #fff;
}

/* ---------- Modals ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(7, 13, 26, 0.74);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-panel {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.modal-xl {
  max-width: 980px;
}

.modal-lg {
  max-width: 880px;
}

.modal-md {
  max-width: 660px;
}

.modal-contact {
  max-width: 780px;
}

.modal-header {
  position: relative;
  z-index: 3;
  background: var(--surface);
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.modal-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.22rem;
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.share-link-btn {
  font-size: 0.8rem;
  padding: 6px 12px;
}

.share-link-btn svg {
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .share-link-btn span {
    display: none;
  }

  .share-link-btn {
    padding: 7px 9px;
  }
}

.modal-close {
  border: none;
  background: var(--bg-alt);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.modal-close:hover {
  background: #e2e8f0;
  color: var(--text);
}

.modal-body {
  position: relative;
  z-index: 1;
  padding: 22px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.modal-footer {
  position: relative;
  z-index: 3;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pm-price-label {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.pm-price {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  color: var(--primary);
}

.pm-footer-actions {
  display: flex;
  gap: 10px;
}

/* Modal Tabs */
.pm-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  overflow-x: auto;
}

.pm-tab {
  border: none;
  background: none;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.pm-tab .tab-label-short {
  display: none;
}

.pm-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* 详情页 Tab 1：前置扫描案例与工况边界 */
.case-pair-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 12px;
}

.case-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.case-media-btn {
  border: none;
  border-radius: 0;
  aspect-ratio: 16 / 10;
  width: 100%;
}

.case-card-foot {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  justify-content: space-between;
}

.case-card-foot p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.case-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.case-conditions {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-cond-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 0.8rem;
  color: var(--text);
}

.case-cond-chips strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.case-cond-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.case-cond-note strong {
  color: var(--text-secondary);
}

.pm-pane {
  display: none;
}

.pm-pane.active {
  display: block;
}

.bom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.bom-table th,
.bom-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.bom-table th {
  background: var(--bg-alt);
  color: var(--text-secondary);
  font-weight: 600;
}

.algo-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.algo-item {
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fcfdff;
}

.algo-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
}

.algo-item p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ---------- 弹窗「配置与软硬件清单」清爽规格书版式（Spec Sheet） ---------- */
.spec-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.spec-kpi-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  min-width: 0;
}

.spec-kpi {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 18px;
  border-right: 1px solid var(--border);
}

.spec-kpi:last-child {
  padding-right: 0;
  border-right: none;
}

.spec-kpi-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.spec-kpi strong {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
}

.spec-quick-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.spec-link-btn {
  padding: 6px 11px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}

.spec-link-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.spec-link-btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.spec-link-btn.primary:hover {
  background: #1d4ed8;
  color: #ffffff;
}

.spec-promo-note {
  margin-bottom: 20px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--laser-soft);
  border-left: 3px solid #10b981;
  color: #065f46;
  font-size: 0.83rem;
  font-weight: 600;
}

.spec-block {
  margin-top: 26px;
  scroll-margin-top: 12px;
}

.spec-block:first-of-type {
  margin-top: 4px;
}

.spec-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.spec-block-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.spec-block-title h4 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
}

.spec-block-title span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* 紧凑双图对照 */
.spec-hw-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.spec-hw-photo {
  position: relative;
  aspect-ratio: 16 / 8.6;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #0f172a;
  cursor: pointer;
  display: block;
  text-align: left;
}

.spec-hw-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.35s ease;
}

.spec-hw-photo img.is-loaded {
  opacity: 1;
}

.spec-hw-photo:hover img {
  transform: scale(1.025);
}

.spec-hw-photo-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 20px 12px 9px;
  background: linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.82) 100%);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.spec-hw-photo-bar strong {
  font-size: 0.8rem;
  font-weight: 600;
  color: #f8fafc;
}

.spec-hw-photo-bar small {
  font-size: 0.72rem;
  color: #cbd5e1;
  flex-shrink: 0;
}

/* 统一分段规格表（硬件 + 软件共用清爽容器） */
.spec-sheet {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
}

.spec-group-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 14px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 0.77rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.spec-group-bar:first-child {
  border-top: none;
}

.spec-group-bar.is-core span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  margin-right: 7px;
  vertical-align: 1px;
}

.spec-group-bar small {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-muted);
}

.spec-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.35fr) minmax(0, 1.85fr) auto;
  align-items: baseline;
  gap: 14px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.spec-rows .spec-row:last-child {
  border-bottom: none;
}

.spec-row-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.spec-row.is-core-row .spec-row-name {
  font-weight: 700;
}

.spec-row-note {
  font-size: 0.81rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.spec-row-qty {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  text-align: right;
  min-width: 52px;
}

.spec-row.is-core-row .spec-row-qty {
  color: #047857;
}

.spec-footnote {
  margin: 10px 2px 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 软件 4 行严格两列对齐交付栈 */
.sw-row {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.sw-row:last-child {
  border-bottom: none;
}

.sw-row-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.sw-row-title {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.sw-row-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
}

.sw-row-title strong {
  font-size: 0.88rem;
  color: var(--text);
}

.sw-type-tag {
  margin-left: 20px;
  font-size: 0.71rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 4px;
}

.sw-type-tag.source {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.sw-type-tag.dll {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

.sw-type-tag.installer {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
}

.sw-row-body {
  min-width: 0;
}

.sw-row-meta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
  line-height: 1.45;
}

.sw-row-desc {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.sw-row-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.sw-video-prefix {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 2px;
}

.sw-video-dur {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.69rem;
  opacity: 0.72;
  margin-left: 2px;
}

.spec-video-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: rgba(37, 99, 235, 0.05);
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.spec-video-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.spec-video-link:hover .sw-video-dur {
  opacity: 0.9;
}

/* 清爽无重边框两列核心算法模块 */
.spec-subhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 10px;
}

.spec-subhead h5 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.spec-subhead span {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.algo-clean-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.algo-clean-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #ffffff;
}

.algo-clean-item.is-star {
  background: #f8fdfb;
}

.algo-clean-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.algo-clean-idx {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.5;
  flex-shrink: 0;
}

.algo-clean-content {
  min-width: 0;
}

.algo-clean-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 3px;
}

.algo-clean-title strong {
  font-size: 0.85rem;
  color: var(--text);
}

.algo-star-mark {
  font-size: 0.72rem;
  font-weight: 700;
  color: #047857;
}

.algo-clean-content p {
  margin: 0;
  font-size: 0.79rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Tab 2 视频分组与直达定位高亮 */
.video-group {
  margin-bottom: 18px;
}

.video-group:last-child {
  margin-bottom: 0;
}

.video-group-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding-left: 9px;
  border-left: 3px solid var(--primary);
}

.video-group-label span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.video-group-label small {
  font-size: 0.74rem;
  color: var(--text-muted);
}

@keyframes videoFocusPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.55); border-color: var(--primary); }
  55% { box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.15); border-color: var(--primary); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.video-card.video-card-highlight {
  animation: videoFocusPulse 1.6s ease;
}

.info-callout {
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: 10px;
  background: var(--primary-soft);
  border: 1px solid #bfdbfe;
  font-size: 0.84rem;
  color: #1e3a8a;
}

.info-callout.green {
  background: var(--laser-soft);
  border-color: #a7f3d0;
  color: #065f46;
}

/* ---------- Product Media Gallery & Videos (Inside Modal) ---------- */
.media-section-title {
  margin: 0 0 12px;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.media-section-title small {
  font-weight: 500;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.gallery-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fcfdff;
  display: flex;
  flex-direction: column;
}

.gallery-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  overflow: hidden;
  cursor: pointer;
}

.gallery-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.25s ease;
}

.gallery-thumb img.is-loaded {
  opacity: 1;
}

.gallery-thumb:hover img {
  transform: scale(1.03);
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  color: #94a3b8;
  gap: 6px;
}

.gallery-placeholder svg {
  width: 28px;
  height: 28px;
  color: #38bdf8;
  opacity: 0.85;
}

.gallery-placeholder strong {
  font-size: 0.84rem;
  color: #e2e8f0;
}

.gallery-placeholder code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(15, 23, 42, 0.7);
  padding: 2px 7px;
  border-radius: 5px;
  color: #7dd3fc;
}

.gallery-meta {
  padding: 10px 12px;
}

.gallery-meta strong {
  display: block;
  font-size: 0.86rem;
  color: var(--text);
  margin-bottom: 2px;
}

.gallery-meta span {
  font-size: 0.77rem;
  color: var(--text-secondary);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.video-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.video-stage {
  position: relative;
  z-index: 0;
  aspect-ratio: 16 / 9;
  background: #0b1120;
  overflow: hidden;
  isolation: isolate;
  contain: layout paint;
}

.video-stage iframe,
.video-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
}

.video-stage video {
  object-fit: contain;
}

/* 视频按需点击播放封面（Facade：零初始视频解码开销） */
.video-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: radial-gradient(circle at 50% 35%, #172540 0%, #0b1120 100%);
  display: block;
  overflow: hidden;
  cursor: pointer;
}

.video-poster-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, filter 0.25s ease;
}

.video-facade:hover .video-poster-img {
  transform: scale(1.03);
  filter: brightness(0.82);
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, rgba(6, 11, 24, 0.14) 0%, rgba(6, 11, 24, 0.56) 100%);
  transition: background-color 0.2s ease;
}

.video-play-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(29, 78, 216, 0.9);
  border: 2px solid rgba(147, 197, 253, 0.85);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.55);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.video-facade:hover .video-play-circle {
  transform: scale(1.09);
  background: #2563eb;
}

.video-play-hint {
  font-size: 0.76rem;
  font-weight: 600;
  color: #f8fafc;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.video-slot-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  background: radial-gradient(circle at 50% 35%, #172540 0%, #0b1120 100%);
  color: #cbd5e1;
  gap: 6px;
}

.play-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(29, 78, 216, 0.28);
  border: 1px solid rgba(96, 165, 250, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #93c5fd;
  margin-bottom: 2px;
}

.video-slot-fallback strong {
  font-size: 0.84rem;
  color: #f8fafc;
}

.video-slot-fallback small {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.45;
}

.video-meta {
  padding: 11px 13px;
}

.video-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.video-meta-top strong {
  font-size: 0.86rem;
  color: var(--text);
}

.video-duration {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
  flex-shrink: 0;
}

.video-meta p {
  margin: 0;
  font-size: 0.77rem;
  color: var(--text-secondary);
}

/* Lightbox */
.lightbox-backdrop {
  z-index: 100;
  background: rgba(7, 12, 23, 0.88);
}

/* ---------- Per-Kit Embedded 3D Point Cloud Panel (Inside Product Modal) ---------- */
.card-3d-pill {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 4;
  border: 1px solid rgba(56, 189, 248, 0.55);
  background: rgba(15, 23, 42, 0.9);
  color: #e0f2fe;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  transition: all 0.18s ease;
}

.card-3d-pill:hover {
  background: #1d4ed8;
  border-color: #60a5fa;
  color: #fff;
  transform: translateY(-1px);
}

.pm-pc-stage {
  position: relative;
  height: 430px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #071629;
  border: 1px solid rgba(148, 163, 184, 0.25);
  margin-bottom: 14px;
}

.pm-pc-stage.drag-over {
  outline: 3px dashed #38bdf8;
  outline-offset: -6px;
}

.pm-pc-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

.pm-pc-stage canvas:active {
  cursor: grabbing;
}

.pm-cloud-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  pointer-events: none;
}

.pm-cloud-loading[hidden] {
  display: none;
}

.pm-cloud-loading-card {
  width: min(320px, 100%);
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  background: #111f35;
  color: #e2e8f0;
}

.pm-cloud-loading-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.85rem;
  font-weight: 600;
}

#pmCloudLoadingValue {
  font-family: var(--font-mono);
  color: #7dd3fc;
}

#pmCloudProgress {
  display: block;
  width: 100%;
  height: 8px;
  accent-color: #38bdf8;
}

.pm-pc-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 14px;
}

.pm-pc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pm-pc-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

.pm-pc-label strong {
  font-family: var(--font-mono);
  color: var(--primary);
  margin-left: 4px;
}

.pm-size-group {
  min-width: 210px;
  flex: 1;
  max-width: 260px;
}

.pm-pc-row-actions {
  justify-content: flex-end;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.mini-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.mini-check input {
  accent-color: var(--primary);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.pm-pc-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pm-pc-download {
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fcfdff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 780px) {
  .pm-pc-stage {
    height: 310px;
  }
}

.lightbox-inner {
  position: relative;
  max-width: min(1040px, 94vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-inner img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.lightbox-inner img.is-qr-zoom {
  width: min(320px, 78vw);
  height: auto;
  background: #ffffff;
  padding: 16px;
  image-rendering: pixelated;
}

.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.lightbox-caption {
  margin-top: 12px;
  color: #e2e8f0;
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 780px) {
  .gallery-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact Modal */
.contact-intro {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 20px;
  align-items: stretch;
}

.taobao-order-card,
.wechat-contact-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.taobao-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.taobao-card-head .channel-label {
  margin-bottom: 0;
}

.taobao-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #c2410c;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.28);
  padding: 2px 9px;
  border-radius: 999px;
}

.cm-kit-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.cm-kit-tab {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  padding: 7px 9px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.cm-kit-tab small {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.cm-kit-tab:hover {
  border-color: var(--primary);
  color: var(--text);
}

.cm-kit-tab.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}

.cm-kit-tab.active small {
  color: var(--primary);
  font-weight: 700;
}

.taobao-qr-stage {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 2px;
}

.qr-zoom-btn {
  position: relative;
  border: 1px solid var(--border);
  background: #ffffff;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.qr-zoom-btn:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.qr-zoom-tip {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1;
}

.taobao-qr-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.taobao-kit-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.taobao-kit-row strong {
  font-size: 0.94rem;
  color: var(--text);
}

.taobao-kit-price {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
}

.taobao-scan-note {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.taobao-mobile-tip {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.taobao-web-link {
  align-self: flex-start;
  margin-top: 2px;
}

.qr-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
}

.wechat-qr-box {
  background: var(--surface);
  padding: 12px;
  margin-top: auto;
}

.wechat-qr-box .qr-img {
  max-width: 176px;
  margin: 0 auto 8px;
}

.qr-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 10px;
}

.qr-img-pixel {
  margin-bottom: 0;
  border-radius: 4px;
  image-rendering: pixelated;
}

/* 详情页 Tab 4：淘宝扫码与交付说明 */
.pm-buy-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: start;
}

.pm-buy-qr-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pm-buy-qr-frame {
  width: 184px;
  margin: 2px auto;
}

.pm-buy-notes {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.pm-buy-notes h4 {
  margin: 0 0 12px;
  font-size: 0.96rem;
  color: var(--text);
}

.pm-buy-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.9;
}

.qr-fallback {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: #fff;
  border: 1px dashed var(--border-strong);
  margin-bottom: 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  gap: 6px;
  color: var(--text-muted);
}

.qr-fallback svg {
  width: 34px;
  height: 34px;
}

.qr-fallback strong {
  font-size: 0.85rem;
  color: var(--text);
}

.qr-fallback small {
  font-size: 0.72rem;
  line-height: 1.45;
}

.qr-caption {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.channel-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.channel-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wechat-copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px 8px 12px;
  border-radius: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.wechat-id-code {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
  user-select: all;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wechat-copy-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.wechat-copy-btn.is-copied {
  border-color: rgba(16, 185, 129, 0.55);
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.copy-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}

.copy-box p {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-dark);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 120;
  box-shadow: var(--shadow-md);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "visual"
      "metrics";
    row-gap: 18px;
  }

  .lab-shell {
    grid-template-columns: 1fr;
  }

  .guide-grid,
  .arch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .assurance-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .table-scroll-hint {
    display: block;
  }
}

@media (max-width: 780px) {
  .nav-links {
    display: none;
  }

  .nav-actions {
    gap: 7px;
  }

  .nav-cta-btn {
    padding: 6px 10px;
    font-size: 0.78rem;
  }

  .nav-cta-full {
    display: none;
  }

  .nav-cta-short {
    display: inline;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 14px;
    gap: 10px;
  }

  .product-grid,
  .guide-grid,
  .arch-grid,
  .algo-list,
  .spec-hw-photos,
  .case-pair-grid,
  .algo-clean-grid,
  .gallery-grid,
  .video-grid,
  .contact-grid,
  .pm-buy-grid,
  .taobao-qr-stage {
    grid-template-columns: 1fr;
  }

  .taobao-qr-frame {
    width: 184px;
    margin: 0 auto;
  }

  .compare-table tbody th {
    width: 112px;
    padding: 12px 10px;
    font-size: 0.8rem;
  }

  .spec-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .spec-kpi {
    padding-right: 0;
    border-right: none;
  }

  .spec-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 10px;
  }

  .spec-row-note {
    grid-column: 1 / -1;
    order: 3;
  }

  .sw-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .sw-row-actions {
    justify-content: flex-start;
    max-width: none;
  }

  .section {
    padding: 56px 0;
  }

  .hero-canvas-wrap {
    height: 230px;
  }

  .lab-stage {
    min-height: 360px;
  }
}

@media (max-width: 600px) {
  .pm-tabs {
    gap: 0;
    overflow-x: visible;
    margin-bottom: 16px;
  }

  .pm-tab {
    flex: 1;
    text-align: center;
    padding: 10px 4px;
    font-size: 0.86rem;
  }

  .pm-tab .tab-label-full {
    display: none;
  }

  .pm-tab .tab-label-short {
    display: inline;
  }

  .modal-footer {
    padding: 10px 16px;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .pm-price-label {
    font-size: 0.68rem;
  }

  .pm-price {
    font-size: 1.15rem;
  }

  .pm-close-desktop {
    display: none;
  }

  .pm-footer-actions .btn {
    padding: 9px 14px;
    font-size: 0.84rem;
    white-space: nowrap;
  }
}


/* =========================================================
   光学实验室高阶视觉与交互增强包（深空暗室首屏 / HUD准星 / 雷达光斑 / 激光扫掠 / 滚动渐入）
   ========================================================= */

/* 1. 顶部激光阅读进度条 + 导航栏在深空首屏上自适应暗色玻璃 */
.site-header {
  transition: background-color 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.site-header.over-hero {
  background: rgba(6, 11, 24, 0.76);
  border-bottom-color: rgba(148, 163, 184, 0.16);
}

.site-header.over-hero .brand-text strong {
  color: #f8fafc;
}

.site-header.over-hero .brand-text small {
  color: #94a3b8;
}

.site-header.over-hero .nav-links a {
  color: #cbd5e1;
}

.site-header.over-hero .nav-links a:hover {
  color: #38bdf8;
}

.site-header.over-hero .menu-toggle {
  border-color: rgba(148, 163, 184, 0.3);
}

.site-header.over-hero .menu-toggle span {
  background: #f8fafc;
}

.site-header.over-hero .mobile-nav {
  background: rgba(9, 17, 34, 0.96);
  border-bottom-color: rgba(148, 163, 184, 0.18);
}

.site-header.over-hero .mobile-nav a {
  color: #e2e8f0;
}

.scroll-progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: transparent;
  pointer-events: none;
  overflow: hidden;
}

.scroll-progress-bar {
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, #0ea5e9 0%, #38bdf8 48%, #10b981 100%);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.65);
  will-change: transform;
}

/* 2. 深空光学暗室首屏（Hero） */
.hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 88px;
  background:
    linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px) 0 0 / 44px 44px,
    radial-gradient(circle at 18% 22%, rgba(29, 78, 216, 0.24), transparent 46%),
    radial-gradient(circle at 84% 78%, rgba(16, 185, 129, 0.18), transparent 44%),
    linear-gradient(165deg, #060b18 0%, #0a1428 54%, #081829 100%);
  border-bottom: 1px solid rgba(56, 189, 248, 0.22);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
}

.hero::before {
  width: 680px;
  height: 680px;
  top: -240px;
  left: -180px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.28) 0%, rgba(14, 165, 233, 0.1) 38%, transparent 70%);
  animation: auroraDriftA 18s ease-in-out infinite alternate;
}

.hero::after {
  width: 640px;
  height: 640px;
  right: -180px;
  bottom: -240px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, rgba(14, 165, 233, 0.08) 40%, transparent 70%);
  animation: auroraDriftB 20s ease-in-out infinite alternate;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero .eyebrow {
  background: rgba(14, 165, 233, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.34);
  color: #7dd3fc;
}

.hero .dot-live {
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.22), 0 0 12px rgba(52, 211, 153, 0.75);
  animation: livePulse 2.4s ease-in-out infinite;
}

.hero h1 {
  color: #f8fafc;
}

.hero .text-gradient {
  background: linear-gradient(110deg, #60a5fa 0%, #38bdf8 44%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .hero-lead {
  color: #cbd5e1;
}

.hero .hero-lead strong {
  color: #f8fafc;
  font-weight: 600;
}

.hero .btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #0284c7 100%);
  box-shadow: 0 8px 26px rgba(37, 99, 235, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.hero .btn-primary:hover {
  box-shadow: 0 12px 32px rgba(14, 165, 233, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.hero .btn-outline {
  background: rgba(15, 23, 42, 0.56);
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.34);
}

.hero .btn-outline:hover {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.65);
  color: #fff;
}

.hero .hero-metrics {
  border-top-color: rgba(148, 163, 184, 0.2);
}

.hero .metric-item {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(148, 163, 184, 0.14);
  transition: border-color 0.22s ease, background-color 0.22s ease, transform 0.22s ease;
}

.hero .metric-item:hover {
  border-color: rgba(56, 189, 248, 0.38);
  background: rgba(15, 23, 42, 0.68);
  transform: translateY(-2px);
}

.hero .metric-item strong {
  color: #f8fafc;
}

.hero .metric-item span {
  color: #94a3b8;
}

/* 3. 首屏与详情 3D 视口发光玻璃质感 + 精密光学 HUD 准星 */
.hero .viewport-card {
  background: rgba(9, 17, 34, 0.86);
  border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow:
    0 28px 72px rgba(2, 6, 23, 0.65),
    0 0 0 1px rgba(52, 211, 153, 0.12),
    0 0 54px rgba(14, 165, 233, 0.16);
}

.hero .viewport-bar {
  background: rgba(15, 23, 42, 0.92);
  border-bottom-color: rgba(56, 189, 248, 0.16);
}

/* 首屏右侧：同组样件扫描现场对照条 */
.hero-pair-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(11, 20, 38, 0.96);
  border-top: 1px solid rgba(56, 189, 248, 0.18);
}

.hero-pair-thumb {
  position: relative;
  flex-shrink: 0;
  width: 88px;
  height: 54px;
  padding: 0;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 7px;
  overflow: hidden;
  background: #0f172a;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.hero-pair-thumb:hover {
  border-color: #38bdf8;
  transform: translateY(-1px);
}

.hero-pair-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-pair-thumb-tag {
  position: absolute;
  left: 4px;
  bottom: 3px;
  font-size: 0.62rem;
  font-weight: 700;
  color: #f8fafc;
  background: rgba(6, 11, 24, 0.78);
  padding: 1px 5px;
  border-radius: 4px;
  line-height: 1.3;
}

.hero-pair-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-pair-info strong {
  font-size: 0.8rem;
  color: #f1f5f9;
  line-height: 1.3;
}

.hero-pair-info span {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.4;
}

.hero-pair-video-btn {
  flex-shrink: 0;
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: rgba(14, 165, 233, 0.14);
  color: #7dd3fc;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.hero-pair-video-btn:hover {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff;
}

/* 手机首屏紧致排版（置于深空首屏规则之后确保层叠生效） */
@media (max-width: 780px) {
  .hero {
    padding: 20px 0 36px;
  }

  .hero .eyebrow {
    margin-bottom: 10px;
    font-size: 0.76rem;
    padding: 4px 11px;
  }

  .hero h1 {
    font-size: 1.66rem;
    margin-bottom: 10px;
  }

  .hero-lead {
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 14px;
  }

  .hero-cta {
    margin-bottom: 0;
    gap: 8px;
  }

  .hero-cta .btn-lg {
    padding: 9px 14px;
    font-size: 0.85rem;
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .hero-pair-strip {
    gap: 10px;
    padding: 9px 11px;
  }

  .hero-pair-thumb {
    width: 74px;
    height: 48px;
  }

  .hero-pair-info span {
    display: none;
  }

  .hero-pair-video-btn {
    padding: 6px 9px;
    font-size: 0.72rem;
  }
}

.viewport-telemetry {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #7dd3fc;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  flex-shrink: 0;
}

.telemetry-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: livePulse 2s ease-in-out infinite;
}

.hud-reticles {
  position: absolute;
  inset: 12px;
  pointer-events: none;
  z-index: 2;
}

.hud-reticles .reticle {
  position: absolute;
  width: 15px;
  height: 15px;
  opacity: 0.65;
  transition: opacity 0.25s ease;
}

.canvas-wrap:hover .hud-reticles .reticle,
.pm-pc-stage:hover .hud-reticles .reticle {
  opacity: 0.95;
}

.hud-reticles .tl {
  top: 0;
  left: 0;
  border-top: 1.5px solid #38bdf8;
  border-left: 1.5px solid #38bdf8;
}

.hud-reticles .tr {
  top: 0;
  right: 0;
  border-top: 1.5px solid #38bdf8;
  border-right: 1.5px solid #38bdf8;
}

.hud-reticles .bl {
  bottom: 0;
  left: 0;
  border-bottom: 1.5px solid #34d399;
  border-left: 1.5px solid #34d399;
}

.hud-reticles .br {
  bottom: 0;
  right: 0;
  border-bottom: 1.5px solid #34d399;
  border-right: 1.5px solid #34d399;
}

/* 4. 光学雷达微光卡片（Cursor Spotlight） */
.product-card,
.guide-card,
.arch-card {
  position: relative;
  isolation: isolate;
}

.product-card::before,
.guide-card::before,
.arch-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 4;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(14, 165, 233, 0.11),
    transparent 62%
  );
}

.product-card[data-cat="laser"]::before {
  background: radial-gradient(
    460px circle at var(--mx, 50%) var(--my, 50%),
    rgba(16, 185, 129, 0.13),
    transparent 60%
  );
}

.product-card[data-cat="structured"]::before {
  background: radial-gradient(
    460px circle at var(--mx, 50%) var(--my, 50%),
    rgba(37, 99, 235, 0.13),
    transparent 60%
  );
}

.product-card:hover::before,
.guide-card:hover::before,
.arch-card:hover::before {
  opacity: 1;
}

.product-card[data-cat="laser"]:hover {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 14px 34px rgba(5, 150, 105, 0.12), 0 4px 12px rgba(15, 23, 42, 0.05);
}

.product-card[data-cat="structured"]:hover {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 14px 34px rgba(29, 78, 216, 0.12), 0 4px 12px rgba(15, 23, 42, 0.05);
}

.arch-card {
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.arch-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: var(--shadow-md);
}

/* 5. 产品卡片悬停激光扫描线掠过 + 实拍图丝滑微放大 */
.product-media img.product-real-photo {
  transition: opacity 0.25s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .product-media img.product-real-photo {
  transform: scale(1.04);
}

.product-media::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -30%;
  width: 72px;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transform: skewX(-10deg) translateX(0);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(52, 211, 153, 0.18) 68%,
    rgba(52, 211, 153, 0.92) 96%,
    transparent 100%
  );
}

.product-card[data-cat="structured"] .product-media::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(56, 189, 248, 0.2) 68%,
    rgba(96, 165, 250, 0.95) 96%,
    transparent 100%
  );
}

.product-card:hover .product-media::after {
  animation: laserBeamSweep 1.05s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* 6. 内置光学拓扑 SVG 原理图动态光路 */
.svg-laser-pulse {
  animation: svgLaserBreath 2.8s ease-in-out infinite;
}

.svg-fringe-wave {
  animation: svgFringeShift 3.2s ease-in-out infinite;
}

.svg-rotary-spin {
  transform-box: fill-box;
  transform-origin: center;
  animation: svgSlowSpin 14s linear infinite;
}

.svg-dash-flow {
  animation: svgDashMarch 1.8s linear infinite;
}

/* 7. 滚动逐阶渐入动效 */
.reveal-up {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.62s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    transform 0.62s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Keyframes */
@keyframes auroraDriftA {
  0% { transform: translate(0, 0) scale(1); opacity: 0.72; }
  100% { transform: translate(38px, 28px) scale(1.12); opacity: 0.95; }
}

@keyframes auroraDriftB {
  0% { transform: translate(0, 0) scale(1); opacity: 0.62; }
  100% { transform: translate(-34px, -24px) scale(1.14); opacity: 0.88; }
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.88); }
}

@keyframes laserBeamSweep {
  0% { left: -24%; opacity: 0; }
  14% { opacity: 1; }
  84% { opacity: 0.92; }
  100% { left: 118%; opacity: 0; }
}

@keyframes svgLaserBreath {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.58; }
}

@keyframes svgFringeShift {
  0%, 100% { opacity: 0.95; }
  50% { opacity: 0.52; }
}

@keyframes svgSlowSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes svgDashMarch {
  to { stroke-dashoffset: -14; }
}

/* 8. 尊重系统减弱动态效果设置 */
@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero::after,
  .hero .dot-live,
  .telemetry-dot,
  .svg-laser-pulse,
  .svg-fringe-wave,
  .svg-rotary-spin,
  .svg-dash-flow,
  .product-card:hover .product-media::after {
    animation: none !important;
  }

  .reveal-up {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* =========================================================
   浅色 / 暗黑光学实验室模式一键切换样式
   ========================================================= */

.compare-demo-btn-muted {
  background: #f1f5f9;
  color: #334155;
}

.compare-demo-btn-muted:hover {
  background: #e2e8f0;
}

/* 顶部主题切换按钮 */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: block;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
  color: #fbbf24;
}

html[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

.site-header.over-hero .theme-toggle,
html[data-theme="dark"] .theme-toggle {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(148, 163, 184, 0.3);
  color: #e2e8f0;
}

.site-header.over-hero .theme-toggle:hover,
html[data-theme="dark"] .theme-toggle:hover {
  border-color: rgba(56, 189, 248, 0.65);
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.14);
}

@media (max-width: 780px) {
  .theme-toggle {
    padding: 0 9px;
  }

  .theme-toggle-text {
    display: none;
  }
}

/* 切换瞬间平滑色值过渡 */
html.theme-transitioning,
html.theme-transitioning body,
html.theme-transitioning .site-header,
html.theme-transitioning .section,
html.theme-transitioning .product-card,
html.theme-transitioning .guide-card,
html.theme-transitioning .table-card,
html.theme-transitioning .arch-card,
html.theme-transitioning .faq-item,
html.theme-transitioning .modal-panel {
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease !important;
}

/* 暗黑光学主题变量覆盖 */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070d1a;
  --bg-alt: #0b1426;
  --bg-dark: #050a14;
  --bg-dark-2: #0d172b;
  --surface: #0f1a2f;
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.3);

  --text: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  --primary: #38bdf8;
  --primary-hover: #0ea5e9;
  --primary-soft: rgba(56, 189, 248, 0.14);
  --laser: #34d399;
  --laser-soft: rgba(16, 185, 129, 0.14);

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.34);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.48);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.65);
}

/* 暗黑模式组件精细适配 */
html[data-theme="dark"] .site-header {
  background: rgba(7, 13, 26, 0.86);
  border-bottom-color: rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] .mobile-nav {
  background: rgba(9, 17, 34, 0.96);
  border-bottom-color: var(--border);
}

html[data-theme="dark"] .menu-toggle {
  border-color: var(--border-strong);
}

html[data-theme="dark"] .menu-toggle span {
  background: #f1f5f9;
}

html[data-theme="dark"] .btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #0284c7 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.34);
}

html[data-theme="dark"] .btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #0369a1 100%);
  box-shadow: 0 8px 26px rgba(14, 165, 233, 0.44);
}

html[data-theme="dark"] .btn-outline {
  background: rgba(30, 41, 59, 0.56);
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.28);
}

html[data-theme="dark"] .btn-outline:hover {
  border-color: rgba(56, 189, 248, 0.65);
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
}

html[data-theme="dark"] .filter-tabs {
  background: #0d172b;
  border-color: var(--border);
}

html[data-theme="dark"] .filter-tab.active {
  background: #172540;
  color: #38bdf8;
}

html[data-theme="dark"] .badge-tier {
  background: rgba(15, 23, 42, 0.86);
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

html[data-theme="dark"] .spec-pill {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
}

html[data-theme="dark"] .promo-strip {
  background: rgba(16, 185, 129, 0.13);
  border-color: rgba(52, 211, 153, 0.32);
  color: #6ee7b7;
}

html[data-theme="dark"] .guide-card,
html[data-theme="dark"] .table-card,
html[data-theme="dark"] .arch-card,
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .modal-panel,
html[data-theme="dark"] .video-card,
html[data-theme="dark"] .gallery-card,
html[data-theme="dark"] .algo-item,
html[data-theme="dark"] .pm-pc-download {
  background: var(--surface);
  border-color: var(--border);
}

html[data-theme="dark"] .arch-card-accent {
  border-color: rgba(56, 189, 248, 0.4);
  background: linear-gradient(180deg, #101e36 0%, #0d2240 100%);
}

html[data-theme="dark"] .compare-table thead th {
  background: #13213a;
  color: #f8fafc;
  border-bottom-color: rgba(148, 163, 184, 0.24);
}

html[data-theme="dark"] .compare-table thead th:first-child,
html[data-theme="dark"] .compare-table tbody th {
  box-shadow: inset -1px 0 0 rgba(148, 163, 184, 0.22), 4px 0 12px -4px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] .compare-table tbody th {
  background: #0d182d;
  color: #94a3b8;
}

html[data-theme="dark"] .table-scroll-hint {
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
}

html[data-theme="dark"] .card-task-fit {
  background: rgba(56, 189, 248, 0.11);
  border-color: rgba(56, 189, 248, 0.22);
}

html[data-theme="dark"] .card-task-label {
  background: rgba(15, 23, 42, 0.72);
  color: #7dd3fc;
}

html[data-theme="dark"] .case-card,
html[data-theme="dark"] .case-conditions {
  background: #0b1426;
  border-color: var(--border);
}

html[data-theme="dark"] .compare-demo-btn:hover {
  background: rgba(56, 189, 248, 0.24);
}

html[data-theme="dark"] .compare-demo-btn-muted {
  background: rgba(30, 41, 59, 0.85);
  color: #cbd5e1;
}

html[data-theme="dark"] .compare-demo-btn-muted:hover {
  background: rgba(51, 65, 85, 0.9);
  color: #fff;
}

html[data-theme="dark"] .modal-backdrop {
  background: rgba(2, 6, 18, 0.78);
}

html[data-theme="dark"] .modal-footer {
  background: #0b1426;
  border-top-color: var(--border);
}

html[data-theme="dark"] .modal-close {
  background: rgba(30, 41, 59, 0.8);
  color: #cbd5e1;
}

html[data-theme="dark"] .modal-close:hover {
  background: rgba(51, 65, 85, 0.95);
  color: #fff;
}

html[data-theme="dark"] .bom-table th {
  background: #13213a;
  color: #cbd5e1;
}

html[data-theme="dark"] .info-callout {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.28);
  color: #bae6fd;
}

html[data-theme="dark"] .info-callout.green {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(52, 211, 153, 0.32);
  color: #6ee7b7;
}

html[data-theme="dark"] .pm-pc-toolbar,
html[data-theme="dark"] .qr-box,
html[data-theme="dark"] .taobao-order-card,
html[data-theme="dark"] .wechat-contact-card,
html[data-theme="dark"] .pm-buy-qr-card,
html[data-theme="dark"] .pm-buy-notes,
html[data-theme="dark"] .copy-box {
  background: #0b1426;
  border-color: var(--border);
}

html[data-theme="dark"] .wechat-qr-box {
  background: #0f1a2f;
}

html[data-theme="dark"] .taobao-badge {
  color: #fdba74;
  background: rgba(249, 115, 22, 0.16);
  border-color: rgba(251, 146, 60, 0.35);
}

html[data-theme="dark"] .cm-kit-tab {
  background: #0f1a2f;
  border-color: var(--border);
  color: var(--text-secondary);
}

html[data-theme="dark"] .cm-kit-tab.active {
  background: rgba(56, 189, 248, 0.14);
  border-color: #38bdf8;
  color: #7dd3fc;
}

html[data-theme="dark"] .cm-kit-tab.active small {
  color: #7dd3fc;
}

html[data-theme="dark"] .qr-zoom-btn {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.35);
}

html[data-theme="dark"] .qr-zoom-tip {
  color: #475569;
}

html[data-theme="dark"] .qr-fallback {
  background: #0f1a2f;
  border-color: var(--border-strong);
}

/* 保证二维码在暗黑模式下依然保持纯白底色，100% 易于扫码 */
html[data-theme="dark"] .qr-img {
  background: #ffffff;
  padding: 6px;
}

html[data-theme="dark"] .qr-img-pixel {
  padding: 0;
}

html[data-theme="dark"] .segmented {
  background: #070d1a;
  border-color: var(--border);
}

html[data-theme="dark"] .seg-btn.active {
  background: #172540;
  color: #38bdf8;
}

html[data-theme="dark"] .video-duration {
  background: #13213a;
  border-color: var(--border);
  color: #94a3b8;
}

html[data-theme="dark"] .toast {
  background: #13213a;
  color: #f8fafc;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

/* 暗黑模式：主页交付摘要 + 弹窗规格书版式 */
html[data-theme="dark"] .card-deliverables,
html[data-theme="dark"] .spec-topbar,
html[data-theme="dark"] .spec-group-bar {
  background: #0b1426;
  border-color: var(--border);
}

html[data-theme="dark"] .spec-sheet,
html[data-theme="dark"] .algo-clean-item {
  background: var(--surface);
  border-color: var(--border);
}

html[data-theme="dark"] .algo-clean-grid {
  background: var(--border);
  border-color: var(--border);
}

html[data-theme="dark"] .algo-clean-item.is-star {
  background: #102033;
}

html[data-theme="dark"] .spec-promo-note {
  background: rgba(16, 185, 129, 0.13);
  border-left-color: #34d399;
  color: #6ee7b7;
}

html[data-theme="dark"] .card-deliv-tag.hw,
html[data-theme="dark"] .sw-type-tag.source {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(52, 211, 153, 0.32);
  color: #6ee7b7;
}

html[data-theme="dark"] .card-deliv-tag.sw,
html[data-theme="dark"] .sw-type-tag.dll {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.32);
  color: #7dd3fc;
}

html[data-theme="dark"] .sw-type-tag.installer {
  background: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
}

html[data-theme="dark"] .spec-row.is-core-row .spec-row-qty,
html[data-theme="dark"] .algo-star-mark {
  color: #6ee7b7;
}

html[data-theme="dark"] .spec-link-btn,
html[data-theme="dark"] .spec-video-link {
  background: #13213a;
  border-color: rgba(148, 163, 184, 0.25);
  color: #7dd3fc;
}

html[data-theme="dark"] .spec-link-btn:hover,
html[data-theme="dark"] .spec-video-link:hover {
  background: #2563eb;
  border-color: #3b82f6;
  color: #ffffff;
}

html[data-theme="dark"] .spec-link-btn.primary {
  background: #2563eb;
  border-color: #3b82f6;
  color: #ffffff;
}

html[data-theme="dark"] .spec-link-btn.primary:hover {
  background: #3b82f6;
}

html[data-theme="dark"] .video-group-label {
  border-left-color: #38bdf8;
}

html[data-theme="dark"] .wechat-copy-row {
  background: #0b1426;
  border-color: var(--border);
}

html[data-theme="dark"] .wechat-copy-btn.is-copied {
  border-color: rgba(52, 211, 153, 0.55);
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}
