.page-products {
  --pp-sticky: 92px;
  --pp-side: minmax(0, 1fr);
  --pp-body: minmax(0, 1.2fr);
  background: var(--night);
  color: var(--cream);
}

.page-products .pp-hero {
  padding: 26px 0 34px;
}

.page-products .pp-hero__grid {
  display: grid;
  gap: 30px;
  align-items: center;
}

.page-products .pp-hero__lede {
  max-width: 62ch;
}

.page-products .pp-hero__text {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--mist);
}

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

.page-products .pp-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.page-products .pp-stat {
  background: var(--tier);
  padding: 14px 16px;
}

.page-products .pp-stat__num {
  display: block;
  font-size: 24px;
  line-height: 1.1;
  color: var(--amber);
}

.page-products .pp-stat__label {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--mist);
}

/* 首屏面板视觉 */
.page-products .dash {
  position: relative;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 90% at 82% 0%, var(--green-soft), transparent 62%),
    linear-gradient(158deg, var(--tier) 0%, var(--night-deep) 100%);
  box-shadow: var(--shadow-float);
  overflow: hidden;
}

.page-products .dash::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 44px);
  opacity: 0.55;
  pointer-events: none;
}

.page-products .dash > * {
  position: relative;
}

.page-products .dash__head {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--mist);
}

.page-products .dash__live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--green);
}

.page-products .dash__live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.page-products .dash__flag {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--amber-soft);
  border: 1px solid var(--amber);
  color: var(--amber);
  font-size: 12px;
}

.page-products .dash__score {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 22px 0 20px;
  font-size: 54px;
  line-height: 1;
  color: var(--cream);
}

.page-products .dash__score em {
  font-style: normal;
  color: var(--mist);
  font-size: 34px;
}

.page-products .dash__bars {
  display: grid;
  gap: 8px;
}

.page-products .dash__bars span {
  display: block;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--panel);
  overflow: hidden;
}

.page-products .dash__bars span::after {
  content: "";
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), rgba(61, 220, 151, 0.25));
}

.page-products .dash__bars span:nth-child(1)::after { width: 74%; }
.page-products .dash__bars span:nth-child(2)::after { width: 58%; }
.page-products .dash__bars span:nth-child(3)::after { width: 46%; }
.page-products .dash__bars span:nth-child(4)::after { width: 33%; }
.page-products .dash__bars span:nth-child(5)::after { width: 27%; background: linear-gradient(90deg, var(--amber), rgba(255, 179, 71, 0.25)); }
.page-products .dash__bars span:nth-child(6)::after { width: 18%; }

.page-products .dash__ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-strong);
  font-size: 12px;
  color: var(--mist);
}

.page-products .dash__tick--hot {
  color: var(--amber);
}

/* 章节骨架 */
.page-products .pp-section {
  padding: 42px 0;
  border-top: 1px solid var(--line);
}

.page-products .pp-section--panel {
  background: linear-gradient(180deg, var(--night) 0%, var(--tier) 46%, var(--night) 100%);
}

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

.page-products .pp-chapter__side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.page-products .pp-num {
  font-size: 34px;
  line-height: 1;
  color: var(--amber);
  letter-spacing: -0.02em;
}

.page-products .pp-chapter__kicker {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
}

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

.page-products .pp-chapter__lede {
  margin: 14px 0 0;
  max-width: 66ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--mist);
}

.page-products .pp-chapter__foot {
  margin: 22px 0 0;
  max-width: 66ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--mist);
}

.page-products .pp-chapter__foot a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid rgba(61, 220, 151, 0.45);
}

.page-products .pp-chapter__foot a:hover {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

.page-products .pp-frame {
  margin-top: 24px;
}

/* 01 集锦要点 */
.page-products .pp-points {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.page-products .pp-points li {
  background: var(--tier);
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--mist);
}

.page-products .pp-points__k {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--green);
}

/* 02 维度卡片 */
.page-products .dim-grid {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.page-products .dim-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--panel) 0%, var(--tier) 100%);
  box-shadow: var(--shadow-panel);
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.page-products .dim-card:hover,
.page-products .dim-card:focus-within {
  border-color: var(--green);
  transform: translateY(-2px);
}

.page-products .dim-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.page-products .dim-card__head h3 {
  margin: 0;
}

.page-products .dim-card__count {
  font-size: 13px;
  color: var(--amber);
}

.page-products .dim-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.page-products .dim-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--cream);
}

.page-products .dim-hot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--amber);
}

.page-products .dim-desc {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist);
  transition: color 0.18s var(--ease);
}

.page-products .dim-card:hover .dim-desc {
  color: var(--cream);
}

.page-products .dim-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--mist);
}

/* 03 开关演示 */
.page-products .switch-demo {
  position: relative;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--night-deep);
}

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

.page-products .switch-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  color: var(--cream);
}

.page-products .switch-track {
  position: relative;
  display: block;
  width: 54px;
  height: 28px;
  border-radius: var(--r-pill);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.page-products .switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mist);
  transition: transform 0.18s var(--ease), background 0.18s var(--ease);
}

.page-products .switch-input:checked + .switch-toggle .switch-track {
  background: var(--green-soft);
  border-color: var(--green);
}

.page-products .switch-input:checked + .switch-toggle .switch-knob {
  transform: translateX(26px);
  background: var(--green);
}

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

.page-products .switch-count {
  margin: 16px 0 10px;
  font-size: 13px;
  color: var(--amber);
}

.page-products .count-key {
  display: none;
}

.page-products .switch-input:checked ~ .switch-body .count-all {
  display: none;
}

.page-products .switch-input:checked ~ .switch-body .count-key {
  display: inline;
}

.page-products .match-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.page-products .match-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--tier);
  font-size: 14px;
  transition: background 0.18s var(--ease);
}

.page-products .match-row:hover {
  background: var(--panel);
}

.page-products .match-row__time {
  flex: none;
  width: 58px;
  color: var(--mist);
}

.page-products .match-row__name {
  color: var(--cream);
}

.page-products .match-row__state {
  margin-left: auto;
  font-size: 12px;
  color: var(--mist);
}

.page-products .match-row.is-key {
  background: linear-gradient(90deg, var(--amber-soft), var(--tier) 60%);
  box-shadow: inset 3px 0 0 var(--amber);
}

.page-products .match-row.is-key .match-row__state {
  color: var(--amber);
}

.page-products .switch-input:checked ~ .switch-body .match-row:not(.is-key) {
  display: none;
}

.page-products .switch-note {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
}

/* 04 球队主页 */
.page-products .follow-grid {
  margin-top: 24px;
}

.page-products .follow-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--tier);
  transition: border-color 0.18s var(--ease);
}

.page-products .follow-card:hover {
  border-color: var(--green);
}

.page-products .follow-card__idx {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 9px;
  border-radius: var(--r-pill);
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
}

.page-products .follow-card h3 {
  margin: 0 0 8px;
}

.page-products .follow-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist);
}

/* 05 版本对比 */
.page-products .version-panel {
  margin-top: 24px;
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--shadow-panel);
}

.page-products .table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-products .ver {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 14px;
}

.page-products .ver__caption {
  text-align: left;
  padding-bottom: 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(26, 20, 16, 0.62);
}

.page-products .ver th,
.page-products .ver td {
  text-align: left;
  padding: 12px 14px;
  vertical-align: top;
  line-height: 1.6;
}

.page-products .ver thead th {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  border-bottom: 2px solid rgba(26, 20, 16, 0.28);
}

.page-products .ver tbody th {
  font-weight: 700;
  border-bottom: 1px solid rgba(26, 20, 16, 0.12);
}

.page-products .ver tbody td {
  border-bottom: 1px solid rgba(26, 20, 16, 0.12);
  color: rgba(26, 20, 16, 0.78);
}

.page-products .ver .ver-col--v3 {
  background: rgba(255, 179, 71, 0.22);
  color: var(--ink);
}

.page-products .ver tbody tr:hover td,
.page-products .ver tbody tr:hover th {
  background: rgba(61, 220, 151, 0.18);
}

.page-products .ver tbody tr:hover .ver-col--v3 {
  background: rgba(255, 179, 71, 0.4);
}

/* 06 性能 */
.page-products .perf-grid {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.page-products .perf-card {
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--tier);
}

.page-products .perf-card--amber {
  border-color: var(--amber);
  background: linear-gradient(160deg, var(--amber-soft), var(--tier) 70%);
}

.page-products .perf-card__num {
  display: block;
  font-size: 30px;
  line-height: 1.1;
  color: var(--green);
}

.page-products .perf-card--amber .perf-card__num {
  color: var(--amber);
}

.page-products .perf-card__label {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--mist);
}

/* 07 三步 */
.page-products .steps {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.page-products .step {
  display: flex;
  gap: 16px;
  padding: 18px;
  background: var(--tier);
  transition: background 0.18s var(--ease);
}

.page-products .step:hover {
  background: var(--panel);
}

.page-products .step__num {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--amber);
  font-size: 15px;
  text-decoration: none;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.page-products .step__num:hover,
.page-products .step__num:focus-visible {
  border-color: var(--amber);
  background: var(--amber-soft);
}

.page-products .step__body h3 {
  margin: 0 0 6px;
}

.page-products .step__body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist);
}

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

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

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

  .page-products .pp-section {
    padding: 56px 0;
  }
}

@media (min-width: 960px) {
  .page-products .pp-hero {
    padding: 40px 0 52px;
  }

  .page-products .pp-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 48px;
  }

  .page-products .pp-chapter {
    grid-template-columns: 176px minmax(0, 1fr);
    gap: 40px;
  }

  .page-products .pp-chapter__side {
    display: block;
    position: sticky;
    top: var(--pp-sticky);
    align-self: start;
  }

  .page-products .pp-num {
    display: block;
    font-size: 46px;
    margin-bottom: 10px;
  }

  .page-products .pp-chapter__kicker {
    margin-bottom: 12px;
  }

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

  .page-products .pp-hero__text,
  .page-products .pp-chapter__lede {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .dim-card,
  .page-products .dash__live i,
  .page-products .switch-track,
  .page-products .switch-knob,
  .page-products .match-row,
  .page-products .step,
  .page-products .step__num,
  .page-products .dim-desc {
    transition: none;
  }

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