/* ============================================================
   Servo Valve Category Gold Hub — 类目级样式表
   仅由 /products/category/servo-valve 与 /en/products/category/servo-valve 引用
   （由 routes/products.js 的 options.extraStyles 注入 <link>）。

   设计约束：
   - 类名一律 sv- 前缀，不改动任何既有共享类的语义 → 对本页以外的页面零影响；
   - 复用共享排版：.listing-page-hero / .listing-page-ctas / .listing-cta /
     .listing-series* / .listing-related-links / .listing-custom* / .product-spec-table；
   - 本文件只补共享样式里确实缺的两件事：目录表的移动端堆叠、类型/系列卡片的元信息行。

   色板（Industrial Catalog / Technical Datasheet）：
     Page #FFFFFF · Alternate #F6F8FA / #F7F8FA · Heading #17202B · Body #46515F
     Secondary #687483 · Brand #1E619B · Border #DDE3E8 · Table Header #F3F5F7

   禁止：深色 SaaS / 渐变 / 辉光 / 大圆角 / 巨阴影 / 玩具化图标 / 电商卡片墙。
   ============================================================ */

/* ── 区块节奏：Hub 分区块之间的垂直间距收敛，保持紧凑 ── */
.sv-section { padding: 48px 0; }
.listing-related.sv-section { padding: 44px 0; }

/* ── 类型卡 / 系列卡：细边框、无阴影、无圆角放大 ── */
.sv-card {
  min-height: 0;
  padding: 22px 24px;
  border: 1px solid #DDE3E8;
  background: #FFFFFF;
}
.sv-card-title {
  margin: 6px 0 4px;
  color: #17202B;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.4;
}
.sv-note { margin: 12px 0 0; color: #46515F; font-size: 0.875rem; line-height: 1.7; }
.sv-note-wide { max-width: 880px; }

/* 类型卡里的「支撑系列」明细行 */
.sv-series-list {
  display: grid;
  gap: 6px;
  margin: 14px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid #F3F5F7;
  list-style: none;
}
.sv-series-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #46515F;
  font-size: 0.8125rem;
}
.sv-series-list li span:last-child { color: #687483; }

/* 官方证据行：小字号、可点，但不喧宾夺主 */
.sv-source { margin: 14px 0 0; color: #687483; font-size: 0.75rem; line-height: 1.6; }
.sv-source a { color: #1E619B; text-decoration: underline; text-underline-offset: 2px; }
.sv-source a:hover { color: #17202B; }

/* 品牌入口：沿用共享 .listing-related-links 的边框行，只补右侧计数的弱化色 */
.sv-brand-links { margin-top: 18px; }
.sv-brand-links a span:last-child { color: #687483; font-weight: 400; }

/* Series Label（无独立系列专题页）：只列名称与计数，不生成链接 */
.sv-subhead {
  margin: 30px 0 10px;
  padding-top: 20px;
  border-top: 1px solid #DDE3E8;
  color: #17202B;
  font-size: 0.9375rem;
  font-weight: 600;
}
.sv-series-labels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sv-series-labels li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #DDE3E8;
  background: #FFFFFF;
  font-size: 0.8125rem;
}
.sv-series-labels li strong { color: #17202B; font-weight: 600; }
.sv-series-labels li span { color: #687483; }

/* ── 已发布型号目录：桌面为规格表 ── */
.sv-dir-wrap { margin-top: 18px; }
.sv-dir { margin: 0; font-size: 0.875rem; }
.sv-dir thead th { background: #F3F5F7; border-bottom: 1px solid #DDE3E8; color: #17202B; }
.sv-dir tbody td { border-bottom: 1px solid #DDE3E8; color: #46515F; }
.sv-dir tbody tr:nth-child(even) { background: #F7F8FA; }
.sv-dir tbody tr:hover { background: #F6F8FA; }
.sv-dir tbody td:first-child { color: #17202B; font-weight: 600; }
.sv-dir tbody td:first-child a { color: #1E619B; font-weight: 600; }
.sv-dir tbody td:first-child a:hover { color: #17202B; text-decoration: underline; text-underline-offset: 2px; }

/* ── 移动端：目录表转为堆叠行 ──
   型号串（如 SV1-10/16/315/6）没有空格，多列窄表会把表格顶宽并造成横向溢出；
   这里改成「每行一张卡片、字段名在左、值在右」，宽度始终跟随容器，390 / 430 均不溢出。 */
@media (max-width: 720px) {
  .sv-section { padding: 36px 0; }
  .listing-related.sv-section { padding: 34px 0; }
  .sv-card { padding: 18px 16px; }

  .sv-dir thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .sv-dir,
  .sv-dir tbody,
  .sv-dir tr,
  .sv-dir td { display: block; width: 100%; }
  .sv-dir tbody tr {
    margin-bottom: 10px;
    padding: 12px 14px;
    border: 1px solid #DDE3E8;
    background: #FFFFFF;
  }
  .sv-dir tbody tr:nth-child(even),
  .sv-dir tbody tr:hover { background: #FFFFFF; }
  .sv-dir tbody td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 3px 0;
    border: 0;
  }
  .sv-dir tbody td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: #687483;
    font-size: 0.75rem;
  }
  .sv-dir tbody td:last-child { padding-bottom: 0; }
  .sv-dir tbody td:first-child { font-size: 0.9375rem; }
  .sv-dir tbody td:first-child::before { font-size: 0.75rem; }
}
