.page-products {
  --pp-cut: 26px;
  --pp-gap: clamp(20px, 3.4vw, 44px);
  --pp-block: clamp(46px, 6vw, 84px);
  display: block;
}

/* ---------- 面包屑 ---------- */
.page-products .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 28px;
  padding-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--silver);
}
.page-products .breadcrumb a {
  color: var(--silver);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.page-products .breadcrumb a:hover { color: var(--lime); }
.page-products .breadcrumb [aria-current="page"] { color: var(--text); }

/* ---------- 通用排版 ---------- */
.page-products .pp-body {
  font-size: 16px;
  line-height: 1.78;
  color: var(--text);
  margin: 0 0 14px;
  max-width: 62ch;
}
.page-products .pp-h2 {
  margin: 10px 0 14px;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-weight: 900;
  color: #ffffff;
}
.page-products .pp-sec-head {
  max-width: 780px;
  margin-bottom: clamp(22px, 3vw, 34px);
}
.page-products .pp-sec-head h2 {
  margin: 10px 0 14px;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-weight: 900;
  color: #ffffff;
}
.page-products .pp-note {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--silver);
  max-width: 60ch;
}
.page-products .pp-note a {
  color: var(--lime);
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 255, 60, 0.35);
}
.page-products .pp-note a:hover { border-bottom-color: var(--lime); }

/* ---------- 首屏 ---------- */
.page-products .pp-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--pp-gap);
  padding-top: clamp(16px, 3vw, 30px);
  padding-bottom: var(--pp-block);
  align-items: center;
}
.page-products .pp-hero h1 {
  margin: 12px 0 18px;
  font-size: clamp(32px, 5.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 900;
  color: #ffffff;
}
.page-products .pp-hero .lede {
  max-width: 44em;
  font-size: clamp(15px, 1.5vw, 17.5px);
  line-height: 1.78;
  color: var(--text);
  opacity: 0.94;
}
.page-products .pp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.page-products .pp-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.page-products .pp-facts li {
  padding: 14px 16px;
  background: var(--ink-2);
}
.page-products .pp-facts b {
  display: block;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--lime);
}
.page-products .pp-facts span {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--silver);
}

/* 手机示意 */
.page-products .pp-phone {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 340px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--ink-2);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--pp-cut)), calc(100% - var(--pp-cut)) 100%, 0 100%);
}
.page-products .pp-phone__img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.05);
}
.page-products .pp-phone__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.72);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--lime);
}
.page-products .pp-phone__bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(11, 18, 32, 0.8);
}
.page-products .pp-phone__slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--silver);
}
.page-products .pp-phone__slot.is-on {
  background: var(--lime);
  color: #06210a;
  font-weight: 700;
}

/* ---------- 专区标签带 ---------- */
.page-products .pp-zone {
  padding-bottom: var(--pp-block);
}
.page-products .pp-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(238px, 275px);
  gap: 14px;
  margin: 0;
  padding: 4px 0 20px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.page-products .pp-tabs::-webkit-scrollbar { height: 6px; }
.page-products .pp-tabs::-webkit-scrollbar-track { background: var(--rule); border-radius: 999px; }
.page-products .pp-tabs::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }
.page-products .pp-tab {
  scroll-snap-align: start;
  padding: 22px 20px 30px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.page-products .pp-tab:hover,
.page-products .pp-tab:focus-within {
  border-color: var(--lime);
  transform: translateY(-3px);
}
.page-products .pp-tab__idx {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--lava);
}
.page-products .pp-tab h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
}
.page-products .pp-tab p {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--silver);
}

/* ---------- 图片容器 ---------- */
.page-products .pp-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-2);
}
.page-products .pp-shot img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.page-products .pp-shot--cut {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--pp-cut)), calc(100% - var(--pp-cut)) 100%, 0 100%);
}
.page-products .pp-shot--cut img { aspect-ratio: 3 / 2; }
.page-products .pp-shot--banner { margin-bottom: clamp(24px, 3.4vw, 40px); }
.page-products .pp-shot--banner img { aspect-ratio: 16 / 7; }

/* ---------- 主队资料 ---------- */
.page-products .pp-squad {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--pp-gap);
  padding-bottom: var(--pp-block);
  align-items: center;
}
.page-products .pp-fields {
  display: grid;
  gap: 1px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.page-products .pp-fields li {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 16px;
  background: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--text);
}
.page-products .pp-fields strong {
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

/* ---------- 资料中心 ---------- */
.page-products .pp-archive {
  padding-bottom: var(--pp-block);
}
.page-products .pp-ledger {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}
.page-products .pp-ledger__row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 14px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.64;
  color: var(--text);
}
.page-products .pp-ledger__cat {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--lime);
}
.page-products .pp-ledger__desc { color: var(--text); opacity: 0.92; }
.page-products .pp-ledger__fmt {
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--silver);
  text-align: right;
  white-space: nowrap;
}

/* ---------- 更新时间轴 ---------- */
.page-products .pp-updates {
  padding-bottom: var(--pp-block);
}
.page-products .pp-timeline {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--panel-r);
  padding: clamp(24px, 4vw, 48px);
  background: linear-gradient(140deg, var(--ink-2) 0%, var(--dusk) 100%);
}
.page-products .pp-timeline__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  pointer-events: none;
}
.page-products .pp-timeline__inner { position: relative; z-index: 1; }
.page-products .pp-steps {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.page-products .pp-step {
  position: relative;
  margin-left: 6px;
  padding: 0 0 26px 30px;
  border-left: 1px dashed var(--line-strong);
}
.page-products .pp-step:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}
.page-products .pp-step::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--lime);
}
.page-products .pp-step__when {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--lava);
}
.page-products .pp-step h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
}
.page-products .pp-step p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--text);
  opacity: 0.9;
  max-width: 58ch;
}

/* ---------- 使用场景 ---------- */
.page-products .pp-scenes {
  padding-bottom: var(--pp-block);
}
.page-products .pp-scenes__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.page-products .pp-scene {
  padding: 26px 22px 28px;
  background: var(--cream);
  color: #14161c;
  border-radius: var(--panel-r);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}
.page-products .pp-scene__idx {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #7a2a16;
}
.page-products .pp-scene h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #14161c;
}
.page-products .pp-scene p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.76;
  color: #2c3038;
}

/* ---------- 设备与版本 ---------- */
.page-products .pp-version {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--pp-gap);
  padding-bottom: var(--pp-block);
  align-items: center;
}
.page-products .pp-marks {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.page-products .pp-marks li {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.66;
  color: var(--text);
}
.page-products .pp-marks__k {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--lime);
}
.page-products .pp-version__media { margin-top: 4px; }

/* ---------- 专栏联动 ---------- */
.page-products .pp-link {
  padding-bottom: clamp(56px, 7vw, 100px);
}
.page-products .pp-link__panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  padding: clamp(24px, 4vw, 46px);
  border: 1px dashed var(--line-strong);
  border-radius: var(--panel-r);
  background:
    linear-gradient(135deg, rgba(255, 91, 46, 0.1) 0%, rgba(42, 47, 82, 0.5) 62%, rgba(11, 18, 32, 1) 100%);
}
.page-products .pp-link__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: center;
  min-width: 0;
}

/* ---------- 章节高亮（由脚本写入 .is-active） ---------- */
.page-products [data-section] {
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease);
}

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

@media (min-width: 900px) {
  .page-products .pp-hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
  }
  .page-products .pp-squad {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(28px, 4.5vw, 64px);
  }
  .page-products .pp-version {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(28px, 4.5vw, 64px);
  }
  .page-products .pp-link__panel {
    grid-template-columns: minmax(0, 1fr) 240px;
    align-items: center;
  }
  .page-products .pp-tabs {
    grid-auto-columns: minmax(240px, 1fr);
  }
}

@media (min-width: 1180px) {
  .page-products .pp-tabs {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-columns: auto;
    overflow-x: visible;
    padding-bottom: 4px;
  }
  .page-products .pp-tabs::-webkit-scrollbar { display: none; }
}

@media (max-width: 640px) {
  .page-products .pp-ledger__row {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .page-products .pp-ledger__fmt {
    justify-self: start;
    text-align: left;
  }
  .page-products .pp-fields li {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .page-products .pp-hero__actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .pp-tab,
  .page-products [data-section] {
    transition: none;
  }
  .page-products .pp-tab:hover,
  .page-products .pp-tab:focus-within {
    transform: none;
  }
}
