.page-products {
  --pr-gap: clamp(20px, 3.2vw, 38px);
  --pr-rule: rgba(91, 103, 128, .22);
  position: relative;
}

/* 面包屑 */
.page-products .pr-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: clamp(14px, 2.4vw, 26px) 0 0;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--fg-muted);
}

.page-products .pr-crumbs a {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color .18s var(--ease);
}

.page-products .pr-crumbs a:hover,
.page-products .pr-crumbs a:focus-visible {
  color: var(--accent);
}

.page-products .pr-crumbs [aria-current] {
  color: var(--accent);
}

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

.page-products .pr-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--pr-gap);
  align-items: start;
}

.page-products .pr-hero__lead .page-title {
  max-width: 22ch;
  margin-top: 10px;
}

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

.page-products .pr-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.page-products .pr-hero__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--pr-rule);
  border: 1px solid var(--pr-rule);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.page-products .pr-metric {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 18px;
  background: var(--surface);
}

.page-products .pr-metric__num {
  font-family: var(--font-mono);
  font-size: clamp(1.45rem, 3.2vw, 1.95rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--timer-white);
}

.page-products .pr-metric__num em {
  font-style: normal;
  font-size: .58em;
  color: var(--accent);
}

.page-products .pr-metric:first-child .pr-metric__num {
  color: var(--accent);
}

.page-products .pr-metric__label {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--fg-muted);
}

/* 章节 */
.page-products .pr-chapter {
  padding: clamp(46px, 7vw, 92px) 0 0;
}

.page-products .chapter {
  margin-bottom: clamp(24px, 3.6vw, 42px);
}

.page-products .chapter__body p {
  max-width: 68ch;
  margin-top: 14px;
  color: var(--fg-muted);
  line-height: 1.75;
}

/* 分栏 */
.page-products .pr-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--pr-gap);
  align-items: start;
}

.page-products .pr-split__main p {
  max-width: 62ch;
  color: var(--fg-muted);
  line-height: 1.75;
}

.page-products .pr-split__main p + p {
  margin-top: 14px;
}

/* 图 */
.page-products .pr-figure {
  margin: 0;
  border-radius: var(--r-lg);
  border: 1px solid var(--pr-rule);
  background: var(--surface);
  overflow: hidden;
}

.page-products .pr-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.page-products .pr-figure--tall img {
  max-height: 520px;
  object-position: center top;
}

.page-products .pr-figure figcaption {
  padding: 12px 16px;
  border-top: 1px dashed var(--pr-rule);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--fg-muted);
}

/* 三条筛选线 */
.page-products .pr-lines {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.page-products .pr-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  padding: 15px 18px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--pr-rule);
  border-left: 3px solid var(--accent);
}

.page-products .pr-line:nth-child(2) {
  border-left-color: var(--accent-2);
}

.page-products .pr-line:nth-child(3) {
  border-left-color: var(--line-600);
}

.page-products .pr-line__key {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--accent);
  white-space: nowrap;
}

.page-products .pr-line:nth-child(2) .pr-line__key {
  color: var(--accent-2);
}

.page-products .pr-line:nth-child(3) .pr-line__key {
  color: var(--grey-400);
}

.page-products .pr-line__text {
  flex: 1 1 220px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--fg);
}

/* 对照表 */
.page-products .pr-table-wrap {
  margin-top: clamp(26px, 4vw, 44px);
  border: 1px solid var(--pr-rule);
  border-radius: var(--r-lg);
  overflow-x: auto;
  background: var(--surface);
}

.page-products .pr-compare {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
}

.page-products .pr-compare th,
.page-products .pr-compare td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--pr-rule);
}

.page-products .pr-compare thead th {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--fg-muted);
  background: var(--surface-2);
  white-space: nowrap;
}

.page-products .pr-compare tbody th {
  width: 24%;
  font-weight: 500;
  color: var(--fg-muted);
}

.page-products .pr-compare tbody td {
  color: var(--fg);
}

.page-products .pr-compare tbody tr {
  transition: background-color .18s var(--ease);
}

.page-products .pr-compare tbody tr:hover,
.page-products .pr-compare tbody tr:focus-within {
  background: rgba(34, 230, 184, .08);
}

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

/* 球队库字段 */
.page-products .pr-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.page-products .pr-field {
  padding: 18px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--pr-rule);
  background: linear-gradient(160deg, var(--surface-2), var(--ink-950));
}

.page-products .pr-field__key {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--accent);
}

.page-products .pr-field p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--fg-muted);
}

/* 三项对照 */
.page-products .pr-triple {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.page-products .pr-triple__item {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--r-lg);
  border: 1px solid var(--pr-rule);
  background: var(--surface);
  border-top: 3px solid var(--accent);
}

.page-products .pr-triple__item:nth-child(2) {
  border-top-color: var(--accent-2);
}

.page-products .pr-triple__item:nth-child(3) {
  border-top-color: var(--line-600);
}

.page-products .pr-triple__idx {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--fg-muted);
  margin-bottom: 12px;
}

.page-products .pr-triple__item h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--timer-white);
}

.page-products .pr-triple__item p {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--fg-muted);
}

.page-products .pr-figure--wide {
  margin-top: clamp(22px, 3.4vw, 38px);
}

/* 订阅链路 */
.page-products .pr-chain {
  margin-bottom: clamp(20px, 3vw, 34px);
  padding: 18px 12px;
  border: 1px dashed var(--pr-rule);
  border-radius: var(--r-lg);
  background: radial-gradient(120% 160% at 8% 0%, rgba(34, 230, 184, .10), transparent 62%), var(--ink-950);
}

.page-products .pr-chain svg {
  display: block;
  width: 100%;
  height: auto;
}

.page-products .pr-subscribe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.page-products .pr-subscribe__hint {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--fg-muted);
}

/* 场景筛选 */
.page-products .pr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.page-products .pr-chips .chip {
  cursor: pointer;
}

.page-products .pr-chips .chip.is-active {
  background: var(--accent);
  border-color: transparent;
  color: var(--ink-950);
}

.page-products .pr-scenes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.page-products .pr-scene {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px;
  border-radius: var(--r-lg);
  border: 1px solid var(--pr-rule);
  background: var(--surface);
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}

.page-products .pr-scene:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 230, 184, .45);
}

.page-products .pr-scene[hidden],
.page-products .pr-scene.is-hidden {
  display: none;
}

.page-products .pr-scene__tag {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: rgba(34, 230, 184, .12);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--accent);
}

.page-products .pr-scene h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--timer-white);
}

.page-products .pr-scene p {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--fg-muted);
}

/* 结尾 */
.page-products .pr-cta {
  padding: clamp(48px, 7vw, 90px) 0 0;
}

.page-products .pr-cta__box {
  padding: clamp(28px, 4.4vw, 52px);
  border-radius: var(--r-lg);
  border: 1px solid var(--pr-rule);
  background: radial-gradient(120% 150% at 0% 0%, rgba(34, 230, 184, .14), transparent 58%), var(--surface-2);
}

.page-products .pr-cta__box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--timer-white);
}

.page-products .pr-cta__box p {
  max-width: 60ch;
  margin-top: 14px;
  color: var(--fg-muted);
  line-height: 1.75;
}

.page-products .pr-cta__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.page-products .pr-cta__link {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  border: 1px solid var(--pr-rule);
  background: rgba(7, 12, 24, .55);
  font-size: 14px;
  color: var(--fg);
  text-decoration: none;
  transition: border-color .18s var(--ease), color .18s var(--ease), background-color .18s var(--ease);
}

.page-products .pr-cta__link:hover,
.page-products .pr-cta__link:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(34, 230, 184, .10);
}

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

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

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

@media (min-width: 900px) {
  .page-products .pr-hero__grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: end;
  }

  .page-products .pr-split {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr);
  }

  .page-products .pr-split--reverse {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr);
  }

  .page-products .pr-split--reverse .pr-figure {
    order: -1;
  }

  .page-products .pr-split--subscribe .pr-split__main {
    align-self: center;
  }
}

@media (min-width: 1080px) {
  .page-products .pr-scenes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-products .pr-figure--tall img {
    max-height: 600px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .pr-scene,
  .page-products .pr-cta__link,
  .page-products .pr-compare tbody tr,
  .page-products .pr-crumbs a {
    transition: none;
  }

  .page-products .pr-scene:hover {
    transform: none;
  }
}
