.page-products {
  --p-radius: var(--radius-lg);
  --p-gap: var(--space-4);
}

/* ---------- 面包屑 ---------- */
.page-products .breadcrumb {
  margin: var(--space-3) 0 var(--space-4);
}
.page-products .breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-ink-muted);
}
.page-products .breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin-right: var(--space-1);
  color: var(--color-ink-muted);
}
.page-products .breadcrumb-item a {
  color: var(--color-ink-soft);
  text-decoration: none;
}
.page-products .breadcrumb-item a:hover,
.page-products .breadcrumb-item a:focus-visible {
  color: var(--color-accent);
  text-decoration: underline;
}
.page-products .breadcrumb-item[aria-current="page"] {
  color: var(--color-ink);
}

/* ---------- 首屏版本速览板 ---------- */
.page-products .hero-wrap {
  padding-bottom: var(--space-6);
}
.page-products .hero-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--p-gap);
  align-items: stretch;
}
.page-products .hero-lead {
  min-width: 0;
}
.page-products .hero-title {
  margin: var(--space-3) 0 var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-display);
  font-weight: var(--weight-heading);
  line-height: 1.02;
  letter-spacing: var(--tracking-heading);
  color: var(--color-ink);
  max-width: 12ch;
}
.page-products .hero-text {
  margin: 0 0 var(--space-4);
  max-width: var(--measure);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-ink-soft);
}
.page-products .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.page-products .hero-focus {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: var(--p-radius);
  background: var(--color-contrast-surface);
  color: var(--color-contrast-ink);
  min-height: 320px;
}
.page-products .hero-focus-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  max-width: 100%;
}
.page-products .hero-focus-body {
  position: relative;
  z-index: 1;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: var(--overlay-scrim);
  height: 100%;
}
.page-products .hero-focus-kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: var(--color-contrast-accent);
}
.page-products .hero-side-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.page-products .hero-side-rail li {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.16em;
  padding: 2px 0;
  border-bottom: 2px solid var(--color-contrast-accent);
  color: var(--color-contrast-ink);
}
.page-products .hero-figures {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}
.page-products .hero-figure {
  margin: 0;
}
.page-products .hero-figure-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(228, 231, 230, 0.62);
}
.page-products .hero-figure dd {
  margin: var(--space-1) 0 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.page-products .hero-figure-num {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: var(--text-figure);
  line-height: 1;
  color: var(--color-contrast-accent);
}
.page-products .hero-figure-unit {
  font-size: var(--text-sm);
  color: var(--color-contrast-ink);
}
.page-products .hero-focus-note {
  margin: auto 0 0;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(228, 231, 230, 0.7);
}

/* ---------- 呼吸区 ---------- */
.page-products .breath {
  margin-top: var(--space-6);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--color-line);
}
.page-products .breath-line {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-ink-muted);
}
.page-products .breath--wide {
  border-top: none;
  border-left: 4px solid var(--color-primary);
  padding-left: var(--space-3);
}
.page-products .breath-line--big {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-heading);
  line-height: var(--leading-heading);
  color: var(--color-ink);
  max-width: 34ch;
}

/* ---------- 筛选条 ---------- */
.page-products .filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.page-products .filter-bar-label {
  font-size: var(--text-xs);
  color: var(--color-ink-muted);
}
.page-products .filter-count {
  font-size: var(--text-xs);
  color: var(--color-ink-muted);
  margin-left: auto;
}

/* ---------- 对照表 ---------- */
.page-products .table-scroll {
  overflow-x: auto;
  border-radius: var(--p-radius);
  background: var(--color-surface);
}
.page-products .matrix-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.page-products .matrix-table caption {
  text-align: left;
  padding: 0 0 var(--space-2);
}
.page-products .matrix-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--color-contrast-surface);
  color: var(--color-contrast-ink);
  text-align: left;
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-2);
  vertical-align: bottom;
}
.page-products .matrix-table thead th.ver-col {
  min-width: 132px;
}
.page-products .matrix-table thead th.ver-col--focus {
  background: var(--color-accent);
  color: var(--color-accent-ink);
}
.page-products .ver-name {
  display: block;
  font-size: var(--text-base);
}
.page-products .ver-mono {
  display: block;
  margin-top: 4px;
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-contrast-accent);
}
.page-products .ver-col--focus .ver-mono {
  color: rgba(255, 255, 255, 0.85);
}

.page-products .matrix-table tbody tr {
  transition: opacity 180ms linear, transform 180ms linear;
}
.page-products .matrix-table tbody td,
.page-products .matrix-table tbody th {
  padding: var(--space-3) var(--space-2);
  text-align: left;
  vertical-align: top;
  color: var(--color-ink-soft);
  line-height: 1.55;
}
.page-products .matrix-table tbody tr:nth-child(even) {
  background: var(--color-surface-alt);
}
.page-products .matrix-table tbody tr[data-filtered="out"] {
  opacity: 0.55;
  transform: scale(0.995);
}
.page-products .row-dim {
  position: relative;
  padding-left: var(--space-3) !important;
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  font-size: var(--text-sm);
  color: var(--color-ink) !important;
  white-space: nowrap;
}
.page-products .row-dim::before {
  content: "";
  position: absolute;
  left: 0;
  top: var(--space-3);
  bottom: var(--space-3);
  width: 3px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
}
.page-products .row-dim[data-cat="sync"]::before {
  background: var(--color-accent);
}
.page-products .row-dim[data-cat="mark"]::before {
  background: var(--color-ink-muted);
}
.page-products .matrix-table tbody td.cell-focus {
  background: var(--color-highlight);
  color: var(--color-ink);
}

.page-products .tag-version {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  padding: 4px 10px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--color-surface-deep);
  color: var(--color-ink-soft);
  cursor: pointer;
  white-space: nowrap;
  transition: background 160ms linear, color 160ms linear;
}
.page-products .tag-version:hover,
.page-products .tag-version:focus-visible {
  background: var(--color-highlight);
  color: var(--color-accent);
  outline: none;
}
.page-products .tag-version[data-copied="true"] {
  background: var(--color-accent);
  color: var(--color-accent-ink);
}
.page-products .tag-version--lg {
  font-size: var(--text-sm);
  padding: 8px 16px;
  display: block;
  margin-bottom: var(--space-2);
}
.page-products .table-foot {
  margin: var(--space-3) 0 0;
  font-size: var(--text-xs);
  color: var(--color-ink-muted);
}

/* ---------- 服务收藏分类带 ---------- */
.page-products .collect-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--p-gap);
}
.page-products .collect-block {
  border-radius: var(--p-radius);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.page-products .collect-block--soft {
  background: var(--color-primary-soft);
}
.page-products .collect-block--plain {
  background: var(--color-surface-alt);
}
.page-products .collect-block--deep {
  background: var(--color-contrast-surface);
  color: var(--color-contrast-ink);
}
.page-products .collect-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2);
}
.page-products .collect-index {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-primary);
}
.page-products .collect-block--deep .collect-index {
  color: var(--color-contrast-accent);
}
.page-products .collect-head .card-title {
  margin: 0;
  font-size: var(--text-xl);
}
.page-products .collect-block--deep .card-title {
  color: var(--color-contrast-ink);
}
.page-products .collect-head .card-meta {
  margin: 0;
  margin-left: auto;
}
.page-products .collect-block--deep .card-meta {
  color: rgba(228, 231, 230, 0.7);
}
.page-products .collect-figure {
  margin: 0;
  position: relative;
}
.page-products .collect-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.page-products .collect-block--deep .card-text {
  color: rgba(228, 231, 230, 0.82);
}

/* ---------- 选择建议 ---------- */
.page-products .pick-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--p-gap);
}
.page-products .pick-figure {
  margin: 0;
}
.page-products .pick-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--p-radius);
  object-fit: cover;
  aspect-ratio: 3 / 2;
}
.page-products .pick-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.page-products .pick-item {
  padding-left: var(--space-3);
}
.page-products .pick-item-title {
  margin: 0 0 var(--space-1);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-heading);
  color: var(--color-ink);
}
.page-products .pick-item-text {
  margin: 0 0 var(--space-1);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-ink-soft);
}
.page-products .pick-item-meta {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--color-ink-muted);
}

/* ---------- 角标读法 ---------- */
.page-products .read-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--p-gap);
}
.page-products .read-steps {
  margin: 0;
}
.page-products .step-title {
  margin: 0 0 var(--space-1);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-heading);
  color: var(--color-ink);
}
.page-products .step-text {
  margin: 0;
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-ink-soft);
}
.page-products .read-samples {
  background: var(--color-surface-alt);
  border-radius: var(--p-radius);
  padding: var(--space-4);
}
.page-products .read-samples-label {
  margin: 0 0 var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-ink-muted);
}
.page-products .read-samples-note {
  margin: var(--space-3) 0 0;
  font-size: var(--text-sm);
  line-height: var(--leading-body);
  color: var(--color-ink-soft);
}
.page-products .read-samples-links {
  margin: var(--space-2) 0 0;
  font-size: var(--text-sm);
  line-height: var(--leading-body);
  color: var(--color-ink-soft);
}
.page-products .read-samples-links a,
.page-products .read-tail a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.page-products .read-samples-links a:hover,
.page-products .read-tail a:hover {
  color: var(--color-focus);
}
.page-products .read-tail {
  margin: var(--space-4) 0 0;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-line);
  max-width: var(--measure);
  font-size: var(--text-sm);
  line-height: var(--leading-body);
  color: var(--color-ink-soft);
}

/* ---------- 桌面栅格 ---------- */
@media (min-width: 900px) {
  .page-products .hero-board {
    grid-template-columns: 6fr 6fr;
    gap: var(--space-6);
    align-items: end;
  }
  .page-products .hero-lead {
    padding-bottom: var(--space-3);
  }
  .page-products .hero-focus {
    min-height: 460px;
  }
  .page-products .hero-focus-body {
    padding: var(--space-6);
  }
  .page-products .hero-figures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
  }
  .page-products .collect-band {
    grid-template-columns: 4fr 4fr 4fr;
    align-items: start;
  }
  .page-products .collect-block:nth-child(2) {
    margin-top: var(--space-6);
  }
  .page-products .pick-layout {
    grid-template-columns: 5fr 7fr;
    gap: var(--space-6);
    align-items: start;
  }
  .page-products .pick-figure {
    position: sticky;
    top: var(--space-6);
  }
  .page-products .read-layout {
    grid-template-columns: 7fr 5fr;
    gap: var(--space-6);
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .matrix-table tbody tr,
  .page-products .tag-version {
    transition: none;
  }
  .page-products .matrix-table tbody tr[data-filtered="out"] {
    transform: none;
  }
}
