.page-products {
  --pp-line: rgba(143, 163, 184, 0.22);
  --pp-line-soft: rgba(143, 163, 184, 0.12);
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* ---------- 首屏 ---------- */

.page-products .ph-hero {
  position: relative;
  padding: clamp(24px, 5vw, 54px) 0 clamp(38px, 7vw, 84px);
  background:
    radial-gradient(120% 90% at 84% 0%, rgba(56, 225, 198, 0.16) 0%, transparent 58%),
    radial-gradient(90% 70% at 6% 100%, rgba(255, 138, 61, 0.14) 0%, transparent 62%),
    var(--grad-hero);
  border-bottom: 2px solid var(--pp-line);
}

.page-products .ph-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(143, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(143, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 84%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 84%);
  pointer-events: none;
}

.page-products .ph-hero > .shell {
  position: relative;
  z-index: 1;
}

.page-products .ph-hero .breadcrumb {
  margin-bottom: clamp(18px, 3vw, 30px);
}

.page-products .ph-hero__frame {
  position: relative;
  padding: clamp(22px, 4.4vw, 52px);
  border: 2px solid var(--pp-line);
  background: rgba(10, 24, 48, 0.62);
  box-shadow: var(--shadow-hard);
}

.page-products .ph-hero__frame::before,
.page-products .ph-hero__frame::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--lime);
}

.page-products .ph-hero__frame::before {
  top: -2px;
  left: -2px;
  border-right: 0;
  border-bottom: 0;
}

.page-products .ph-hero__frame::after {
  right: -2px;
  bottom: -2px;
  border-top: 0;
  border-left: 0;
}

.page-products .ph-hero__title {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 8vw, 88px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.page-products .ph-lede {
  max-width: 62ch;
  margin: 22px 0 0;
  font-size: clamp(15.5px, 1.7vw, 18px);
  line-height: 1.85;
  color: var(--text-dim);
}

.page-products .ph-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(26px, 4vw, 44px) 0 0;
  padding: 0;
  border: 1px solid var(--pp-line);
  background: var(--pp-line);
  list-style: none;
}

.page-products .ph-stats li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px clamp(14px, 2vw, 22px) 18px;
  background: rgba(11, 31, 26, 0.94);
}

.page-products .ph-stats__n {
  font-family: var(--font-mono);
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 700;
  line-height: 1;
  color: var(--lime);
}

.page-products .ph-stats__l {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text-dim);
}

/* ---------- 通用区块 ---------- */

.page-products .ph-block {
  position: relative;
  padding: clamp(46px, 7vw, 96px) 0;
  border-top: 1px solid var(--pp-line-soft);
}

.page-products .ph-block--panel {
  background: linear-gradient(180deg, rgba(10, 24, 48, 0.85) 0%, rgba(11, 31, 26, 0.6) 100%);
}

.page-products .ph-head {
  max-width: 74ch;
  margin-bottom: clamp(26px, 4vw, 48px);
}

.page-products .ph-num {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--lime);
}

.page-products .ph-num::before {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  background: var(--lime);
}

.page-products .ph-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 4.6vw, 50px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-products .ph-sub {
  max-width: 68ch;
  margin: 16px 0 0;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.85;
  color: var(--text-dim);
}

/* ---------- 设备矩阵 ---------- */

.page-products .ph-matrix {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.4vw, 24px);
}

.page-products .ph-dev {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 20px 24px;
  border: 2px solid var(--pp-line);
  background: var(--panel);
  box-shadow: var(--shadow-hard);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.page-products .ph-dev:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.page-products .ph-dev__k {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.page-products .ph-dev__t {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--paper);
}

.page-products .ph-dev__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-dim);
  list-style: none;
}

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

.page-products .ph-dev__list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 7px;
  height: 2px;
  background: var(--orange);
}

.page-products .ph-dev__req {
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--pp-line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mute);
}

/* ---------- 图片与比例 ---------- */

.page-products .ph-shot {
  margin: clamp(30px, 4vw, 52px) 0 0;
}

.page-products .ph-r-1610 { --media-ratio: 16 / 10; }
.page-products .ph-r-916 { --media-ratio: 9 / 16; }
.page-products .ph-r-32 { --media-ratio: 3 / 2; }
.page-products .ph-r-169 { --media-ratio: 16 / 9; }

.page-products .media__img {
  max-width: 100%;
}

.page-products .media__caption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mute);
}

/* ---------- 分栏 ---------- */

.page-products .ph-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.page-products .ph-split__main {
  min-width: 0;
}

.page-products .ph-split__side {
  margin: 0;
}

/* ---------- 小屏端时间轴与要点 ---------- */

.page-products .ph-tl {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--pp-line);
  background: rgba(11, 31, 26, 0.72);
}

.page-products .ph-points {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: clamp(22px, 3vw, 32px) 0 0;
  padding: 0;
  list-style: none;
}

.page-products .ph-points li {
  padding: 14px 16px;
  border-left: 3px solid var(--cyan);
  background: rgba(10, 24, 48, 0.55);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-dim);
}

.page-products .ph-points strong {
  margin-right: 6px;
  font-weight: 600;
  color: var(--paper);
}

/* ---------- 对照表 ---------- */

.page-products .ph-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--pp-line);
  background: rgba(10, 24, 48, 0.5);
}

.page-products .ph-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}

.page-products .ph-table__cap {
  padding: 14px 16px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-align: left;
  color: var(--mute);
}

.page-products .ph-table th,
.page-products .ph-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--pp-line-soft);
}

.page-products .ph-table thead th {
  border-bottom: 2px solid var(--pp-line);
  background: rgba(11, 31, 26, 0.85);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--lime);
}

.page-products .ph-table tbody th {
  font-weight: 600;
  white-space: nowrap;
  color: var(--paper);
}

.page-products .ph-table td {
  color: var(--text-dim);
}

.page-products .ph-table tbody tr:last-child th,
.page-products .ph-table tbody tr:last-child td {
  border-bottom: 0;
}

/* ---------- 展开面板 ---------- */

.page-products .ph-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-products .ph-details .expand__body p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text-dim);
}

/* ---------- 版本轨道 ---------- */

.page-products .ph-rail {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 16px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.page-products .ph-rail__list {
  display: flex;
  gap: clamp(14px, 2vw, 22px);
  min-width: max-content;
  margin: 0;
  padding: 0 0 4px;
  list-style: none;
}

.page-products .ph-rail__node {
  position: relative;
  flex: 0 0 auto;
  width: min(76vw, 300px);
  padding: 24px 20px 26px;
  border: 2px solid var(--pp-line);
  background: linear-gradient(160deg, rgba(10, 24, 48, 0.92) 0%, rgba(18, 42, 36, 0.9) 100%);
  scroll-snap-align: start;
}

.page-products .ph-rail__node::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--grad-lime);
}

.page-products .ph-rail__year {
  display: block;
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: var(--lime);
}

.page-products .ph-rail__t {
  margin: 14px 0 8px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: var(--paper);
}

.page-products .ph-rail__d {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-dim);
}

/* ---------- 安装步骤 ---------- */

.page-products .ph-steps {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.4vw, 24px);
  margin: 0;
  padding: 0;
  counter-reset: phstep;
  list-style: none;
}

.page-products .ph-steps li {
  position: relative;
  padding: 20px 20px 22px 68px;
  border: 2px solid var(--pp-line);
  background: rgba(18, 42, 36, 0.66);
  box-shadow: var(--shadow-hard);
  counter-increment: phstep;
}

.page-products .ph-steps li::before {
  content: counter(phstep, decimal-leading-zero);
  position: absolute;
  top: 20px;
  left: 20px;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--lime);
}

.page-products .ph-steps h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--paper);
}

.page-products .ph-steps p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-dim);
}

/* ---------- 帮助侧栏 ---------- */

.page-products .ph-help {
  padding: clamp(20px, 3vw, 30px);
  border: 2px solid var(--line-strong);
  background: rgba(10, 24, 48, 0.85);
  box-shadow: var(--shadow-hard);
}

.page-products .ph-help__t {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--paper);
}

.page-products .ph-help__p {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-dim);
}

.page-products .ph-help__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-products .ph-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--pp-line);
}

.page-products .ph-copy__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--mute);
}

.page-products .ph-copy__val {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--cyan);
  word-break: break-all;
}

/* ---------- 收尾 CTA ---------- */

.page-products .ph-block--cta {
  border-top: 2px solid var(--pp-line);
  background: linear-gradient(120deg, rgba(198, 255, 74, 0.08) 0%, rgba(56, 225, 198, 0.06) 100%);
}

.page-products .ph-cta {
  display: grid;
  gap: clamp(20px, 3vw, 34px);
}

.page-products .ph-cta h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.6vw, 38px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--paper);
}

.page-products .ph-cta p {
  max-width: 60ch;
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dim);
}

.page-products .ph-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* ---------- 窄屏细节 ---------- */

@media (max-width: 520px) {
  .page-products .ph-steps li {
    padding: 52px 18px 20px;
  }

  .page-products .ph-steps li::before {
    top: 18px;
    left: 18px;
  }

  .page-products .ph-hero__frame {
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.45);
  }
}

/* ---------- 平板 ---------- */

@media (min-width: 720px) {
  .page-products .ph-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-products .ph-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-products .ph-cta {
    grid-template-columns: minmax(0, 1.4fr) auto;
    align-items: end;
  }

  .page-products .ph-cta__actions {
    justify-content: flex-end;
  }
}

/* ---------- 桌面 ---------- */

@media (min-width: 1000px) {
  .page-products .ph-matrix {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-bottom: 36px;
  }

  .page-products .ph-dev:nth-child(even) {
    transform: translateY(36px);
  }

  .page-products .ph-dev:nth-child(even):hover {
    transform: translateY(30px);
  }

  .page-products .ph-split {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: clamp(34px, 5vw, 68px);
  }

  .page-products .ph-split--mini {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.75fr);
  }

  .page-products .ph-rail__node {
    width: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .ph-dev,
  .page-products .ph-rail {
    transition: none;
  }

  .page-products .ph-dev:hover {
    transform: none;
  }

  .page-products .ph-dev:nth-child(even) {
    transform: none;
  }
}
