.page-products {
  --pd-panel: rgba(27, 58, 140, 0.2);
  --pd-panel-deep: rgba(10, 15, 44, 0.55);
  --pd-gap: 16px;
}

/* ---------- 首屏 ---------- */
.page-products .pd-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 44px) 0 52px;
  background:
    radial-gradient(115% 88% at 88% 6%, rgba(122, 77, 255, 0.34), transparent 62%),
    radial-gradient(92% 78% at 4% 98%, rgba(27, 58, 140, 0.62), transparent 60%),
    linear-gradient(155deg, var(--space-void) 0%, #101743 48%, var(--nebula) 100%);
  border-bottom-left-radius: var(--radius-xl);
  border-bottom-right-radius: var(--radius-xl);
}

.page-products .pd-hero::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -46%;
  height: 72%;
  background: radial-gradient(closest-side, rgba(57, 230, 242, 0.18), transparent 74%);
  pointer-events: none;
}

.page-products .pd-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 32px;
}

.page-products .pd-hero__title {
  margin: 14px 0 0;
  font-family: var(--font-head);
  font-size: clamp(30px, 8vw, 60px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: 0.01em;
  color: var(--white);
}

.page-products .pd-hero__lead {
  margin: 18px 0 0;
  max-width: 54ch;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-90);
}

.page-products .pd-hero__actions {
  margin-top: 26px;
}

.page-products .pd-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  margin: 28px 0 0;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.page-products .pd-hero__facts > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-products .pd-hero__facts dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-50);
}

.page-products .pd-hero__facts dd {
  margin: 0;
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold);
}

.page-products .pd-hero__media {
  margin: 0;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.page-products .pd-hero__media .media-frame__img {
  aspect-ratio: 4 / 3;
}

/* ---------- 通用媒体框 ---------- */
.page-products .media-frame {
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--pd-panel-deep);
}

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

/* ---------- 分类入口 ---------- */
.page-products .pd-anchor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.page-products .pd-anchor {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 18px 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(59, 30, 110, 0.52), rgba(10, 15, 44, 0.76));
  color: var(--silver);
  text-decoration: none;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.page-products .pd-anchor::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 3px;
  border-radius: var(--radius-pill);
  background: var(--neon);
  opacity: 0.65;
  transition: opacity 0.28s ease;
}

.page-products .pd-anchor:hover,
.page-products .pd-anchor:focus-visible {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.page-products .pd-anchor:hover::before,
.page-products .pd-anchor:focus-visible::before {
  opacity: 1;
}

.page-products .pd-anchor__idx {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--neon);
}

.page-products .pd-anchor__name {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.page-products .pd-anchor__desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-70);
}

.page-products .pd-anchor-media {
  margin-top: 28px;
}

.page-products .pd-anchor-media .media-frame__img {
  aspect-ratio: 3 / 2;
}

/* ---------- 轨道布局 ---------- */
.page-products .pd-rail {
  display: grid;
  gap: 28px;
}

.page-products .pd-toc {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.page-products .pd-toc .toc__link {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-70);
  text-decoration: none;
  transition: color 0.24s ease;
}

.page-products .pd-toc .toc__link:hover,
.page-products .pd-toc .toc__link[aria-current="true"] {
  color: var(--neon);
}

.page-products .pd-body {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.page-products .pd-block {
  scroll-margin-top: calc(var(--header-h) + 28px);
}

.page-products .pd-block__title {
  margin: 8px 0 0;
  font-family: var(--font-head);
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 800;
  line-height: 1.24;
  color: var(--white);
}

.page-products .pd-block__lead {
  margin: 14px 0 0;
  max-width: 62ch;
  font-size: 15.5px;
  line-height: 1.88;
  color: var(--ink-70);
}

/* ---------- 胶囊筛选 ---------- */
.page-products .pd-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.page-products .pd-filters .chip {
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

/* ---------- 折叠面板 ---------- */
.page-products .pd-folds {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.page-products .pd-fold {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.page-products .pd-fold .fold__summary {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}

.page-products .pd-fold .fold__body p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-70);
}

/* ---------- 状态提示条 ---------- */
.page-products .pd-note {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-top: 26px;
  padding: 20px 22px;
  border: 1px solid var(--line-strong);
  border-left-width: 3px;
  border-radius: var(--radius-md);
  background: linear-gradient(120deg, rgba(27, 58, 140, 0.4), rgba(10, 15, 44, 0.5));
}

.page-products .pd-note__value {
  margin: 0;
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--neon);
}

.page-products .pd-note__text {
  margin: 0;
  flex: 1 1 240px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-90);
}

/* ---------- 额度档位 ---------- */
.page-products .pd-tier-media {
  margin-top: 26px;
}

.page-products .pd-tier-media .media-frame__img {
  aspect-ratio: 7 / 4;
}

.page-products .pd-tier-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 26px;
}

.page-products .pd-tier {
  position: relative;
  --tier-accent: var(--neon);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 26px;
  transition: transform 0.28s ease, border-color 0.28s ease;
}

.page-products .pd-tier::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  bottom: 24px;
  width: 3px;
  border-radius: var(--radius-pill);
  background: var(--tier-accent);
}

.page-products .pd-tier:hover {
  transform: translateY(-4px);
}

.page-products .pd-tier:nth-child(1) { --tier-accent: var(--neon); }
.page-products .pd-tier:nth-child(2) { --tier-accent: var(--download); }
.page-products .pd-tier:nth-child(3) { --tier-accent: var(--event-violet); }
.page-products .pd-tier:nth-child(4) { --tier-accent: var(--gold); }
.page-products .pd-tier:nth-child(5) { --tier-accent: var(--alert); }

.page-products .pd-tier__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.page-products .pd-tier__list li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--ink-70);
}

.page-products .pd-tier__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tier-accent);
}

/* ---------- 厂商表格 ---------- */
.page-products .pd-filters--vendors {
  margin-bottom: 18px;
}

.page-products .pd-table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(27, 58, 140, 0.24), rgba(10, 15, 44, 0.6));
  overflow-x: auto;
}

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

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

.page-products .pd-table thead th {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-50);
  background: rgba(10, 15, 44, 0.62);
}

.page-products .pd-table tbody th {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

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

.page-products .pd-table tbody tr {
  transition: background 0.22s ease;
}

.page-products .pd-table tbody tr:hover {
  background: rgba(57, 230, 242, 0.08);
}

.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 .chip {
  font-size: 11.5px;
  padding: 3px 10px;
}

.page-products .pd-mono {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--neon);
}

.page-products .pd-vendor-media {
  margin-top: 26px;
}

.page-products .pd-vendor-media .media-frame__img {
  aspect-ratio: 3 / 2;
}

.page-products .pd-tail {
  margin: 22px 0 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-70);
}

.page-products .pd-tail a {
  color: var(--neon);
  text-decoration: none;
  border-bottom: 1px solid rgba(57, 230, 242, 0.35);
  transition: color 0.24s ease, border-color 0.24s ease;
}

.page-products .pd-tail a:hover,
.page-products .pd-tail a:focus-visible {
  color: var(--gold);
  border-color: rgba(255, 184, 77, 0.55);
}

/* ---------- 下载中心 ---------- */
.page-products .pd-dl-media {
  margin-top: 26px;
}

.page-products .pd-dl-media .media-frame__img {
  aspect-ratio: 10 / 7;
}

.page-products .pd-dl-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 26px;
}

.page-products .pd-dl {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.page-products .pd-dl:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 0 0 1px rgba(57, 230, 242, 0.22), 0 16px 40px rgba(4, 7, 22, 0.5);
}

.page-products .pd-dl__name {
  margin: 0;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
}

.page-products .pd-dl__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-50);
}

.page-products .pd-dl__desc {
  flex: 1;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.78;
  color: var(--ink-70);
}

.page-products .pd-dl__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.page-products .pd-dl__actions .btn--gold:hover,
.page-products .pd-dl__actions .btn--gold:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 184, 77, 0.2), 0 12px 28px rgba(255, 184, 77, 0.3);
}

/* ---------- 结尾引导 ---------- */
.page-products .pd-cta__panel {
  display: grid;
  gap: 26px;
  padding: 30px 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 130% at 90% 0%, rgba(255, 184, 77, 0.16), transparent 62%),
    linear-gradient(150deg, rgba(59, 30, 110, 0.7), rgba(10, 15, 44, 0.88));
}

.page-products .pd-cta__title {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(22px, 4.6vw, 32px);
  font-weight: 800;
  line-height: 1.28;
  color: var(--white);
}

.page-products .pd-cta__text {
  margin: 14px 0 0;
  max-width: 56ch;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-90);
}

.page-products .pd-cta__copy .action-row {
  margin-top: 22px;
}

.page-products .pd-cta__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .pd-cta__links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--neon);
  text-decoration: none;
  transition: color 0.24s ease;
}

.page-products .pd-cta__links a::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.75;
}

.page-products .pd-cta__links a:hover,
.page-products .pd-cta__links a:focus-visible {
  color: var(--gold);
}

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

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

@media (min-width: 900px) {
  .page-products .pd-hero {
    padding: calc(var(--header-h) + 72px) 0 72px;
  }

  .page-products .pd-hero__inner {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    align-items: center;
    gap: 48px;
  }

  .page-products .pd-anchor-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .page-products .pd-rail {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 46px;
    align-items: start;
  }

  .page-products .pd-toc {
    position: sticky;
    top: calc(var(--header-h) + 26px);
  }

  .page-products .pd-body {
    gap: 80px;
  }

  .page-products .pd-tier-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .page-products .pd-dl-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-products .pd-cta__panel {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr);
    align-items: center;
    gap: 40px;
    padding: 44px 48px;
  }
}

@media (min-width: 1200px) {
  .page-products .pd-tier-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .page-products .pd-tier {
    padding-left: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .pd-anchor,
  .page-products .pd-tier,
  .page-products .pd-dl {
    transition: none;
  }

  .page-products .pd-anchor:hover,
  .page-products .pd-tier:hover,
  .page-products .pd-dl:hover {
    transform: none;
  }
}
