.page-products {
  --pd-gap: clamp(16px, 2vw, 28px);
  --pd-radius: 10px;
}

.page-products .pd-layout {
  display: block;
  padding-bottom: clamp(24px, 4vw, 48px);
}

.page-products .pd-flow {
  min-width: 0;
}

.page-products .pd-rail {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 14px;
  margin-bottom: 12px;
  scrollbar-width: none;
}
.page-products .pd-rail::-webkit-scrollbar {
  display: none;
}
.page-products .pd-rail .data-rail__label,
.page-products .pd-rail .data-rail__stat {
  display: none;
}
.page-products .pd-rail__nav {
  display: flex;
  gap: 8px;
}
.page-products .pd-rail .data-rail__link {
  flex: 0 0 auto;
  white-space: nowrap;
}

.page-products .pd-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: clamp(14px, 2vw, 24px) 0 0;
}
.page-products .pd-topbar__hint {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--ice);
}

/* 首屏 */
.page-products .pd-hero__grid {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
}
.page-products .pd-hero__copy h1 {
  margin: 10px 0 18px;
  font-size: clamp(32px, 4.6vw, 60px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--paper);
}
.page-products .pd-hero__copy .lead {
  max-width: 36em;
}
.page-products .pd-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.page-products .pd-shot {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--pd-radius);
}
.page-products .pd-shot .figure__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-products .pd-strip {
  list-style: none;
  margin: clamp(26px, 4vw, 46px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--pd-radius);
  overflow: hidden;
}
.page-products .pd-strip__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(14px, 1.6vw, 22px);
  background: var(--ink-2);
}
.page-products .pd-strip__num {
  font-family: var(--font-mono);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  line-height: 1;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}
.page-products .pd-strip__label {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ice);
}

/* 通用网格 */
.page-products .pd-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--pd-gap);
}

/* 列表 */
.page-products .pd-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--paper);
}
.page-products .pd-list li {
  position: relative;
  padding-left: 18px;
}
.page-products .pd-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 9px;
  height: 2px;
  background: var(--cyan);
}
.page-products .pd-list--tight {
  font-size: 14px;
  gap: 7px;
}

/* 订阅方案卡 */
.page-products .pd-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 26px;
}
.page-products .pd-plan::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: skewX(-6deg);
  transform-origin: left center;
  width: 40%;
}
.page-products .pd-plan--trial::before { width: 26%; }
.page-products .pd-plan--std::before { width: 48%; }
.page-products .pd-plan--pro::before { width: 72%; }
.page-products .pd-plan--big::before { width: 100%; }

.page-products .pd-fold {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* 提醒维度 */
.page-products .pd-dims {
  display: grid;
  gap: 14px;
}
.page-products .pd-dim {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--pd-radius);
  background: var(--glass);
}
.page-products .pd-dim__label {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ice);
}
.page-products .pd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.page-products .pd-dims__note {
  margin: var(--pd-gap) 0 0;
  max-width: 40em;
  font-size: 15px;
  line-height: 1.75;
  color: var(--paper);
}

/* 档位对比条 */
.page-products .pd-compare {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 1fr);
  gap: var(--pd-gap);
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.page-products .pd-compare__col {
  --bar: .4;
  position: relative;
  scroll-snap-align: start;
  padding: 22px 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--pd-radius);
  background: var(--glass);
  transition: border-color .18s var(--ease);
}
.page-products .pd-compare__col:hover {
  border-color: var(--cyan);
}
.page-products .pd-compare__col::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: scaleX(var(--bar));
  transform-origin: left center;
}
.page-products .pd-compare__col:nth-child(1) { --bar: .25; }
.page-products .pd-compare__col:nth-child(2) { --bar: .5; }
.page-products .pd-compare__col:nth-child(3) { --bar: .75; }
.page-products .pd-compare__col:nth-child(4) { --bar: 1; }
.page-products .pd-compare__name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--paper);
}
.page-products .pd-compare__tag {
  margin: 6px 0 14px;
  display: inline-block;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  border-radius: 999px;
}
.page-products .pd-compare__cta {
  margin: var(--pd-gap) 0 0;
}

/* 大屏导航 */
.page-products .pd-big__text {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--paper);
}
.page-products .pd-big__foot {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ice);
}
.page-products .pd-screen {
  margin-top: var(--pd-gap);
  padding: clamp(16px, 2vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--pd-radius);
  background: linear-gradient(160deg, var(--teal), var(--ink-2));
}
.page-products .pd-screen__label {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ice);
}
.page-products .pd-gridsvg {
  display: block;
  width: 100%;
  height: auto;
}
.page-products .pd-cell {
  fill: rgba(255, 255, 255, .06);
  stroke: var(--line);
  stroke-width: 1;
}
.page-products .pd-cell--on {
  fill: var(--cyan-soft);
  stroke: var(--cyan);
  stroke-width: 1.6;
}
.page-products .pd-screen__note {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ice);
}

/* 观赛工具 */
.page-products .pd-tool {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--pd-radius);
  background: var(--teal);
  transition: border-color .18s var(--ease);
}
.page-products .pd-tool:hover {
  border-color: var(--blue);
}
.page-products .pd-tool__media {
  border-radius: 8px;
  overflow: hidden;
}
.page-products .pd-tool__media .figure__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.page-products .pd-tool__title {
  margin: 0;
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--paper);
}
.page-products .pd-tool__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--paper);
}
.page-products .pd-tool__link {
  margin: auto 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--cyan);
}
.page-products .pd-tool__split {
  display: grid;
  gap: var(--pd-gap);
}
.page-products .pd-gantt {
  display: block;
  width: 100%;
  height: auto;
}
.page-products .pd-gantt__track {
  fill: rgba(255, 255, 255, .05);
}
.page-products .pd-gantt__bar {
  fill: var(--blue);
}
.page-products .pd-gantt__bar--dense {
  fill: var(--cyan);
}
.page-products .pd-gantt__bar--ghost {
  fill: rgba(143, 166, 200, .3);
}
.page-products .pd-gantt__marker {
  fill: var(--orange);
}

/* 跨设备 */
.page-products .pd-sync__text {
  margin: 16px 0 0;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--paper);
}
.page-products .pd-sync__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--pd-radius);
  overflow: hidden;
}
.page-products .pd-sync__list li {
  padding: 16px;
  background: var(--ink-2);
}
.page-products .pd-sync__key {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--cyan);
}
.page-products .pd-sync__val {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--paper);
}

/* 开通步骤 */
.page-products .pd-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--pd-gap);
}
.page-products .pd-step {
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--pd-radius);
  background: var(--glass);
}
.page-products .pd-step__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}
.page-products .pd-step__title {
  margin: 12px 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--paper);
}
.page-products .pd-step__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ice);
}
.page-products .pd-start__note {
  margin: var(--pd-gap) 0 0;
  padding: 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--pd-radius);
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ice);
}

/* 末尾延伸阅读 */
.page-products .pd-related {
  position: relative;
  margin-top: clamp(40px, 6vw, 88px);
  border-top: 1px solid var(--line);
  border-radius: var(--pd-radius);
  overflow: hidden;
  isolation: isolate;
}
.page-products .pd-related__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .2;
  filter: saturate(.75);
}
.page-products .pd-related::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(120deg, rgba(6, 16, 36, .92), rgba(4, 50, 74, .78));
}
.page-products .pd-related__inner {
  position: relative;
  z-index: 1;
  padding: clamp(26px, 4vw, 52px) clamp(16px, 2.4vw, 32px);
}
.page-products .pd-related__title {
  margin: 0;
}
.page-products .pd-related__row {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.page-products .pd-related__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--pd-radius);
  background: var(--glass);
  color: var(--paper);
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.page-products .pd-related__card span {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ice);
}
.page-products .pd-related__card:hover,
.page-products .pd-related__card:focus-visible {
  border-color: var(--blue);
  transform: translateX(4px);
}

/* 平板与桌面 */
@media (min-width: 820px) {
  .page-products .pd-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .page-products .pd-w-5 { grid-column: span 5; }
  .page-products .pd-w-6 { grid-column: span 6; }
  .page-products .pd-w-7 { grid-column: span 7; }
  .page-products .pd-w-12 { grid-column: span 12; }

  .page-products .pd-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .page-products .pd-dims {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .page-products .pd-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-products .pd-related__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-products .pd-tool__split {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: center;
  }
}

@media (min-width: 1000px) {
  .page-products .pd-compare {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    padding-bottom: 0;
  }
  .page-products .pd-related__row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1120px) {
  .page-products .pd-layout {
    display: grid;
    grid-template-columns: var(--rail) minmax(0, 1fr);
    gap: clamp(24px, 3vw, 52px);
    align-items: start;
  }
  .page-products .pd-rail {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 20px);
    left: auto;
    right: auto;
    overflow: visible;
    padding: 0 clamp(8px, 1vw, 16px) 0 0;
    margin-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .page-products .pd-rail .data-rail__label {
    display: block;
    margin: 0 0 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ice);
  }
  .page-products .pd-rail__nav {
    flex-direction: column;
    gap: 10px;
  }
  .page-products .pd-rail .data-rail__link {
    font-size: 11.5px;
    letter-spacing: .02em;
    line-height: 1.4;
  }
  .page-products .pd-rail .data-rail__stat {
    display: block;
    margin-top: 26px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }
  .page-products .pd-rail__statnum {
    display: block;
    margin: 0;
    font-family: var(--font-mono);
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    color: var(--cyan);
    font-variant-numeric: tabular-nums;
  }
  .page-products .pd-rail__statlabel {
    margin: 6px 0 0;
    font-size: 11px;
    line-height: 1.5;
    color: var(--ice);
  }
  .page-products .pd-hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .pd-compare__col,
  .page-products .pd-tool,
  .page-products .pd-related__card {
    transition: none;
  }
  .page-products .pd-related__card:hover,
  .page-products .pd-related__card:focus-visible {
    transform: none;
  }
}
