.page-products {
  --pp-line: 1px solid var(--stroke);
}

/* ---------- 首屏 ---------- */
.page-products .pp-hero {
  padding-block: calc(var(--header-h) + clamp(20px, 4vw, 48px)) clamp(28px, 5vw, 64px);
}

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

.page-products .pp-hero-grid {
  display: grid;
  gap: clamp(24px, 4vw, 44px);
}

.page-products .pp-hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 6.6vw, 84px);
  font-weight: 250;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin: 10px 0 clamp(16px, 2vw, 24px);
}

.page-products .pp-hero-copy .lead {
  max-width: 34ch;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.9;
  color: var(--mist);
  margin: 0 0 clamp(22px, 3vw, 32px);
}

.page-products .pp-download-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.page-products .pp-download-bar .btn {
  border-radius: var(--pill);
  min-height: 48px;
  padding-inline: clamp(18px, 2.4vw, 28px);
}

.page-products .pp-hero-note {
  font-size: var(--fs-200);
  color: var(--mist);
  margin: 0;
}

.page-products .pp-hero-note .mono {
  color: var(--cyan);
}

.page-products .pp-hero-panel {
  padding: clamp(22px, 3vw, 32px);
  display: grid;
  gap: 12px;
  align-content: start;
  border-radius: var(--radius-xl);
  background: linear-gradient(155deg, rgba(59, 240, 220, 0.1), transparent 62%), var(--panel);
}

.page-products .pp-version {
  font-family: var(--font-mono);
  font-size: clamp(52px, 10vw, 88px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--cyan);
  margin: 0;
}

.page-products .pp-hero-facts {
  list-style: none;
  margin: 6px 0 0;
  padding: 14px 0 0;
  border-top: var(--pp-line);
  display: grid;
  gap: 8px;
  font-size: var(--fs-200);
  line-height: 1.7;
  color: var(--mist);
}

.page-products .pp-hero-facts .mono {
  color: var(--lime);
}

/* ---------- 章节标题 ---------- */
.page-products h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.8vw, 46px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin: 6px 0 0;
}

.page-products .pp-section-intro {
  max-width: 34ch;
  font-size: var(--fs-300);
  line-height: 1.9;
  color: var(--mist);
  margin: 18px 0 26px;
}

/* ---------- 三端对比表 ---------- */
.page-products .pp-cmp-wrap {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: var(--pp-line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  margin-top: clamp(24px, 3vw, 36px);
}

.page-products .pp-cmp {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: var(--fs-200);
}

.page-products .pp-cmp th,
.page-products .pp-cmp td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: var(--pp-line);
  vertical-align: top;
  line-height: 1.7;
}

.page-products .pp-cmp thead th {
  font-size: var(--fs-100);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 500;
  white-space: nowrap;
  background: var(--panel);
}

.page-products .pp-cmp tbody th {
  color: var(--paper);
  font-weight: 500;
  white-space: nowrap;
}

.page-products .pp-cmp td {
  color: var(--mist);
}

.page-products .pp-cmp tbody tr:hover td,
.page-products .pp-cmp tbody tr:hover th {
  background: rgba(26, 43, 87, 0.36);
}

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

.page-products .pp-cmp thead th:first-child,
.page-products .pp-cmp tbody th {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--panel);
  box-shadow: 1px 0 0 var(--stroke);
}

/* ---------- 三端卡片 ---------- */
.page-products .pp-trio {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.page-products .pp-trio-card {
  padding: clamp(16px, 2.4vw, 22px);
  display: grid;
  gap: 16px;
  border-radius: var(--radius-lg);
}

.page-products .pp-trio-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: var(--pp-line);
}

.page-products .pp-trio-media img,
.page-products .pp-web-media img,
.page-products .pp-node-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.page-products .pp-trio-body h3,
.page-products .pp-web-copy h3,
.page-products .pp-update-panel h3 {
  font-size: var(--fs-400);
  font-weight: 400;
  line-height: 1.4;
  color: var(--paper);
  margin: 0 0 10px;
}

.page-products .pp-trio-body p,
.page-products .pp-web-copy p,
.page-products .pp-update-panel p {
  font-size: var(--fs-300);
  line-height: 1.9;
  color: var(--mist);
  margin: 0;
  max-width: 46ch;
}

/* ---------- 网页端横幅 ---------- */
.page-products .pp-web {
  margin-top: 18px;
  padding: clamp(20px, 3vw, 32px);
  display: grid;
  gap: 20px;
  border-radius: var(--radius-xl);
  background: linear-gradient(120deg, rgba(138, 107, 255, 0.14), transparent 58%), var(--panel);
}

.page-products .pp-web-copy .btn {
  margin-top: 18px;
  border-radius: var(--pill);
}

.page-products .pp-web-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: var(--pp-line);
}

/* ---------- iOS 订阅 ---------- */
.page-products .pp-ios-grid {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}

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

.page-products .pp-step {
  position: relative;
  padding: 0 0 clamp(22px, 3vw, 30px) 54px;
}

.page-products .pp-step::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 34px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--stroke), transparent);
}

.page-products .pp-step:last-child::before {
  display: none;
}

.page-products .pp-step-no {
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--pill);
  border: var(--pp-line);
  background: var(--panel);
  color: var(--cyan);
  font-size: var(--fs-100);
  letter-spacing: 0.04em;
}

.page-products .pp-step h3 {
  font-size: var(--fs-400);
  font-weight: 400;
  line-height: 1.4;
  color: var(--paper);
  margin: 4px 0 8px;
}

.page-products .pp-step p {
  font-size: var(--fs-300);
  line-height: 1.9;
  color: var(--mist);
  margin: 0;
  max-width: 34ch;
}

.page-products .pp-ios-aside {
  display: grid;
  gap: 16px;
}

.page-products .pp-ios-note {
  padding: clamp(20px, 2.6vw, 28px);
  border-radius: var(--radius-xl);
}

.page-products .pp-ios-note h3 {
  font-size: var(--fs-400);
  font-weight: 400;
  color: var(--paper);
  margin: 0 0 14px;
}

.page-products .pp-node-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 12px;
  font-size: var(--fs-200);
  line-height: 1.7;
  color: var(--mist);
}

.page-products .pp-node-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
}

.page-products .pp-node-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: var(--pp-line);
}

/* ---------- 收藏面板 ---------- */
.page-products .pp-watch {
  display: grid;
  gap: clamp(22px, 3vw, 34px);
  padding: clamp(24px, 3.6vw, 42px);
  border-radius: var(--radius-xl);
  border: var(--pp-line);
  background: linear-gradient(160deg, var(--panel) 0%, var(--midnight) 74%);
}

.page-products .pp-watch-copy .lead {
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.9;
  color: var(--mist);
  margin: 0;
  max-width: 34ch;
}

.page-products .pp-watch-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.page-products .pp-watch-stats .stat-value {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(26px, 5vw, 42px);
  line-height: 1;
  letter-spacing: 0.02em;
}

.page-products .pp-watch-stats .stat-label {
  display: block;
  margin-top: 8px;
  font-size: var(--fs-100);
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: var(--mist);
}

.page-products .pp-switch-box h3 {
  font-size: var(--fs-400);
  font-weight: 400;
  color: var(--paper);
  margin: 0 0 10px;
}

.page-products .pp-switch-box > p {
  font-size: var(--fs-200);
  line-height: 1.8;
  color: var(--mist);
  margin: 0 0 18px;
  max-width: 40ch;
}

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

.page-products .pp-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 18px;
  border: var(--pp-line);
  border-radius: var(--pill);
  background: rgba(26, 43, 87, 0.24);
  cursor: pointer;
  font-size: var(--fs-200);
  color: var(--paper);
  transition: border-color var(--dur-fast) var(--ease);
}

.page-products .pp-switch:hover {
  border-color: var(--cyan);
}

.page-products .pp-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.page-products .pp-switch-track {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 24px;
  border-radius: var(--pill);
  background: var(--stroke);
  transition: background var(--dur-fast) var(--ease);
}

.page-products .pp-switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--mist);
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.page-products .pp-switch input:checked + .pp-switch-track {
  background: rgba(59, 240, 220, 0.26);
}

.page-products .pp-switch input:checked + .pp-switch-track::after {
  transform: translateX(18px);
  background: var(--cyan);
}

.page-products .pp-switch input:focus-visible + .pp-switch-track {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.page-products .pp-switch-note {
  margin: 18px 0 0;
  font-size: var(--fs-100);
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: var(--violet);
  max-width: 40ch;
}

/* ---------- 安装条件 ---------- */
.page-products .pp-setup {
  gap: clamp(14px, 2vw, 20px);
  align-items: start;
}

.page-products .pp-spec {
  padding: clamp(20px, 2.8vw, 30px);
  border-radius: var(--radius-xl);
}

.page-products .pp-spec h3,
.page-products .pp-spec-aside h3 {
  font-size: var(--fs-400);
  font-weight: 400;
  color: var(--paper);
  margin: 0 0 16px;
}

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

.page-products .pp-spec-list li {
  display: grid;
  gap: 6px;
  padding-bottom: 16px;
  border-bottom: var(--pp-line);
}

.page-products .pp-spec-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-products .pp-spec-key {
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.page-products .pp-spec-list li > span:last-child {
  font-size: var(--fs-300);
  line-height: 1.85;
  color: var(--mist);
}

.page-products .pp-spec-aside {
  padding: clamp(20px, 2.8vw, 30px);
  border-radius: var(--radius-xl);
  background: linear-gradient(200deg, rgba(138, 107, 255, 0.16), transparent 66%), var(--panel);
}

.page-products .pp-spec-aside p {
  font-size: var(--fs-300);
  line-height: 1.9;
  color: var(--mist);
  margin: 0 0 16px;
}

.page-products .pp-spec-aside .pp-mini {
  font-size: var(--fs-100);
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: var(--violet);
  margin: 0;
}

/* ---------- 版本节奏 ---------- */
.page-products .pp-version-grid {
  display: grid;
  gap: clamp(22px, 3vw, 34px);
}

.page-products .pp-version-badge {
  padding: clamp(22px, 3vw, 30px);
  border-radius: var(--radius-xl);
  border: var(--pp-line);
  background: linear-gradient(150deg, rgba(138, 107, 255, 0.18), transparent 70%), var(--panel);
  display: grid;
  gap: 6px;
  align-content: start;
}

.page-products .pp-badge-label {
  font-size: var(--fs-100);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
}

.page-products .pp-badge-num {
  font-family: var(--font-mono);
  font-size: clamp(54px, 10vw, 96px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--violet);
}

.page-products .pp-badge-sub {
  font-size: var(--fs-200);
  color: var(--mist);
}

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

.page-products .pp-timeline li {
  position: relative;
  padding: 0 0 clamp(22px, 3vw, 30px) 30px;
  border-left: var(--pp-line);
}

.page-products .pp-timeline li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.page-products .pp-timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(59, 240, 220, 0.16);
}

.page-products .pp-timeline h3 {
  font-size: var(--fs-400);
  font-weight: 400;
  line-height: 1.4;
  color: var(--paper);
  margin: 6px 0 8px;
}

.page-products .pp-timeline p {
  font-size: var(--fs-300);
  line-height: 1.9;
  color: var(--mist);
  margin: 0;
  max-width: 42ch;
}

.page-products .pp-timeline .eyebrow {
  margin: 0;
}

.page-products .pp-update-panel {
  margin-top: clamp(22px, 3vw, 34px);
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--radius-xl);
  background: linear-gradient(120deg, rgba(184, 255, 60, 0.09), transparent 64%), var(--panel);
}

.page-products .pp-update-panel h3 {
  color: var(--lime);
}

/* ---------- 下一步 ---------- */
.page-products .pp-next-grid {
  display: grid;
  gap: 14px;
  margin-top: clamp(22px, 3vw, 32px);
}

.page-products .pp-next-card {
  display: block;
  padding: clamp(20px, 2.6vw, 28px);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.page-products .pp-next-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
}

.page-products .pp-next-card .chapter-no {
  display: block;
  margin-bottom: 12px;
}

.page-products .pp-next-card h3 {
  font-size: var(--fs-400);
  font-weight: 400;
  line-height: 1.4;
  color: var(--paper);
  margin: 0 0 10px;
}

.page-products .pp-next-card p {
  font-size: var(--fs-200);
  line-height: 1.85;
  color: var(--mist);
  margin: 0;
}

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

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

@media (min-width: 900px) {
  .page-products .pp-web {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    align-items: center;
  }

  .page-products .pp-watch {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: start;
  }

  .page-products .pp-version-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr);
    gap: clamp(28px, 4vw, 52px);
    align-items: start;
  }

  .page-products .pp-version-badge {
    position: sticky;
    top: calc(var(--header-h) + 18px);
  }
}

@media (min-width: 1024px) {
  .page-products .pp-hero-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    align-items: end;
  }

  .page-products .pp-ios-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }
}

@media (max-width: 480px) {
  .page-products .pp-download-bar .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .page-products .pp-watch-stats {
    gap: 10px;
  }

  .page-products .pp-step {
    padding-left: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .pp-switch,
  .page-products .pp-switch-track,
  .page-products .pp-switch-track::after,
  .page-products .pp-next-card {
    transition: none;
  }

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