.page-products {
  --pp-radius: 16px;
  --pp-gap: clamp(20px, 4vw, 34px);
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
}

.page-products .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ---------- 首屏 ---------- */
.page-products .pp-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 6vw, 56px) 0 clamp(44px, 8vw, 88px);
  background: linear-gradient(168deg, var(--paper) 0%, var(--sand) 46%, var(--sand-deep) 100%);
}

.page-products .pp-hero__glow {
  position: absolute;
  inset: -30% -10% auto auto;
  width: min(760px, 120vw);
  height: min(760px, 120vw);
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 40%, rgba(255, 194, 75, 0.5), transparent 62%),
    radial-gradient(circle at 70% 62%, rgba(242, 118, 46, 0.24), transparent 58%);
  filter: blur(12px);
  pointer-events: none;
}

.page-products .pp-hero__inner {
  position: relative;
  z-index: 1;
}

.page-products .pp-hero .breadcrumb {
  margin-bottom: clamp(22px, 4vw, 34px);
}

.page-products .pp-hero__title {
  margin: 14px 0 0;
  max-width: 15em;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(38px, 8.4vw, 78px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.page-products .pp-hero__accent {
  display: inline-block;
  color: var(--sun-deep);
  background: linear-gradient(180deg, transparent 62%, var(--pale-gold) 62%);
}

.page-products .pp-hero__lead {
  max-width: 34em;
  margin: 22px 0 0;
  font-size: clamp(16px, 2.2vw, 18px);
  line-height: 1.85;
  color: var(--slate);
}

.page-products .pp-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: clamp(26px, 5vw, 40px) 0 0;
  padding: 0;
  list-style: none;
}

.page-products .pp-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.72);
  box-shadow: inset 0 0 0 1px var(--rule-soft);
}

.page-products .pp-stat__num {
  font-size: 22px;
  font-weight: 700;
  color: var(--sun-deep);
}

.page-products .pp-stat__label {
  font-size: 13px;
  color: var(--slate);
}

/* ---------- 通用章节头 ---------- */
.page-products .pp-head {
  max-width: 40em;
  margin-bottom: var(--pp-gap);
}

.page-products .pp-head .chapter-num {
  display: inline-block;
  margin-bottom: 12px;
}

.page-products .pp-head__title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(25px, 4.6vw, 34px);
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.page-products .pp-head__lead {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.85;
  color: var(--slate);
}

/* ---------- 图 ---------- */
.page-products .pp-figure {
  margin: 0 0 var(--pp-gap);
  border-radius: var(--pp-radius);
  overflow: hidden;
  background: var(--sand-deep);
}

.page-products .pp-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  aspect-ratio: 14 / 9;
}

.page-products .pp-figure--mid img {
  aspect-ratio: 3 / 2;
}

.page-products .pp-figure figcaption {
  padding: 12px 18px 16px;
  font-size: 13px;
  color: var(--slate);
  background: var(--paper);
}

/* ---------- 01 路径树 ---------- */
.page-products .pp-tree {
  position: relative;
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0 0 0 clamp(38px, 8vw, 52px);
  list-style: none;
}

.page-products .pp-tree::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--sun) 48%, var(--jade) 100%);
}

.page-products .pp-tree__item {
  position: relative;
}

.page-products .pp-tree__item::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(38px, 8vw, 52px) + 9px);
  top: 22px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 2px var(--sun), 0 0 0 6px rgba(242, 118, 46, 0.1);
}

.page-products .pp-tree__body {
  padding: 18px 20px 20px;
  border-radius: var(--pp-radius);
  background: var(--paper);
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease);
}

.page-products .pp-tree__body:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(20, 32, 58, 0.1);
}

.page-products .pp-tree__num {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--pale-gold);
  font-size: 12px;
  font-weight: 700;
  color: var(--sun-deep);
}

.page-products .pp-tree__title {
  margin: 10px 0 6px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.page-products .pp-tree__body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--slate);
}

/* ---------- 左右分栏 ---------- */
.page-products .pp-split {
  display: grid;
  gap: clamp(24px, 5vw, 48px);
  align-items: start;
}

.page-products .pp-split__media {
  margin: 0;
  border-radius: var(--pp-radius);
  overflow: hidden;
  background: var(--sand-deep);
}

.page-products .pp-split__media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

.page-products .pp-split__text p {
  margin: 0 0 1.1em;
  font-size: 16px;
  line-height: 1.85;
}

.page-products .pp-split__text .pp-head {
  margin-bottom: 18px;
}

/* ---------- 02 入口 ---------- */
.page-products .pp-bullets {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.page-products .pp-bullets li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--paper);
  font-size: 14px;
  line-height: 1.7;
  color: var(--slate);
}

.page-products .pp-bullets__k {
  flex: none;
  min-width: 58px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--jade-mist);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

/* ---------- 03 查询 ---------- */
.page-products .pp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--pp-gap);
}

.page-products .pp-chip {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--rule);
  font-size: 14px;
  color: var(--slate);
}

.page-products .pp-chip--on {
  background: var(--pale-gold);
  box-shadow: inset 0 0 0 1px var(--gold);
  color: var(--sun-deep);
  font-weight: 700;
}

.page-products .pp-query__notes {
  margin-top: calc(var(--pp-gap) * 0.6);
}

.page-products .pp-note {
  padding: 20px 18px;
  border-radius: var(--pp-radius);
  background: var(--paper);
  border-top: 3px solid var(--gold);
}

.page-products .pp-note__title {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
}

.page-products .pp-note p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--slate);
}

/* ---------- 04 站点切换 ---------- */
.page-products .pp-routes {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.page-products .pp-route {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 253, 249, 0.86);
}

.page-products .pp-route__dot {
  width: 12px;
  height: 12px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 0 4px rgba(31, 169, 138, 0.16);
}

.page-products .pp-route__title {
  margin: 0 0 4px;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 800;
}

.page-products .pp-route p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--slate);
}

.page-products .pp-switch__keep {
  margin: 20px 0 0;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--jade-mist);
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
}

/* ---------- 05 对照 ---------- */
.page-products .pp-compare {
  position: relative;
  overflow: hidden;
  background: var(--sand);
}

.page-products .pp-compare__glow {
  position: absolute;
  inset: -120px 0 auto 50%;
  width: min(900px, 130vw);
  height: 340px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255, 194, 75, 0.42), transparent 68%);
  filter: blur(6px);
  pointer-events: none;
}

.page-products .pp-compare .page-shell {
  position: relative;
  z-index: 1;
}

.page-products .pp-band {
  display: flex;
  gap: 16px;
  margin-bottom: var(--pp-gap);
  padding-bottom: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.page-products .pp-band__item {
  flex: 0 0 min(86vw, 760px);
  margin: 0;
  border-radius: var(--pp-radius);
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--sand-deep);
}

.page-products .pp-band__item img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  aspect-ratio: 7 / 4;
}

.page-products .pp-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--pp-radius);
  background: var(--paper);
}

.page-products .pp-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14px;
}

.page-products .pp-table__caption {
  padding: 16px 18px 12px;
  text-align: left;
  font-size: 13px;
  color: var(--slate);
}

.page-products .pp-table thead th {
  padding: 12px 14px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.page-products .pp-table tbody th {
  padding: 12px 14px;
  font-weight: 700;
  text-align: left;
  color: var(--ink);
  white-space: nowrap;
}

.page-products .pp-table tbody th .num {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--pale-gold);
  font-size: 11px;
  color: var(--sun-deep);
}

.page-products .pp-table tbody td {
  padding: 12px 14px;
  color: var(--slate);
  border-top: 1px solid var(--rule-soft);
}

.page-products .pp-table tbody tr:nth-child(even) {
  background: var(--sand-deep);
}

.page-products .pp-table .pp-yes {
  color: var(--jade);
  font-weight: 700;
}

.page-products .pp-compare__note {
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--slate);
}

.page-products .pp-compare__note a {
  color: var(--sun-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 06 场景 ---------- */
.page-products .pp-scene {
  display: flex;
  flex-direction: column;
  padding: 24px 20px 20px;
  border-radius: var(--pp-radius);
  background: var(--paper);
  border-bottom: 4px solid var(--sun);
}

.page-products .pp-scene__num {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
}

.page-products .pp-scene__title {
  margin: 14px 0 10px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.page-products .pp-scene p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.82;
  color: var(--slate);
}

.page-products .pp-scene__next {
  margin-top: auto;
  font-size: 14px;
}

.page-products .pp-scene__next a {
  color: var(--sun-deep);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 80, 28, 0.4);
}

/* ---------- CTA ---------- */
.page-products .pp-cta {
  margin-top: clamp(34px, 6vw, 60px);
  padding: clamp(24px, 4vw, 36px);
  border-radius: 20px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  gap: 18px;
}

.page-products .pp-cta__title {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 800;
}

.page-products .pp-cta p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 253, 249, 0.82);
}

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

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .page-products .pp-tree {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 22px;
  }

  .page-products .pp-cta {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .page-products .pp-cta__actions {
    justify-content: flex-end;
  }
}

@media (min-width: 960px) {
  .page-products .pp-split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(32px, 5vw, 64px);
  }

  .page-products .pp-split--reverse {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }

  .page-products .pp-split__text .pp-head__title {
    font-size: clamp(26px, 2.8vw, 34px);
  }

  .page-products .pp-band__item {
    flex-basis: 62%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .pp-tree__body {
    transition: none;
  }

  .page-products .pp-tree__body:hover {
    transform: none;
  }
}
