.page-products {
  --prod-edge: clamp(14px, 1.6vw, 22px);
  --prod-maxw: 1312px;
  padding-bottom: clamp(40px, 7vw, 88px);
}

.page-products .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.page-products :focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* 面包屑与页首避让 */
.page-products .products-crumb {
  padding-top: calc(var(--header-h) + 18px);
}

.page-products .breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.page-products .breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--muted);
}

.page-products .breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.page-products .breadcrumb a:hover {
  color: var(--cyan);
}

.page-products .breadcrumb [aria-current="page"] {
  color: var(--text);
}

/* 首屏 */
.page-products .products-hero {
  padding-top: clamp(18px, 3vw, 40px);
}

.page-products .products-hero .display {
  max-width: 17ch;
  margin: 10px 0 0;
}

.page-products .products-hero__lede {
  max-width: 62ch;
  margin-top: 18px;
}

.page-products .hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.page-products .hero-tags li {
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mist);
  border: 1px solid var(--line);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  background: rgba(56, 245, 208, 0.05);
}

/* 版本矩阵 */
.page-products .matrix-wrap {
  margin-top: clamp(22px, 3vw, 36px);
  background-image: linear-gradient(155deg, rgba(56, 245, 208, 0.09), transparent 52%);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-products .matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.7;
}

.page-products .matrix-table th,
.page-products .matrix-table td {
  padding: 16px clamp(14px, 1.8vw, 22px);
  text-align: left;
  vertical-align: top;
}

.page-products .matrix-table thead th {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  background: rgba(6, 17, 13, 0.5);
  white-space: nowrap;
}

.page-products .matrix-table thead th:nth-child(n + 2) {
  color: var(--mist);
}

.page-products .matrix-table tbody tr + tr th,
.page-products .matrix-table tbody tr + tr td {
  border-top: 1px solid var(--line-soft);
}

.page-products .matrix-table .row-key {
  width: 20%;
  min-width: 116px;
  font-weight: 600;
  color: var(--text);
  background: rgba(11, 31, 25, 0.72);
  white-space: nowrap;
}

.page-products .matrix-table td:nth-child(2) {
  color: var(--text);
}

.page-products .matrix-table td:nth-child(3) {
  color: var(--mist);
  background: rgba(56, 245, 208, 0.04);
}

.page-products .cell-label {
  display: none;
}

.page-products .matrix-visual {
  margin: clamp(24px, 3.4vw, 40px) 0 0;
}

.page-products .matrix-visual figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

/* 功能面板轨道 */
.page-products .panel-track {
  display: flex;
  gap: clamp(14px, 2vw, 24px);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-padding-left: clamp(18px, 4vw, 48px);
  padding: 6px max(var(--gutter), calc((100vw - 1312px) / 2)) 26px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.page-products .panel-track::-webkit-scrollbar {
  height: 6px;
}

.page-products .panel-track::-webkit-scrollbar-thumb {
  background: var(--line-strong);
}

.page-products .panel-card {
  flex: 0 0 clamp(272px, 80vw, 348px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(16px, 2vw, 22px);
  background-image: linear-gradient(168deg, rgba(56, 245, 208, 0.07), transparent 58%);
}

.page-products .panel-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.page-products .panel-card__ver {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--cyan);
}

.page-products .panel-card .h3 {
  margin: 0;
  font-size: 20px;
}

.page-products .panel-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--muted);
}

.page-products .panel-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.page-products .panel-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) brightness(0.86);
}

.page-products .panel-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 17, 13, 0.72), transparent 62%);
  pointer-events: none;
}

.page-products .panel-card__list {
  margin: auto 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.page-products .panel-card__list li {
  position: relative;
  padding-left: 16px;
}

.page-products .panel-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 1px;
  background: var(--cyan);
}

/* 灰度节奏 */
.page-products .gray-band {
  position: relative;
  background-image:
    radial-gradient(120% 90% at 8% 0%, rgba(30, 111, 92, 0.28), transparent 62%),
    linear-gradient(180deg, transparent, rgba(11, 31, 25, 0.6) 60%, transparent);
}

.page-products .gray-band__grid {
  display: grid;
  gap: clamp(24px, 4vw, 44px);
}

.page-products .gray-steps {
  margin: clamp(20px, 3vw, 30px) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: gray;
  display: grid;
  gap: clamp(16px, 2.2vw, 24px);
}

.page-products .gray-steps li {
  position: relative;
  counter-increment: gray;
  padding-left: 44px;
}

.page-products .gray-steps li::before {
  content: counter(gray, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--amber);
  border: 1px solid rgba(255, 180, 84, 0.42);
  padding: 2px 6px;
}

.page-products .gray-steps .h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.page-products .gray-steps p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.page-products .gray-band__media {
  margin: 0;
}

.page-products .gray-band__media figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

/* 版本演进 */
.page-products .version-list {
  position: relative;
  margin: clamp(24px, 3.4vw, 40px) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: clamp(16px, 2.2vw, 24px);
}

.page-products .version-list::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--line-strong) 10%, var(--line-strong) 88%, transparent);
}

.page-products .version-node {
  position: relative;
  padding-left: 34px;
  display: grid;
  gap: 6px;
}

.page-products .version-node::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 11px;
  height: 11px;
  border: 1px solid var(--cyan);
  background: var(--ink);
  transform: rotate(45deg);
}

.page-products .version-node__no {
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.page-products .version-node p {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: var(--text);
}

/* 使用建议 */
.page-products .advice-grid {
  display: grid;
  gap: clamp(26px, 4vw, 48px);
}

.page-products .advice-list {
  margin: clamp(20px, 3vw, 30px) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.page-products .advice-list li {
  display: grid;
  gap: 4px;
  padding: 16px clamp(14px, 1.8vw, 20px);
  background: var(--panel);
  border-left: 2px solid var(--cyan);
}

.page-products .advice-list strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.page-products .advice-list span {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.page-products .limits {
  margin-top: clamp(22px, 3vw, 32px);
}

.page-products .limits .h3 {
  margin: 0 0 12px;
  font-size: 17px;
  color: var(--mist);
}

.page-products .limits ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
  font-size: 13px;
  line-height: 1.72;
  color: var(--muted);
}

.page-products .limits li {
  position: relative;
  padding-left: 16px;
}

.page-products .limits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 7px;
  height: 1px;
  background: var(--ember);
}

.page-products .advice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 34px);
}

.page-products .advice-media {
  margin: 0;
}

.page-products .advice-media figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

/* 尾部导航 */
.page-products .more-links {
  padding: clamp(22px, 3vw, 34px);
  background-image: linear-gradient(140deg, rgba(56, 245, 208, 0.07), transparent 60%);
}

.page-products .more-links__lead {
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--mist);
}

.page-products .more-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* 媒体容器兜底 */
.page-products .media-frame img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* 平板与桌面 */
@media (min-width: 760px) {
  .page-products .panel-track {
    scroll-padding-left: max(var(--gutter), calc((100vw - 1312px) / 2));
  }

  .page-products .gray-band__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
  }
}

@media (min-width: 900px) {
  .page-products .advice-grid {
    grid-template-columns: minmax(0, 12fr) minmax(0, 5fr);
    align-items: start;
  }

  .page-products .version-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 2.4vw, 28px) clamp(28px, 4vw, 56px);
  }

  .page-products .version-list::before {
    display: none;
  }

  .page-products .version-node {
    padding-left: 30px;
  }
}

/* 窄屏堆叠：版本对比表转为卡片式阅读 */
@media (max-width: 759px) {
  .page-products .matrix-table,
  .page-products .matrix-table tbody,
  .page-products .matrix-table tr,
  .page-products .matrix-table th,
  .page-products .matrix-table td {
    display: block;
    width: 100%;
  }

  .page-products .matrix-table thead {
    display: none;
  }

  .page-products .matrix-table tbody tr {
    padding: 14px 16px;
    margin-bottom: 10px;
    background: var(--panel-2);
  }

  .page-products .matrix-table tbody tr + tr th,
  .page-products .matrix-table tbody tr + tr td {
    border-top: 0;
  }

  .page-products .matrix-table .row-key {
    min-width: 0;
    padding: 0 0 8px;
    font-family: var(--font-mono);
    font-size: 14px;
    letter-spacing: 0.06em;
    color: var(--cyan);
    background: transparent;
    white-space: normal;
  }

  .page-products .matrix-table td {
    padding: 4px 0 8px;
    background: transparent;
  }

  .page-products .matrix-table td + td {
    padding-top: 10px;
    border-top: 1px solid var(--line-soft);
  }

  .page-products .cell-label {
    display: block;
    margin-bottom: 4px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--mist);
  }
}
