.page-products {
  --pp-gap: clamp(16px, 2.4vw, 28px);
  padding-bottom: clamp(56px, 8vw, 110px);
}

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

/* ---------- 面包屑 ---------- */
.page-products .crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--mist);
}

.page-products .crumb a {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}

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

.page-products .crumb-sep {
  color: var(--panel);
}

.page-products .crumb-now {
  color: var(--white);
}

/* ---------- 首屏 ---------- */
.page-products .p-hero {
  position: relative;
  margin-top: 20px;
  padding: clamp(28px, 4vw, 52px) clamp(20px, 3.4vw, 48px) clamp(30px, 4vw, 48px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(90% 130% at 6% 0%, rgba(63, 240, 214, .18), transparent 58%),
    radial-gradient(80% 120% at 98% 4%, rgba(255, 79, 163, .15), transparent 62%),
    linear-gradient(158deg, var(--ink-2), rgba(11, 16, 32, .45));
  overflow: hidden;
  box-shadow: var(--shadow-deep);
}

.page-products .p-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(234, 242, 255, .035) 0 1px, transparent 1px 5px);
  pointer-events: none;
  z-index: 0;
}

.page-products .p-hero > * {
  position: relative;
  z-index: 1;
}

.page-products .p-hero .eyebrow {
  margin: 0;
}

.page-products .p-hero h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(32px, 6.6vw, 70px);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--white);
  margin: 16px 0 0;
  max-width: 17ch;
}

.page-products .p-hero h1 em {
  font-style: normal;
  color: var(--cyan);
  background: linear-gradient(180deg, transparent 66%, rgba(63, 240, 214, .2) 66%);
}

.page-products .p-hero .lead {
  margin: 22px 0 0;
  max-width: 46ch;
  color: rgba(234, 242, 255, .82);
}

.page-products .p-hero .lead-sub {
  margin-top: 10px;
  color: var(--mist);
  font-size: 16px;
}

.page-products .hero-stats {
  list-style: none;
  margin: clamp(26px, 3.4vw, 40px) 0 0;
  padding: clamp(20px, 2.6vw, 28px) 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 16px;
}

.page-products .hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-products .stat-num {
  font-family: var(--font-mono);
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.page-products .stat-label {
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--mist);
}

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

/* ---------- 章节快捷入口 ---------- */
.page-products .quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(22px, 3vw, 32px);
}

.page-products .quick a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--mist);
  text-decoration: none;
  transition: color .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}

.page-products .quick a:hover,
.page-products .quick a:focus-visible {
  color: var(--ink);
  background: var(--cyan);
  border-color: var(--cyan);
}

/* ---------- 服务卡片矩阵 ---------- */
.page-products .svc-matrix {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--pp-gap);
  margin-top: clamp(26px, 3.6vw, 42px);
}

.page-products .svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px 24px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: linear-gradient(178deg, var(--ink-2), rgba(18, 26, 51, .68));
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.page-products .svc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(63, 240, 214, .8), rgba(255, 79, 163, .55) 48%, transparent 82%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}

.page-products .svc-card:hover,
.page-products .svc-card:focus-visible {
  border-color: transparent;
  box-shadow: 0 26px 60px -40px rgba(63, 240, 214, .6);
}

.page-products .svc-card:hover::after,
.page-products .svc-card:focus-visible::after {
  opacity: 1;
}

.page-products .svc-icon {
  display: block;
  width: 26px;
  height: 26px;
  color: var(--cyan);
}

.page-products .svc-icon svg {
  width: 100%;
  height: 100%;
}

.page-products .svc-scene {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--magenta);
  text-transform: uppercase;
}

.page-products .svc-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--white);
}

.page-products .svc-problem {
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--mist);
}

.page-products .svc-meta {
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(154, 169, 199, .78);
}

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

@media (min-width: 1100px) {
  .page-products .svc-matrix {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .page-products .svc-card:nth-child(1) {
    grid-column: span 4;
  }

  .page-products .svc-card:nth-child(2) {
    grid-column: span 2;
  }

  .page-products .svc-card:nth-child(3),
  .page-products .svc-card:nth-child(4),
  .page-products .svc-card:nth-child(5) {
    grid-column: span 2;
  }
}

/* ---------- 详情分段 ---------- */
.page-products .pp-sec {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 2.4vw, 30px);
  margin-top: clamp(48px, 7vw, 92px);
}

.page-products .pp-sec + .pp-sec,
.page-products .pp-sec:first-of-type {
  position: relative;
}

.page-products .pp-sec:first-of-type {
  margin-top: clamp(46px, 7vw, 86px);
  padding-top: clamp(28px, 4vw, 46px);
  border-top: 1px solid var(--line);
}

.page-products .pp-sec + .pp-sec {
  padding-top: clamp(28px, 4vw, 46px);
  border-top: 1px solid var(--line);
}

.page-products .pp-sec:first-of-type::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(230px, 42%);
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), rgba(255, 79, 163, .6));
}

.page-products .sec-rail {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-products .sec-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.page-products .sec-rail h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(23px, 3.4vw, 38px);
  line-height: 1.16;
  letter-spacing: -.015em;
  color: var(--white);
  margin: 0;
}

.page-products .sec-kicker {
  margin: 0;
  padding-left: 14px;
  border-left: 2px solid rgba(63, 240, 214, .55);
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist);
  max-width: 34ch;
}

.page-products .sec-body > p {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.78;
  color: rgba(234, 242, 255, .86);
  max-width: 42em;
}

.page-products .sec-body > p:last-child {
  margin-bottom: 0;
}

.page-products .pp-fig {
  margin: 0 0 22px;
}

.page-products .pp-fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 1020px) {
  .page-products .pp-sec {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(28px, 3.2vw, 52px);
  }

  .page-products .sec-rail {
    position: sticky;
    top: calc(var(--bar-h) + 24px);
    align-self: start;
  }
}

/* ---------- 事实清单 ---------- */
.page-products .fact-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-products .fact-list li {
  position: relative;
  padding-left: 16px;
  border-left: 1px solid var(--line-strong);
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--mist);
}

.page-products .fact-list strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .01em;
  color: var(--cyan);
}

.page-products .fact-list span {
  color: rgba(234, 242, 255, .84);
}

/* ---------- 难度梯度 ---------- */
.page-products .level-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-products .level-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(30, 39, 69, .4);
}

.page-products .level-list .lvl {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 79, 163, .45);
  color: var(--magenta);
  white-space: nowrap;
}

.page-products .level-list li:nth-child(2) .lvl {
  border-color: rgba(255, 194, 75, .5);
  color: var(--amber);
}

.page-products .level-list li:nth-child(3) .lvl {
  border-color: rgba(63, 240, 214, .5);
  color: var(--cyan);
}

.page-products .level-list p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(234, 242, 255, .84);
}

/* ---------- 换桌步骤 ---------- */
.page-products .steps {
  margin: 8px 0 0 6px;
  border-left: 1px solid var(--line-strong);
}

.page-products .step {
  position: relative;
  padding-left: 22px;
}

.page-products .step::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 17px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.page-products .step[data-open]::before {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(63, 240, 214, .14);
}

.page-products .step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -.005em;
}

.page-products .step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.page-products .step-title {
  flex: 1;
}

.page-products .step-caret {
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--mist);
  border-bottom: 1.5px solid var(--mist);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}

.page-products .step[data-open] .step-caret {
  transform: rotate(-135deg) translate(-2px, -2px);
  border-color: var(--cyan);
}

.page-products .step-panel {
  display: none;
  padding: 0 0 18px;
}

.page-products .step[data-open] .step-panel {
  display: block;
}

.page-products .step-panel p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.78;
  color: rgba(234, 242, 255, .82);
  max-width: 40em;
}

/* ---------- 版本区 ---------- */
.page-products .ver-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 24px;
}

.page-products .ver-card {
  position: relative;
  padding: 24px 22px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 194, 75, .5);
  background:
    radial-gradient(90% 130% at 10% 0%, rgba(255, 194, 75, .16), transparent 62%),
    linear-gradient(160deg, rgba(18, 26, 51, .95), rgba(11, 16, 32, .8));
  box-shadow: 0 30px 70px -46px rgba(255, 194, 75, .65);
}

.page-products .ver-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.page-products .ver-badge {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--amber);
  border: 1.5px solid rgba(255, 194, 75, .7);
  background: rgba(255, 194, 75, .1);
  font-variant-numeric: tabular-nums;
}

.page-products .ver-card h3 {
  margin: 16px 0 8px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.01em;
  color: var(--white);
}

.page-products .ver-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: rgba(234, 242, 255, .84);
}

.page-products .ver-notes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.page-products .ver-notes li {
  padding-left: 16px;
  border-left: 1px solid var(--line-strong);
}

.page-products .ver-notes strong {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--cyan);
}

.page-products .ver-notes span {
  font-size: 14.5px;
  line-height: 1.72;
  color: rgba(234, 242, 255, .82);
}

@media (min-width: 900px) {
  .page-products .ver-board {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 26px;
    align-items: start;
  }
}

/* ---------- 场景路径 ---------- */
.page-products .paths {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 30px;
}

.page-products .path-card {
  padding: 22px 20px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(30, 39, 69, .55), rgba(18, 26, 51, .55));
}

.page-products .path-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--ink);
  background: var(--cyan);
  padding: 3px 9px;
  border-radius: 6px;
}

.page-products .path-card h3 {
  margin: 14px 0 8px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -.005em;
  color: var(--white);
}

.page-products .path-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.76;
  color: rgba(234, 242, 255, .82);
}

.page-products .path-card a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(63, 240, 214, .45);
  transition: border-color .25s var(--ease), color .25s var(--ease);
}

.page-products .path-card a:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

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

/* ---------- 延伸入口 ---------- */
.page-products .pp-more {
  padding: 22px 22px 24px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  border-left: 2px solid rgba(255, 79, 163, .6);
  background: rgba(18, 26, 51, .55);
}

.page-products .pp-more-title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  color: var(--magenta);
  text-transform: uppercase;
}

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

.page-products .pp-more li {
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.page-products .pp-more a {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(234, 242, 255, .88);
  text-decoration: none;
  transition: color .25s var(--ease);
}

.page-products .pp-more a:hover {
  color: var(--cyan);
}

/* ---------- 窄屏兜底 ---------- */
@media (max-width: 520px) {
  .page-products .p-hero h1 {
    font-size: clamp(28px, 9vw, 40px);
  }

  .page-products .step-head {
    font-size: 15px;
    gap: 9px;
  }

  .page-products .level-list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .page-products .svc-card {
    padding: 20px 18px;
  }
}
