.page-products {
  --pp-gap: 14px;
  --pp-tint: rgba(212, 175, 97, 0.09);
  background: var(--c-paper);
  color: var(--c-stone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

.page-products *,
.page-products *::before,
.page-products *::after {
  box-sizing: border-box;
}

.page-products :is(h1, h2, h3) {
  margin: 0;
}

.page-products p {
  margin: 0;
}

.page-products [id] {
  scroll-margin-top: 96px;
}

.page-products .container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.page-products .section {
  padding-block: clamp(40px, 7vw, 76px);
}

.page-products .pp-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--c-crimson);
  margin-bottom: 10px;
}

.page-products .pp-head {
  max-width: 48rem;
  margin-bottom: 26px;
}

.page-products .section-head__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(23px, 3.6vw, 34px);
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--c-crimson);
}

.page-products .section-head__note {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--c-stone);
}

.page-products .pp-note {
  margin-top: 20px;
  padding-left: 14px;
  border-left: 2px solid var(--c-gold);
  font-size: 14px;
  line-height: 1.85;
  color: var(--c-stone);
}

.page-products .pp-note--light a {
  color: var(--c-crimson);
  text-decoration: none;
  border-bottom: 1px solid var(--c-gold);
}

/* ---------- 首屏 ---------- */
.page-products .pp-hero {
  position: relative;
  overflow: hidden;
  padding: 20px 0 48px;
  color: var(--on-dark);
  background:
    radial-gradient(120% 88% at 86% 0%, rgba(212, 175, 97, 0.22), transparent 58%),
    linear-gradient(155deg, var(--c-wine) 0%, var(--c-crimson) 58%, #47101B 100%);
}

.page-products .pp-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-gold), transparent);
  opacity: 0.85;
}

.page-products .pp-hero::after {
  content: "";
  position: absolute;
  right: -18%;
  bottom: -46%;
  width: 78%;
  height: 300px;
  background: linear-gradient(90deg, transparent, rgba(46, 111, 142, 0.32), transparent);
  transform: rotate(-11deg);
  pointer-events: none;
}

.page-products .pp-hero > .container {
  position: relative;
  z-index: 1;
}

.page-products .pp-hero .breadcrumbs {
  margin-bottom: 22px;
}

.page-products .breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.page-products .breadcrumbs__list > li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--c-gold);
}

.page-products .pp-hero .breadcrumbs__link {
  color: var(--on-dark-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-products .pp-hero .breadcrumbs__link:hover,
.page-products .pp-hero .breadcrumbs__link:focus-visible {
  color: var(--c-gold-light);
  border-bottom-color: var(--c-gold);
}

.page-products .pp-hero .breadcrumbs__list [aria-current="page"] {
  color: var(--c-gold-light);
}

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

.page-products .pp-hero .pp-eyebrow {
  color: var(--c-gold-light);
}

.page-products .pp-hero__lead h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 6.2vw, 52px);
  line-height: 1.14;
  letter-spacing: 0.01em;
  color: var(--c-cream);
  max-width: 15ch;
  margin-bottom: 16px;
}

.page-products .pp-hero__lede {
  max-width: 42ch;
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--on-dark);
}

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

.page-products .pp-hero__actions .btn {
  text-decoration: none;
}

.page-products .pp-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 0;
  padding: 18px 0 0;
  list-style: none;
  border-top: 1px solid var(--line-dark);
}

.page-products .pp-stats__num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(16px, 3.2vw, 23px);
  line-height: 1.2;
  color: var(--c-gold-light);
}

.page-products .pp-stats__label {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--on-dark-dim);
}

.page-products .pp-index {
  background: var(--c-cream);
  color: var(--c-stone);
  border: 1px solid rgba(212, 175, 97, 0.55);
  box-shadow: var(--shadow-2);
  padding: 16px 16px 8px;
}

.page-products .pp-index__title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--c-crimson);
  margin-bottom: 6px;
}

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

.page-products .pp-index__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--c-stone);
  font-size: 15px;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.page-products .pp-index__list > li:last-child .pp-index__link {
  border-bottom: 0;
}

.page-products .pp-index__link:hover,
.page-products .pp-index__link:focus-visible {
  color: var(--c-crimson);
}

.page-products .pp-index__no {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--c-ash);
}

/* ---------- Bento 功能板 ---------- */
.page-products .pp-bento {
  display: grid;
  gap: var(--pp-gap);
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "cost"
    "login"
    "trend"
    "stats"
    "issue";
}

.page-products .pp-card--cost { grid-area: cost; }
.page-products .pp-card--login { grid-area: login; }
.page-products .pp-card--trend { grid-area: trend; }
.page-products .pp-card--stats { grid-area: stats; }
.page-products .pp-card--issue { grid-area: issue; }

.page-products .pp-card {
  min-width: 0;
  padding: 18px;
  background: var(--c-cream);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-1);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page-products .pp-card:hover {
  border-color: var(--c-gold);
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}

.page-products .pp-card__kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--c-ash);
}

.page-products .pp-card__title {
  margin: 6px 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(19px, 2.5vw, 23px);
  line-height: 1.35;
  color: var(--c-crimson);
}

.page-products .pp-card__text {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--c-stone);
}

.page-products .pp-card__list {
  margin: 12px 0 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-stone);
}

.page-products .pp-card__list li::marker {
  color: var(--c-gold);
}

.page-products .pp-card__media {
  margin: 14px 0 0;
  border: 1px solid var(--line);
  overflow: hidden;
  background: linear-gradient(150deg, var(--c-crimson), var(--c-wine));
}

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

.page-products .pp-card__link {
  display: inline-block;
  margin-top: 14px;
  padding-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--c-crimson);
  text-decoration: none;
  border-bottom: 1px solid var(--c-gold);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-products .pp-card__link:hover,
.page-products .pp-card__link:focus-visible {
  color: var(--c-wine);
  border-bottom-color: var(--c-crimson);
}

.page-products .pp-card--dark {
  background: linear-gradient(165deg, var(--c-wine), #2A0A12);
  border-color: var(--line-gold);
  color: var(--on-dark);
}

.page-products .pp-card--dark .pp-card__kicker {
  color: var(--c-gold);
}

.page-products .pp-card--dark .pp-card__title {
  color: var(--c-gold-light);
}

.page-products .pp-card--dark .pp-card__text {
  color: var(--on-dark);
}

.page-products .pp-card--dark .pp-card__media {
  border-color: var(--line-gold);
  background: rgba(18, 16, 15, 0.4);
}

.page-products .pp-levels {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.page-products .pp-level {
  padding-left: 10px;
  border-left: 2px solid var(--c-gold);
}

.page-products .pp-level__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--c-gold-light);
}

.page-products .pp-level__text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--on-dark-dim);
}

/* ---------- 走势放大 ---------- */
.page-products .pp-zoom-section {
  background: var(--c-cream);
  border-block: 1px solid var(--line);
}

.page-products .pp-zoom {
  display: grid;
  gap: var(--pp-gap);
}

.page-products .pp-zoom__panel {
  position: relative;
  padding: 20px 18px 20px 58px;
  background: var(--c-paper);
  border: 1px solid var(--line);
}

.page-products .pp-zoom__no {
  position: absolute;
  left: 18px;
  top: 20px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-gold);
}

.page-products .pp-zoom__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--c-crimson);
  margin-bottom: 8px;
}

.page-products .pp-zoom__text {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--c-stone);
}

/* ---------- 统计对照 ---------- */
.page-products .pp-stats-section {
  color: var(--on-dark);
  background:
    radial-gradient(100% 80% at 10% 0%, rgba(46, 111, 142, 0.22), transparent 60%),
    linear-gradient(150deg, var(--c-wine), #24070E 85%);
}

.page-products .pp-stats-section .pp-eyebrow {
  color: var(--c-gold);
}

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

.page-products .pp-stats-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(23px, 3.6vw, 34px);
  line-height: 1.3;
  color: var(--c-cream);
  margin-bottom: 12px;
}

.page-products .pp-stats-lede {
  font-size: 15px;
  line-height: 1.9;
  color: var(--on-dark);
  max-width: 46ch;
}

.page-products .pp-gradient {
  margin-top: 22px;
}

.page-products .pp-gradient__bar {
  height: 12px;
  border: 1px solid var(--line-gold);
  background: linear-gradient(90deg, var(--c-gold-light), var(--c-gold) 45%, var(--c-barley) 70%, var(--c-lake));
}

.page-products .pp-gradient__ends {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--on-dark-dim);
}

.page-products .pp-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.page-products .pp-legend__item {
  padding: 12px;
  background: rgba(246, 241, 231, 0.06);
  border: 1px solid var(--line-dark);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page-products .pp-legend__item:hover {
  border-color: var(--c-gold);
  background: rgba(246, 241, 231, 0.12);
  transform: translateY(-2px);
}

.page-products .pp-legend__swatch {
  display: block;
  height: 8px;
  margin-bottom: 8px;
}

.page-products .pp-legend__item--hot .pp-legend__swatch {
  background: linear-gradient(90deg, #F1D99B, #E0BE79);
}

.page-products .pp-legend__item--warm .pp-legend__swatch {
  background: linear-gradient(90deg, #D4AF61, #8E8F52);
}

.page-products .pp-legend__item--cool .pp-legend__swatch {
  background: linear-gradient(90deg, #7F8A52, #2E6F8E);
}

.page-products .pp-legend__item--cold .pp-legend__swatch {
  background: linear-gradient(90deg, #2E6F8E, #1B4159);
}

.page-products .pp-legend__name {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--c-cream);
}

.page-products .pp-legend__desc {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--on-dark-dim);
}

.page-products .pp-stats-figure {
  border: 1px solid var(--line-gold);
  padding: 18px;
  background: rgba(18, 16, 15, 0.32);
}

.page-products .pp-mini {
  display: block;
  width: 100%;
  height: auto;
}

.page-products .pp-figure__caption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--on-dark-dim);
}

/* ---------- 期号时间轴 ---------- */
.page-products .pp-weeks {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.page-products .pp-week {
  position: relative;
  padding: 14px 0 14px 22px;
  border-left: 1px solid var(--line-strong);
}

.page-products .pp-week::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 22px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-gold);
}

.page-products .pp-week--now {
  border-left-color: var(--c-crimson);
}

.page-products .pp-week--now::before {
  background: var(--c-crimson);
  box-shadow: 0 0 0 4px rgba(212, 175, 97, 0.3);
}

.page-products .pp-week__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.page-products .pp-week__no {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--c-crimson);
}

.page-products .pp-week__text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-stone);
}

/* ---------- 跨设备 ---------- */
.page-products .pp-device-section {
  background: var(--c-cream);
  border-block: 1px solid var(--line);
}

.page-products .pp-device {
  display: grid;
  gap: 24px;
}

.page-products .pp-device__figure {
  margin: 0;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--c-crimson), var(--c-wine));
  overflow: hidden;
}

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

.page-products .pp-device__figure figcaption {
  padding: 10px 14px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--on-dark-dim);
  background: rgba(18, 16, 15, 0.55);
  border-top: 1px solid var(--line-gold);
}

.page-products .pp-device-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(23px, 3.6vw, 32px);
  line-height: 1.3;
  color: var(--c-crimson);
  margin-bottom: 12px;
}

.page-products .pp-device-lede {
  font-size: 15px;
  line-height: 1.9;
  color: var(--c-stone);
}

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

.page-products .pp-device__list li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--c-stone);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.page-products .pp-device__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 1px;
  background: var(--c-gold);
}

/* ---------- 典型路径 ---------- */
.page-products .pp-paths {
  counter-reset: ppstep;
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.page-products .pp-path {
  counter-increment: ppstep;
  position: relative;
  padding: 18px 18px 18px 58px;
  background: var(--c-cream);
  border: 1px solid var(--line);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page-products .pp-path:hover {
  border-color: var(--c-gold);
  transform: translateY(-2px);
}

.page-products .pp-path::before {
  content: "0" counter(ppstep);
  position: absolute;
  left: 16px;
  top: 18px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-gold);
}

.page-products .pp-path__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--c-crimson);
  margin-bottom: 6px;
}

.page-products .pp-path__text {
  font-size: 14px;
  line-height: 1.85;
  color: var(--c-stone);
}

/* ---------- 功能索引表 ---------- */
.page-products .pp-table-section {
  background: var(--c-cream);
  border-block: 1px solid var(--line);
}

.page-products .pp-table-wrap {
  max-height: 460px;
  overflow: auto;
  border: 1px solid var(--line-strong);
  background: var(--c-paper);
  -webkit-overflow-scrolling: touch;
}

.page-products .pp-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 14px;
  color: var(--c-stone);
}

.page-products .pp-table th,
.page-products .pp-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.page-products .pp-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--c-crimson);
  color: var(--c-cream);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--c-wine);
}

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

.page-products .pp-table tbody tr:hover {
  background: rgba(212, 175, 97, 0.18);
}

.page-products .pp-table td:first-child {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-crimson);
  white-space: nowrap;
}

.page-products .pp-table-wrap.is-scrolled .pp-table td:first-child,
.page-products .pp-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--c-paper);
  border-right: 1px solid var(--line-strong);
}

/* ---------- 收束 ---------- */
.page-products .pp-close {
  padding-block: clamp(38px, 6vw, 64px);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(212, 175, 97, 0.18), transparent 60%),
    linear-gradient(155deg, var(--c-ink), #1F0A11 80%);
  color: var(--on-dark);
}

.page-products .pp-close__inner {
  display: grid;
  gap: 22px;
}

.page-products .pp-close .pp-eyebrow {
  color: var(--c-gold);
}

.page-products .pp-close-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 3.6vw, 32px);
  line-height: 1.32;
  color: var(--c-cream);
  margin-bottom: 12px;
}

.page-products .pp-close__text {
  max-width: 52ch;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--on-dark-dim);
}

.page-products .pp-close__text a {
  color: var(--c-gold-light);
  text-decoration: none;
  border-bottom: 1px solid var(--c-gold);
}

.page-products .pp-close__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-products .pp-close__links .btn {
  text-decoration: none;
}

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

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

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

@media (min-width: 760px) {
  .page-products .pp-weeks {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 18px;
    border-top: 1px solid var(--line-strong);
    padding-top: 0;
  }

  .page-products .pp-week {
    padding: 22px 0 0 0;
    border-left: 0;
    border-top: 0;
  }

  .page-products .pp-week::before {
    left: 0;
    top: -4px;
  }

  .page-products .pp-week--now::before {
    box-shadow: 0 0 0 4px rgba(212, 175, 97, 0.3);
  }
}

@media (min-width: 900px) {
  .page-products .pp-hero {
    padding: 28px 0 72px;
  }

  .page-products .pp-hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: 52px;
    align-items: start;
  }

  .page-products .pp-index {
    transform: translateY(26px);
    padding: 20px 20px 10px;
  }

  .page-products .pp-bento {
    grid-template-columns: repeat(9, minmax(0, 1fr));
    grid-template-areas:
      "cost cost cost trend trend trend trend trend trend"
      "login login login trend trend trend trend trend trend"
      "stats stats stats stats stats issue issue issue issue";
  }

  .page-products .pp-card {
    padding: 20px;
  }

  .page-products .pp-card--trend {
    padding: 24px;
    display: flex;
    flex-direction: column;
  }

  .page-products .pp-card--trend .pp-card__media {
    margin-top: 16px;
  }

  .page-products .pp-card--trend .pp-levels {
    margin-top: auto;
    padding-top: 18px;
  }

  .page-products .pp-stats-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 48px;
    align-items: center;
  }

  .page-products .pp-device {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 44px;
    align-items: center;
  }

  .page-products .pp-close__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 36px;
  }
}

@media (min-width: 1000px) {
  .page-products .pp-stats {
    gap: 18px;
  }

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

@media (prefers-reduced-motion: reduce) {
  .page-products .pp-card,
  .page-products .pp-card:hover,
  .page-products .pp-path,
  .page-products .pp-path:hover,
  .page-products .pp-legend__item,
  .page-products .pp-legend__item:hover,
  .page-products .pp-index {
    transform: none;
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
  }
}
