.page-products {
  --pg-card: var(--panel);
  --pg-gap-sm: 16px;
  --pg-gap-md: 24px;
  --pg-gap-lg: 40px;
}

/* ---------- 首屏 ---------- */
.page-products .pg-hero {
  padding-top: var(--pg-gap-md);
  display: grid;
  gap: 14px;
}

.page-products .pg-hero__title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(32px, 8.4vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
}

.page-products .pg-hero__lede {
  margin: 0;
  max-width: 40em;
  font-size: var(--t16);
  line-height: 1.75;
  color: var(--muted);
}

.page-products .pg-hero__stats {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  border-top: 2px solid var(--line);
  padding-top: 16px;
}

.page-products .pg-hero__stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-products .pg-hero__stats .num {
  font-family: var(--font-mono);
  font-size: var(--t22);
  font-weight: 700;
  color: var(--neon);
  font-variant-numeric: tabular-nums;
}

.page-products .pg-hero__stat-label {
  font-size: var(--t12);
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ---------- 下载条 ---------- */
.page-products .dl-strip {
  position: relative;
  margin-top: var(--pg-gap-lg);
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  background-color: var(--night);
  background-image: repeating-linear-gradient(
    0deg,
    rgba(34, 58, 94, 0.45) 0 1px,
    transparent 1px 7px
  );
}

.page-products .dl-strip::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--neon);
}

.page-products .dl-strip__inner {
  display: grid;
  gap: 18px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.page-products .dl-strip__version {
  margin: 4px 0 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(28px, 7vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}

.page-products .dl-strip__version .num {
  font-family: var(--font-mono);
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.page-products .dl-strip__note {
  margin: 6px 0 0;
  font-size: var(--t12);
  color: var(--muted);
}

.page-products .dl-strip__specs {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.page-products .dl-strip__specs > div {
  border-left: 2px solid var(--line);
  padding-left: 12px;
}

.page-products .dl-strip__specs dt {
  font-family: var(--font-mono);
  font-size: var(--t12);
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.page-products .dl-strip__specs dd {
  margin: 4px 0 0;
  font-size: var(--t14);
  color: var(--text);
  line-height: 1.5;
}

.page-products .dl-strip__specs dd .num {
  font-family: var(--font-mono);
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.page-products .dl-strip__act {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-products .dl-strip__act .btn--primary {
  flex: 1 1 auto;
  text-align: center;
}

/* ---------- 通用分栏 ---------- */
.page-products .pg-split {
  display: grid;
  gap: var(--pg-gap-md);
}

.page-products .pg-split__body {
  display: grid;
  gap: var(--pg-gap-md);
  min-width: 0;
}

.page-products .pg-split__media {
  margin: 0;
}

.page-products .section__sub {
  margin: 10px 0 0;
  max-width: 46em;
  font-size: var(--t16);
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 步骤列表 ---------- */
.page-products .step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: pg-step;
  display: grid;
  gap: 14px;
}

.page-products .step-list > li {
  position: relative;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--pg-card);
  padding: 18px 18px 18px 66px;
}

.page-products .step-list > li::before {
  counter-increment: pg-step;
  content: counter(pg-step, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 17px;
  font-family: var(--font-mono);
  font-size: var(--t18);
  font-weight: 700;
  color: var(--neon);
  font-variant-numeric: tabular-nums;
}

.page-products .step-list h3 {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-size: var(--t18);
  font-weight: 700;
  color: var(--text);
}

.page-products .step-list p {
  margin: 0;
  font-size: var(--t14);
  line-height: 1.7;
  color: var(--muted);
}

.page-products .pg-compare h3 {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-size: var(--t18);
  color: var(--text);
}

.page-products .panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-products .panel ul li {
  position: relative;
  padding-left: 18px;
  font-size: var(--t14);
  line-height: 1.7;
  color: var(--muted);
}

.page-products .panel ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 10px;
  height: 2px;
  background: var(--neon);
}

/* ---------- 表格 ---------- */
.page-products .table-wrap.plans-table {
  max-height: 70vh;
  overflow: auto;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--pg-card);
}

.page-products .plans-table table,
.page-products .field-table table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
}

.page-products .field-table {
  overflow-x: auto;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--pg-card);
}

.page-products .plans-table caption,
.page-products .field-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.page-products .plans-table th,
.page-products .plans-table td,
.page-products .field-table th,
.page-products .field-table td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  font-size: var(--t14);
  line-height: 1.6;
}

.page-products .plans-table thead th,
.page-products .field-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--night);
  border-bottom: 2px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--t12);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cyan);
  white-space: nowrap;
}

.page-products .plans-table tbody th,
.page-products .field-table tbody th {
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}

.page-products .plans-table td,
.page-products .field-table td {
  color: var(--muted);
}

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

.page-products .plans-table .col-focus {
  background: rgba(53, 242, 160, 0.08);
  color: var(--text);
  box-shadow: inset 2px 0 0 var(--neon), inset -2px 0 0 var(--neon);
}

.page-products .plans-table thead .col-focus {
  color: var(--neon);
}

.page-products .field-table .num {
  font-family: var(--font-mono);
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.page-products .plans-note {
  margin: 16px 0 0;
  padding-left: 14px;
  border-left: 3px solid var(--cyan);
  font-size: var(--t14);
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 折叠面板补充 ---------- */
.page-products .pg-acc {
  margin-top: 6px;
}

.page-products .accordion__panel p {
  margin: 0;
  font-size: var(--t14);
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 资料条目 ---------- */
.page-products .entry-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--pg-card);
}

.page-products .entry {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 4px 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  transition: background var(--dur-hover) linear, transform var(--dur-hover) linear;
}

.page-products .entry:last-child {
  border-bottom: 0;
}

.page-products .entry:hover {
  background: var(--night);
  transform: translateX(6px);
}

.page-products .entry__idx {
  font-family: var(--font-mono);
  font-size: var(--t14);
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
  padding-top: 3px;
}

.page-products .entry__name {
  margin: 0;
  font-family: var(--font-head);
  font-size: var(--t16);
  font-weight: 700;
  color: var(--text);
}

.page-products .entry__tag {
  grid-column: 2;
  justify-self: start;
  font-family: var(--font-mono);
  font-size: var(--t12);
  color: var(--cyan);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  padding: 2px 10px;
}

.page-products .entry__rate {
  grid-column: 2;
  font-size: var(--t12);
  color: var(--muted);
}

.page-products .pg-assets-media {
  margin: var(--pg-gap-md) 0 0;
}

/* ---------- 异常说明 ---------- */
.page-products .risk-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-products .risk-list > li {
  position: relative;
  border: 2px solid var(--line);
  border-left: 6px solid var(--coral);
  border-radius: var(--radius);
  background: var(--pg-card);
  padding: 16px 18px;
}

.page-products .risk-list__kicker {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: var(--t12);
  letter-spacing: 0.08em;
  color: var(--coral);
}

.page-products .risk-list h3 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: var(--t18);
  font-weight: 700;
  color: var(--text);
}

.page-products .risk-list p {
  margin: 0;
  font-size: var(--t14);
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 技能树 ---------- */
.page-products .pg-paths__media {
  margin: 0 0 var(--pg-gap-md);
}

.page-products .pg-paths__grid {
  display: grid;
  gap: 18px;
}

.page-products .path-node {
  position: relative;
  border: 2px solid var(--line);
  border-top: 4px solid var(--neon);
  border-radius: var(--radius);
  background: var(--pg-card);
  padding: 22px 18px 18px;
}

.page-products .path-node::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 20px;
  width: 14px;
  height: 14px;
  background: var(--neon);
  border-radius: 2px;
  transform: rotate(45deg);
}

.page-products .path-node__kicker {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: var(--t12);
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.page-products .path-node h3 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: var(--t22);
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--text);
}

.page-products .path-node > p {
  margin: 0 0 14px;
  font-size: var(--t14);
  line-height: 1.75;
  color: var(--muted);
}

.page-products .path-node__steps {
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  counter-reset: pg-node;
  display: grid;
  gap: 8px;
}

.page-products .path-node__steps li {
  position: relative;
  padding-left: 28px;
  font-size: var(--t14);
  line-height: 1.6;
  color: var(--text);
}

.page-products .path-node__steps li::before {
  counter-increment: pg-node;
  content: counter(pg-node);
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: var(--t12);
  line-height: 18px;
  text-align: center;
  color: var(--neon);
}

/* ---------- 相关入口 ---------- */
.page-products .pg-next {
  padding-bottom: var(--pg-gap-lg);
}

.page-products .pg-next__list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 2px solid var(--line);
}

.page-products .pg-next__list li {
  border-bottom: 1px solid var(--line);
}

.page-products .pg-next__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 4px;
  color: var(--text);
  font-size: var(--t16);
  text-decoration: none;
  transition: color var(--dur-hover) linear, padding-left var(--dur-hover) linear;
}

.page-products .pg-next__list a:hover,
.page-products .pg-next__list a:focus-visible {
  color: var(--neon);
  padding-left: 12px;
}

.page-products .pg-next__arrow {
  font-family: var(--font-mono);
  color: var(--neon);
}

/* ---------- 响应式 ---------- */
@media (min-width: 600px) {
  .page-products .pg-hero__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .page-products .entry {
    grid-template-columns: 40px minmax(0, 1fr) 130px 170px;
    align-items: center;
  }

  .page-products .entry__tag,
  .page-products .entry__rate {
    grid-column: auto;
    justify-self: end;
    text-align: right;
  }
}

@media (min-width: 900px) {
  .page-products .dl-strip__inner {
    grid-template-columns: minmax(190px, 1fr) 2.4fr auto;
    align-items: center;
    gap: var(--pg-gap-lg);
  }

  .page-products .dl-strip__act {
    flex-wrap: nowrap;
  }

  .page-products .pg-split {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: var(--pg-gap-lg);
    align-items: start;
  }

  .page-products .pg-split--rev {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }

  .page-products .pg-paths__grid {
    position: relative;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--pg-gap-md);
  }

  .page-products .pg-paths__grid::before {
    content: "";
    position: absolute;
    top: 0;
    left: 4%;
    right: 4%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--line) 10%, var(--line) 90%, transparent);
  }

  .page-products .path-node {
    margin-top: 26px;
  }
}

@media (min-width: 1200px) {
  .page-products .pg-hero__title {
    max-width: 16em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .entry,
  .page-products .pg-next__list a {
    transition: none;
  }

  .page-products .entry:hover {
    transform: none;
  }
}
