.page-products {
  --pr-rail-x: calc(var(--gutter) + 45px);
  --pr-content-x: calc(var(--gutter) + 92px);
  --pr-node-size: 60px;
  color: var(--ink);
}

/* ---------- 首屏 ---------- */
.page-products .pr-hero {
  position: relative;
  padding-block: clamp(24px, 5vw, 56px) clamp(36px, 6vw, 72px);
  overflow: hidden;
}

.page-products .pr-hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 90%;
  background:
    radial-gradient(46% 62% at 16% 18%, rgba(43, 232, 200, 0.16), transparent 70%),
    radial-gradient(42% 58% at 88% 6%, rgba(124, 92, 255, 0.18), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.page-products .pr-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.page-products .pr-hero-copy h1 {
  margin: 12px 0 18px;
  max-width: 16ch;
}

.page-products .pr-hero-copy .lead {
  max-width: 40ch;
  color: var(--ink-2);
}

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

.page-products .pr-hero-facts {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
}

.page-products .pr-hero-facts .num {
  color: var(--cyan);
  font-weight: 700;
  margin-right: 4px;
}

.page-products .pr-hero-visual {
  display: grid;
  gap: 16px;
}

.page-products .pr-orbit {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: clamp(22px, 4vw, 34px);
  border-radius: var(--radius-panel);
  border: 1px solid var(--stroke);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-panel);
}

.page-products .pr-orbit-ring {
  position: relative;
  width: clamp(150px, 34vw, 196px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--cyan) 0deg 296deg, rgba(255, 255, 255, 0.08) 296deg 360deg);
}

.page-products .pr-orbit-ring::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--line);
}

.page-products .pr-orbit-core {
  position: relative;
  font-family: var(--font-num);
  font-size: clamp(40px, 9vw, 58px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.page-products .pr-orbit-cap {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  text-align: center;
}

.page-products .pr-hero-mini {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.page-products .pr-hero-mini .stat {
  padding: 18px 16px;
  border-radius: var(--radius-soft);
  border: 1px solid var(--line);
  background: var(--panel);
}

.page-products .pr-hero-mini .stat-num {
  font-family: var(--font-num);
  font-size: clamp(28px, 6vw, 38px);
  font-weight: 700;
  display: block;
  line-height: 1.1;
}

.page-products .pr-hero-mini .stat-num--cyan { color: var(--cyan); }
.page-products .pr-hero-mini .stat-num--gold { color: var(--gold); }

.page-products .pr-hero-mini .stat-label {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-2);
}

/* ---------- 技能树总览 ---------- */
.page-products .pr-map {
  padding-block: clamp(40px, 7vw, 84px);
}

.page-products .pr-map-head {
  max-width: 62ch;
  margin-bottom: clamp(26px, 4vw, 46px);
}

.page-products .pr-map-head h2 {
  margin: 10px 0 12px;
}

.page-products .pr-map-head .lead {
  color: var(--ink-2);
}

.page-products .pr-tree-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  counter-reset: pr-node;
}

.page-products .pr-tnode {
  position: relative;
  padding: 22px 20px 20px;
  border-radius: var(--radius-soft);
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 0.24s var(--ease-out), transform 0.24s var(--ease-out);
}

.page-products .pr-tnode:hover {
  border-color: rgba(43, 232, 200, 0.45);
  transform: translateY(-3px);
}

.page-products .pr-tnode__idx {
  display: inline-block;
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--night);
  background: linear-gradient(140deg, var(--cyan), var(--violet));
  border-radius: var(--radius-pill);
  padding: 4px 12px;
}

.page-products .pr-tnode__title {
  margin: 14px 0 8px;
  font-size: 20px;
}

.page-products .pr-tnode__desc {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.page-products .pr-tnode__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(43, 232, 200, 0.35);
  padding-bottom: 2px;
}

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

/* ---------- 技能树骨架 ---------- */
.page-products .pr-tree {
  position: relative;
}

.page-products .pr-block {
  position: relative;
  padding-block: clamp(36px, 6vw, 76px);
}

.page-products .pr-block > .shell {
  position: relative;
}

.page-products .pr-node {
  display: none;
}

.page-products .pr-block-grid {
  display: grid;
  gap: clamp(24px, 3.5vw, 44px);
}

.page-products .pr-main h2 {
  margin: 10px 0 14px;
  max-width: 22ch;
}

.page-products .pr-main .lead {
  color: var(--ink);
  margin-bottom: 14px;
  max-width: 42ch;
}

.page-products .pr-main p {
  color: var(--ink-2);
  line-height: 1.75;
  max-width: 46ch;
}

.page-products .pr-side {
  display: grid;
  gap: 14px;
  align-content: start;
}

.page-products .pr-side-stat {
  padding: 20px;
  border-radius: var(--radius-soft);
  border: 1px solid var(--line);
  background: linear-gradient(150deg, var(--panel-2), var(--panel));
}

.page-products .pr-side-stat .stat-num {
  display: block;
  font-family: var(--font-num);
  font-size: clamp(42px, 10vw, 68px);
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}

.page-products .pr-side-stat .stat-num--cyan { color: var(--cyan); }

.page-products .pr-side-stat .stat-label {
  display: block;
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.page-products .pr-side-note {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-2);
  border-left: 2px solid rgba(43, 232, 200, 0.35);
  padding-left: 12px;
}

.page-products .pr-wide-img {
  margin: clamp(24px, 4vw, 40px) 0 0;
}

.page-products .pr-visual {
  display: grid;
  gap: 16px;
  align-content: start;
}

/* ---------- 图表 ---------- */
.page-products .pr-chart-wrap {
  padding: 18px 16px 12px;
  border-radius: var(--radius-soft);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
}

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

.page-products .pr-chart-key {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-2);
}

.page-products .pr-chart-key li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.page-products .pr-key-dot {
  width: 18px;
  height: 3px;
  border-radius: 2px;
  display: inline-block;
}

.page-products .pr-key-dot--cyan { background: var(--cyan); }
.page-products .pr-key-dot--orange { background: var(--orange); }

/* ---------- 季票小块 ---------- */
.page-products .pr-ticket {
  margin-top: 24px;
  border-radius: var(--radius-panel);
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
}

.page-products .pr-ticket-copy {
  padding: 22px 20px;
}

.page-products .pr-ticket-copy h3 {
  margin: 0 0 8px;
  font-size: 19px;
  color: var(--gold);
}

.page-products .pr-ticket-copy p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-2);
}

.page-products .pr-ticket .img-frame {
  border-radius: 0;
}

/* ---------- 移动端设备 ---------- */
.page-products .pr-side--phone {
  gap: 12px;
}

.page-products .pr-phone {
  display: grid;
  place-items: center;
  padding: 18px;
  border-radius: var(--radius-panel);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(124, 92, 255, 0.14), var(--panel));
}

.page-products .pr-phone-screen {
  width: min(280px, 100%);
  border-radius: 26px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  background: var(--night);
  padding: 14px 12px 18px;
  box-shadow: 0 18px 40px rgba(3, 7, 22, 0.6);
}

.page-products .pr-phone-bar {
  display: block;
  width: 62px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.22);
  margin: 0 auto 14px;
}

.page-products .pr-dim {
  list-style: none;
  margin: 0 0 14px;
  padding: 0 0 4px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.page-products .pr-dim::-webkit-scrollbar { display: none; }

.page-products .pr-dim-btn {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--stroke);
  background: var(--glass);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: default;
}

.page-products .pr-dim-btn.is-on {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--night);
  font-weight: 700;
}

.page-products .pr-phone-rows {
  display: grid;
  gap: 6px;
}

.page-products .pr-phone-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  color: var(--ink);
}

.page-products .pr-phone-row__r {
  font-family: var(--font-num);
  font-weight: 700;
  color: var(--green);
  text-align: center;
}

.page-products .pr-phone-row:nth-child(4) .pr-phone-row__r { color: var(--red); }

.page-products .pr-phone-row__d {
  font-family: var(--font-num);
  font-size: 12px;
  color: var(--ink-2);
}

/* ---------- 订阅名额 ---------- */
.page-products .pr-slots-block {
  margin-top: 26px;
  padding: 20px;
  border-radius: var(--radius-soft);
  border: 1px solid var(--line);
  background: var(--panel);
}

.page-products .pr-slots-cap {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}

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

.page-products .pr-slot {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px dashed rgba(154, 166, 200, 0.4);
}

.page-products .pr-slot.is-on {
  border: 0;
  background: linear-gradient(140deg, var(--cyan), var(--violet));
  box-shadow: 0 0 0 4px rgba(43, 232, 200, 0.1);
}

.page-products .pr-slots-note {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
}

/* ---------- 按需求选择 ---------- */
.page-products .pr-choose {
  padding-block: clamp(44px, 7vw, 88px);
  background:
    radial-gradient(60% 50% at 82% 0%, rgba(124, 92, 255, 0.14), transparent 70%),
    var(--panel);
  border-block: 1px solid var(--line);
}

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

.page-products .pr-scene {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 22px 20px;
  border-radius: var(--radius-soft);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.24s var(--ease-out), background 0.24s var(--ease-out);
}

.page-products .pr-scene:hover {
  border-color: rgba(43, 232, 200, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.page-products .pr-scene__when {
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.page-products .pr-scene__what {
  margin: 0;
  font-size: 19px;
}

.page-products .pr-scene p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.page-products .pr-scene__go {
  justify-self: start;
  margin-top: 4px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(43, 232, 200, 0.4);
  color: var(--cyan);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.page-products .pr-scene__go:hover {
  background: var(--cyan);
  color: var(--night);
}

/* ---------- 延伸阅读 ---------- */
.page-products .pr-next {
  padding-block: clamp(40px, 6vw, 76px) clamp(56px, 8vw, 96px);
}

.page-products .pr-next-head {
  max-width: 56ch;
  margin-bottom: 26px;
}

.page-products .pr-next-head h2 {
  margin: 0 0 10px;
}

.page-products .pr-next-head p {
  margin: 0;
  color: var(--ink-2);
}

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

.page-products .pr-next-card a {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 22px 20px;
  border-radius: var(--radius-soft);
  border: 1px solid var(--line);
  background: var(--panel);
  text-decoration: none;
  color: var(--ink);
  height: 100%;
  transition: transform 0.24s var(--ease-out), border-color 0.24s var(--ease-out);
}

.page-products .pr-next-card a:hover {
  transform: translateY(-3px);
  border-color: rgba(43, 232, 200, 0.45);
}

.page-products .pr-next-card__tag {
  justify-self: start;
}

.page-products .pr-next-card strong {
  font-size: 17px;
  font-family: var(--font-head);
}

.page-products .pr-next-card span:last-child {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
}

/* ---------- 图片容器修补 ---------- */
.page-products .img-frame {
  border-radius: var(--radius-panel);
  overflow: hidden;
}

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

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

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

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

@media (min-width: 900px) {
  .page-products .pr-block-grid {
    grid-template-columns: 1.55fr 1fr;
    align-items: start;
  }

  .page-products .pr-block-grid--flip {
    grid-template-columns: 0.72fr 1.28fr;
  }

  .page-products .pr-choose {
    padding-block: clamp(56px, 7vw, 92px);
  }

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

@media (min-width: 1080px) {
  .page-products .pr-hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .page-products .pr-tree-nav {
    position: relative;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    padding-top: 8px;
  }

  .page-products .pr-tree-nav::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--violet) 52%, var(--gold));
    opacity: 0.45;
  }

  .page-products .pr-tnode {
    padding-top: 76px;
    background: transparent;
    border-color: var(--line);
  }

  .page-products .pr-tnode::before {
    content: "";
    position: absolute;
    left: 24px;
    top: 22px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--night);
    border: 3px solid var(--cyan);
    box-shadow: 0 0 0 6px rgba(43, 232, 200, 0.1);
  }

  .page-products .pr-tnode__idx {
    position: absolute;
    left: 20px;
    top: 46px;
    background: none;
    color: var(--ink-2);
    padding: 0;
  }

  .page-products .pr-node {
    display: grid;
    place-items: center;
    position: absolute;
    left: calc(var(--gutter) + 16px);
    top: 4px;
    width: var(--pr-node-size);
    height: var(--pr-node-size);
    border-radius: 50%;
    font-family: var(--font-num);
    font-size: 15px;
    font-weight: 700;
    color: var(--night);
    background: linear-gradient(140deg, var(--cyan), var(--violet));
    box-shadow: 0 0 0 7px rgba(43, 232, 200, 0.08);
    z-index: 2;
  }

  .page-products .pr-block > .shell {
    padding-left: var(--pr-content-x);
  }

  .page-products .pr-block > .shell::before {
    content: "";
    position: absolute;
    left: var(--pr-rail-x);
    top: 10px;
    bottom: -60px;
    width: 2px;
    background: linear-gradient(180deg, rgba(43, 232, 200, 0.5), rgba(43, 232, 200, 0.06));
  }

  .page-products .pr-block:last-child > .shell::before {
    bottom: 20px;
  }

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

@media (min-width: 1200px) {
  .page-products .pr-slots {
    gap: 12px;
  }

  .page-products .pr-scenes {
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .pr-tnode,
  .page-products .pr-scene,
  .page-products .pr-next-card a,
  .page-products .pr-scene__go {
    transition: none;
  }

  .page-products .pr-tnode:hover,
  .page-products .pr-next-card a:hover {
    transform: none;
  }
}
