.page-products {
  --pr-pad: clamp(34px, 5vw, 74px);
  --pr-line: var(--ink-700);
  display: block;
}

.page-products .shell {
  max-width: var(--shell);
}

/* ---------- 首屏：对角错位色块 ---------- */
.page-products .pr-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4.5vw, 66px) 0 clamp(26px, 4vw, 54px);
}

.page-products .pr-hero::before {
  content: "";
  position: absolute;
  left: -6vw;
  right: 12vw;
  top: -12%;
  height: 132%;
  background:
    linear-gradient(135deg, rgba(34, 224, 208, 0.16), rgba(34, 224, 208, 0) 58%),
    linear-gradient(160deg, var(--ink-800), rgba(7, 15, 31, 0) 78%);
  clip-path: polygon(0 0, 100% 0, 72% 100%, 0 100%);
  pointer-events: none;
}

.page-products .pr-hero::after {
  content: "";
  position: absolute;
  right: -14vw;
  top: 6%;
  width: 54vw;
  height: 78%;
  background: linear-gradient(120deg, rgba(255, 74, 39, 0.22), rgba(255, 74, 39, 0) 72%);
  clip-path: polygon(26% 0, 100% 0, 74% 100%, 0 100%);
  pointer-events: none;
}

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

.page-products .pr-hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.05rem, 6.2vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--chalk);
  margin: 14px 0 0;
  max-width: 18ch;
}

.page-products .pr-hero__lede {
  font-family: var(--font-editorial);
  font-size: clamp(1.02rem, 1.6vw, 1.32rem);
  line-height: 1.62;
  color: var(--slate-300);
  max-width: 46ch;
  margin: clamp(16px, 2.4vw, 26px) 0 0;
}

.page-products .pr-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(22px, 3vw, 34px);
}

/* ---------- 功能索引条 ---------- */
.page-products .pr-jump {
  border-top: 1px solid var(--pr-line);
  border-bottom: 1px solid var(--pr-line);
  margin-top: clamp(22px, 3.2vw, 42px);
}

.page-products .pr-jump__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.page-products .pr-jump__link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--blue-gray);
  text-decoration: none;
  padding: 3px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease);
}

.page-products .pr-jump__link:hover,
.page-products .pr-jump__link:focus-visible {
  color: var(--neon-cyan);
  border-bottom-color: var(--neon-cyan);
}

/* ---------- 功能对照：左窄右宽 ---------- */
.page-products .pr-func {
  border-top: 1px solid var(--pr-line);
  padding: var(--pr-pad) 0;
}

.page-products .pr-func__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 2.6vw, 36px);
}

.page-products .pr-func__num {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--score-amber);
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.page-products .pr-func__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--chalk);
  margin: 8px 0 0;
}

.page-products .pr-func__claim {
  font-family: var(--font-editorial);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--cyan-100);
  margin: 10px 0 0;
}

.page-products .pr-body > p {
  color: var(--slate-300);
  font-size: 16.5px;
  line-height: 1.78;
  margin: 0 0 16px;
  max-width: 62ch;
}

/* ---------- 入口说明列表 ---------- */
.page-products .pr-entries {
  margin: 0 0 18px;
  display: grid;
}

.page-products .pr-entry {
  display: grid;
  gap: 3px;
  padding: 14px 0 14px 18px;
  border-left: 2px solid var(--pr-line);
  border-bottom: 1px solid rgba(29, 50, 85, 0.7);
  transition: border-left-color 0.22s var(--ease);
}

.page-products .pr-entry:hover {
  border-left-color: var(--neon-cyan);
}

.page-products .pr-entry dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--chalk);
}

.page-products .pr-entry dd {
  margin: 0;
  color: var(--blue-gray);
  font-size: 15px;
  line-height: 1.7;
}

/* ---------- 折叠问答 ---------- */
.page-products .pr-faq {
  margin-top: 18px;
  border-top: 1px solid var(--pr-line);
}

.page-products .pr-faq summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 14px 0 14px 24px;
  color: var(--chalk);
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.5;
}

.page-products .pr-faq summary::-webkit-details-marker {
  display: none;
}

.page-products .pr-faq summary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 2px;
  background: var(--blazing-red);
  transition: width 0.22s var(--ease);
}

.page-products .pr-faq[open] summary::before {
  width: 15px;
}

.page-products .pr-faq summary:hover {
  color: var(--cyan-100);
}

.page-products .pr-faq summary:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 2px;
}

.page-products .pr-faq__a {
  margin: 0;
  padding: 0 0 18px 24px;
  color: var(--slate-300);
  font-size: 15px;
  line-height: 1.75;
  max-width: 60ch;
}

/* ---------- V4 对照区块 ---------- */
.page-products .pr-v4 {
  padding: clamp(18px, 3vw, 36px) 0 clamp(26px, 4vw, 54px);
}

.page-products .pr-v4__panel {
  position: relative;
  padding: clamp(22px, 4vw, 52px);
  background: linear-gradient(150deg, var(--ink-800) 0%, var(--ink-950) 88%);
  border: 1px solid var(--pr-line);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
}

.page-products .pr-v4__panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 104px;
  height: 3px;
  background: var(--neon-cyan);
}

.page-products .pr-v4__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.65rem, 3.6vw, 2.7rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--chalk);
  margin: 12px 0 12px;
  max-width: 22ch;
}

.page-products .pr-v4__lede {
  font-family: var(--font-editorial);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.62;
  color: var(--cyan-100);
  max-width: 52ch;
  margin: 0 0 clamp(20px, 3vw, 30px);
}

.page-products .pr-v4__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 3vw, 40px);
}

.page-products .pr-v4__sub {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--chalk);
  margin: 22px 0 12px;
}

.page-products .pr-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}

.page-products .pr-shots {
  margin: 0;
}

.page-products .pr-shot {
  margin: 0;
}

.page-products .pr-shot img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--pr-line);
}

.page-products .pr-shot figcaption {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--blue-gray);
}

.page-products .pr-shot--port {
  display: none;
}

.page-products .pr-shot--port img {
  max-width: 360px;
  margin: 0 auto;
}

.page-products .pr-shots:has(#v4-portrait:target) .pr-shot--land {
  display: none;
}

.page-products .pr-shots:has(#v4-portrait:target) .pr-shot--port {
  display: block;
}

/* ---------- 步骤路径 ---------- */
.page-products .pr-path {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
  display: grid;
  gap: 10px;
  counter-reset: pr-path;
}

.page-products .pr-path li {
  display: grid;
  grid-template-columns: 34px 62px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  font-size: 15px;
  line-height: 1.65;
  color: var(--slate-300);
}

.page-products .pr-path li::before {
  counter-increment: pr-path;
  content: counter(pr-path, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--score-amber);
}

.page-products .pr-path__k {
  font-weight: 700;
  color: var(--chalk);
}

.page-products .pr-path__d {
  color: var(--blue-gray);
}

/* ---------- 12 组面板 ---------- */
.page-products .pr-panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: clamp(24px, 3.4vw, 38px);
}

.page-products .pr-panel {
  padding: 16px 16px 18px;
  background: rgba(7, 15, 31, 0.72);
  border: 1px solid var(--pr-line);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease);
}

.page-products .pr-panel:hover {
  border-color: var(--neon-cyan);
  transform: translateY(-2px);
}

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

.page-products .pr-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.page-products .pr-list li {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--slate-300);
  padding: 8px 0;
  border-top: 1px solid var(--pr-line);
}

.page-products .pr-list li:first-child {
  border-top: 0;
}

/* ---------- 约赛步骤 ---------- */
.page-products .pr-steps {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 18px;
}

.page-products .pr-steps li {
  position: relative;
  padding-left: 52px;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--slate-300);
  max-width: 60ch;
}

.page-products .pr-steps li strong {
  color: var(--chalk);
  font-weight: 700;
}

.page-products .pr-steps__n {
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-950);
  background: var(--neon-cyan);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}

.page-products .pr-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 40px;
  bottom: -18px;
  width: 1px;
  background: linear-gradient(180deg, var(--neon-cyan), rgba(34, 224, 208, 0));
}

/* ---------- 图文排布 ---------- */
.page-products .pr-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin: 22px 0 4px;
}

/* ---------- 球队主页双卡 ---------- */
.page-products .pr-twins {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 6px;
}

.page-products .pr-card {
  padding: 20px;
  background: rgba(18, 32, 58, 0.55);
  border: 1px solid var(--pr-line);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease);
}

.page-products .pr-card:hover {
  border-color: var(--neon-cyan);
  transform: translateY(-2px);
}

.page-products .pr-card__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--chalk);
  margin: 0;
}

/* ---------- 版本条带 ---------- */
.page-products .pr-ver {
  border-top: 1px solid var(--pr-line);
  padding: var(--pr-pad) 0;
}

.page-products .pr-h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--chalk);
  margin: 0 0 14px;
  max-width: 24ch;
}

.page-products .pr-ver__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 46px);
  align-items: start;
}

.page-products .pr-track {
  margin-top: clamp(20px, 3vw, 32px);
}

.page-products .pr-track__bar {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1.9fr 2.5fr;
  gap: 6px;
  margin-bottom: 20px;
}

.page-products .pr-track__seg {
  height: 6px;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 100%, 0 100%);
}

.page-products .pr-track__seg--1 {
  background: rgba(34, 224, 208, 0.24);
}

.page-products .pr-track__seg--2 {
  background: rgba(34, 224, 208, 0.5);
}

.page-products .pr-track__seg--3 {
  background: rgba(34, 224, 208, 0.76);
}

.page-products .pr-track__seg--4 {
  background: var(--neon-cyan);
}

.page-products .pr-track__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.page-products .pr-ver__item {
  border-top: 2px solid var(--pr-line);
  padding-top: 12px;
  transition: border-top-color 0.22s var(--ease);
}

.page-products .pr-ver__item:hover,
.page-products .pr-ver__item:focus,
.page-products .pr-ver__item:focus-visible {
  border-top-color: var(--neon-cyan);
  outline: none;
}

.page-products .pr-ver__no {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--score-amber);
  font-variant-numeric: tabular-nums;
}

.page-products .pr-ver__name {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--chalk);
}

.page-products .pr-ver__note {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--blue-gray);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.28s var(--ease), opacity 0.28s var(--ease);
}

.page-products .pr-ver__item:hover .pr-ver__note,
.page-products .pr-ver__item:focus .pr-ver__note,
.page-products .pr-ver__item:focus-within .pr-ver__note {
  max-height: 160px;
  opacity: 1;
}

.page-products .pr-ver__pace {
  margin-top: clamp(22px, 3vw, 32px);
}

.page-products .pr-ver__media {
  margin: 0;
}

.page-products .pr-ver__media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--pr-line);
  max-height: 520px;
  object-fit: cover;
}

/* ---------- 场景区（浅色反差段） ---------- */
.page-products .pr-scene {
  background: var(--chalk);
  color: var(--ink-800);
  padding: clamp(38px, 5vw, 76px) 0;
  margin-top: clamp(26px, 4vw, 54px);
}

.page-products .pr-scene .pr-h2 {
  color: var(--ink-950);
  max-width: 20ch;
}

.page-products .pr-scene__lede {
  font-family: var(--font-editorial);
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(18, 32, 58, 0.78);
  max-width: 48ch;
  margin: 0 0 clamp(20px, 3vw, 32px);
}

.page-products .pr-scene__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 26px;
}

.page-products .pr-scene__item {
  border-top: 2px solid rgba(18, 32, 58, 0.22);
  padding: 18px 0 24px;
}

.page-products .pr-scene__k {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink-950);
  margin: 0 0 8px;
}

.page-products .pr-scene__d {
  font-size: 14.5px;
  line-height: 1.72;
  color: rgba(18, 32, 58, 0.82);
  margin: 0 0 12px;
  max-width: 40ch;
}

.page-products .pr-scene__link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-950);
  text-decoration: none;
  border-bottom: 2px solid var(--blazing-red);
  padding-bottom: 2px;
  transition: color 0.22s var(--ease);
}

.page-products .pr-scene__link:hover,
.page-products .pr-scene__link:focus-visible {
  color: var(--blazing-red);
  outline: none;
}

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

@media (min-width: 720px) {
  .page-products .pr-entry {
    grid-template-columns: 132px minmax(0, 1fr);
    align-items: baseline;
  }

  .page-products .pr-media {
    grid-template-columns: 7fr 5fr;
    align-items: end;
  }

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

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

@media (min-width: 900px) {
  .page-products .pr-func__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  }

  .page-products .pr-func__side {
    position: sticky;
    top: 112px;
    align-self: start;
  }

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

@media (min-width: 960px) {
  .page-products .pr-v4__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }

  .page-products .pr-ver__grid {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  .page-products * {
    transition-duration: 0.01ms !important;
  }

  .page-products .pr-panel:hover,
  .page-products .pr-card:hover {
    transform: none;
  }
}
