/* ===== Dell 专属产品页（dell-products.html） ===== */

/* 顶部返回条 —— pill 风格 pill 按钮：跟产品详情页 topbar-back 同一套视觉 */
.page-topbar {
  display: flex;
  align-items: center;
  margin: 6px 0 18px;
}
.page-topbar .topbar-back {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid #dbe1ea;
  border-radius: 999px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: #fff;
  transition: background .15s, border-color .15s;
}
.page-topbar .topbar-back:hover {
  background: #f3f6fb;
  border-color: #2563eb;
}

/* 系列标题 */
.dell-series-title {
  font-size: 22px;
  font-weight: 600;
  margin: 28px 0 18px;
  color: #1f2937;
}

/* 右侧 3 列卡片网格（用户在确认中指定：3 列/行） */
.dell-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

/* 卡片图片区：无图时显示灰色占位 + 提示文字（框架阶段全部走此态） */
.dell-grid .card-img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f7fa;
  color: #9ca3af;
  font-size: 13px;
  text-align: center;
  padding: 8px;
}
.dell-grid .card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 卡片副信息：系列 · 配置数 */
.dell-grid .card-body .model-meta {
  margin-top: 8px;
  font-size: 12px;
  color: #6b7280;
}

/* 分页条（用户在确认中指定：3列×8行=24/页，超出翻页） */
.dell-pager {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 4px 0 44px;
  flex-wrap: wrap;
}
.dell-pager .page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  color: #374151;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
}
.dell-pager .page-btn:hover {
  border-color: #2563eb;
  color: #2563eb;
}
.dell-pager .page-btn.active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}
.dell-pager .page-btn.disabled {
  opacity: .4;
  cursor: not-allowed;
}
.dell-pager .page-btn.disabled:hover {
  border-color: #e5e7eb;
  color: #374151;
}

/* 左侧系列导航里的型号计数 */
.sidebar .family-count {
  float: right;
  color: #9ca3af;
  font-size: 13px;
}

/* 左侧导航按"笔记本 / 台式·工作站"二级分组 */
.sidebar .family-group {
  margin-bottom: 14px;
}
.sidebar .family-group-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #6b7280;
  padding: 6px 10px 6px 12px;
  border-left: 3px solid #2563eb;
  background: #f3f6fb;
  border-radius: 0 4px 4px 0;
  margin-bottom: 6px;
  text-transform: none;
}
.sidebar .family-group + .family-group .family-group-title {
  /* 两个分组之间无需额外间距（margin-bottom 已控） */
}

/* 响应式：窄屏 2 列，手机 1 列 */
@media (max-width: 980px) {
  .dell-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .dell-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   v10A sidebar（精确复刻 _preview-sidebar-v10.html 里 .sbA 的样式）
   - 分组标题：极简单标签（左右 1px 横线 + 中间小标签）
   - 型号行：等宽 monospace 序号 01-12 + 14px 文字 + 深蓝 #1e3a8a 激活
   - 作用域限定到 .family-group 下，绝不污染 products.html 等其他页面的 .sidebar
   ============================================================ */

.sidebar .family-group {
  margin-bottom: 10px;
  counter-reset: dell-item;
}

/* 分组标题：flex 三栏（::before 横线 - 文字 - ::after 横线），单色衬线大写小标签 */
.sidebar .family-group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 8px 6px;
  padding: 0;
  font-family: 'Source Han Serif SC', 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', '宋体', serif;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: .18em;
  text-transform: uppercase;
  background: transparent;
  border: none;
}
.sidebar .family-group-title::before,
.sidebar .family-group-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}
.sidebar .family-group:first-child .family-group-title {
  margin-top: 0;
}

/* 型号行：flex 横排（序号 - 名称 - 计数），padding 9px 10px，14px 灰字 */
.sidebar .family-group a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 14px;
  color: #334155;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s, color .18s;
  line-height: 1.35;
}
.sidebar .family-group a:hover {
  background: #f1f5f9;
  color: #1e3a8a;
}

/* 序号：CSS counter 自动生成 01-12 + 等宽 monospace */
.sidebar .family-group a::before {
  content: counter(dell-item, decimal-leading-zero);
  counter-increment: dell-item;
  flex: 0 0 22px;
  font-family: ui-monospace, Consolas, "SF Mono", Menlo, monospace;
  font-size: 11px;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}

/* 计数：右侧淡灰 12px */
.sidebar .family-count {
  font-size: 12px;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}

/* 激活态：深蓝底 #1e3a8a + 白字 + 序号/计数变浅 */
.sidebar .family-group a.active {
  background: #1e3a8a;
  color: #fff;
}
.sidebar .family-group a.active::before { color: #cbd5e1; }
.sidebar .family-group a.active .family-count { color: #cbd5e1; }

/* ============================================================
   v8 标题适配（产品页 .page-content 内 v8t 容器）
   既有的 .page-content h2 / h3 规则会污染 v8t-title，需提高特异性到 (0,3,0) 隔离
   ============================================================ */
.page-content .v8t .v8t-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
  letter-spacing: .01em;
}
.page-content .v8t .v8t-eyebrow { margin-bottom: 10px; }
.page-content .v8t .v8t-eyebrow::before { width: 22px; }
