.page-products {
  --pp-pad: clamp(16px, 3vw, 34px);
  --pp-gap: clamp(16px, 2.4vw, 28px);
  display: block;
}

.page-products figure.media {
  margin: 0;
}

.page-products [data-filtered] {
  display: none;
}

/* ---------- 首屏 ---------- */
.page-products .pp-hero {
  padding-block: clamp(18px, 3vw, 44px) clamp(8px, 1.6vw, 20px);
}

.page-products .pp-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 4vw, 48px);
  align-items: end;
}

.page-products .pp-title {
  margin: 12px 0 0;
  transform: skewX(-1.2deg);
  text-wrap: balance;
}

.page-products .pp-lede {
  margin: clamp(14px, 2vw, 20px) 0 0;
  max-width: 64ch;
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.82;
  color: var(--muted);
}

.page-products .pp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(18px, 2.6vw, 28px);
}

.page-products .pp-index-title {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--muted);
}

.page-products .pp-index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.page-products .pp-index-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  border-inline-start: 2px solid transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.45;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.page-products .pp-index-list a:hover,
.page-products .pp-index-list a:focus-visible {
  color: var(--text);
  background: rgba(35, 240, 230, .07);
  border-inline-start-color: var(--cyan);
}

.page-products .pp-index-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--cyan);
  opacity: .85;
}

@media (max-width: 619px) {
  .page-products .pp-index-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .page-products .pp-index-list::-webkit-scrollbar {
    display: none;
  }
  .page-products .pp-index-list li {
    flex: none;
  }
  .page-products .pp-index-list a {
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    padding: 8px 14px;
    white-space: nowrap;
  }
}

@media (min-width: 960px) {
  .page-products .pp-hero-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, .82fr);
    gap: clamp(36px, 5vw, 78px);
  }
  .page-products .pp-hero-index {
    border-inline-start: 1px solid var(--line);
    padding-inline-start: clamp(16px, 2vw, 26px);
  }
}

/* ---------- 功能区时间轴带 ---------- */
.page-products .pp-bands-section {
  padding-block: clamp(24px, 3.6vw, 52px);
}

.page-products .pp-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: clamp(18px, 2.6vw, 30px);
}

.page-products .pp-toolbar .eyebrow {
  margin: 0;
}

@media (min-width: 760px) {
  .page-products .pp-toolbar .filter-bar {
    margin-inline-start: auto;
  }
}

.page-products .pp-bands {
  display: grid;
  gap: clamp(12px, 1.8vw, 20px);
}

.page-products .pp-band {
  position: relative;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  background:
    radial-gradient(130% 150% at 0% 0%, rgba(20, 29, 48, .96) 0%, rgba(11, 18, 32, .84) 56%, rgba(5, 7, 12, .92) 100%);
  transition: border-color .22s ease;
}

.page-products .pp-band::after {
  content: "";
  position: absolute;
  inset-inline-end: -20%;
  inset-block-end: -70%;
  width: 62%;
  height: 190%;
  z-index: 0;
  background: linear-gradient(118deg, transparent 42%, rgba(122, 59, 255, .17) 58%, transparent 76%);
  transform: rotate(-6deg);
  pointer-events: none;
}

.page-products .pp-band > * {
  position: relative;
  z-index: 1;
}

.page-products .pp-band[open] {
  border-color: rgba(35, 240, 230, .26);
}

.page-products .pp-band-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 1.8vw, 20px);
  padding: clamp(16px, 2.2vw, 26px) var(--pp-pad);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.page-products .pp-band-summary::-webkit-details-marker {
  display: none;
}

.page-products .pp-band-summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -4px;
  border-radius: var(--r-xl);
}

.page-products .pp-band-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--cyan);
  padding: 5px 11px;
  border: 1px solid var(--line-cyan);
  border-radius: var(--r-pill);
  background: rgba(35, 240, 230, .06);
  white-space: nowrap;
}

.page-products .pp-band-title {
  margin: 0;
  min-width: 0;
  font-size: clamp(16px, 2.1vw, 24px);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.3;
  color: var(--text);
  overflow-wrap: anywhere;
}

.page-products .pp-chev {
  width: 10px;
  height: 10px;
  flex: none;
  margin-inline-end: 4px;
  border-inline-end: 2px solid var(--muted);
  border-block-end: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .26s cubic-bezier(.2, .7, .3, 1), border-color .2s ease;
}

.page-products .pp-band[open] .pp-chev {
  transform: rotate(-135deg);
  border-color: var(--cyan);
}

.page-products .pp-band-body {
  display: grid;
  gap: var(--pp-gap);
  padding: 0 var(--pp-pad) clamp(20px, 3vw, 34px);
}

.page-products .pp-band-split {
  display: grid;
  gap: var(--pp-gap);
  align-items: start;
}

@media (min-width: 820px) {
  .page-products .pp-band-split {
    grid-template-columns: minmax(0, 1.22fr) minmax(240px, .88fr);
  }
}

.page-products .pp-band-copy p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.82;
  color: var(--muted);
}

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

.page-products .pp-band-copy strong {
  color: var(--text);
  font-weight: 700;
}

.page-products .pp-num {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--yellow);
  letter-spacing: .01em;
}

/* 横向章节带 */
.page-products .pp-rail-wrap {
  position: relative;
}

.page-products .pp-rail-wrap::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: 58px;
  background: linear-gradient(90deg, rgba(5, 7, 12, 0), rgba(5, 7, 12, .94));
  pointer-events: none;
}

.page-products .pp-rail-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  padding-bottom: 4px;
}

.page-products .pp-rail-inner {
  display: flex;
  gap: 8px;
  min-width: max-content;
  padding-block: 2px;
}

.page-products .pp-chapter {
  flex: none;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(5, 7, 12, .5);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .02em;
  white-space: nowrap;
}

.page-products .pp-chapter.is-hot {
  color: var(--ink);
  background: linear-gradient(100deg, var(--cyan), #6ff5ef);
  border-color: transparent;
  font-weight: 700;
}

.page-products .pp-scale {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  background: rgba(5, 7, 12, .42);
}

.page-products .pp-band-media {
  width: 100%;
}

.page-products .pp-phone {
  width: min(100%, 290px);
  margin-inline: auto;
}

.page-products .pp-roster-media,
.page-products .pp-follow-media,
.page-products .pp-quality-media {
  width: 100%;
}

/* 收藏条目 */
.page-products .pp-follow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-products .pp-follow-list li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(5, 7, 12, .45);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
  transition: border-color .18s ease, background .18s ease;
}

.page-products .pp-follow-list li:hover {
  border-color: var(--line-cyan);
  background: rgba(35, 240, 230, .05);
}

/* ---------- 使用路径 ---------- */
.page-products .pp-paths-section {
  padding-block: clamp(30px, 4.6vw, 68px);
}

.page-products .pp-paths {
  list-style: none;
  margin: clamp(22px, 3vw, 36px) 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-products .pp-path {
  position: relative;
  padding: clamp(20px, 2.6vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, rgba(20, 29, 48, .88), rgba(5, 7, 12, .62));
  overflow: hidden;
}

.page-products .pp-path::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), rgba(35, 240, 230, 0) 72%);
}

.page-products .pp-path-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--cyan);
}

.page-products .pp-path h3 {
  margin: 10px 0;
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 800;
  line-height: 1.4;
  color: var(--text);
}

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

@media (min-width: 880px) {
  .page-products .pp-paths {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 26px);
    align-items: start;
  }
  .page-products .pp-path:nth-child(2) {
    margin-top: clamp(22px, 3vw, 44px);
  }
  .page-products .pp-path:nth-child(3) {
    margin-top: clamp(44px, 6vw, 88px);
  }
}

/* ---------- 收尾 ---------- */
.page-products .pp-cta {
  padding-block: clamp(24px, 3.4vw, 44px) clamp(40px, 6vw, 88px);
}

.page-products .pp-cta-inner {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-cyan);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3.6vw, 48px);
  background:
    radial-gradient(90% 140% at 100% 0%, rgba(122, 59, 255, .3), transparent 62%),
    linear-gradient(150deg, rgba(20, 29, 48, .96), rgba(5, 7, 12, .9));
}

.page-products .pp-cta-inner .eyebrow {
  margin: 0;
}

.page-products .pp-cta-inner h2 {
  margin: 10px 0 12px;
  font-size: clamp(20px, 2.9vw, 32px);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.28;
  color: var(--text);
}

.page-products .pp-cta-inner p {
  margin: 0;
  max-width: 60ch;
  font-size: 15px;
  line-height: 1.82;
  color: var(--muted);
}

.page-products .pp-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(18px, 2.4vw, 26px);
}

@media (prefers-reduced-motion: reduce) {
  .page-products .pp-title {
    transform: none;
  }
  .page-products .pp-band::after {
    opacity: .5;
  }
  .page-products .pp-chev,
  .page-products .pp-index-list a,
  .page-products .pp-follow-list li {
    transition: none;
  }
}
