.page-products {
  --ps-line: rgba(201, 194, 180, 0.22);
  --ps-line-soft: rgba(201, 194, 180, 0.12);
  --ps-gap: clamp(32px, 6vw, 88px);
  background: var(--night);
  color: var(--paper);
  font-family: var(--font-sans);
  padding-bottom: var(--ps-gap);
  -webkit-font-smoothing: antialiased;
}

.page-products *,
.page-products *::before,
.page-products *::after {
  box-sizing: border-box;
}

.page-products h1,
.page-products h2,
.page-products h3,
.page-products p,
.page-products ul,
.page-products ol,
.page-products figure {
  margin: 0;
}

.page-products img {
  display: block;
  max-width: 100%;
  height: auto;
}

.page-products a {
  color: inherit;
}

/* ---------- 面包屑 ---------- */
.page-products .breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.page-products .breadcrumbs a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.page-products .breadcrumbs a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.page-products .breadcrumbs [aria-current="page"] {
  color: var(--cyan);
}

/* ---------- 首屏 ---------- */
.ps-hero {
  border-bottom: 1px solid var(--ps-line);
}

.ps-hero__grid {
  display: grid;
  gap: clamp(28px, 4.5vw, 60px);
  padding: clamp(28px, 5vw, 64px) 0 var(--ps-gap);
}

.ps-hero__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--amber);
  margin-bottom: 20px;
}

.ps-hero h1 {
  font-size: clamp(36px, 10vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 900;
  text-wrap: balance;
  background-image: linear-gradient(transparent 82%, rgba(63, 242, 208, 0.28) 82%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.ps-hero__aside > p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--paper-2);
  max-width: 620px;
  margin-bottom: 26px;
}

.ps-hero__jump {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--ps-line);
}

.ps-hero__jump li {
  border-bottom: 1px solid var(--ps-line-soft);
}

.ps-hero__jump a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 12px 2px;
  font-size: 14px;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: color 180ms ease, border-color 180ms ease, padding-left 180ms ease;
}

.ps-hero__jump a span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--teal);
  flex: none;
  transition: color 180ms ease;
}

.ps-hero__jump a:hover {
  color: var(--cyan);
  border-left-color: var(--cyan);
  padding-left: 10px;
}

.ps-hero__jump a:hover span {
  color: var(--cyan);
}

/* ---------- 章节头 ---------- */
.ps-sec {
  padding: clamp(40px, 6vw, 92px) 0;
  border-bottom: 1px solid var(--ps-line-soft);
}

.ps-sec--last {
  border-bottom: 0;
  padding-bottom: clamp(16px, 3vw, 40px);
}

.ps-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(14px, 2.4vw, 30px);
  align-items: start;
  padding-top: 20px;
  border-top: 3px solid var(--cyan);
  margin-bottom: clamp(26px, 4vw, 52px);
}

.ps-head__num {
  font-family: var(--font-serif);
  font-size: clamp(40px, 7vw, 72px);
  line-height: 0.78;
  color: var(--teal);
  letter-spacing: -0.02em;
}

.ps-head__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--amber);
  margin-bottom: 10px;
}

.ps-head__title {
  font-size: clamp(23px, 4.2vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  font-weight: 800;
  text-wrap: balance;
}

/* ---------- 通用分栏 ---------- */
.ps-split {
  display: grid;
  gap: clamp(24px, 3.6vw, 48px);
}

.ps-lede {
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.82;
  color: var(--paper-2);
  max-width: 620px;
  margin-bottom: 22px;
}

.ps-lede--wide {
  max-width: 860px;
  margin-bottom: clamp(22px, 3vw, 36px);
}

.ps-note {
  font-size: 14px;
  line-height: 1.78;
  color: var(--muted);
  max-width: 620px;
  margin-top: 18px;
  padding-left: 14px;
  border-left: 2px solid var(--moss);
}

.ps-points {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 16px;
  margin-bottom: 26px;
}

.ps-points li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.78;
  color: var(--paper-2);
  max-width: 640px;
}

.ps-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 12px;
  height: 2px;
  background: var(--cyan);
}

.ps-points strong {
  color: var(--paper);
  font-weight: 700;
}

/* ---------- 数据格 ---------- */
.ps-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--ps-line);
  border: 1px solid var(--ps-line);
  margin-bottom: 26px;
}

.ps-stats__cell {
  background: var(--deep);
  padding: 16px 14px;
  transition: background 180ms ease;
}

.ps-stats__cell:hover {
  background: var(--moss);
}

.ps-stats__value {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.12;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.ps-stats__value--amber {
  color: var(--amber);
}

.ps-stats__label {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---------- 图片框 ---------- */
.ps-fig {
  border: 3px solid var(--moss);
  background: var(--deep);
  transition: border-color 180ms ease;
}

.ps-fig:hover {
  border-color: var(--teal);
}

.ps-fig img {
  width: 100%;
  object-fit: cover;
}

.ps-fig figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--ps-line-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.ps-fig--tall img {
  aspect-ratio: 3 / 4;
}

/* ---------- 按钮 ---------- */
.page-products .btn {
  display: inline-block;
  padding: 12px 22px;
  font-size: 14px;
  text-decoration: none;
  border: 3px solid var(--cyan);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.page-products .btn--ghost {
  color: var(--cyan);
  background: transparent;
}

.page-products .btn--ghost:hover {
  background: var(--cyan);
  color: var(--night);
}

.page-products .btn--solid {
  color: var(--night);
  background: var(--cyan);
}

.page-products .btn--solid:hover {
  background: var(--amber);
  border-color: var(--amber);
}

/* ---------- 大屏面板 ---------- */
.ps-widescreen {
  display: grid;
  gap: clamp(20px, 3vw, 34px);
}

.ps-panels {
  display: grid;
  border: 3px solid var(--moss);
  background: var(--deep);
}

.ps-panel {
  padding: clamp(20px, 3vw, 30px);
}

.ps-panel + .ps-panel {
  border-top: 3px solid var(--moss);
}

.ps-panel__tab {
  display: inline-block;
  padding: 5px 13px;
  border: 3px solid var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  margin-bottom: 16px;
}

.ps-panel__tab--on {
  background: var(--cyan);
  color: var(--night);
  border-color: var(--cyan);
}

.ps-panel__title {
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.35;
  font-weight: 700;
  margin-bottom: 10px;
}

.ps-panel__text {
  font-size: 15px;
  line-height: 1.78;
  color: var(--paper-2);
  max-width: 560px;
}

.ps-res {
  display: grid;
  gap: 16px;
}

.ps-res__item {
  border: 3px solid var(--ps-line);
  padding: 14px;
  background: var(--deep);
  transition: border-color 180ms ease;
}

.ps-res__item:hover {
  border-color: var(--teal);
}

.ps-res__screen {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--teal);
  background: rgba(63, 242, 208, 0.05);
  margin-bottom: 12px;
}

.ps-res__screen span {
  flex: 1 1 0;
  min-height: 0;
  display: block;
  background: rgba(63, 242, 208, 0.22);
  border-left: 3px solid var(--cyan);
}

.ps-res__screen--sm {
  gap: 5px;
  padding: 9px;
}

.ps-res__screen--sm span {
  background: rgba(63, 242, 208, 0.15);
  border-left-width: 2px;
}

.ps-res__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.ps-res__label b {
  color: var(--amber);
  font-weight: 600;
}

/* ---------- 筛选维度 ---------- */
.ps-dim {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--ps-line);
  margin-bottom: 4px;
}

.ps-dim li {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--ps-line-soft);
}

.ps-dim__k {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.ps-dim__v {
  font-size: 14px;
  line-height: 1.7;
  color: var(--paper-2);
}

/* ---------- 使用场景 ---------- */
.ps-scene-grid {
  display: grid;
  gap: clamp(24px, 3.4vw, 44px);
}

.ps-scenes {
  border-top: 3px solid var(--ps-line);
}

.ps-scene {
  display: grid;
  gap: 8px;
  padding: 22px 0;
  border-bottom: 1px solid var(--ps-line);
}

.ps-scene__who {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--amber);
}

.ps-scene__title {
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.4;
  font-weight: 700;
  margin-bottom: 8px;
}

.ps-scene__body p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--paper-2);
  max-width: 600px;
}

/* ---------- 开始使用 ---------- */
.ps-start {
  display: grid;
  gap: clamp(26px, 4vw, 52px);
}

.ps-steps {
  list-style: none;
  padding: 0;
  counter-reset: ps-step;
}

.ps-steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--ps-line);
}

.ps-steps li:first-child {
  border-top: 1px solid var(--ps-line);
}

.ps-steps li::before {
  counter-increment: ps-step;
  content: "0" counter(ps-step);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  padding-top: 4px;
}

.ps-step__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 6px;
}

.ps-step__text {
  font-size: 14px;
  line-height: 1.78;
  color: var(--paper-2);
  max-width: 620px;
}

.ps-start__aside {
  border: 3px solid var(--moss);
  background: var(--deep);
  padding: clamp(20px, 3vw, 30px);
}

.ps-aside__title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ps-line);
}

.ps-aside__text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--paper-2);
  margin-bottom: 16px;
}

.ps-aside__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
  font-size: 13px;
}

.ps-aside__links a {
  text-decoration: none;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.ps-aside__links a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .ps-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ps-res {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ps-scene {
    grid-template-columns: 132px 1fr;
    gap: 24px;
  }
}

@media (min-width: 760px) {
  .ps-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ps-panel + .ps-panel {
    border-top: 0;
    border-left: 3px solid var(--moss);
  }
}

@media (min-width: 900px) {
  .ps-hero__grid {
    grid-template-columns: 1.25fr 1fr;
    align-items: end;
  }

  .ps-split {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }

  .ps-split--flip {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .ps-split--flip .ps-split__body {
    grid-column: 2;
    grid-row: 1;
  }

  .ps-split--flip .ps-fig {
    grid-column: 1;
    grid-row: 1;
  }

  .ps-split--narrow {
    grid-template-columns: 1.5fr 0.62fr;
  }

  .ps-scene-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }

  .ps-fig--scene {
    position: sticky;
    top: calc(var(--bar-h) + 16px);
  }

  .ps-start {
    grid-template-columns: 1.3fr 0.7fr;
    align-items: start;
  }

  .ps-head {
    grid-template-columns: clamp(64px, 7vw, 110px) 1fr;
  }
}

@media (min-width: 1180px) {
  .ps-hero h1 {
    font-size: clamp(64px, 5.6vw, 88px);
  }
}
