.page-products {
  background: var(--ink);
  color: var(--fg);
  font-family: var(--font-sans);
  padding-bottom: clamp(56px, 8vw, 110px);
}

/* ---------- 首屏 ---------- */
.page-products .pp-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4.5vw, 52px) 0 clamp(30px, 5vw, 60px);
  border-bottom: 1px solid var(--line);
}

.page-products .pp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% -10%, rgba(0, 196, 106, 0.12), transparent 46%),
    radial-gradient(circle at 94% 26%, rgba(94, 106, 210, 0.12), transparent 52%);
}

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

.page-products .pp-hero .breadcrumb {
  margin-bottom: 18px;
}

.page-products .pp-hero h1 {
  margin: 12px 0 16px;
  font-size: clamp(27px, 5.2vw, 44px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  max-width: 22ch;
}

.page-products .pp-hero__lead {
  margin: 0;
  max-width: 68ch;
  color: var(--silver);
  font-size: clamp(15px, 1.6vw, 16.5px);
  line-height: 1.9;
}

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

.page-products .pp-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 32px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.page-products .pp-metrics > div {
  background: var(--panel);
  padding: 16px 16px 18px;
}

.page-products .pp-metrics dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--stone);
  margin-bottom: 8px;
}

.page-products .pp-metrics dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  color: var(--fg);
  line-height: 1;
}

.page-products .pp-metrics dd small {
  font-size: 12px;
  font-weight: 400;
  color: var(--stone);
  margin-left: 4px;
}

.page-products .pp-hero__stamp {
  margin: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--amber);
}

/* ---------- 双栏骨架 ---------- */
.page-products .pp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 4.5vw, 44px);
  padding-top: clamp(30px, 5vw, 56px);
}

.page-products .pp-rail {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 16px;
}

.page-products .pp-rail__label {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
}

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

.page-products .pp-rail__sections a {
  display: block;
  padding: 7px 10px;
  border-left: 2px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--silver);
  font-size: 14px;
  text-decoration: none;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.page-products .pp-rail__sections a:hover {
  background: var(--panel-2);
  color: var(--fg);
}

.page-products .pp-rail__sections a[aria-current="true"] {
  border-left-color: var(--green);
  background: var(--green-soft);
  color: var(--fg);
}

.page-products .pp-rail__cps ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.page-products .pp-rail__cps a {
  display: block;
  text-align: center;
  padding: 6px 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--stone);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.page-products .pp-rail__cps a:hover {
  color: var(--green);
  border-color: var(--green);
}

/* ---------- 章节通用 ---------- */
.page-products .pp-section {
  scroll-margin-top: 104px;
}

.page-products .pp-section + .pp-section {
  margin-top: clamp(44px, 7vw, 84px);
}

.page-products .pp-section__head {
  margin-bottom: 22px;
}

.page-products .pp-section__head h2 {
  margin: 10px 0 10px;
  font-size: clamp(21px, 3.2vw, 30px);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.page-products .pp-section__head p {
  margin: 0;
  max-width: 68ch;
  color: var(--silver);
  font-size: 15.5px;
  line-height: 1.85;
}

/* ---------- 图片 ---------- */
.page-products .pp-figure {
  position: relative;
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}

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

.page-products .pp-figure--a { aspect-ratio: 3 / 2; }
.page-products .pp-figure--b { aspect-ratio: 10 / 7; }
.page-products .pp-figure--c { aspect-ratio: 4 / 3; }
.page-products .pp-figure--d { aspect-ratio: 2 / 1; }

/* ---------- 检查点分组 ---------- */
.page-products .pp-group + .pp-group {
  margin-top: 26px;
}

.page-products .pp-group__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--silver);
}

.page-products .pp-group__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--stone);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px 9px;
}

.page-products .pp-cps {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}

.page-products .pp-cp + .pp-cp {
  border-top: 1px solid var(--line);
}

.page-products .pp-cp__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background var(--speed) var(--ease);
}

.page-products .pp-cp__head:hover {
  background: var(--panel-2);
}

.page-products .pp-cp__name {
  flex: 1 1 190px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.page-products .pp-cp__col {
  font-size: 13px;
  color: var(--stone);
}

.page-products .pp-cp__state {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.page-products .pp-cp__state--live {
  color: var(--green);
  background: var(--green-soft);
}

.page-products .pp-cp__state--new {
  color: var(--amber);
  background: var(--amber-soft);
}

.page-products .pp-cp__chev {
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--stone);
  border-bottom: 1.5px solid var(--stone);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--speed) var(--ease);
}

.page-products [data-collapse-toggle][aria-expanded="true"] .pp-cp__chev {
  transform: rotate(225deg) translate(-1px, -1px);
}

.page-products .pp-cp__body {
  padding: 16px 18px 18px;
  background: var(--panel-2);
}

.page-products .pp-cp__body p {
  margin: 0 0 12px;
  color: var(--silver);
  font-size: 15px;
  line-height: 1.85;
}

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

.page-products .pp-cp__body li {
  position: relative;
  padding-left: 17px;
  color: var(--stone);
  font-size: 14.5px;
  line-height: 1.75;
}

.page-products .pp-cp__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 1.5px;
  background: var(--green);
}

/* ---------- 活动规则（绿） ---------- */
.page-products .pp-rules {
  border: 1px solid rgba(0, 196, 106, 0.28);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(0, 196, 106, 0.07), rgba(0, 196, 106, 0) 46%), var(--panel);
  padding: clamp(20px, 3.4vw, 34px);
}

.page-products .pp-rules .pp-figure {
  border-color: rgba(0, 196, 106, 0.24);
  background: var(--ink-2);
}

.page-products .pp-rules__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  border: 1px solid rgba(0, 196, 106, 0.22);
  border-radius: var(--radius);
  background: rgba(0, 196, 106, 0.22);
  overflow: hidden;
}

.page-products .pp-rule {
  background: var(--panel);
  padding: 16px 18px 18px;
}

.page-products .pp-rule__code {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--green);
}

.page-products .pp-rule h3 {
  margin: 9px 0 8px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.page-products .pp-rule p:last-child {
  margin: 0;
  color: var(--silver);
  font-size: 14.5px;
  line-height: 1.8;
}

/* ---------- 分类中心（紫蓝 + 金色过渡） ---------- */
.page-products .pp-v4 {
  position: relative;
  border: 1px solid rgba(94, 106, 210, 0.3);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(94, 106, 210, 0.09), rgba(94, 106, 210, 0) 48%), var(--panel);
  padding: clamp(20px, 3.4vw, 34px);
}

.page-products .pp-v4::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--green), var(--amber) 48%, var(--violet));
}

.page-products .pp-v4 .pp-figure {
  border-color: rgba(94, 106, 210, 0.26);
  background: var(--ink-2);
}

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

.page-products .pp-v4__col {
  border: 1px solid rgba(94, 106, 210, 0.24);
  border-radius: var(--radius);
  background: var(--panel-2);
  overflow: hidden;
}

.page-products .pp-v4__trigger {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px 12px;
  width: 100%;
  padding: 13px 14px;
  border: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background var(--speed) var(--ease);
}

.page-products .pp-v4__trigger:hover {
  background: rgba(94, 106, 210, 0.09);
}

.page-products .pp-v4__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--violet);
}

.page-products .pp-v4__label {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.page-products .pp-v4__name {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.page-products .pp-v4__count {
  font-size: 12.5px;
  color: var(--stone);
}

.page-products .pp-v4__ver {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--amber);
  border: 1px solid rgba(245, 176, 65, 0.32);
  border-radius: 999px;
  padding: 2px 9px;
  white-space: nowrap;
}

.page-products .pp-v4__body {
  padding: 2px 14px 16px;
}

.page-products .pp-v4__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.page-products .pp-v4__cats li {
  padding: 4px 9px;
  border: 1px solid rgba(94, 106, 210, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(94, 106, 210, 0.1);
  color: var(--silver);
  font-size: 12.5px;
  line-height: 1.6;
}

.page-products .pp-v4__note {
  margin: 0;
  color: var(--stone);
  font-size: 13.5px;
  line-height: 1.75;
}

/* ---------- 版本对照表 ---------- */
.page-products .pp-ver-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}

.page-products .pp-ver + .pp-ver {
  border-top: 1px solid var(--line);
}

.page-products .pp-ver__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  width: 100%;
  padding: 13px 16px;
  border: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background var(--speed) var(--ease);
}

.page-products .pp-ver__head:hover {
  background: var(--panel-2);
}

.page-products .pp-ver__id {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--silver);
  min-width: 58px;
}

.page-products .pp-ver__sum {
  flex: 1 1 200px;
  font-size: 14.5px;
  color: var(--silver);
  line-height: 1.65;
}

.page-products .pp-ver__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--stone);
  white-space: nowrap;
}

.page-products .pp-ver--current {
  background: rgba(245, 176, 65, 0.06);
}

.page-products .pp-ver--current .pp-ver__id {
  color: var(--amber);
}

.page-products .pp-ver--current .pp-ver__tag {
  color: var(--amber);
  border: 1px solid rgba(245, 176, 65, 0.38);
  border-radius: 999px;
  padding: 2px 9px;
}

.page-products .pp-ver__body {
  padding: 14px 16px 16px;
  background: var(--panel-2);
}

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

.page-products .pp-cp__body-list li {
  position: relative;
  padding-left: 17px;
  color: var(--stone);
  font-size: 14px;
  line-height: 1.75;
}

.page-products .pp-cp__body-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 1.5px;
  background: var(--amber);
}

/* ---------- 查询与导出 ---------- */
.page-products .pp-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: start;
}

.page-products .pp-split .pp-figure {
  margin-bottom: 0;
}

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

.page-products .pp-facts li {
  position: relative;
  padding-left: 20px;
  color: var(--silver);
  font-size: 15px;
  line-height: 1.8;
}

.page-products .pp-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 1.5px;
  background: var(--green);
}

.page-products .pp-facts__note {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--stone);
  font-size: 13.5px;
  line-height: 1.75;
}

/* ---------- 适用场景 ---------- */
.page-products .pp-scenes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.page-products .pp-scene {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 18px;
  transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.page-products .pp-scene:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.page-products .pp-scene__n {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--green);
}

.page-products .pp-scene h3 {
  margin: 10px 0 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.page-products .pp-scene p:last-child {
  margin: 0;
  color: var(--silver);
  font-size: 14.5px;
  line-height: 1.8;
}

.page-products .pp-next {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: 26px;
}

.page-products .pp-next a {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--fg);
  text-decoration: none;
  transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.page-products .pp-next a:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

.page-products .pp-next strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 700;
}

.page-products .pp-next span {
  display: block;
  color: var(--stone);
  font-size: 13px;
  line-height: 1.75;
}

.page-products .pp-tail {
  margin: 22px 0 0;
  color: var(--stone);
  font-size: 13.5px;
  line-height: 1.8;
}

.page-products .pp-tail a {
  color: var(--silver);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}

.page-products .pp-tail a:hover {
  color: var(--green);
  border-bottom-color: var(--green);
}

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .page-products .pp-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-products .pp-rules__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-products .pp-scenes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-products .pp-next {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

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

@media (min-width: 1024px) {
  .page-products .pp-layout {
    grid-template-columns: 244px minmax(0, 1fr);
    gap: clamp(32px, 4vw, 64px);
  }

  .page-products .pp-rail {
    position: sticky;
    top: 90px;
  }

  .page-products .pp-rail__cps ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

@media (max-width: 719px) {
  .page-products .pp-cp__state {
    margin-left: 0;
  }

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