.page-products{
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  padding-bottom: 88px;
}
@media (min-width: 1080px){
  .page-products{ padding-bottom: 0; }
}

.page-products .pp-wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 40px) var(--pad) clamp(40px, 6vw, 88px);
}

.page-products .breadcrumb{ margin: 0 0 clamp(18px, 2.6vw, 30px); }

/* ---------- 首屏拼贴 ---------- */
.page-products .pp-hero{
  display: grid;
  gap: clamp(18px, 3vw, 30px);
}
@media (min-width: 900px){
  .page-products .pp-hero{
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    align-items: end;
  }
}
.page-products .pp-hero h1{
  margin: .3em 0 .5em;
  font-size: clamp(2rem, 5.4vw, 4rem);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -.03em;
}
.page-products .pp-hero h1 strong{
  font-weight: 800;
  color: var(--teal-deep);
}
.page-products .pp-lede{
  margin: 0;
  max-width: 46ch;
  font-size: clamp(1rem, 1.7vw, 1.12rem);
  line-height: 1.78;
  color: rgba(20, 33, 42, .8);
}
.page-products .pp-note{
  margin: .9em 0 0;
  font-size: .84rem;
  letter-spacing: .04em;
  color: var(--teal-deep);
}

.page-products .pp-hero-card{
  background: var(--glass);
  border: 1px solid var(--rule-strong);
  border-top: 3px solid var(--sand);
  padding: clamp(16px, 2.2vw, 24px);
}
.page-products .pp-hero-list{
  margin: 12px 0 16px;
  display: grid;
  gap: 6px;
}
.page-products .pp-hero-list > div{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--rule);
}
.page-products .pp-hero-list dt{ font-size: .94rem; }
.page-products .pp-hero-list dd{
  margin: 0;
  font-family: var(--font-mono);
  font-size: .92rem;
  color: var(--teal-deep);
}

/* ---------- 图片基础 ---------- */
.page-products .pp-figure{
  margin: clamp(20px, 3vw, 30px) 0 0;
  border: 1px solid var(--rule);
  background: var(--mist);
  overflow: hidden;
}
.page-products .pp-figure img{
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}
.page-products .pp-figure .media-caption{
  padding: 8px 12px;
  font-size: .78rem;
  line-height: 1.6;
  color: rgba(20, 33, 42, .72);
  border-top: 1px solid var(--rule);
  background: var(--paper);
}

/* ---------- 主栅格与侧栏 ---------- */
.page-products .pp-shell{
  display: grid;
  gap: clamp(28px, 4vw, 44px);
  margin-top: clamp(30px, 5vw, 56px);
}
@media (min-width: 1080px){
  .page-products .pp-shell{
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
  }
}
.page-products .pp-main{ min-width: 0; }

.page-products .pp-rail{
  display: grid;
  gap: 14px;
  min-width: 0;
}
@media (min-width: 1080px){
  .page-products .pp-rail{
    position: sticky;
    top: 88px;
  }
}
.page-products .pp-rail-card{
  border: 1px solid var(--rule-strong);
  background: var(--mist);
  padding: 18px;
}
.page-products .pp-rail-card--deep{
  background: var(--deep);
  color: var(--on-deep);
  border-color: var(--deep);
}
.page-products .pp-rail-card--deep .pp-rail-k{ color: var(--sand); }
.page-products .pp-rail-title{
  margin: .4em 0 .7em;
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--paper);
}
.page-products .pp-rail-list{
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
  display: grid;
  gap: 2px;
  counter-reset: pp-rail;
}
.page-products .pp-rail-list li{
  counter-increment: pp-rail;
  border-bottom: 1px solid var(--deep-rule);
}
.page-products .pp-rail-list a{
  display: block;
  padding: 9px 0 9px 26px;
  position: relative;
  color: var(--on-deep);
  text-decoration: none;
  font-size: .92rem;
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.page-products .pp-rail-list a::before{
  content: "0" counter(pp-rail);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--sand);
}
.page-products .pp-rail-list a:hover,
.page-products .pp-rail-list a:focus-visible{
  color: var(--sand-light);
  padding-left: 32px;
}
.page-products .pp-rail-ver{
  list-style: none;
  margin: 12px 0 14px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.page-products .pp-rail-ver li{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: .9rem;
  border-bottom: 1px dashed var(--rule);
  padding-bottom: 6px;
}
.page-products .pp-rail-ver b{
  font-family: var(--font-mono);
  font-size: .86rem;
  color: var(--teal-deep);
}

/* ---------- 章节骨架 ---------- */
.page-products .pp-section{
  border-top: 1px solid var(--rule);
  padding-top: clamp(18px, 2.6vw, 28px);
  margin-top: clamp(30px, 4.6vw, 56px);
}
.page-products .pp-section:first-child{
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}
.page-products .pp-h2{
  margin: .35em 0 .55em;
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.02em;
}
.page-products .pp-section-lede{
  margin: 0 0 clamp(18px, 2.6vw, 26px);
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.78;
  color: rgba(20, 33, 42, .82);
}

/* ---------- 版本分段切换 ---------- */
.page-products .pp-switch{ position: relative; }
.page-products .pp-switch-input{
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.page-products .pp-switch-bar{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding: 5px;
  background: var(--mist);
  border: 1px solid var(--rule-strong);
}
.page-products .pp-switch-label{
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.page-products .pp-switch-k{
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--teal-deep);
}
.page-products .pp-switch-t{
  font-size: .88rem;
  font-weight: 700;
}
@media (min-width: 640px){
  .page-products .pp-switch-label{ padding: 11px 14px; }
  .page-products .pp-switch-t{ font-size: .96rem; }
}
.page-products .pp-switch-input:focus-visible ~ .pp-switch-bar{
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.page-products #pp-v1:checked ~ .pp-switch-bar [for="pp-v1"],
.page-products #pp-v2:checked ~ .pp-switch-bar [for="pp-v2"],
.page-products #pp-v3:checked ~ .pp-switch-bar [for="pp-v3"]{
  background: var(--teal-deep);
  border-color: var(--teal-deep);
  color: var(--paper);
}
.page-products #pp-v1:checked ~ .pp-switch-bar [for="pp-v1"] .pp-switch-k,
.page-products #pp-v2:checked ~ .pp-switch-bar [for="pp-v2"] .pp-switch-k,
.page-products #pp-v3:checked ~ .pp-switch-bar [for="pp-v3"] .pp-switch-k{
  color: var(--sand-light);
}

.page-products .pp-panels{ margin-top: 14px; }
.page-products .pp-panel{ display: none; }
.page-products #pp-v1:checked ~ .pp-panels > .pp-panel--stable,
.page-products #pp-v2:checked ~ .pp-panels > .pp-panel--lite,
.page-products #pp-v3:checked ~ .pp-panels > .pp-panel--panel{
  display: block;
  animation: pp-fade 180ms var(--ease) both;
}
@keyframes pp-fade{
  from{ opacity: 0; }
  to{ opacity: 1; }
}

.page-products .pp-panel-inner{
  display: grid;
  gap: clamp(16px, 2.4vw, 26px);
  padding: clamp(16px, 2.4vw, 28px);
  background: var(--paper);
  border: 1px solid var(--rule-strong);
}
@media (min-width: 860px){
  .page-products .pp-panel-inner{
    grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr);
    align-items: stretch;
  }
}
.page-products .pp-panel-title{
  margin: 0 0 14px;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.page-products .pp-spec{
  margin: 0 0 16px;
  display: grid;
  gap: 10px;
}
.page-products .pp-spec > div{
  display: grid;
  gap: 3px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--rule);
}
.page-products .pp-spec dt{
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--teal);
}
.page-products .pp-spec dd{
  margin: 0;
  font-size: .95rem;
  line-height: 1.7;
}
.page-products .pp-diffs{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.page-products .pp-diffs li{
  position: relative;
  padding-left: 18px;
  font-size: .94rem;
  line-height: 1.7;
}
.page-products .pp-diffs li::before{
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  background: var(--sand);
}

.page-products .pp-get{
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(16px, 2.2vw, 22px);
  background: var(--teal);
  color: var(--paper);
}
.page-products .pp-get-k{
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--sand-light);
}
.page-products .pp-get-num{
  font-family: var(--font-mono);
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: -.02em;
}
.page-products .pp-get-num small{
  font-size: .8rem;
  letter-spacing: .1em;
  margin-left: 4px;
  color: var(--sand-light);
}
.page-products .pp-get-link{
  color: var(--sand-light);
  font-size: .9rem;
  margin-top: 2px;
}

/* ---------- 小屏面板资料 ---------- */
.page-products .pp-docs-two{
  display: grid;
  gap: clamp(16px, 2.4vw, 26px);
}
@media (min-width: 760px){
  .page-products .pp-docs-two{
    grid-template-columns: minmax(0, 1fr) minmax(0, .62fr);
    align-items: start;
  }
}
.page-products .pp-doc-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.page-products .pp-doc-list li{
  padding: 14px 16px;
  background: var(--mist);
  border-left: 3px solid var(--teal);
}
.page-products .pp-doc-num{
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--teal-deep);
}
.page-products .pp-doc-list h3{
  margin: 4px 0 4px;
  font-size: 1.04rem;
  font-weight: 800;
}
.page-products .pp-doc-list p{
  margin: 0;
  font-size: .92rem;
  line-height: 1.7;
  color: rgba(20, 33, 42, .8);
}
.page-products .pp-docs-two .pp-figure{ margin-top: 0; }

/* ---------- 安装步骤 ---------- */
.page-products .pp-steps{
  list-style: none;
  margin: 0 0 clamp(20px, 3vw, 28px);
  padding: 0;
  display: grid;
  gap: 14px;
  counter-reset: pp-step;
}
.page-products .pp-steps li{
  counter-increment: pp-step;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.page-products .pp-steps li::before{
  content: "0" counter(pp-step);
  display: block;
  height: fit-content;
  padding: 7px 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--teal-deep);
  border: 1px solid var(--rule-strong);
  background: var(--paper);
}
.page-products .pp-steps h3{
  margin: 0 0 4px;
  font-size: 1.02rem;
  font-weight: 800;
}
.page-products .pp-steps p{
  margin: 0;
  font-size: .94rem;
  line-height: 1.72;
  color: rgba(20, 33, 42, .82);
}

.page-products .pp-hash{
  display: grid;
  gap: 8px;
  padding: 16px;
  background: var(--mist);
  border: 1px solid var(--rule-strong);
  border-left: 4px solid var(--teal);
}
.page-products .pp-hash-k{
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--teal-deep);
}
.page-products .pp-hash code{
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.8;
  letter-spacing: .02em;
  word-break: break-all;
  color: var(--ink);
  background: var(--paper);
  border: 1px dashed var(--rule-strong);
  padding: 10px 12px;
}
.page-products .pp-hash-note{
  margin: 0;
  font-size: .88rem;
  line-height: 1.7;
  color: rgba(20, 33, 42, .78);
}

/* ---------- 适配矩阵 ---------- */
.page-products .pp-table-wrap{
  border: 1px solid var(--rule-strong);
  overflow-x: auto;
}
.page-products .pp-table{
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: .92rem;
}
.page-products .pp-table-caption{
  caption-side: top;
  text-align: left;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--teal-deep);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.page-products .pp-table thead th{
  padding: 10px 14px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--paper);
  background: var(--deep);
  white-space: nowrap;
}
.page-products .pp-table tbody th{
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
  white-space: nowrap;
  border-bottom: 1px solid var(--rule);
}
.page-products .pp-table td{
  padding: 12px 14px;
  line-height: 1.65;
  border-bottom: 1px solid var(--rule);
}
.page-products .pp-table tbody tr:nth-child(even){ background: var(--mist); }
.page-products .pp-table tbody tr:last-child th,
.page-products .pp-table tbody tr:last-child td{ border-bottom: 0; }

/* ---------- 资料类型与节奏 ---------- */
.page-products .pp-docs{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
}
.page-products .pp-docs li{
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-top: 3px solid var(--sand);
  font-size: .98rem;
  font-weight: 700;
}
.page-products .pp-docs-num{
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--teal);
}
.page-products .pp-docs small{
  font-size: .82rem;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(20, 33, 42, .74);
}

.page-products .pp-facts{
  display: grid;
  gap: 14px;
  margin-top: clamp(20px, 3vw, 28px);
  padding-top: 16px;
  border-top: 2px solid var(--ink);
}
@media (min-width: 720px){
  .page-products .pp-facts{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.page-products .pp-fact{ display: grid; gap: 4px; }
.page-products .pp-fact-num{
  font-family: var(--font-mono);
  font-size: 1.35rem;
  letter-spacing: -.01em;
  color: var(--teal-deep);
}
.page-products .pp-fact-label{
  font-size: .84rem;
  line-height: 1.6;
  color: rgba(20, 33, 42, .76);
}

/* ---------- 后续支持 ---------- */
.page-products .pp-helps{
  display: grid;
  gap: 14px;
}
@media (min-width: 720px){
  .page-products .pp-helps{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.page-products .pp-help{
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-top: 3px solid var(--teal);
}
.page-products .pp-help h3{
  margin: 0;
  font-size: 1.04rem;
  font-weight: 800;
}
.page-products .pp-help p{
  margin: 0;
  flex: 1 1 auto;
  font-size: .92rem;
  line-height: 1.72;
  color: rgba(20, 33, 42, .8);
}

/* ---------- 移动端底部入口 ---------- */
.page-products .pp-drawer{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  gap: 10px;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--glass);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--rule-strong);
}
.page-products .pp-drawer .btn{ flex: 1 1 0; }
@media (min-width: 1080px){
  .page-products .pp-drawer{ display: none; }
}

@media (prefers-reduced-motion: reduce){
  .page-products #pp-v1:checked ~ .pp-panels > .pp-panel--stable,
  .page-products #pp-v2:checked ~ .pp-panels > .pp-panel--lite,
  .page-products #pp-v3:checked ~ .pp-panels > .pp-panel--panel{
    animation: none;
  }
  .page-products .pp-rail-list a{ transition: none; }
}
