.page-products {
  background-color: var(--paper);
}

.page-products .pp-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding-bottom: 64px;
}

.page-products .pp-main {
  min-width: 0;
}

/* ---------- 开场 ---------- */
.page-products .pp-intro {
  padding: 28px 0 0;
  margin-bottom: 8px;
}

.page-products .pp-intro h1 {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(30px, 5.4vw, 56px);
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--blue);
  margin: 14px 0 20px;
  max-width: 20ch;
}

.page-products .pp-intro__lead {
  font-size: var(--fs-17);
  line-height: 1.85;
  color: var(--slate);
  max-width: 62ch;
  margin: 0 0 30px;
}

.page-products .pp-intro__strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--blue);
}

.page-products .pp-intro__strip li {
  padding: 15px 14px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--fs-13);
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--slate);
}

.page-products .pp-intro__strip li:nth-child(2n) {
  border-right: 0;
}

.page-products .pp-intro__strip .num {
  font-family: var(--font-mono);
  font-size: var(--fs-21);
  font-weight: 700;
  color: var(--blue);
  margin-right: 8px;
  vertical-align: -1px;
}

/* ---------- 通用区块 ---------- */
.page-products .pp-block {
  padding: 44px 0 8px;
  border-top: 1px solid var(--line);
  margin-top: 32px;
}

.page-products .pp-block__head {
  margin-bottom: 26px;
}

.page-products .pp-block__title {
  font-size: clamp(22px, 3.6vw, 34px);
  line-height: 1.24;
  font-weight: 900;
  color: var(--blue);
  margin: 12px 0 14px;
  letter-spacing: -0.005em;
}

.page-products .pp-block__desc {
  font-size: var(--fs-17);
  line-height: 1.85;
  color: var(--slate);
  max-width: 64ch;
  margin: 0;
}

.page-products .pp-block p {
  line-height: 1.85;
}

/* ---------- 图片 ---------- */
.page-products .pp-figure {
  margin: 0;
}

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

.page-products .pp-figure figcaption {
  font-family: var(--font-mono);
  font-size: var(--fs-13);
  line-height: 1.65;
  color: var(--slate);
  padding-top: 10px;
}

.page-products .pp-tools__figure {
  margin-bottom: 26px;
}

/* ---------- 工具表 ---------- */
.page-products .pp-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line-strong);
  background: var(--white);
}

.page-products .pp-tools__table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: var(--fs-15);
}

.page-products .pp-tools__table thead th {
  background: var(--blue);
  color: var(--white);
  text-align: left;
  font-family: var(--font-mono);
  font-size: var(--fs-13);
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 14px 16px;
  border-right: 1px solid rgba(244, 247, 250, 0.18);
  white-space: nowrap;
}

.page-products .pp-tools__table thead th:last-child {
  border-right: 0;
}

.page-products .pp-tools__table tbody th,
.page-products .pp-tools__table tbody td {
  padding: 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  line-height: 1.7;
  color: var(--slate);
}

.page-products .pp-tools__table tbody th {
  font-size: var(--fs-17);
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.page-products .pp-tools__table tbody td:last-child,
.page-products .pp-tools__table tbody th:last-child {
  border-right: 0;
}

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

.page-products .pp-tools__table tbody tr {
  transition: background var(--t), box-shadow var(--t);
}

.page-products .pp-tools__table tbody tr:hover {
  background: var(--paper);
  box-shadow: inset 3px 0 0 var(--yellow);
}

/* ---------- 两种顺序 ---------- */
.page-products .pp-flow {
  display: grid;
  gap: 28px;
  align-items: start;
}

.page-products .pp-flow__step {
  border-left: 3px solid var(--yellow);
  padding: 2px 0 2px 20px;
  margin-bottom: 26px;
}

.page-products .pp-flow__step:last-child {
  margin-bottom: 0;
}

.page-products .pp-flow__step h3 {
  font-size: var(--fs-21);
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 10px;
}

.page-products .pp-flow__step p {
  font-size: var(--fs-17);
  color: var(--slate);
  margin: 0;
}

/* ---------- 右侧常驻价格 ---------- */
.page-products .pp-first {
  display: grid;
  gap: 24px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-top: 4px solid var(--yellow);
  padding: 30px 22px;
  margin-top: 32px;
}

.page-products .pp-first__text p {
  font-size: var(--fs-17);
  color: var(--slate);
  margin: 0 0 16px;
  max-width: 56ch;
}

.page-products .pp-first__text p:last-child {
  margin-bottom: 0;
}

/* ---------- 跨平台切换 ---------- */
.page-products .pp-switch {
  background: var(--blue);
  border-top: 4px solid var(--yellow);
  padding: 0;
  overflow: hidden;
}

.page-products .pp-switch .eyebrow {
  color: rgba(244, 247, 250, 0.62);
}

.page-products .pp-switch__inner {
  padding: 34px 22px 30px;
  max-width: 68ch;
}

.page-products .pp-switch__inner h2 {
  font-size: clamp(22px, 3.6vw, 32px);
  line-height: 1.24;
  font-weight: 900;
  color: var(--white);
  margin: 12px 0 16px;
}

.page-products .pp-switch__inner p {
  font-size: var(--fs-17);
  color: rgba(244, 247, 250, 0.82);
  margin: 0 0 14px;
}

.page-products .pp-switch__inner p:last-child {
  margin-bottom: 0;
}

.page-products .pp-switch__media {
  margin: 0;
  border-top: 1px solid var(--line-dim);
}

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

/* ---------- 订阅与提醒 ---------- */
.page-products .pp-sub__track {
  list-style: none;
  margin: 0 0 30px;
  padding: 0 0 0 22px;
  border-left: 1px solid var(--line-strong);
}

.page-products .pp-sub__track .track__node {
  position: relative;
  padding: 0 0 26px 0;
}

.page-products .pp-sub__track .track__node:last-child {
  padding-bottom: 0;
}

.page-products .pp-sub__track .track__node::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 6px;
  width: 9px;
  height: 9px;
  background: var(--yellow);
  opacity: 0.4;
  transition: opacity var(--t-slow);
}

.page-products .pp-sub__track .track__node[data-lit]::before {
  opacity: 1;
}

.page-products .pp-sub__track .track__date {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-13);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blue);
  margin-bottom: 8px;
}

.page-products .pp-sub__track .track__meta {
  font-size: var(--fs-15);
  line-height: 1.8;
  color: var(--slate);
  margin: 0;
  max-width: 56ch;
}

/* ---------- 会员权益 ---------- */
.page-products .pp-tiers {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--white);
  border: 1px solid var(--line-strong);
}

.page-products .pp-tier {
  display: flex;
  flex-direction: column;
  padding: 26px 22px 30px;
  border-bottom: 1px solid var(--line-strong);
}

.page-products .pp-tier:last-child {
  border-bottom: 0;
}

.page-products .pp-tier--mid {
  background: var(--paper);
}

.page-products .pp-tier--top {
  box-shadow: inset 0 3px 0 var(--yellow);
}

.page-products .pp-tier__name {
  font-family: var(--font-mono);
  font-size: var(--fs-13);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--slate);
  margin: 0;
}

.page-products .pp-tier--top .pp-tier__name {
  color: var(--blue);
}

.page-products .pp-tier h3 {
  font-size: var(--fs-21);
  font-weight: 700;
  color: var(--blue);
  margin: 10px 0 12px;
}

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

.page-products .pp-tier__list {
  list-style: none;
  margin: auto 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.page-products .pp-tier__list li {
  position: relative;
  padding: 11px 0 11px 18px;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-15);
  line-height: 1.65;
  color: var(--ink);
}

.page-products .pp-tier__list li:last-child {
  border-bottom: 0;
}

.page-products .pp-tier__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 7px;
  height: 7px;
  background: var(--teal);
}

.page-products .pp-tier--top .pp-tier__list li::before {
  background: var(--yellow);
}

/* ---------- 开放接口 ---------- */
.page-products .pp-api__diagram {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 18px 16px 10px;
  margin-bottom: 26px;
}

.page-products .pp-api__svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 660px;
  margin: 0 auto;
}

.page-products .pp-api__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line-strong);
}

.page-products .pp-api__steps li {
  background: var(--white);
  padding: 20px 20px 22px;
}

.page-products .pp-api__no {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-21);
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.page-products .pp-api__steps h3 {
  font-size: var(--fs-17);
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 8px;
}

.page-products .pp-api__steps p {
  font-size: var(--fs-15);
  color: var(--slate);
  margin: 0;
}

/* ---------- 下一步 ---------- */
.page-products .pp-next__grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line-strong);
  margin-bottom: 26px;
}

.page-products .pp-next__card {
  background: var(--white);
  padding: 22px 20px 24px;
  transition: background var(--t), box-shadow var(--t);
}

.page-products .pp-next__card:hover {
  background: var(--paper);
  box-shadow: inset 0 3px 0 var(--yellow);
}

.page-products .pp-next__intensity {
  font-family: var(--font-mono);
  font-size: var(--fs-13);
  letter-spacing: 0.1em;
  color: var(--teal);
  margin: 0 0 10px;
}

.page-products .pp-next__card h3 {
  font-size: var(--fs-17);
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 10px;
  line-height: 1.5;
}

.page-products .pp-next__card p {
  font-size: var(--fs-15);
  color: var(--slate);
  margin: 0;
  line-height: 1.75;
}

.page-products .pp-next__tail {
  font-size: var(--fs-17);
  color: var(--slate);
  max-width: 64ch;
  margin: 0 0 24px;
}

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

/* ---------- 右栏 ---------- */
.page-products .pp-rail {
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
}

.page-products .pp-rail__card {
  background: var(--white);
  border: 1px solid var(--line-strong);
  padding: 18px 16px 20px;
}

.page-products .pp-rail__card--price {
  border-top: 4px solid var(--yellow);
}

.page-products .pp-rail__card--dark {
  background: var(--blue);
  border-color: var(--blue);
}

.page-products .pp-rail__label {
  font-family: var(--font-mono);
  font-size: var(--fs-13);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--slate);
  margin: 0 0 12px;
}

.page-products .pp-rail__card--dark .pp-rail__label {
  color: rgba(244, 247, 250, 0.62);
}

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

.page-products .pp-rail__prices li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-13);
}

.page-products .pp-rail__prices li:last-child {
  border-bottom: 0;
}

.page-products .pp-rail__match {
  color: var(--slate);
  line-height: 1.5;
}

.page-products .pp-rail__range {
  font-family: var(--font-mono);
  font-size: var(--fs-15);
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
}

.page-products .pp-rail__note {
  font-size: var(--fs-13);
  line-height: 1.7;
  color: var(--slate);
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.page-products .pp-rail__card--dark p {
  font-size: var(--fs-13);
  line-height: 1.75;
  color: rgba(244, 247, 250, 0.82);
  margin: 0 0 14px;
}

.page-products .pp-rail__quick {
  margin: 0 0 10px;
}

.page-products .pp-rail__quick:last-child {
  margin-bottom: 0;
}

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

  .page-products .pp-intro__strip li:nth-child(2n) {
    border-right: 1px solid var(--line);
  }

  .page-products .pp-intro__strip li:last-child {
    border-right: 0;
  }

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

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

@media (min-width: 880px) {
  .page-products .pp-flow {
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    gap: 48px;
  }

  .page-products .pp-first {
    grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
    align-items: start;
    padding: 40px;
    gap: 40px;
  }

  .page-products .pp-switch__inner {
    padding: 48px 48px 44px;
  }

  .page-products .pp-sub__track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 0;
    border-left: 0;
    border-top: 1px solid var(--line-strong);
    margin-bottom: 34px;
  }

  .page-products .pp-sub__track .track__node {
    padding: 26px 20px 0;
    border-left: 1px solid var(--line);
  }

  .page-products .pp-sub__track .track__node:first-child {
    border-left: 0;
  }

  .page-products .pp-sub__track .track__node::before {
    left: 20px;
    top: -5px;
  }

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

  .page-products .pp-tier {
    border-bottom: 0;
    border-right: 1px solid var(--line-strong);
  }

  .page-products .pp-tier:last-child {
    border-right: 0;
  }

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

@media (min-width: 1024px) {
  .page-products .pp-shell {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
  }

  .page-products .pp-rail {
    position: sticky;
    top: 96px;
    align-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .pp-tools__table tbody tr,
  .page-products .pp-next__card,
  .page-products .pp-sub__track .track__node::before {
    transition: none;
  }

  .page-products .pp-tools__table tbody tr:hover {
    background: var(--white);
    box-shadow: none;
  }

  .page-products .pp-next__card:hover {
    background: var(--white);
    box-shadow: none;
  }

  .page-products .pp-sub__track .track__node::before {
    opacity: 1;
  }
}
