.page-products {
  --pp-rail-w: 72px;
  --pp-card-bg: #0C1B2E;
  --pp-line-dim: rgba(22, 40, 63, .55);
}

/* ============ 首屏 ============ */
.page-products .pp-hero {
  position: relative;
  padding: clamp(76px, 12vw, 132px) 0 clamp(36px, 5vw, 64px);
  overflow: hidden;
}

.page-products .pp-hero::before {
  content: "";
  position: absolute;
  top: 8%;
  right: -18%;
  width: 70%;
  height: 78%;
  background: linear-gradient(135deg, rgba(18, 74, 71, .72), rgba(6, 14, 26, 0) 68%);
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.page-products .pp-hero::after {
  content: "";
  position: absolute;
  left: -12%;
  bottom: -30%;
  width: 46%;
  height: 62%;
  background: linear-gradient(45deg, rgba(92, 34, 51, .55), rgba(6, 14, 26, 0) 70%);
  clip-path: polygon(0 0, 78% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.page-products .pp-hero .wrap {
  position: relative;
  z-index: 1;
}

.page-products .pp-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
  margin-top: clamp(26px, 4vw, 44px);
}

.page-products .pp-hero__main {
  min-width: 0;
}

.page-products .pp-hero h1 {
  margin: 14px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(29px, 6vw, 50px);
  font-weight: 600;
  line-height: 1.26;
  letter-spacing: -.01em;
  color: var(--text);
  max-width: 20em;
}

.page-products .pp-hero .lede {
  margin: 20px 0 0;
  max-width: 44em;
  font-size: 16.5px;
  line-height: 1.88;
  color: var(--muted);
}

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

.page-products .pp-hero__panel {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(12, 27, 46, .92), rgba(6, 14, 26, .92));
  box-shadow: var(--shadow-hard);
  overflow: hidden;
}

.page-products .pp-hero__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 2px solid var(--line);
  background: rgba(18, 74, 71, .38);
}

.page-products .pp-hero__panel-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text);
}

.page-products .pp-hero__rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .pp-hero__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--pp-line-dim);
  font-size: 14.5px;
  color: var(--muted);
}

.page-products .pp-hero__row b {
  font-family: var(--font-mono);
  font-size: 15.5px;
  color: var(--amber);
  letter-spacing: .02em;
}

.page-products .pp-hero__panel-foot {
  margin: 0;
  padding: 12px 18px;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: rgba(157, 176, 198, .7);
}

@media (min-width: 960px) {
  .page-products .pp-hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 52px;
    align-items: end;
  }
}

/* ============ 章节目录 ============ */
.page-products .pp-toc {
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  background: rgba(6, 14, 26, .55);
}

.page-products .pp-toc__list {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 12px 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.page-products .pp-toc__list::-webkit-scrollbar {
  display: none;
}

.page-products .pp-toc__list > li {
  flex: 0 0 auto;
}

.page-products .toc__link {
  display: inline-block;
  white-space: nowrap;
  padding: 7px 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 12.5px;
  letter-spacing: .12em;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.page-products .toc__link:hover,
.page-products .toc__link[aria-current="true"] {
  color: var(--ink);
  background: var(--teal);
  border-color: var(--teal);
}

/* ============ 章节框架与路径轨 ============ */
.page-products .pp-sec {
  position: relative;
}

.page-products .pp-sec__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.page-products .pp-sec__content {
  min-width: 0;
  overflow-wrap: break-word;
}

.page-products .pp-rail {
  display: none;
}

@media (min-width: 960px) {
  .page-products .pp-sec__grid {
    grid-template-columns: var(--pp-rail-w) minmax(0, 1fr);
  }

  .page-products .pp-rail {
    display: block;
    position: relative;
  }

  .page-products .pp-rail::before {
    content: "";
    position: absolute;
    left: 17px;
    top: 12px;
    bottom: -34px;
    width: 2px;
    background: linear-gradient(180deg, var(--line) 0%, var(--pp-line-dim) 78%, rgba(22, 40, 63, 0) 100%);
  }

  .page-products .pp-rail::after {
    content: "";
    position: absolute;
    left: 10px;
    top: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--ink);
    border: 2px solid var(--teal);
    box-shadow: 0 0 14px rgba(63, 224, 206, .55);
  }

  .page-products .pp-sec:last-of-type .pp-rail::before {
    display: none;
  }
}

/* ============ 通用文本件 ============ */
.page-products .pp-sub {
  margin: 32px 0 0;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}

.page-products .pp-lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
  color: var(--muted);
}

.page-products .pp-note {
  margin: 18px 0 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
  padding-left: 14px;
  border-left: 2px solid var(--line);
}

/* ============ 01 模块总览 ============ */
.page-products .pp-modules {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.page-products .pp-module {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 20px 24px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--pp-card-bg);
  box-shadow: var(--shadow-hard);
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.page-products .pp-module:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-teal);
  transform: translateY(-3px);
}

.page-products .pp-module__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.page-products .pp-module__idx {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--amber);
}

.page-products .pp-lamp {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
}

.page-products .pp-lamp::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
}

.page-products .pp-module__name {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18.5px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
}

.page-products .pp-module__desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.82;
  color: var(--muted);
}

.page-products .pp-module__meta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.page-products .pp-module__meta p {
  display: flex;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 13.5px;
  line-height: 1.6;
}

.page-products .pp-module__meta p:last-child {
  margin-bottom: 0;
}

.page-products .pp-module__meta span {
  flex: 0 0 34px;
  color: rgba(157, 176, 198, .75);
}

.page-products .pp-module__meta b {
  flex: 1 1 auto;
  font-weight: 600;
  color: var(--text);
}

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

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

/* ============ 双栏图文 ============ */
.page-products .pp-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
  margin-top: 28px;
}

.page-products .pp-split__main {
  min-width: 0;
}

@media (min-width: 960px) {
  .page-products .pp-split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 40px;
    align-items: start;
  }

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

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

/* ============ 02 分类目录 ============ */
.page-products .pp-catalog {
  display: grid;
  gap: 12px;
}

.page-products .pp-catalog__row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--pp-card-bg);
}

.page-products .pp-catalog__row--l2 {
  margin-left: 26px;
  border-style: dashed;
  background: rgba(18, 74, 71, .32);
}

.page-products .pp-catalog__idx {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--teal);
}

.page-products .pp-catalog__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.page-products .pp-catalog__count {
  font-family: var(--font-mono);
  font-size: 22px;
  letter-spacing: .02em;
  color: var(--amber);
}

/* ============ 三种查看方式 ============ */
.page-products .pp-ways {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-products .pp-way {
  padding: 18px 18px 18px 20px;
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: linear-gradient(90deg, rgba(63, 224, 206, .1), rgba(63, 224, 206, 0) 88%);
}

.page-products .pp-way__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .1em;
  color: var(--orange);
}

.page-products .pp-way strong {
  display: block;
  margin-top: 6px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text);
}

.page-products .pp-way p {
  margin: 8px 0 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
}

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

/* ============ 03 变更字段 ============ */
.page-products .pp-fields {
  list-style: none;
  margin: 22px 0 0;
  padding: 2px;
  display: grid;
  gap: 2px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.page-products .pp-field {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 18px;
  background: var(--pp-card-bg);
}

.page-products .pp-field__idx {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--orange);
}

.page-products .pp-field__text strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.page-products .pp-field__text p {
  margin: 6px 0 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
}

.page-products .pp-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  margin-top: 22px;
  padding: 16px 18px;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 209, 102, .06);
}

.page-products .pp-callout p {
  flex: 1 1 220px;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
}

/* ============ 04 步骤 ============ */
.page-products .pp-steps {
  margin-top: 28px;
}

.page-products .pp-steps .step__num {
  font-family: var(--font-mono);
  letter-spacing: .06em;
}

.page-products .pp-step-tip {
  margin: 10px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--orange);
  font-size: 14px;
  line-height: 1.78;
  color: var(--muted);
}

/* ============ 05 资料区 ============ */
.page-products .pp-zones {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.page-products .pp-zone {
  padding: 20px 18px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--pp-card-bg);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.page-products .pp-zone:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-teal);
}

.page-products .pp-zone__idx {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .1em;
  color: var(--teal);
  padding: 2px 8px;
  border: 1px solid rgba(63, 224, 206, .4);
  border-radius: var(--radius-pill);
}

.page-products .pp-zone__title {
  margin: 12px 0 0;
  font-family: var(--font-body);
  font-size: 17.5px;
  font-weight: 700;
  color: var(--text);
}

.page-products .pp-zone p {
  margin: 9px 0 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
}

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

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

.page-products .pp-stats {
  margin-top: 28px;
}

.page-products .pp-stats .stat__num {
  font-family: var(--font-mono);
  color: var(--amber);
  letter-spacing: .02em;
}

/* ============ 06 处理阶段 ============ */
.page-products .pp-stages {
  display: grid;
  gap: 2px;
  margin-top: 28px;
  padding: 2px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.page-products .pp-stage {
  padding: 24px 22px;
  background: var(--pp-card-bg);
}

.page-products .pp-stage__bar {
  height: 4px;
  border-radius: var(--radius-pill);
  background: rgba(22, 40, 63, .9);
  overflow: hidden;
  margin-bottom: 18px;
}

.page-products .pp-stage__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--orange));
  box-shadow: 0 0 10px rgba(63, 224, 206, .55);
}

.page-products .pp-stage__fill--1 { width: 34%; }
.page-products .pp-stage__fill--2 { width: 67%; }
.page-products .pp-stage__fill--3 { width: 100%; }

.page-products .pp-stage__idx {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .12em;
  color: var(--teal);
}

.page-products .pp-stage__title {
  margin: 8px 0 0;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
}

.page-products .pp-stage p {
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.82;
  color: var(--muted);
}

.page-products .pp-stage__state {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--amber) !important;
}

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

/* ============ 07 版本与校验 ============ */
.page-products .pp-rhythm {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  margin-top: 6px;
}

.page-products .pp-rhythm__col {
  min-width: 0;
}

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

.page-products .pp-checks li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 0 14px;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 14, 26, .55);
}

.page-products .pp-checks__dot {
  grid-row: 1 / span 2;
  align-self: center;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px rgba(63, 224, 206, .7);
}

.page-products .pp-checks strong {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
}

.page-products .pp-checks p {
  margin: 5px 0 0;
  font-size: 14px;
  line-height: 1.78;
  color: var(--muted);
}

.page-products .pp-timeline {
  list-style: none;
  margin: 18px 0 0;
  padding: 0 0 0 22px;
  position: relative;
}

.page-products .pp-timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--teal), rgba(63, 224, 206, .12));
}

.page-products .pp-timeline__item {
  position: relative;
  padding: 0 0 20px 16px;
}

.page-products .pp-timeline__item:last-child {
  padding-bottom: 0;
}

.page-products .pp-timeline__dot {
  position: absolute;
  left: -22px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--teal);
}

.page-products .pp-timeline__label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: .08em;
  color: var(--amber);
}

.page-products .pp-timeline__item p {
  margin: 6px 0 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
}

@media (min-width: 920px) {
  .page-products .pp-rhythm {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 44px;
  }
}

/* ============ 08 场景 ============ */
.page-products .pp-scenes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.page-products .pp-scene {
  display: flex;
  flex-direction: column;
  padding: 24px 22px 22px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(12, 27, 46, .96), rgba(6, 14, 26, .96));
  box-shadow: var(--shadow-hard);
}

.page-products .pp-scene__who {
  display: inline-block;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 138, 61, .16);
  border: 1px solid rgba(255, 138, 61, .5);
  font-family: var(--font-display);
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--orange);
}

.page-products .pp-route {
  list-style: none;
  counter-reset: ppr;
  margin: 20px 0 0;
  padding: 0;
}

.page-products .pp-route li {
  position: relative;
  counter-increment: ppr;
  padding: 0 0 14px 30px;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--text);
}

.page-products .pp-route li::before {
  content: counter(ppr, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--teal);
}

.page-products .pp-route li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 20px;
  bottom: 3px;
  width: 1px;
  background: var(--pp-line-dim);
}

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

.page-products .pp-route li:last-child::after {
  display: none;
}

.page-products .pp-scene__gain {
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 14px;
  line-height: 1.75;
  color: var(--amber);
}

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

/* ============ 图注容器 ============ */
.page-products .pp-figure {
  margin: 0;
}

.page-products .pp-figure .figure__media {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--pp-card-bg);
}

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

.page-products .pp-figure .figure__caption {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .02em;
  color: rgba(157, 176, 198, .78);
}

.page-products .pp-figure--wide {
  margin-top: 30px;
}

.page-products .pp-figure--square {
  margin-top: 32px;
  max-width: 460px;
}

/* ============ 收尾 ============ */
.page-products .pp-cta {
  border-top: 2px solid var(--line);
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 138, 61, .16), rgba(6, 14, 26, 0) 62%),
    radial-gradient(circle at 88% 100%, rgba(63, 224, 206, .12), rgba(6, 14, 26, 0) 58%);
}

.page-products .pp-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}

.page-products .pp-cta__text h2 {
  margin: 10px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 600;
  line-height: 1.36;
  color: var(--text);
}

.page-products .pp-cta__text p {
  margin: 12px 0 0;
  max-width: 46em;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--muted);
}

.page-products .pp-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (min-width: 900px) {
  .page-products .pp-cta__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 40px;
  }

  .page-products .pp-cta__actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  .page-products .pp-cta__actions .btn,
  .page-products .pp-hero__actions .btn {
    flex: 1 1 100%;
    text-align: center;
  }

  .page-products .pp-catalog__row {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 14px 14px;
  }

  .page-products .pp-catalog__row--l2 {
    margin-left: 14px;
  }
}
