/* ===== 客户端下载页 · page-products ===== */
.page-products {
  --pd-gap: clamp(14px, 2vw, 24px);
  background-color: var(--abyss);
  color: var(--fog);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.page-products .pd-coord {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* ---------- 首屏 ---------- */
.page-products .pd-top {
  position: relative;
  padding: clamp(28px, 5vw, 56px) 0 clamp(40px, 6vw, 76px);
  background:
    radial-gradient(120% 90% at 86% 0%, rgba(122, 59, 255, 0.24), transparent 62%),
    repeating-linear-gradient(90deg, var(--line-soft) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, var(--line-soft) 0 1px, transparent 1px 72px),
    var(--abyss);
}

.page-products .pd-top::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, var(--abyss) 97%);
  pointer-events: none;
}

.page-products .pd-top > .shell {
  position: relative;
  z-index: 1;
}

.page-products .breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 clamp(18px, 3vw, 32px);
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--fog-dim);
}

.page-products .breadcrumb-link {
  color: var(--fog-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 240ms var(--ease), border-color 240ms var(--ease);
}

.page-products .breadcrumb-link:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.page-products .breadcrumb-current {
  color: var(--violet);
}

.page-products .pd-head {
  max-width: 1120px;
}

.page-products .pd-head h1 {
  margin: 0 0 clamp(16px, 2.4vw, 26px);
  max-width: 16ch;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(30px, 6.2vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--fog);
  text-shadow: 0 0 38px rgba(122, 59, 255, 0.5);
}

.page-products .pd-lead {
  max-width: 62ch;
  margin: 0 0 clamp(22px, 3vw, 34px);
  padding-left: clamp(14px, 2vw, 20px);
  border-left: 2px solid var(--cyan);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.78;
  color: var(--fog-dim);
}

.page-products .pd-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 通用区块 ---------- */
.page-products .pd-section {
  padding: clamp(48px, 7vw, 104px) 0;
}

.page-products .pd-section + .pd-section {
  border-top: 1px solid var(--line-soft);
}

.page-products .pd-head-block {
  max-width: 880px;
  margin-bottom: clamp(26px, 4vw, 48px);
}

/* ---------- 图片框 ---------- */
.page-products .media-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--graphite);
}

.page-products .media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-products .media-frame.pd-ratio-3x1 { aspect-ratio: 3 / 1; }
.page-products .media-frame.pd-ratio-4x3 { aspect-ratio: 4 / 3; }
.page-products .media-frame.pd-ratio-2x1 { aspect-ratio: 2 / 1; }
.page-products .media-frame.pd-ratio-3x4 { aspect-ratio: 3 / 4; }
.page-products .media-frame.pd-ratio-7x4 { aspect-ratio: 7 / 4; }

.page-products .pd-step-figure figcaption,
.page-products .pd-fix-figure figcaption,
.page-products .pd-version-figure figcaption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--fog-dim);
}

/* ---------- 五端矩阵 ---------- */
.page-products .pd-matrix-media {
  margin-bottom: clamp(24px, 3vw, 40px);
}

.page-products .pd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.page-products .pd-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(18px, 2.2vw, 26px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 13, 26, 0.42), transparent 80%);
  transition: background 320ms var(--ease);
}

.page-products .pd-cell::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--magenta));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 380ms var(--ease);
}

.page-products .pd-cell:hover,
.page-products .pd-cell:focus-within {
  background: linear-gradient(180deg, rgba(122, 59, 255, 0.22), rgba(16, 13, 26, 0.6));
}

.page-products .pd-cell:hover::before,
.page-products .pd-cell:focus-within::before {
  transform: scaleY(1);
}

.page-products .pd-cell-idx {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--violet);
}

.page-products .pd-cell-name {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.page-products .pd-cell-spec {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--amber);
}

.page-products .pd-cell-desc {
  flex: 1;
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--fog-dim);
}

.page-products .pd-cell-link {
  align-self: flex-start;
  padding-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 243, 216, 0.35);
  transition: color 240ms var(--ease), border-color 240ms var(--ease);
}

.page-products .pd-cell-link:hover {
  color: var(--fog);
  border-bottom-color: var(--fog);
}

/* ---------- 三步开跑 ---------- */
.page-products .pd-steps-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
}

.page-products .pd-step-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .pd-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(14px, 2vw, 26px);
  align-items: start;
  padding: clamp(20px, 2.6vw, 30px) 0;
  border-top: 1px solid var(--line);
}

.page-products .pd-step:last-child {
  border-bottom: 1px solid var(--line);
}

.page-products .pd-step-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--violet);
  text-shadow: 0 0 26px rgba(122, 59, 255, 0.55);
}

.page-products .pd-step-body h3 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.page-products .pd-step-body p {
  margin: 0;
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--fog-dim);
}

.page-products .pd-step-figure {
  margin: 0;
}

.page-products .pd-inline-cta {
  margin-top: clamp(20px, 3vw, 32px);
}

/* ---------- 固定入口 ---------- */
.page-products .pd-fix-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 3vw, 40px);
}

.page-products .pd-fix-col {
  display: grid;
  gap: clamp(22px, 3vw, 34px);
  align-content: start;
}

.page-products .pd-fix-item {
  position: relative;
  padding: clamp(20px, 2.4vw, 30px);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(122, 59, 255, 0.14), transparent 56%),
    rgba(16, 13, 26, 0.62);
}

.page-products .pd-fix-item::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--cyan);
  border-right: 2px solid var(--cyan);
}

.page-products .pd-fix-idx {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--amber);
}

.page-products .pd-fix-item h3 {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.page-products .pd-fix-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--fog-dim);
}

.page-products .pd-fix-item .media-frame {
  margin-top: 18px;
}

.page-products .pd-fix-figure {
  margin: 0;
}

/* ---------- 配置表 ---------- */
.page-products .pd-chips {
  display: flex;
  gap: 8px;
  margin-bottom: clamp(18px, 2.4vw, 26px);
  padding-bottom: 6px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.page-products .pd-chips .chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.page-products .pd-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: rgba(16, 13, 26, 0.5);
}

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

.page-products .pd-table caption {
  caption-side: top;
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fog-dim);
}

.page-products .pd-table th,
.page-products .pd-table td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.65;
}

.page-products .pd-table thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  background: rgba(36, 28, 58, 0.55);
}

.page-products .pd-table tbody th {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 900;
  color: var(--fog);
}

.page-products .pd-table tbody td {
  color: var(--fog-dim);
}

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

.page-products .pd-table tbody tr:hover th,
.page-products .pd-table tbody tr:hover td {
  background: rgba(122, 59, 255, 0.12);
}

.page-products .pd-spec-foot {
  max-width: 70ch;
  margin: clamp(14px, 2vw, 20px) 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--amber);
  font-size: 14px;
  line-height: 1.72;
  color: var(--fog-dim);
}

/* ---------- 版本节奏 ---------- */
.page-products .pd-version-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 44px);
}

.page-products .pd-release-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .pd-release-list li {
  display: grid;
  gap: 6px;
  padding: clamp(16px, 2vw, 22px) 0;
  border-bottom: 1px solid var(--line);
}

.page-products .pd-release-list li:first-child {
  border-top: 1px solid var(--line);
}

.page-products .pd-release-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.page-products .pd-release-list p {
  margin: 0;
  max-width: 54ch;
  font-size: 15px;
  line-height: 1.72;
  color: var(--fog-dim);
}

.page-products .pd-version-figure {
  margin: 0;
}

.page-products .pd-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 1fr);
  margin: clamp(28px, 4vw, 46px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  overflow-x: auto;
}

.page-products .pd-track-item {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 22px 18px 22px 0;
  border-right: 1px solid var(--line);
}

.page-products .pd-track-item::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--violet);
  transform: rotate(45deg);
}

.page-products .pd-track-item.is-current::before {
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(47, 243, 216, 0.85);
}

.page-products .pd-track-ver {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--amber);
}

.page-products .pd-track-txt {
  font-size: 14px;
  line-height: 1.62;
  color: var(--fog-dim);
}

.page-products .pd-track-item.is-current .pd-track-txt {
  color: var(--fog);
}

/* ---------- 常见卡点 ---------- */
.page-products .pd-help-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.page-products .pd-help-item {
  padding: clamp(20px, 2.4vw, 30px);
  background: var(--abyss);
}

.page-products .pd-help-item h3 {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--fog);
}

.page-products .pd-help-item p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--fog-dim);
}

.page-products .pd-help-foot {
  max-width: 74ch;
  margin: clamp(20px, 3vw, 30px) 0 0;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--fog-dim);
}

.page-products .pd-help-foot a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 243, 216, 0.35);
  transition: color 240ms var(--ease), border-color 240ms var(--ease);
}

.page-products .pd-help-foot a:hover {
  color: var(--fog);
  border-bottom-color: var(--fog);
}

/* ---------- 收尾提示带 ---------- */
.page-products .pd-band {
  padding: clamp(44px, 6vw, 88px) 0 clamp(56px, 7vw, 104px);
}

.page-products .pd-band-inner {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4vw, 52px);
  border: 1px solid rgba(47, 243, 216, 0.55);
  background:
    linear-gradient(120deg, rgba(122, 59, 255, 0.26), rgba(6, 5, 10, 0.92) 60%),
    var(--graphite);
}

.page-products .pd-band-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 48%, var(--magenta));
}

.page-products .pd-band-inner h2 {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-size: clamp(23px, 3.4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page-products .pd-band-inner > p:not(.pd-coord) {
  max-width: 66ch;
  margin: 0 0 clamp(20px, 3vw, 30px);
  font-size: 15px;
  line-height: 1.78;
  color: var(--fog-dim);
}

.page-products .pd-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .page-products .pd-help-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .page-products .pd-steps-body {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: start;
  }

  .page-products .pd-fix-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }

  .page-products .pd-version-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: start;
  }
}

@media (max-width: 560px) {
  .page-products .pd-head h1 {
    max-width: none;
  }

  .page-products .pd-cell {
    padding: 16px;
  }

  .page-products .pd-step {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .page-products .pd-step-num {
    font-size: 30px;
  }

  .page-products .pd-track {
    grid-auto-columns: minmax(160px, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .pd-cell,
  .page-products .pd-cell::before,
  .page-products .pd-cell-link,
  .page-products .breadcrumb-link,
  .page-products .pd-help-foot a {
    transition: none;
  }
}
