/* 光知像·光子闪烁 — 极简清爽光学参数目录样式 */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #f1f3f6;
  --text: #111827;
  --text-2: #4b5563;
  --text-3: #8b95a5;
  --line: #e6e9ef;
  --line-strong: #cfd6e1;
  --accent: #e11d48;
  --accent-soft: rgba(225, 29, 72, 0.08);
  --accent-ring: rgba(225, 29, 72, 0.22);
  --bench: #0c111d;
  --bench-card: #131b2e;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 14px 32px -12px rgba(15, 23, 42, 0.14);
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

body.theme-dark {
  --bg: #080c15;
  --surface: #101726;
  --surface-2: #172136;
  --text: #f3f6fb;
  --text-2: #b4bfd1;
  --text-3: #76849c;
  --line: #1e2a40;
  --line-strong: #32425f;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 18px 36px -14px rgba(0, 0, 0, 0.65);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  width: 100%;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.22s ease, color 0.22s ease;
}

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 28px; }

/* ===== 顶栏 ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 248, 250, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
body.theme-dark .topbar { background: rgba(8, 12, 21, 0.88); }

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}
.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px var(--accent-ring);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.brand-dot {
  color: var(--accent);
  margin: 0 2px;
}

/* 六大类型切换胶囊 */
.type-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  overflow-x: auto;
}
.type-tab {
  border: none;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 15px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.type-tab:hover { color: var(--text); }
.type-tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-pill {
  position: relative;
  display: flex;
  align-items: center;
  width: 196px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  transition: border-color 0.2s, width 0.2s;
}
.search-pill:focus-within {
  border-color: var(--accent);
  width: 236px;
}
.search-pill svg { color: var(--text-3); flex-shrink: 0; }
.search-pill input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
  padding: 8px 7px;
  outline: none;
}
.search-pill input::placeholder { color: var(--text-3); }
.search-clear {
  border: none;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  font-size: 12px;
  padding: 2px 4px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 35px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
}
.icon-btn:hover { border-color: var(--line-strong); }
.icon-btn.square { width: 35px; padding: 0; }
.icon-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.count-dot {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
}
.icon-btn.primary .count-dot { background: rgba(0, 0, 0, 0.24); }
.count-dot[hidden] { display: none; }

/* ===== 真实实物产品横幅 ===== */
.banner {
  margin: 20px 0 18px;
  border-radius: var(--radius-lg);
  background: #0c1018;
  color: #f8fafc;
  display: grid;
  grid-template-columns: 1fr 440px;
  align-items: center;
  overflow: hidden;
  min-height: 148px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.banner::before {
  content: "";
  position: absolute;
  left: -60px;
  top: -60px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, var(--accent-ring), transparent 70%);
  pointer-events: none;
}
.banner-copy {
  padding: 24px 32px;
  position: relative;
  z-index: 2;
}
.banner-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.banner h1 {
  margin: 0;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.banner p {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: #94a3b8;
}
.banner-art {
  position: relative;
  height: 100%;
  min-height: 148px;
}
.banner-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mask-image: linear-gradient(to right, transparent 0%, #000 22%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 22%);
}

/* ===== 极简二级导航：波段 + 系列 ===== */
.nav-strip {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 20px;
}
.nav-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-row[hidden] { display: none; }
.nav-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-3);
  width: 34px;
  flex-shrink: 0;
}
.pill-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.band-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}
.band-pill .swatch {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pill-color);
}
.band-pill:hover {
  border-color: var(--pill-color);
  color: var(--text);
}
.band-pill.active {
  background: var(--pill-color);
  border-color: var(--pill-color);
  color: #fff;
  box-shadow: 0 6px 16px var(--pill-glow);
}
.band-pill.active .swatch { background: #fff; }

.series-pill {
  padding: 6px 13px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: var(--surface-2);
  color: var(--text-2);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.series-pill:hover { color: var(--text); border-color: var(--line-strong); }
.series-pill.active {
  background: var(--surface);
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
}

/* ===== 系列摘要栏 + 视图切换 ===== */
.list-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.series-summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.series-summary h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.summary-meta {
  font-size: 13px;
  color: var(--text-3);
}

.list-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.click-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 999px;
}
.click-hint .hint-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.view-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.view-opt {
  border: none;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 6px;
  cursor: pointer;
}
.view-opt.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

/* ===== 醒目基础材料说明栏 ===== */
.material-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 16px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
}
.material-banner[hidden] { display: none; }
.material-banner.warn {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.3);
  border-left-color: #d97706;
}
.mat-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
}
.mat-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
}
.mat-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  background: var(--accent-soft);
  color: var(--accent);
}
.mat-desc {
  color: var(--text-2);
  font-size: 13px;
}
.mat-power {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface-2);
  padding: 4px 10px;
  border-radius: 8px;
}
.material-banner.warn .mat-power {
  background: rgba(217, 119, 6, 0.14);
  color: #b45309;
}
body.theme-dark .material-banner.warn .mat-power { color: #fde68a; }

/* 表格内的基础材料标签 */
.mat-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--line);
}
.mat-tag.quartz {
  background: rgba(14, 165, 233, 0.09);
  color: #0369a1;
  border-color: rgba(14, 165, 233, 0.22);
}
.mat-tag.semi-quartz {
  background: rgba(139, 92, 246, 0.09);
  color: #6d28d9;
  border-color: rgba(139, 92, 246, 0.24);
}
.mat-tag.znse {
  background: rgba(217, 119, 6, 0.11);
  color: #b45309;
  border-color: rgba(217, 119, 6, 0.28);
}
body.theme-dark .mat-tag.quartz { color: #7dd3fc; }
body.theme-dark .mat-tag.semi-quartz { color: #c4b5fd; }
body.theme-dark .mat-tag.znse { color: #fcd34d; }

/* ===== 默认精简列表视图 ===== */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow-x: auto;
  box-shadow: var(--shadow-card);
}
table.clean-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
table.clean-table th {
  text-align: left;
  padding: 13px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.clean-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.clean-table tbody tr:last-child td { border-bottom: none; }
table.clean-table tbody tr {
  cursor: pointer;
  transition: background-color 0.14s ease;
}
table.clean-table tbody tr:hover { background: var(--accent-soft); }
table.clean-table tbody tr:hover td:first-child { color: var(--accent); }

.field-cell { display: inline-flex; align-items: center; gap: 10px; }
.field-bar { height: 5px; border-radius: 999px; background: var(--accent); opacity: 0.75; }

.row-ops {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.mini-detail {
  border: 1px solid transparent;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 4px 11px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
table.clean-table tbody tr:hover .mini-detail,
.mini-detail:hover {
  background: var(--accent);
  color: #fff;
}

.mini-add {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  border-radius: 999px;
  padding: 4px 11px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.mini-add:hover { border-color: var(--accent); color: var(--accent); }
.mini-add.in-list { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ===== 卡片网格视图 ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
  gap: 16px;
}
.lens-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.lens-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--card-accent, var(--accent));
}
.card-visual {
  height: 104px;
  border-radius: 12px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.card-hero-val {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  background: var(--surface);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.card-badge {
  position: absolute;
  top: 8px;
  left: 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--card-accent, var(--accent));
  background: var(--surface);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.card-code {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.card-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-3);
}
.card-sub strong { color: var(--text-2); font-weight: 600; }
.card-more {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.card-quick {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.lens-card:hover .card-quick,
.card-quick.in-list { opacity: 1; }
.card-quick.in-list { background: var(--accent); border-color: var(--accent); color: #fff; }

.search-group { margin-bottom: 28px; }
.search-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}
.search-group-dot { width: 8px; height: 8px; border-radius: 50%; }

.empty-box {
  text-align: center;
  padding: 72px 20px;
  color: var(--text-3);
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
}

/* ===== 抽屉 & 弹窗 ===== */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(8, 12, 21, 0.55);
  backdrop-filter: blur(6px);
  display: none;
  justify-content: flex-end;
}
.overlay.center { align-items: center; justify-content: center; padding: 20px; }
.overlay.open { display: flex; }

.drawer {
  width: min(460px, 100vw);
  height: 100%;
  background: var(--surface);
  border-left: 1px solid var(--line);
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.detail-drawer {
  width: min(680px, 100vw);
  background: var(--bench);
  color: #f1f5f9;
  border-left: 1px solid #1e293b;
}

.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.drawer-head h3 { margin: 0; font-size: 18px; }
.drawer-head p { margin: 3px 0 0; font-size: 12.5px; color: var(--text-3); }
.drawer-scroll { flex: 1; overflow-y: auto; margin: 16px 0; }
.drawer-foot { display: flex; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }

.action-btn {
  flex: 1;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.action-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.action-btn.dark { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); color: #fff; }

.detail-panel {
  background: var(--bench-card);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 14px;
  padding: 14px;
  margin-top: 14px;
}
.detail-panel-title { font-size: 11.5px; color: #94a3b8; margin-bottom: 8px; }
.detail-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.spec-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 9px;
  padding: 8px 10px;
}
.spec-item span { display: block; font-size: 11px; color: #94a3b8; }
.spec-item strong { display: block; font-size: 13px; color: #f8fafc; margin-top: 2px; font-family: var(--font-mono); }

.modal {
  width: min(860px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.site-footer {
  margin-top: 56px;
  padding: 22px 28px 36px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-3);
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: #111827;
  color: #fff;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.22s ease;
  z-index: 90;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.compare-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

/* =========================================================
   全设备自适应布局：电脑 / 平板 / 折叠屏（展开&外屏）/ 手机
   ========================================================= */

/* 1. 平板横竖屏 & 折叠屏展开态（680px – 1180px） */
@media (max-width: 1180px) {
  .container { padding: 0 20px; }
  .topbar-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "brand actions"
      "types types";
    gap: 10px 12px;
    padding: 10px 0;
  }
  .brand { grid-area: brand; }
  .topbar-right { grid-area: actions; justify-content: flex-end; }
  .type-switch {
    grid-area: types;
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .type-switch::-webkit-scrollbar { display: none; }
  .type-tab { flex: 1; text-align: center; padding: 7px 12px; }

  /* 平板与折叠屏保留右侧真实光学产品图，自动缩放比例 */
  .banner {
    grid-template-columns: 1fr 290px;
    min-height: 132px;
  }
  .banner-copy { padding: 20px 24px; }
  .banner h1 { font-size: 22px; }
  .banner-art { min-height: 132px; }

  /* 中等屏幕（平板竖屏/折叠屏展开）紧凑列距，确保光路详情按钮直接可见 */
  table.clean-table th,
  table.clean-table td {
    padding: 11px 10px;
    font-size: 12.5px;
  }
  table.clean-table:not(.compare-table) th:first-child,
  table.clean-table:not(.compare-table) td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--surface);
  }
  table.clean-table:not(.compare-table) th:first-child {
    background: var(--surface-2);
  }
  table.clean-table:not(.compare-table) th:last-child,
  table.clean-table:not(.compare-table) td:last-child {
    position: sticky;
    right: 0;
    z-index: 2;
    background: var(--surface);
    box-shadow: -8px 0 14px -8px rgba(15, 23, 42, 0.12);
  }
  table.clean-table:not(.compare-table) th:last-child {
    background: var(--surface-2);
  }
}

/* 2. 折叠屏内屏竖向 / 小平板（680px – 900px）：隐藏次要入射光斑与幅面色条，让全部关键列+光路详情一屏完整呈现 */
@media (max-width: 900px) and (min-width: 680px) {
  .banner { grid-template-columns: 1fr 220px; }
  .detail-two { grid-template-columns: 1fr; }
  .compare-top-grid { grid-template-columns: 1fr; }
  .search-pill { width: 170px; }
  .search-pill:focus-within { width: 200px; }
  table.clean-table th,
  table.clean-table td {
    padding: 10px 8px;
    font-size: 12px;
  }
  .field-bar { display: none; }
  .mini-detail, .mini-add { padding: 4px 8px; font-size: 11.5px; }
}

@media (max-width: 860px) {
  .detail-two { grid-template-columns: 1fr; }
  .compare-top-grid { grid-template-columns: 1fr; }
}

/* 3. 手机端 & 折叠屏外屏（< 680px）— 严禁任何元素撑宽视口，单手触控优化 */
@media (max-width: 679px) {
  .container { width: 100%; max-width: 100%; padding: 0 14px; }

  .topbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    gap: 7px 6px;
    padding: 9px 0;
  }
  .brand { order: 1; margin-right: auto; min-width: 0; }
  .brand-logo { width: 28px; height: 28px; border-radius: 8px; }
  .brand-name { font-size: 14.5px; }

  .topbar-right { display: contents; }
  #openCompareBtn, #openBasketBtn, #themeToggleBtn {
    order: 2;
    height: 30px;
    font-size: 12px;
    padding: 0 9px;
  }
  #themeToggleBtn { width: 30px; padding: 0; }

  .type-switch {
    order: 3;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 3px;
    gap: 2px;
  }
  .type-tab {
    flex: 0 0 auto;
    padding: 6px 12px;
    font-size: 12.5px;
  }

  .search-pill {
    order: 4;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    height: 35px;
  }

  /* 手机端横幅保留精巧实物图，文字精炼不占屏 */
  .banner {
    margin: 10px 0 12px;
    grid-template-columns: minmax(0, 1fr) 116px;
    min-height: 100px;
    border-radius: 15px;
  }
  .banner-copy { padding: 12px 14px; min-width: 0; }
  .banner-eyebrow { font-size: 11px; margin-bottom: 2px; }
  .banner h1 { font-size: 17.5px; }
  .banner p { font-size: 11.5px; margin-top: 3px; line-height: 1.35; }
  .banner-art { min-height: 100px; display: block; }

  /* 波段与系列胶囊顺滑横向滑动（min-width: 0 防止撑破容器！） */
  .nav-strip { gap: 8px; margin-bottom: 12px; width: 100%; min-width: 0; }
  .nav-row { gap: 8px; align-items: center; width: 100%; min-width: 0; }
  .nav-label { width: 28px; font-size: 12px; flex-shrink: 0; }
  .pill-group {
    flex: 1 1 0%;
    min-width: 0;
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }
  .pill-group::-webkit-scrollbar { display: none; }
  .band-pill, .series-pill { flex: 0 0 auto; font-size: 12px; padding: 5px 11px; }

  /* 标题栏与基础材料条紧凑排布 */
  .list-bar { gap: 6px; margin-bottom: 10px; width: 100%; }
  .series-summary { min-width: 0; width: 100%; }
  .series-summary h2 { font-size: 15px; word-break: break-word; }
  .summary-meta { font-size: 11.5px; }
  .list-bar-right { width: 100%; justify-content: space-between; align-items: center; gap: 6px; flex-wrap: nowrap; }
  .click-hint {
    font-size: 11px;
    padding: 4px 8px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .view-switch { flex-shrink: 0; }

  .material-banner { padding: 10px 12px; gap: 6px; margin-bottom: 12px; }
  .mat-main { font-size: 12px; gap: 6px; }
  .mat-desc { font-size: 12px; line-height: 1.4; }
  .mat-power { font-size: 11.5px; width: 100%; }

  /* 手机端默认列表：双列高密度紧凑列表项，零横向滚动条 */
  .table-wrap:not(.compare-table-wrap) {
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
  }
  table.clean-table:not(.compare-table),
  table.clean-table:not(.compare-table) tbody {
    display: block;
    width: 100%;
  }
  table.clean-table:not(.compare-table) thead {
    display: none;
  }
  table.clean-table:not(.compare-table) tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-card);
  }
  table.clean-table:not(.compare-table) td {
    padding: 0;
    border: none;
    white-space: normal;
  }
  table.clean-table:not(.compare-table) td.cell-code {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--line);
    position: static;
    background: transparent;
  }
  table.clean-table:not(.compare-table) td.cell-mat {
    grid-column: 1 / -1;
    padding-top: 2px;
  }
  table.clean-table:not(.compare-table) td.cell-mat::before {
    content: "基础材料：";
    font-size: 11.5px;
    color: var(--text-3);
    margin-right: 4px;
  }
  table.clean-table:not(.compare-table) td.cell-spec {
    display: flex;
    align-items: baseline;
    gap: 5px;
    font-size: 12.5px;
    color: var(--text);
  }
  table.clean-table:not(.compare-table) td.cell-spec .field-bar {
    display: none;
  }
  table.clean-table:not(.compare-table) td.cell-spec::before {
    content: attr(data-label) ":";
    font-family: var(--font-sans);
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text-3);
    flex-shrink: 0;
  }
  table.clean-table:not(.compare-table) td.cell-ops {
    grid-column: 1 / -1;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px dashed var(--line);
    position: static;
    box-shadow: none;
    background: transparent;
  }
  .row-ops {
    width: 100%;
    justify-content: space-between;
  }
  .mini-detail, .mini-add {
    padding: 5px 14px;
    font-size: 12px;
  }

  /* 手机端卡片视图两列紧凑网格 */
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .lens-card { padding: 12px; gap: 8px; }
  .card-visual { height: 86px; }
  .card-code { font-size: 12.5px; word-break: break-all; }
  .card-quick { opacity: 1; width: 26px; height: 26px; top: 8px; right: 8px; }

  /* 抽屉与弹窗适配手机屏幕与底部安全区 */
  .drawer, .detail-drawer {
    width: 100vw;
    padding: 18px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  }
  .specs-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .overlay.center { padding: 10px; }
  .modal { padding: 16px; border-radius: 16px; max-height: 92vh; }
  .site-footer { padding: 18px 14px 28px; font-size: 11.5px; }
}

/* ===== 联系方式 ===== */
a.icon-btn { text-decoration: none; }
.phone-btn { color: var(--accent); border-color: var(--accent-ring); }
.phone-btn:hover { border-color: var(--accent); }

.contact-section { margin-top: 48px; }
.contact-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  background: #0c1018;
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, var(--accent-ring), transparent 70%);
  pointer-events: none;
}
.contact-eyebrow { font-size: 12px; font-weight: 600; color: #94a3b8; margin-bottom: 10px; }
.company-list { display: flex; flex-direction: column; gap: 4px; }
.company-name { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.contact-desc { margin: 10px 0 0; font-size: 13px; color: #94a3b8; line-height: 1.6; }
.contact-right { position: relative; z-index: 1; }
.contact-label { font-size: 12px; color: #94a3b8; }
.contact-phone {
  display: block;
  margin: 4px 0 14px;
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.contact-actions { display: flex; gap: 10px; }
.contact-actions .action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.contact-actions .action-btn:not(.primary) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.site-footer a { text-decoration: none; }

.float-call {
  display: none;
  position: fixed;
  right: 14px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px var(--accent-ring), 0 4px 10px rgba(0, 0, 0, 0.18);
}

.detail-consult {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.15);
  font-size: 12.5px;
  color: #cbd5e1;
}
.detail-consult a {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 1180px) {
  .phone-btn span { display: none; }
  .phone-btn { width: 35px; padding: 0; }
}
@media (max-width: 860px) {
  .contact-card { grid-template-columns: 1fr; padding: 22px; }
}
@media (max-width: 679px) {
  .phone-btn { display: none; }
  .float-call { display: inline-flex; }
  .contact-section { margin-top: 32px; }
  .company-name { font-size: 15.5px; }
  .contact-phone { font-size: 26px; }
  .contact-actions .action-btn { height: 42px; }
  .site-footer { flex-direction: column; padding-bottom: 84px; }
}
