/* ============================================================
   桌台方案页 · page-products
   ============================================================ */

.page-products {
  --ps-offset: 24px;
  --ps-offset-lg: 48px;
  display: block;
  overflow-x: clip;
}

.page-products .media {
  position: relative;
  display: block;
  margin: 0;
}

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

/* ---------- 面包屑 ---------- */
.page-products .breadcrumbs {
  margin: 26px 0 0;
  padding: 0;
}

.page-products .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--silver-400);
}

.page-products .breadcrumbs li {
  display: inline-flex;
  align-items: center;
}

.page-products .breadcrumbs li + li::before {
  content: "/";
  margin: 0 10px;
  color: var(--hairline-soft);
}

.page-products .breadcrumbs a {
  color: var(--silver-400);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.22s linear, border-color 0.22s linear;
}

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

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

/* ---------- 首屏 ---------- */
.ps-hero {
  margin-top: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}

.page-products .ps-hero h1 {
  margin: 16px 0 0;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--silver-050);
}

.ps-hero__lede {
  margin: 18px 0 0;
  max-width: 56ch;
  font-size: 17px;
  line-height: 1.82;
  color: var(--silver-200);
}

.ps-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.ps-hero__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  margin: 32px 0 0;
  padding: 22px 0 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
}

.ps-fact__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--silver-050);
}

.ps-fact__label {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--silver-400);
}

.ps-hero__media {
  margin: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}

.ps-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(205deg, rgba(47, 230, 210, 0.14) 0%, transparent 46%, rgba(139, 92, 246, 0.16) 100%);
}

/* ---------- 章节通用 ---------- */
.ps-block {
  margin-top: clamp(64px, 9vw, 118px);
}

.ps-head {
  max-width: 74ch;
}

.ps-index,
.ps-head .ps-index {
  display: block;
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--silver-400);
  opacity: 0.75;
}

.ps-head h2 {
  margin: 0;
  font-size: clamp(22px, 2.9vw, 33px);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.018em;
  color: var(--silver-050);
}

.ps-head__lede {
  margin: 16px 0 0;
  max-width: 64ch;
  font-size: 16px;
  line-height: 1.82;
  color: var(--silver-200);
}

/* ---------- 01 维度卡片 ---------- */
.ps-dims {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
  margin-top: 38px;
}

.ps-dim {
  position: relative;
  padding: 26px 20px 26px;
  background: var(--ink-800);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02), 0 20px 38px -30px rgba(0, 0, 0, 0.95);
  transition: border-color 0.26s linear, background 0.26s linear, transform 0.26s linear;
}

.ps-dim::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--rail);
  opacity: 0.55;
}

.ps-dim:hover {
  border-color: var(--hairline-soft);
  background: var(--ink-700);
}

.ps-dim__num {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  color: var(--silver-400);
}

.ps-dim h3 {
  margin: 12px 0 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--silver-050);
}

.ps-dim p {
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--silver-200);
}

.ps-dim .ps-dim__eg {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--hairline);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--silver-400);
}

/* 组合视角 */
.ps-combos {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  margin-top: 44px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}

.ps-combo {
  padding: 26px 22px 28px;
  background: var(--ink-900);
}

.ps-combo h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--cyan);
}

.ps-combo:nth-child(2) h3 {
  color: var(--violet);
}

.ps-combo:nth-child(3) h3 {
  color: var(--silver-050);
}

.ps-combo p {
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--silver-200);
}

/* ---------- 02 台型表 ---------- */
.ps-table-wrap {
  margin-top: 36px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--ink-800);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-products .ps-types {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: 14.5px;
}

.page-products .ps-types caption,
.page-products .ps-payout__table caption {
  caption-side: top;
  text-align: left;
  padding: 18px 20px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--silver-400);
}

.page-products .ps-types th,
.page-products .ps-payout__table th {
  text-align: left;
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--silver-400);
  border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
}

.page-products .ps-types td,
.page-products .ps-payout__table td {
  padding: 14px 20px;
  color: var(--silver-200);
  border-bottom: 1px solid var(--hairline);
  vertical-align: middle;
  line-height: 1.7;
}

.page-products .ps-types tbody tr:last-child td,
.page-products .ps-payout__table tbody tr:last-child td {
  border-bottom: 0;
}

.page-products .ps-types tbody tr:hover td,
.page-products .ps-payout__table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.016);
}

.page-products .ps-types td.num,
.page-products .ps-payout__table td.num {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--silver-050);
  white-space: nowrap;
}

.ps-prefix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 5px 9px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-900);
  background: var(--cyan);
  border-radius: 6px;
}

.page-products .ps-types tbody tr:nth-child(even) .ps-prefix {
  background: var(--violet);
  color: var(--silver-050);
}

.ps-type-media {
  margin: 40px 0 0;
  max-width: 720px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}

.ps-type-media::after,
.ps-ladder-media::after,
.ps-payout__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(210deg, rgba(47, 230, 210, 0.1) 0%, transparent 50%, rgba(139, 92, 246, 0.12) 100%);
}

.page-products .media-caption {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--silver-400);
  background: var(--ink-800);
  border-top: 1px solid var(--hairline);
}

/* ---------- 03 返水梯度 ---------- */
.ps-ladder {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
}

.ps-ladder__step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "val note"
    "bar note";
  column-gap: 16px;
  row-gap: 10px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
}

.ps-ladder__step:nth-child(1) { --ps-w: 30%; --ps-h: 30%; --ps-c: #2FE6D2; }
.ps-ladder__step:nth-child(2) { --ps-w: 45%; --ps-h: 45%; --ps-c: #46DCD5; }
.ps-ladder__step:nth-child(3) { --ps-w: 58%; --ps-h: 58%; --ps-c: #63C5E0; }
.ps-ladder__step:nth-child(4) { --ps-w: 72%; --ps-h: 72%; --ps-c: #7C9EEC; }
.ps-ladder__step:nth-child(5) { --ps-w: 86%; --ps-h: 86%; --ps-c: #8674F2; }
.ps-ladder__step:nth-child(6) { --ps-w: 100%; --ps-h: 100%; --ps-c: #8B5CF6; }

.ps-ladder__val {
  grid-area: val;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--silver-050);
}

.ps-ladder__bar {
  grid-area: bar;
  position: relative;
  width: 100%;
  height: 4px;
  background: var(--hairline);
  border-radius: 2px;
  overflow: hidden;
  transition: box-shadow 0.26s linear;
}

.ps-ladder__bar span {
  display: block;
  width: var(--ps-w, 40%);
  height: 100%;
  background: var(--ps-c, var(--cyan));
  border-radius: inherit;
  transition: width 0.36s linear;
}

.ps-ladder__step:hover .ps-ladder__bar {
  box-shadow: 0 0 0 1px var(--hairline-soft), 0 0 18px -4px var(--ps-c, var(--cyan));
}

.ps-ladder__note {
  grid-area: note;
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--silver-400);
}

.ps-ladder-media {
  margin: 40px 0 0 auto;
  max-width: 640px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}

/* ---------- 04 派彩节奏 ---------- */
.ps-rhythm {
  margin-top: 38px;
  display: grid;
  gap: 20px;
  padding: 24px 22px 26px;
  background: var(--ink-800);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.ps-rhythm__row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.ps-rhythm__label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--silver-400);
}

.ps-rhythm__track {
  position: relative;
  display: block;
  height: 6px;
  border-radius: 3px;
  background-color: var(--hairline);
  background-repeat: repeat-x;
  background-size: auto 6px;
}

.ps-rhythm__track--fast {
  background-image: repeating-linear-gradient(90deg, var(--cyan) 0 4px, transparent 4px 40px);
}

.ps-rhythm__track--mid {
  background-image: repeating-linear-gradient(90deg, var(--cyan) 0 4px, transparent 4px 120px);
  opacity: 0.85;
}

.ps-rhythm__track--slow {
  background-image: repeating-linear-gradient(90deg, var(--violet) 0 4px, transparent 4px 300px);
}

.ps-payout__bleed {
  margin-top: 30px;
}

.page-products .ps-payout__table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
  font-size: 14.5px;
}

.page-products .ps-payout__table .table-wrap {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--ink-800);
}

.ps-payout__media {
  margin: 40px 0 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}

/* ---------- 05 操作路径 ---------- */
.ps-path {
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
}

.ps-path__step {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  padding: 24px 0 26px;
  border-bottom: 1px solid var(--hairline);
  transition: background 0.26s linear;
}

.ps-path__step:hover {
  background: rgba(255, 255, 255, 0.014);
}

.ps-path__no {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cyan);
  padding-top: 3px;
}

.ps-path__body h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--silver-050);
}

.ps-path__body p {
  margin: 9px 0 0;
  max-width: 70ch;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--silver-200);
}

.ps-warn {
  margin-top: 38px;
  padding: 24px 22px 26px;
  background: var(--ink-800);
  border: 1px solid var(--hairline);
  border-left: 2px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.ps-warn__title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--amber);
}

.ps-warn ul {
  margin: 0;
  padding-left: 18px;
}

.ps-warn li {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--silver-200);
}

.ps-warn li + li {
  margin-top: 10px;
}

.ps-warn li::marker {
  color: var(--amber);
}

/* ---------- 收尾 ---------- */
.ps-closing {
  margin-top: clamp(64px, 9vw, 118px);
  border-top: 1px solid var(--hairline);
}

.ps-closing__media {
  position: relative;
  border-radius: 0;
  max-height: 380px;
  overflow: hidden;
}

.ps-closing__media img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  opacity: 0.72;
}

.ps-closing__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 8, 11, 0.3) 0%, rgba(7, 8, 11, 0.86) 78%, var(--ink-900) 100%);
}

.ps-closing__inner {
  margin-top: -56px;
  position: relative;
  z-index: 1;
  padding-bottom: clamp(56px, 8vw, 96px);
}

.ps-closing__inner h2 {
  margin: 12px 0 0;
  font-size: clamp(23px, 3vw, 34px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.018em;
  color: var(--silver-050);
}

.ps-closing__text {
  margin: 16px 0 0;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.82;
  color: var(--silver-200);
}

.ps-closing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

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

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

@media (min-width: 760px) {
  .ps-ladder {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: end;
    gap: 0;
    border-bottom: 1px solid var(--hairline);
  }

  .ps-ladder__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 0;
    padding: 0;
    text-align: center;
  }

  .ps-ladder__val {
    order: 0;
    margin-bottom: 14px;
  }

  .ps-ladder__bar {
    order: 1;
    width: 100%;
    height: 112px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 22%;
    box-sizing: border-box;
    background: transparent;
    border-radius: 0;
    overflow: visible;
  }

  .ps-ladder__bar span {
    width: 100%;
    height: var(--ps-h, 40%);
    border-radius: 4px 4px 0 0;
  }

  .ps-ladder__note {
    order: 2;
    margin-top: 16px;
    padding: 0 6px;
    min-height: 3.5em;
  }
}

@media (min-width: 860px) {
  .ps-combos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ps-path__step {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 24px;
    padding: 28px 0 30px;
  }
}

@media (min-width: 940px) {
  .ps-hero {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(36px, 5vw, 72px);
  }
}

@media (min-width: 1060px) {
  .ps-dims {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-bottom: var(--ps-offset);
  }

  .ps-dim:nth-child(2n) {
    transform: translateY(var(--ps-offset));
  }

  .ps-closing__media,
  .ps-closing__media img {
    height: 420px;
    max-height: none;
  }
}

@media (min-width: 1200px) {
  .ps-payout__bleed {
    width: calc(100% + 72px);
  }

  .ps-type-media {
    margin-top: 48px;
    margin-left: calc(var(--ps-offset-lg) * 0.5);
  }

  .ps-ladder-media {
    margin-top: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .ps-dim:nth-child(2n) {
    transform: none;
  }
}
