.page-products {
  --pp-narrow: 980px;
  --pp-gap: clamp(18px, 2.4vw, 30px);
}

/* 首屏框景 */
.page-products .ph-hero {
  padding-top: clamp(14px, 3vw, 32px);
}

.page-products .ph-frame {
  position: relative;
  border: 1px solid var(--ink-700);
  border-radius: var(--radius-xl);
  padding: clamp(22px, 4vw, 50px) clamp(18px, 4vw, 54px) clamp(26px, 4vw, 46px);
  background:
    radial-gradient(130% 150% at 94% 4%, rgba(46, 242, 200, 0.15), transparent 58%),
    radial-gradient(100% 130% at 2% 102%, rgba(108, 75, 214, 0.24), transparent 62%),
    linear-gradient(158deg, rgba(12, 31, 27, 0.95), rgba(5, 15, 13, 0.99));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.page-products .ph-frame::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 8px;
  background-image: repeating-linear-gradient(90deg, var(--amber) 0 2px, transparent 2px 26px);
  opacity: 0.5;
  pointer-events: none;
}

.page-products .ph-frame::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -80px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(46, 242, 200, 0.3);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(46, 242, 200, 0.05), 0 0 0 50px rgba(46, 242, 200, 0.025);
  pointer-events: none;
}

.page-products .ph-kicker {
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  color: var(--amber);
}

.page-products .ph-frame h1 {
  margin: 12px 0 0;
  font-family: var(--font-cond);
  font-size: clamp(30px, 6.6vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--mist);
  max-width: 17ch;
}

.page-products .ph-lead {
  margin: 16px 0 0;
  max-width: 60ch;
  font-size: 16px;
  line-height: 1.78;
  color: rgba(234, 246, 242, 0.82);
}

.page-products .ph-hero-actions {
  margin-top: 26px;
}

/* 通用面板内文字 */
.page-products .ph-text {
  margin: 0 0 18px;
  font-size: 15.5px;
  line-height: 1.78;
  color: rgba(234, 246, 242, 0.84);
  max-width: 68ch;
}

.page-products .ph-note {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--sage);
}

.page-products .ph-inline-link {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(46, 242, 200, 0.4);
}

.page-products .ph-inline-link:hover,
.page-products .ph-inline-link:focus-visible {
  color: var(--amber);
  border-bottom-color: rgba(255, 209, 102, 0.5);
}

/* 窄画板 */
.page-products .ph-narrow {
  max-width: var(--pp-narrow);
}

/* 频道九宫格 */
.page-products .ph-chan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: var(--pp-gap);
}

.page-products .ph-chan {
  align-self: start;
  border: 1px solid var(--ink-700);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(18, 58, 50, 0.5), rgba(12, 31, 27, 0.8));
  transition: border-color 0.24s var(--ease), background 0.24s var(--ease);
}

.page-products .ph-chan[open] {
  border-color: rgba(46, 242, 200, 0.55);
  background: linear-gradient(180deg, rgba(18, 58, 50, 0.72), rgba(12, 31, 27, 0.9));
}

.page-products .ph-chan > summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 40px 15px 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--mist);
  cursor: pointer;
  list-style: none;
}

.page-products .ph-chan > summary::-webkit-details-marker {
  display: none;
}

.page-products .ph-chan > summary::marker {
  content: "";
}

.page-products .ph-chan-num {
  flex: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.page-products .ph-chan .accordion-body {
  padding: 0 16px 16px;
}

.page-products .ph-chan .accordion-body p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--sage);
}

.page-products .ph-chan-link {
  display: inline-flex;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(46, 242, 200, 0.4);
  padding-bottom: 2px;
}

.page-products .ph-chan-link:hover,
.page-products .ph-chan-link:focus-visible {
  color: var(--amber);
  border-bottom-color: rgba(255, 209, 102, 0.5);
}

/* 双栏结构 */
.page-products .ph-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--pp-gap);
}

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

.page-products .ph-stats {
  margin-top: 4px;
}

/* 标记胶囊组 */
.page-products .ph-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.page-products .ph-marker-grid {
  margin: 22px 0 0;
}

/* 条目视图切换 */
.page-products .ph-view {
  border: 1px solid var(--ink-700);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(12, 31, 27, 0.78), rgba(5, 15, 13, 0.92));
  margin-top: 14px;
  overflow: hidden;
}

.page-products .ph-view > summary {
  position: relative;
  display: block;
  padding: 15px 44px 15px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--amber);
  cursor: pointer;
  list-style: none;
}

.page-products .ph-view > summary::-webkit-details-marker {
  display: none;
}

.page-products .ph-view > summary::marker {
  content: "";
}

.page-products .ph-view[open] > summary {
  color: var(--cyan);
  border-bottom: 1px solid var(--ink-700);
}

.page-products .ph-lines {
  display: grid;
  gap: 0;
  padding: 6px 0;
}

.page-products .ph-line {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-bottom: 1px solid rgba(18, 58, 50, 0.75);
  font-size: 13.5px;
  color: var(--mist);
}

.page-products .ph-line:last-child {
  border-bottom: 0;
}

.page-products .ph-line-time {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--sage);
}

.page-products .ph-line-teams {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-products .ph-line-extra {
  display: none;
}

/* 旧版对照 */
.page-products .ph-figure--legacy {
  margin-top: var(--pp-gap);
}

.page-products .ph-legacy {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: var(--pp-gap);
}

.page-products .ph-legacy-rule {
  display: none;
}

.page-products .ph-legacy-col {
  border: 1px solid var(--ink-700);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 3vw, 28px);
}

.page-products .ph-legacy-col--now {
  background: linear-gradient(170deg, rgba(18, 58, 50, 0.85), rgba(5, 15, 13, 0.94));
  border-color: rgba(46, 242, 200, 0.36);
}

.page-products .ph-legacy-col--old {
  background: linear-gradient(170deg, rgba(108, 75, 214, 0.3), rgba(5, 15, 13, 0.94));
  border-color: rgba(108, 75, 214, 0.58);
}

.page-products .ph-legacy-col h3 {
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--mist);
}

.page-products .ph-legacy-col ul {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.page-products .ph-legacy-col li {
  position: relative;
  padding-left: 16px;
  margin-top: 9px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--sage);
}

.page-products .ph-legacy-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.page-products .ph-legacy-col--old li::before {
  background: var(--indigo);
}

.page-products .ph-years {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: var(--pp-gap);
}

.page-products .ph-year {
  border: 1px solid rgba(108, 75, 214, 0.5);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(108, 75, 214, 0.2), rgba(5, 15, 13, 0.9));
  align-self: start;
}

.page-products .ph-year > summary {
  position: relative;
  display: block;
  padding: 14px 38px 14px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--mist);
  cursor: pointer;
  list-style: none;
}

.page-products .ph-year > summary::-webkit-details-marker {
  display: none;
}

.page-products .ph-year > summary::marker {
  content: "";
}

.page-products .ph-year[open] {
  border-color: rgba(255, 209, 102, 0.55);
}

.page-products .ph-year .accordion-body {
  padding: 0 16px 16px;
}

.page-products .ph-year .accordion-body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.72;
  color: var(--sage);
}

/* 精简模式清单 */
.page-products .ph-slim {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  border: 1px dashed rgba(159, 184, 177, 0.45);
  border-radius: var(--radius-md);
  background: rgba(5, 15, 13, 0.7);
  overflow: hidden;
}

.page-products .ph-slim li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  font-size: 13px;
  color: var(--sage);
  border-bottom: 1px solid rgba(18, 58, 50, 0.8);
}

.page-products .ph-slim li:last-child {
  border-bottom: 0;
}

.page-products .ph-slim-time {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--amber);
}

.page-products .ph-slim-line {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-products .ph-slim-mark {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--cyan);
}

/* 版本列表 */
.page-products .ph-version-list {
  list-style: none;
  margin: var(--pp-gap) 0 0;
  padding: 0;
}

.page-products .ph-version {
  display: grid;
  gap: 6px;
  padding: 18px 0;
  border-bottom: 1px solid var(--ink-700);
}

.page-products .ph-version:first-child {
  border-top: 1px solid var(--ink-700);
}

.page-products .ph-version-id {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--amber);
}

.page-products .ph-version-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--mist);
}

.page-products .ph-version p {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--sage);
  max-width: 62ch;
}

.page-products .ph-version-tag {
  justify-self: start;
}

/* 人群建议 */
.page-products .ph-who {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: var(--pp-gap);
}

.page-products .ph-who-card {
  position: relative;
  border: 1px solid var(--ink-700);
  border-radius: var(--radius-lg);
  padding: 24px 20px 20px;
  background: linear-gradient(165deg, rgba(12, 31, 27, 0.88), rgba(5, 15, 13, 0.96));
  overflow: hidden;
}

.page-products .ph-who-card::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 242, 200, 0.16), transparent 70%);
  pointer-events: none;
}

.page-products .ph-who-step {
  display: block;
  font-family: var(--font-cond);
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(46, 242, 200, 0.55);
}

.page-products .ph-who-card h3 {
  margin: 12px 0 0;
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--mist);
}

.page-products .ph-who-card p {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.74;
  color: var(--sage);
}

.page-products .ph-cta {
  margin-top: var(--pp-gap);
}

/* 响应式 */
@media (min-width: 620px) {
  .page-products .ph-chan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

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

@media (min-width: 760px) {
  .page-products .ph-version {
    grid-template-columns: 132px minmax(0, 1fr) auto;
    gap: 22px;
    align-items: start;
  }

  .page-products .ph-version-tag {
    justify-self: end;
  }

  .page-products .ph-line--wide,
  .page-products .ph-lines--wide .ph-line {
    grid-template-columns: 62px minmax(0, 1.4fr) minmax(0, 0.6fr) auto;
  }

  .page-products .ph-line-extra {
    display: block;
    font-size: 12.5px;
    color: var(--sage);
  }
}

@media (min-width: 820px) {
  .page-products .ph-legacy {
    grid-template-columns: minmax(0, 1fr) 2px minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
  }

  .page-products .ph-legacy-rule {
    display: block;
    width: 2px;
    background-image: repeating-linear-gradient(180deg, rgba(255, 209, 102, 0.8) 0 8px, transparent 8px 20px);
  }

  .page-products .ph-legacy-col {
    border-radius: 0;
  }

  .page-products .ph-legacy-col--now {
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    border-right: 0;
  }

  .page-products .ph-legacy-col--old {
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    border-left: 0;
  }
}

@media (min-width: 880px) {
  .page-products .ph-split {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: start;
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  .page-products .ph-chan,
  .page-products .ph-view,
  .page-products .ph-year {
    transition: none;
  }
}
