.page-products {
  --card-radius: 16px;
  --card-fill: linear-gradient(180deg, rgba(243, 241, 255, .075), rgba(243, 241, 255, .028));
  color: var(--text-body);
  overflow-x: clip;
}

.page-products .breadcrumb {
  margin-top: clamp(18px, 3vw, 30px);
}

/* ---------- 首屏 ---------- */
.page-products .hero {
  display: grid;
  gap: clamp(22px, 4vw, 44px);
  padding-block: clamp(24px, 4.6vw, 54px) clamp(30px, 6vw, 72px);
}

.page-products .hero__title {
  margin-top: 14px;
  max-width: 22ch;
  line-height: 1.08;
}

.page-products .hero__lead {
  margin-top: 20px;
  max-width: 54ch;
  font-size: clamp(15px, .9vw + 12.6px, 18px);
  line-height: 1.8;
}

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

.page-products .hero__aside {
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--card-radius);
  border: 1px solid var(--line);
}

.page-products .hero__version {
  margin-top: 6px;
  font-size: clamp(32px, 6vw, 46px);
  line-height: 1.1;
  letter-spacing: .04em;
  color: var(--cyan);
}

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

.page-products .hero__facts li {
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
  line-height: 1.7;
}

.page-products .hero__facts .mono {
  margin-inline-end: 6px;
  color: var(--cyan);
}

.page-products .hero__link {
  display: inline-block;
  margin-top: 18px;
  padding-bottom: 2px;
  font-size: 14px;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--line-cyan);
}

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

/* ---------- 区块标题 ---------- */
.page-products .sec-head {
  display: grid;
  gap: 10px;
  max-width: 68ch;
  margin-bottom: clamp(22px, 4vw, 42px);
}

.page-products .sec-head__lead {
  max-width: 54ch;
  font-size: 15.5px;
  line-height: 1.8;
}

.page-products .sec-head--split .rail-note {
  font-size: 13.5px;
  line-height: 1.8;
}

@media (min-width: 960px) {
  .page-products .sec-head--split {
    max-width: none;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
    column-gap: clamp(24px, 4vw, 64px);
    align-items: end;
  }

  .page-products .sec-head--split .eyebrow {
    grid-column: 1 / -1;
  }

  .page-products .sec-head--split .h-section {
    grid-column: 1;
    margin: 0;
  }

  .page-products .sec-head--split .rail-note,
  .page-products .sec-head--split p:not(.eyebrow) {
    grid-column: 2;
  }
}

/* ---------- 图片容器 ---------- */
.page-products .figure__frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ---------- 两条玩法线 ---------- */
.page-products .tracks {
  display: grid;
  gap: 18px;
}

@media (min-width: 900px) {
  .page-products .tracks {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 3vw, 48px);
    align-items: start;
  }

  .page-products .track--arcade {
    margin-top: clamp(28px, 6vw, 84px);
  }
}

.page-products .track {
  position: relative;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  overflow: hidden;
}

.page-products .track::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--magenta), transparent 70%);
}

.page-products .track--cards {
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(255, 62, 143, .17), transparent 62%),
    var(--ink-2);
}

.page-products .track--arcade {
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(25, 211, 154, .16), transparent 62%),
    linear-gradient(180deg, rgba(15, 92, 74, .5), rgba(10, 7, 24, .95) 68%);
  border-color: rgba(25, 211, 154, .22);
}

.page-products .track--arcade::before {
  background: linear-gradient(90deg, var(--green), transparent 70%);
}

.page-products .track__index {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gauze);
}

.page-products .track__title {
  margin-top: 10px;
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.38;
  color: var(--glass-white);
}

.page-products .track > p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.8;
}

.page-products .track__rooms {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-products .track__rooms li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  font-size: 14.5px;
  line-height: 1.75;
}

/* ---------- 六项规则 ---------- */
.page-products .rules__figure {
  margin: 0 0 clamp(24px, 4vw, 46px);
}

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

@media (min-width: 760px) {
  .page-products .rules__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 22px;
    row-gap: 20px;
  }

  .page-products .rules__list > li:nth-child(2n) {
    margin-top: clamp(14px, 4vw, 52px);
  }
}

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

  .page-products .rules__list > li:nth-child(3n + 1) {
    margin-top: 0;
  }

  .page-products .rules__list > li:nth-child(3n + 2) {
    margin-top: clamp(18px, 4vw, 58px);
  }

  .page-products .rules__list > li:nth-child(3n) {
    margin-top: clamp(36px, 8vw, 116px);
  }
}

.page-products .rule-card {
  position: relative;
  padding: clamp(18px, 2.6vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--card-fill);
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}

.page-products .rule-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.page-products .rule-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-cyan);
  background: linear-gradient(180deg, rgba(59, 240, 228, .1), rgba(243, 241, 255, .03));
}

.page-products .rule-card__no {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--cyan);
}

.page-products .rule-card__title {
  margin-top: 8px;
  font-size: clamp(18px, 1.8vw, 22px);
  color: var(--glass-white);
}

.page-products .rule-card__scene {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.8;
}

.page-products .rule-media {
  margin: 16px 0 0;
}

.page-products .rule-media .figure__frame {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.page-products .rule-media .figure__caption {
  margin-top: 8px;
}

/* ---------- 回放剧场 ---------- */
.page-products .replay__stage {
  position: relative;
  display: grid;
  gap: clamp(22px, 3.6vw, 46px);
  padding: clamp(22px, 4vw, 54px);
  border: 1px solid var(--line-cyan);
  border-radius: clamp(18px, 3vw, 30px);
  background:
    radial-gradient(120% 90% at 8% 0%, rgba(59, 240, 228, .14), transparent 58%),
    radial-gradient(110% 100% at 100% 100%, rgba(255, 62, 143, .16), transparent 60%),
    var(--ink-deep);
}

@media (min-width: 1020px) {
  .page-products .replay__stage {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    align-items: center;
  }
}

.page-products .replay__intro > p {
  margin-top: 14px;
  font-size: 15.5px;
  line-height: 1.8;
  max-width: 46ch;
}

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

.page-products .replay__steps li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.75;
}

.page-products .replay__steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(59, 240, 228, .12);
}

.page-products .replay__steps .mono {
  margin-inline-end: 8px;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--cyan);
}

.page-products .replay__figure {
  margin: 0;
}

.page-products .replay__figure .figure__frame {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-products .replay__timeline {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 20px;
}

.page-products .tl-line {
  stroke: rgba(59, 240, 228, .34);
  stroke-width: 1;
}

.page-products .tl-dot {
  fill: var(--cyan);
}

.page-products .tl-dot--muted {
  fill: rgba(142, 147, 184, .75);
}

.page-products .tl-mark {
  stroke: rgba(200, 163, 74, .62);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

/* ---------- 数据指标 ---------- */
.page-products .metrics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

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

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

.page-products .metric {
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--line);
  border-top-color: var(--line-cyan);
  border-radius: var(--card-radius);
  background: linear-gradient(180deg, rgba(243, 241, 255, .06), rgba(243, 241, 255, .02));
}

.page-products .metric__label {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gauze);
}

.page-products .metric__q {
  margin-top: 12px;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--glass-white);
}

.page-products .metric__note {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.75;
}

/* ---------- 客户端矩阵 ---------- */
.page-products .clients__figure {
  margin: 0 0 clamp(22px, 4vw, 42px);
}

.page-products .matrix-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: rgba(243, 241, 255, .03);
}

.page-products .matrix {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}

.page-products .matrix th,
.page-products .matrix td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}

.page-products .matrix thead th {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gauze);
}

.page-products .matrix tbody th {
  font-weight: 500;
  color: var(--glass-white);
}

.page-products .matrix td {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .06em;
}

.page-products .matrix td.is-no {
  color: var(--gauze);
  opacity: .6;
}

.page-products .matrix tbody tr:hover {
  background: rgba(59, 240, 228, .07);
}

.page-products .matrix tbody tr:last-child th,
.page-products .matrix tbody tr:last-child td {
  border-bottom: 0;
}

/* ---------- 上手指引 ---------- */
.page-products .path__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

@media (min-width: 760px) {
  .page-products .path__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 22px;
  }
}

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

.page-products .step {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.page-products .step__no {
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--gold);
}

.page-products .step__title {
  margin-top: 10px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--glass-white);
}

.page-products .step p {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.8;
}

/* ---------- 收尾与合作 ---------- */
.page-products .onward__grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 960px) {
  .page-products .onward__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
  }
}

.page-products .onward__card {
  padding: clamp(22px, 3.2vw, 40px);
  border: 1px solid var(--line-magenta);
  border-radius: clamp(18px, 2.6vw, 26px);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(255, 62, 143, .16), transparent 62%),
    var(--ink-2);
}

.page-products .onward__card p {
  margin-top: 14px;
  max-width: 48ch;
  font-size: 15px;
  line-height: 1.8;
}

.page-products .onward__card .btn {
  margin-top: 22px;
}

.page-products .onward__links {
  display: grid;
  gap: 12px;
}

.page-products .onward__link {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(243, 241, 255, .03);
  text-decoration: none;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}

.page-products .onward__link:hover {
  transform: translateY(-3px);
  border-color: var(--line-cyan);
  background: rgba(59, 240, 228, .08);
}

.page-products .onward__link-title {
  font-size: 16px;
  color: var(--glass-white);
}

.page-products .onward__link-note {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--gauze);
}

/* ---------- 回到顶部 ---------- */
.page-products .to-top {
  position: fixed;
  inset-inline-end: clamp(16px, 4vw, 40px);
  bottom: clamp(16px, 4vw, 36px);
  z-index: 40;
  padding: 10px 15px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--cyan);
  background: rgba(10, 7, 24, .88);
  border: 1px solid var(--line-cyan);
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s var(--ease);
}

.page-products .to-top[data-visible="true"] {
  opacity: 1;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .page-products .rule-card,
  .page-products .onward__link,
  .page-products .to-top {
    transition: none;
  }

  .page-products .rule-card:hover,
  .page-products .onward__link:hover {
    transform: none;
  }
}
