.page-products {
  --pp-block: 56px;
  --pp-tight: 20px;
  color: var(--white-hot);
}

@media (min-width: 768px) {
  .page-products {
    --pp-block: 96px;
    --pp-tight: 28px;
  }
}

.page-products .crumbs {
  padding-block: 18px 6px;
}

/* ---------- 首屏分屏 ---------- */

.page-products .pp-hero {
  display: grid;
  gap: 32px;
  padding-block: 24px var(--pp-block);
}

.page-products .pp-hero__copy h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 8.4vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 10px 0 20px;
  color: var(--white-hot);
}

.page-products .pp-hero__copy h1 em {
  font-style: normal;
  color: var(--ember);
  text-shadow: 0 0 22px rgba(255, 107, 26, 0.35);
}

.page-products .pp-hero__copy .prose {
  color: rgba(247, 244, 239, 0.78);
}

.page-products .pp-hero__facts {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-products .pp-hero__facts li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.page-products .pp-hero__facts .num {
  font-size: 1.7rem;
  line-height: 1;
  min-width: 2.4em;
}

.page-products .pp-hero__facts small {
  font-size: 0.95rem;
  color: var(--gray-mid);
  letter-spacing: 0.02em;
}

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

.page-products .pp-hero__visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-warm);
}

@media (min-width: 900px) {
  .page-products .pp-hero {
    grid-template-columns: 1fr 1.02fr;
    align-items: center;
    gap: 56px;
  }
}

/* ---------- 定义区块 ---------- */

.page-products .pp-define {
  padding-block: var(--pp-block);
  border-top: 1px solid var(--line);
}

.page-products .pp-define h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4.6vw, 2.35rem);
  line-height: 1.25;
  margin: 12px 0 28px;
  max-width: 22em;
}

.page-products .pp-define__grid {
  display: grid;
  gap: 26px;
}

.page-products .pp-define__lead .prose + .prose {
  margin-top: 16px;
}

.page-products .pp-define__lead .prose {
  color: rgba(247, 244, 239, 0.76);
}

.page-products .pp-spec {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

.page-products .pp-spec h3 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--sand);
  margin: 0 0 16px;
}

.page-products .pp-spec ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-products .pp-spec li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}

.page-products .pp-spec li span {
  color: var(--gray-mid);
  flex: none;
}

.page-products .pp-spec li b {
  font-weight: 500;
  color: var(--white-hot);
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

.page-products .pp-spec__note {
  margin: 14px 0 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--gray-mid);
}

@media (min-width: 900px) {
  .page-products .pp-define__grid {
    grid-template-columns: 1.35fr 1fr;
    gap: 48px;
    align-items: start;
  }
}

/* ---------- 能力清单 ---------- */

.page-products .pp-abilities {
  padding-block: var(--pp-block);
  border-top: 1px solid var(--line);
}

.page-products .pp-abilities h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4.6vw, 2.35rem);
  line-height: 1.25;
  margin: 12px 0 30px;
}

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

.page-products .pp-ability {
  position: relative;
  padding: 24px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease);
}

.page-products .pp-ability::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--ember), var(--spark-deep));
}

.page-products .pp-ability h3 {
  font-family: var(--font-sans);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 14px 0 10px;
  color: var(--white-hot);
}

.page-products .pp-ability p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(247, 244, 239, 0.72);
}

.page-products .pp-ability:hover {
  transform: translateY(-3px);
  border-color: var(--line-warm);
}

@media (min-width: 720px) {
  .page-products .pp-ability-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .page-products .pp-ability-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-products .pp-ability:nth-child(4),
  .page-products .pp-ability:nth-child(5) {
    grid-column: span 1;
  }
}

/* ---------- 技能树路径 ---------- */

.page-products .pp-path {
  padding-block: var(--pp-block);
  border-top: 1px solid var(--line);
}

.page-products .pp-path h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4.6vw, 2.35rem);
  line-height: 1.25;
  margin: 12px 0 30px;
}

.page-products .pp-tree {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.page-products .pp-tree__node {
  position: relative;
  padding: 20px 20px 20px 70px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.page-products .pp-tree__node:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 33px;
  top: 58px;
  bottom: -20px;
  width: 2px;
  background: linear-gradient(180deg, var(--ember), var(--spark-deep));
  opacity: 0.55;
}

.page-products .pp-tree__no {
  position: absolute;
  left: 18px;
  top: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ember);
  color: var(--void);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
}

.page-products .pp-tree__node h3 {
  font-family: var(--font-sans);
  font-size: 1.06rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--white-hot);
}

.page-products .pp-tree__node p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.72;
  color: rgba(247, 244, 239, 0.7);
}

.page-products .pp-tree__meta {
  margin-top: 12px !important;
  font-family: var(--font-mono);
  font-size: 0.82rem !important;
  letter-spacing: 0.04em;
  color: var(--spark) !important;
  padding-top: 10px;
  border-top: 1px dashed var(--line-cool);
}

@media (min-width: 1024px) {
  .page-products .pp-tree {
    max-width: 760px;
  }
}

/* ---------- 横向对照 ---------- */

.page-products .pp-compare {
  padding-block: var(--pp-block);
  border-top: 1px solid var(--line);
}

.page-products .pp-compare h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4.6vw, 2.35rem);
  line-height: 1.25;
  margin: 12px 0 30px;
}

.page-products .pp-compare__grid {
  display: grid;
  gap: 26px;
}

.page-products .pp-compare__text .prose + .prose {
  margin-top: 16px;
}

.page-products .pp-compare__text .prose {
  color: rgba(247, 244, 239, 0.76);
}

.page-products .pp-compare__notes {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.page-products .pp-compare__notes li {
  position: relative;
  padding: 9px 0 9px 20px;
  font-size: 0.92rem;
  color: var(--gray-mid);
  border-bottom: 1px solid var(--line);
}

.page-products .pp-compare__notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--spark);
}

.page-products .pp-compare__visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-cool);
}

@media (min-width: 900px) {
  .page-products .pp-compare__grid {
    grid-template-columns: 1fr 1.15fr;
    gap: 48px;
    align-items: center;
  }
}

.page-products .pp-table__wrap {
  margin-top: 40px;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--panel);
  -webkit-overflow-scrolling: touch;
}

.page-products .pp-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.page-products .pp-table caption {
  caption-side: top;
  text-align: left;
  padding: 16px 20px 12px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--sand);
}

.page-products .pp-table thead th {
  text-align: left;
  padding: 12px 18px;
  height: 48px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gray-mid);
  background: rgba(255, 107, 26, 0.06);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.page-products .pp-table tbody th {
  text-align: left;
  padding: 0 18px;
  height: 48px;
  font-weight: 500;
  color: var(--white-hot);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.page-products .pp-table tbody td {
  padding: 0 18px;
  height: 48px;
  text-align: right;
  border-bottom: 1px solid var(--line);
  color: var(--spark);
}

.page-products .pp-table tbody tr:last-child th,
.page-products .pp-table tbody tr:last-child td {
  border-bottom: none;
}

.page-products .pp-table tbody tr:hover th,
.page-products .pp-table tbody tr:hover td {
  background: rgba(33, 230, 193, 0.05);
}

/* ---------- 概率索引 ---------- */

.page-products .pp-prob {
  padding-block: var(--pp-block);
  border-top: 1px solid var(--line);
}

.page-products .pp-prob h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4.6vw, 2.35rem);
  line-height: 1.25;
  margin: 12px 0 30px;
}

.page-products .pp-prob__grid {
  display: grid;
  gap: 30px;
}

.page-products .pp-dial {
  position: relative;
  margin: 0;
  display: grid;
  justify-items: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 40%, rgba(184, 52, 31, 0.22), transparent 68%), var(--panel);
  border: 1px solid var(--line-warm);
  border-radius: var(--radius-lg);
}

.page-products .pp-dial svg {
  width: min(220px, 62vw);
  height: auto;
  transform: rotate(-90deg);
}

.page-products .pp-dial__track {
  fill: none;
  stroke: var(--spark-deep);
  stroke-width: 9;
  opacity: 0.45;
}

.page-products .pp-dial__value {
  fill: none;
  stroke: var(--ember);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 352;
  stroke-dashoffset: 89;
  filter: drop-shadow(0 0 8px rgba(255, 107, 26, 0.55));
}

.page-products .pp-dial__num {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% - 6px));
  font-size: clamp(1.4rem, 6vw, 2rem);
}

.page-products .pp-dial .media-frame__cap {
  position: static;
  margin-top: 14px;
  text-align: center;
}

.page-products .pp-prob__text .prose + .prose {
  margin-top: 16px;
}

.page-products .pp-prob__text .prose {
  color: rgba(247, 244, 239, 0.76);
}

.page-products .pp-prob__keys {
  margin: 26px 0 0;
  display: grid;
  gap: 12px;
}

.page-products .pp-prob__keys > div {
  padding: 14px 16px;
  background: var(--panel);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--spark);
}

.page-products .pp-prob__keys dt {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white-hot);
  letter-spacing: 0.03em;
}

.page-products .pp-prob__keys dd {
  margin: 6px 0 0;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--gray-mid);
}

@media (min-width: 900px) {
  .page-products .pp-prob__grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 52px;
    align-items: start;
  }
}

/* ---------- 订阅 ---------- */

.page-products .pp-sub {
  padding-block: var(--pp-block);
  border-top: 1px solid var(--line);
}

.page-products .pp-sub h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4.6vw, 2.35rem);
  line-height: 1.25;
  margin: 12px 0 30px;
}

.page-products .pp-sub__grid {
  display: grid;
  gap: 28px;
}

.page-products .pp-sub__visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-warm);
}

.page-products .pp-sub__text .prose {
  color: rgba(247, 244, 239, 0.76);
}

.page-products .pp-sub__text .prose + .prose {
  margin-top: 16px;
}

.page-products .pp-sub__rules {
  list-style: none;
  margin: 24px 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-products .pp-sub__rules li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.page-products .pp-sub__rules .num {
  font-size: 1.6rem;
  line-height: 1;
  min-width: 3.2em;
}

.page-products .pp-sub__rules small {
  font-size: 0.92rem;
  color: var(--gray-mid);
}

.page-products .pp-sub__text .btn {
  margin-top: 6px;
}

@media (min-width: 900px) {
  .page-products .pp-sub__grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    align-items: center;
  }
}

/* ---------- 版本节奏 ---------- */

.page-products .pp-version {
  padding-block: var(--pp-block);
  border-top: 1px solid var(--line);
}

.page-products .pp-version h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4.6vw, 2.35rem);
  line-height: 1.25;
  margin: 12px 0 18px;
}

.page-products .pp-version__lead {
  color: rgba(247, 244, 239, 0.72);
  margin-bottom: 30px;
}

.page-products .pp-version__list {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-products .pp-version__item {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

.page-products .pp-version__tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ember);
}

.page-products .pp-version__item p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(247, 244, 239, 0.72);
}

@media (min-width: 720px) {
  .page-products .pp-version__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .page-products .pp-version__list {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- 适用场景 ---------- */

.page-products .pp-scenes {
  padding-block: var(--pp-block);
  border-top: 1px solid var(--line);
}

.page-products .pp-scenes h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4.6vw, 2.35rem);
  line-height: 1.25;
  margin: 12px 0 30px;
}

.page-products .pp-scenes__grid {
  display: grid;
  gap: 18px;
}

.page-products .pp-scene {
  padding: 26px 22px;
  background: linear-gradient(160deg, rgba(184, 52, 31, 0.16), transparent 58%), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.page-products .pp-scene h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--white-hot);
}

.page-products .pp-scene__who {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--spark);
  margin: 0 0 14px;
}

.page-products .pp-scene p {
  margin: 0 0 14px;
  font-size: 0.94rem;
  line-height: 1.75;
  color: rgba(247, 244, 239, 0.72);
}

.page-products .pp-scene__cfg {
  margin: 0 !important;
  padding-top: 14px;
  border-top: 1px dashed var(--line-warm);
  font-family: var(--font-mono);
  font-size: 0.82rem !important;
  line-height: 1.7 !important;
  color: var(--sand) !important;
}

@media (min-width: 900px) {
  .page-products .pp-scenes__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- 页尾引导 ---------- */

.page-products .pp-cta {
  padding-block: var(--pp-block);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 30px;
}

.page-products .pp-cta__visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-cool);
}

.page-products .pp-cta__body h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 5vw, 2.4rem);
  line-height: 1.24;
  margin: 0 0 18px;
  color: var(--white-hot);
}

.page-products .pp-cta__body .prose {
  color: rgba(247, 244, 239, 0.76);
}

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

@media (min-width: 900px) {
  .page-products .pp-cta {
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    align-items: center;
  }
}

/* ---------- 降级 ---------- */

@media (prefers-reduced-motion: reduce) {
  .page-products .pp-ability,
  .page-products .pp-ability:hover {
    transition: none;
    transform: none;
  }

  .page-products .pp-dial__value {
    filter: none;
  }
}
