.page-products {
  --pp-gutter: 20px;
  --pp-section-y: 52px;
  background: var(--bp-paper);
  color: var(--bp-ink);
  overflow-x: hidden;
}

@media (min-width: 768px) {
  .page-products {
    --pp-gutter: 36px;
    --pp-section-y: 72px;
  }
}

@media (min-width: 1200px) {
  .page-products {
    --pp-gutter: 48px;
    --pp-section-y: 88px;
  }
}

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

/* ---------- 首屏 ---------- */

.page-products .pp-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--bp-header-h) + 24px) 0 44px;
  border-radius: 0 0 28px 28px;
  background:
    radial-gradient(120% 100% at 88% -10%, rgba(47, 217, 201, 0.18), transparent 60%),
    radial-gradient(90% 80% at 0% 110%, rgba(240, 90, 40, 0.14), transparent 62%),
    linear-gradient(168deg, var(--bp-deep) 0%, var(--bp-bay) 100%);
  color: var(--bp-paper);
}

.page-products .pp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(220, 232, 230, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 232, 230, 0.07) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 78%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 78%);
  pointer-events: none;
}

.page-products .pp-hero .bp-breadcrumb {
  color: rgba(247, 241, 228, 0.62);
}

.page-products .pp-hero .bp-breadcrumb a {
  color: rgba(247, 241, 228, 0.86);
  text-decoration: none;
}

.page-products .pp-hero .bp-breadcrumb a:hover {
  color: var(--bp-volt);
}

.page-products .pp-hero__grid {
  display: grid;
  gap: 30px;
  margin-top: 22px;
}

@media (min-width: 900px) {
  .page-products .pp-hero__grid {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    align-items: start;
    gap: 48px;
    margin-top: 28px;
  }
}

.page-products .pp-hero .bp-kicker {
  color: var(--bp-volt);
}

.page-products .pp-hero h1 {
  margin: 12px 0 0;
  font-family: var(--bp-sans);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: var(--bp-paper);
  max-width: 16em;
}

@media (min-width: 768px) {
  .page-products .pp-hero h1 {
    font-size: 40px;
  }
}

@media (min-width: 1200px) {
  .page-products .pp-hero h1 {
    font-size: 48px;
  }
}

.page-products .pp-hero__lede {
  margin: 18px 0 0;
  max-width: 40em;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(247, 241, 228, 0.82);
}

/* 任务胶囊 */

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

.page-products .pp-task {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 66px;
  padding: 12px 16px;
  border: 1px solid rgba(220, 232, 230, 0.22);
  border-radius: var(--bp-r-md);
  background: rgba(220, 232, 230, 0.05);
  color: var(--bp-paper);
  text-decoration: none;
  transition: border-color 0.18s var(--bp-ease), background-color 0.18s var(--bp-ease),
    transform 0.18s var(--bp-ease);
}

.page-products .pp-task:hover {
  border-color: var(--bp-signal);
  background: rgba(240, 90, 40, 0.12);
  transform: translateY(-2px);
}

.page-products .pp-task:focus-visible {
  outline: 2px solid var(--bp-volt);
  outline-offset: 3px;
  border-color: var(--bp-volt);
}

.page-products .pp-task__no {
  flex: 0 0 auto;
  font-family: var(--bp-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--bp-brass);
}

.page-products .pp-task__body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.page-products .pp-task__title {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
}

.page-products .pp-task__desc {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(247, 241, 228, 0.68);
}

.page-products .pp-task__arrow {
  margin-left: auto;
  flex: 0 0 auto;
  font-family: var(--bp-mono);
  color: var(--bp-volt);
  transition: transform 0.18s var(--bp-ease);
}

.page-products .pp-task:hover .pp-task__arrow {
  transform: translateX(3px);
}

/* 首屏控制台面板 */

.page-products .pp-console {
  margin: 0;
  border: 1px solid rgba(220, 232, 230, 0.2);
  border-radius: var(--bp-r-lg);
  background: rgba(6, 42, 46, 0.55);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(6, 42, 46, 0.28);
}

.page-products .pp-console img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 14 / 9;
  object-fit: cover;
}

.page-products .pp-console__meta {
  display: grid;
  gap: 10px;
  padding: 16px 18px 18px;
  border-top: 1px solid rgba(220, 232, 230, 0.16);
}

.page-products .pp-console__cap {
  font-family: var(--bp-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bp-brass);
}

.page-products .pp-console__pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-products .pp-console__pills li {
  padding: 6px 12px;
  border: 1px solid rgba(47, 217, 201, 0.4);
  border-radius: var(--bp-pill);
  font-family: var(--bp-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--bp-volt);
  white-space: nowrap;
}

/* ---------- 通用区块 ---------- */

.page-products .pp-section {
  padding-block: var(--pp-section-y);
}

.page-products .pp-section--band {
  background: linear-gradient(180deg, rgba(220, 232, 230, 0.55), rgba(220, 232, 230, 0.18));
  border-block: var(--bp-line-soft);
}

.page-products .pp-section--tail {
  padding-bottom: calc(var(--pp-section-y) + 24px);
  border-top: var(--bp-line-soft);
}

.page-products .pp-section__head {
  max-width: 46em;
}

.page-products .pp-section__head h2 {
  margin: 12px 0 0;
  font-family: var(--bp-sans);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--bp-deep);
}

@media (min-width: 768px) {
  .page-products .pp-section__head h2 {
    font-size: 34px;
  }
}

.page-products .pp-section__lede {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(17, 27, 29, 0.78);
}

.page-products .pp-note {
  margin: 20px 0 0;
  padding-left: 14px;
  border-left: 3px solid var(--bp-brass);
  font-size: 14px;
  line-height: 1.8;
  color: rgba(17, 27, 29, 0.68);
}

/* ---------- 标签矩阵 ---------- */

.page-products .pp-tagrow {
  list-style: none;
  margin: 26px 0 0;
  padding: 4px 2px 14px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(6, 42, 46, 0.28) transparent;
}

.page-products .pp-tagrow::-webkit-scrollbar {
  height: 6px;
}

.page-products .pp-tagrow::-webkit-scrollbar-thumb {
  background: rgba(6, 42, 46, 0.24);
  border-radius: var(--bp-pill);
}

.page-products .pp-tagrow > li {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.page-products .pp-tagrow .bp-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 16px;
  font-size: 14px;
  white-space: nowrap;
  cursor: default;
}

.page-products .pp-metrics {
  display: grid;
  gap: 1px;
  margin-top: 26px;
  border: var(--bp-line);
  border-radius: var(--bp-r-md);
  background: rgba(6, 42, 46, 0.12);
  overflow: hidden;
}

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

.page-products .pp-metric {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  background: var(--bp-surface);
}

.page-products .pp-metric__num {
  font-family: var(--bp-mono);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--bp-bay);
}

.page-products .pp-metric__label {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(17, 27, 29, 0.66);
}

/* ---------- 图版 ---------- */

.page-products .pp-figure {
  margin: 32px 0 0;
  border: var(--bp-line);
  border-radius: var(--bp-r-lg);
  background: var(--bp-surface);
  overflow: hidden;
  box-shadow: var(--bp-shadow);
}

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

.page-products .pp-figure--wide img {
  aspect-ratio: 12 / 7;
}

.page-products .pp-figure--tall img {
  aspect-ratio: 3 / 4;
}

.page-products .pp-figure .bp-media__caption {
  padding: 14px 18px;
  border-top: var(--bp-line-soft);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(17, 27, 29, 0.6);
}

/* ---------- 左右错位分栏 ---------- */

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

@media (min-width: 900px) {
  .page-products .pp-split {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 56px;
  }

  .page-products .pp-split--flip .pp-figure {
    order: 2;
  }

  .page-products .pp-split--flip .pp-split__body {
    order: 1;
  }

  .page-products .pp-split .pp-figure {
    margin-top: 0;
  }
}

.page-products .pp-split__body h2 {
  margin: 12px 0 0;
  font-family: var(--bp-sans);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.32;
  color: var(--bp-deep);
}

@media (min-width: 768px) {
  .page-products .pp-split__body h2 {
    font-size: 32px;
  }
}

.page-products .pp-split__body p {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(17, 27, 29, 0.78);
}

.page-products .pp-views {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
}

.page-products .pp-views__item {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid rgba(6, 42, 46, 0.2);
  border-radius: var(--bp-pill);
  font-family: var(--bp-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--bp-bay);
  background: var(--bp-surface);
}

.page-products .pp-views__item.is-on {
  background: var(--bp-signal);
  border-color: var(--bp-signal);
  color: var(--bp-ink);
}

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

.page-products .pp-checks li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(17, 27, 29, 0.74);
}

.page-products .pp-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--bp-kelp);
}

/* ---------- 导出状态流程 ---------- */

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

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

.page-products .pp-state {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "dot name"
    "dot desc";
  column-gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border: var(--bp-line);
  border-radius: var(--bp-r-md);
  background: var(--bp-surface);
}

.page-products .pp-state__dot {
  grid-area: dot;
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 50%;
  background: rgba(6, 42, 46, 0.24);
}

.page-products .pp-state__name {
  grid-area: name;
  font-family: var(--bp-mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--bp-deep);
}

.page-products .pp-state__desc {
  grid-area: desc;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(17, 27, 29, 0.62);
}

.page-products .pp-state--live .pp-state__dot {
  background: var(--bp-volt);
  box-shadow: 0 0 0 4px rgba(47, 217, 201, 0.22);
}

.page-products .pp-state--ready {
  border-color: var(--bp-signal);
}

.page-products .pp-state--ready .pp-state__dot {
  background: var(--bp-signal);
}

.page-products .pp-state--gone .pp-state__dot {
  background: transparent;
  border: 2px solid rgba(6, 42, 46, 0.3);
}

/* ---------- 阵容变动窗口 ---------- */

.page-products .pp-window {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

@media (min-width: 780px) {
  .page-products .pp-window {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

.page-products .pp-window__col {
  padding: 20px 22px;
  border: 1px solid rgba(6, 42, 46, 0.16);
  border-top: 3px solid var(--bp-signal);
  border-radius: var(--bp-r-md);
  background: var(--bp-surface);
}

.page-products .pp-window__tag {
  display: inline-block;
  font-family: var(--bp-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bp-bay);
}

.page-products .pp-window__col p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(17, 27, 29, 0.74);
}

/* ---------- 安装包 ---------- */

.page-products .pp-install {
  display: grid;
  gap: 26px;
  margin-top: 36px;
  padding: 26px 22px;
  border-radius: var(--bp-r-lg);
  background: linear-gradient(155deg, var(--bp-deep) 0%, var(--bp-bay) 100%);
  color: var(--bp-paper);
}

@media (min-width: 900px) {
  .page-products .pp-install {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 44px;
    padding: 38px 36px;
    align-items: center;
  }
}

.page-products .pp-install .bp-kicker {
  color: var(--bp-volt);
}

.page-products .pp-install h3 {
  margin: 12px 0 0;
  font-family: var(--bp-sans);
  font-weight: 800;
  font-size: 21px;
  line-height: 1.35;
  color: var(--bp-paper);
}

@media (min-width: 768px) {
  .page-products .pp-install h3 {
    font-size: 26px;
  }
}

.page-products .pp-install__body p {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(247, 241, 228, 0.8);
}

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

.page-products .pp-install__meta {
  font-family: var(--bp-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--bp-brass);
}

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

.page-products .pp-install__list li {
  padding: 14px 16px;
  border: 1px solid rgba(220, 232, 230, 0.2);
  border-radius: var(--bp-r-md);
  background: rgba(220, 232, 230, 0.06);
  font-size: 14px;
  line-height: 1.7;
  color: rgba(247, 241, 228, 0.86);
}

/* ---------- 版本刻度带 ---------- */

.page-products .pp-ticks {
  list-style: none;
  position: relative;
  margin: 30px 0 0;
  padding: 0 0 0 26px;
}

.page-products .pp-ticks::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--bp-brass), rgba(201, 168, 106, 0.18));
}

.page-products .pp-ticks > li {
  position: relative;
  padding-bottom: 26px;
}

.page-products .pp-ticks > li:last-child {
  padding-bottom: 0;
}

.page-products .pp-ticks > li::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bp-paper);
  border: 3px solid var(--bp-brass);
}

.page-products .pp-ticks__item--plan::before {
  border-color: var(--bp-signal);
}

.page-products .pp-ticks__ver {
  display: inline-block;
  font-family: var(--bp-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--bp-bay);
}

.page-products .pp-ticks__body h3 {
  margin: 8px 0 0;
  font-family: var(--bp-sans);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.45;
  color: var(--bp-deep);
}

.page-products .pp-ticks__body p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(17, 27, 29, 0.72);
}

.page-products .pp-tail__note {
  margin: 32px 0 0;
  padding-top: 22px;
  border-top: var(--bp-line);
  font-size: 15px;
  line-height: 1.85;
  color: rgba(17, 27, 29, 0.72);
}

.page-products .pp-tail__note a {
  color: var(--bp-bay);
  text-decoration: underline;
  text-decoration-color: var(--bp-brass);
  text-underline-offset: 3px;
  transition: color 0.18s var(--bp-ease);
}

.page-products .pp-tail__note a:hover {
  color: var(--bp-signal);
}

.page-products .pp-tail__note a:focus-visible {
  outline: 2px solid var(--bp-volt);
  outline-offset: 2px;
}

@media (min-width: 900px) {
  .page-products .pp-install__meta {
    margin-top: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .pp-task {
    transition: none;
  }

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

  .page-products .pp-task:hover .pp-task__arrow {
    transform: none;
  }
}
