.page-products {
  --pp-radius: 3px;
  --pp-gap: 16px;
  display: block;
  background: var(--ink);
  color: var(--paper);
}

/* ---------- 章节刻度轨 ---------- */
.page-products .chapter-rail {
  display: none;
}

@media (min-width: 1240px) {
  .page-products .chapter-rail {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: fixed;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
  }
}

.page-products .chapter-rail__link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 8px;
  border-left: 2px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.page-products .chapter-rail__link:hover,
.page-products .chapter-rail__link:focus-visible,
.page-products .chapter-rail__link.is-current {
  color: var(--cyan);
  border-left-color: var(--cyan);
}

/* ---------- 面包屑 ---------- */
.page-products .pp-crumb {
  padding: 18px 0 0;
}

/* ---------- 章节头 ---------- */
.page-products .section-head {
  display: grid;
  gap: 6px;
  margin-bottom: 24px;
}

@media (min-width: 860px) {
  .page-products .section-head {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: end;
    gap: 18px;
  }
}

.page-products .section-head__num {
  margin: 0;
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.page-products .section-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-products .section-head__note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- 首屏 ---------- */
.page-products .pp-hero {
  padding: 22px 0 40px;
}

.page-products .pp-hero__inner {
  display: grid;
  gap: 28px;
  align-items: end;
}

@media (min-width: 960px) {
  .page-products .pp-hero__inner {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 36px;
    align-items: center;
  }
}

.page-products .pp-hero h1 {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 6.6vw, 54px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-products .pp-hero__text {
  margin: 18px 0 0;
  max-width: 34em;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.page-products .pp-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 1px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  background: var(--grid);
  border: var(--line);
}

.page-products .pp-stat {
  background: var(--panel);
  padding: 12px 12px 14px;
}

.page-products .pp-stat__value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(20px, 3.6vw, 28px);
  font-weight: 800;
  line-height: 1;
  color: var(--cyan);
}

.page-products .pp-stat__label {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- 图片容器 ---------- */
.page-products .figure__media {
  overflow: hidden;
  background: var(--panel);
  border: var(--line-bold);
  box-shadow: var(--shadow-hard);
}

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

.page-products .figure__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 终端矩阵 ---------- */
.page-products .pp-matrix {
  padding: 44px 0;
  border-top: var(--line);
}

.page-products .pp-matrix__grid {
  display: grid;
  gap: 26px;
}

@media (min-width: 1080px) {
  .page-products .pp-matrix__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
    align-items: start;
  }
}

.page-products .pp-terms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .pp-term {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 14px 18px;
  background: var(--panel);
  border: var(--line-bold);
  border-radius: var(--pp-radius);
  box-shadow: var(--shadow-hard);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.page-products .pp-term.is-recommended {
  border-color: var(--cyan);
}

.page-products .pp-term:hover,
.page-products .pp-term:focus-within {
  border-color: var(--cyan);
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-press);
}

.page-products .pp-term .chip {
  align-self: flex-start;
  margin: 0;
}

.page-products .pp-term__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.1;
  color: var(--paper);
}

.page-products .pp-term__size {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  color: var(--orange);
}

.page-products .pp-term__size span {
  margin-left: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.page-products .pp-term__spec {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}

.page-products .pp-term__spec dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--cyan-deep);
  filter: brightness(1.9);
}

.page-products .pp-term__spec dd {
  margin: 0 0 8px;
}

.page-products .pp-matrix__phone .figure__media img {
  aspect-ratio: 2 / 3;
}

/* ---------- 通用章节 ---------- */
.page-products .pp-section {
  padding: 46px 0;
  border-top: var(--line);
}

/* ---------- 功能模块 ---------- */
.page-products .pp-modules {
  display: grid;
  gap: 20px;
}

@media (min-width: 1000px) {
  .page-products .pp-modules {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    align-items: start;
    gap: 24px;
  }
}

.page-products .pp-modules__main {
  display: grid;
  gap: 16px;
}

.page-products .pp-module {
  padding: 20px 18px 22px;
  border-radius: var(--pp-radius);
}

@media (min-width: 720px) {
  .page-products .pp-module--media {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    align-items: center;
  }
}

.page-products .pp-module__idx {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.page-products .pp-module h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.15;
  color: var(--paper);
}

.page-products .pp-module p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.page-products .pp-module__scene {
  color: var(--paper);
  font-size: 13px;
  border-left: 2px solid var(--cyan-deep);
  padding-left: 10px;
}

.page-products .pp-module .figure {
  margin: 4px 0 0;
}

@media (min-width: 1000px) {
  .page-products .pp-modules__side {
    position: sticky;
    top: 84px;
  }
}

.page-products .pp-side {
  padding: 20px 18px 22px;
  background: var(--panel);
  border: var(--line-bold);
  border-color: var(--cyan-deep);
  border-radius: var(--pp-radius);
  box-shadow: var(--shadow-hard);
}

.page-products .pp-side .chip {
  display: inline-block;
  margin: 0 0 10px;
}

.page-products .pp-side h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.2;
  color: var(--paper);
}

.page-products .pp-side p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

.page-products .pp-side__list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.page-products .pp-side__list li {
  position: relative;
  padding: 8px 0 8px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--paper);
  border-top: 1px solid var(--grid);
}

.page-products .pp-side__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 6px;
  height: 2px;
  background: var(--cyan);
}

/* ---------- 射手榜 ---------- */
.page-products .pp-score {
  padding: 46px 0;
  border-top: var(--line);
  border-bottom: var(--line);
  background: linear-gradient(180deg, rgba(14, 95, 85, 0.34) 0%, rgba(5, 7, 10, 0) 72%);
}

.page-products .pp-score__grid {
  display: grid;
  gap: 26px;
}

@media (min-width: 940px) {
  .page-products .pp-score__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    gap: 34px;
  }
}

.page-products .pp-score__text h2 {
  margin: 6px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-products .pp-score__text p {
  margin: 0 0 14px;
  max-width: 34em;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

.page-products .pp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.page-products .pp-chips li {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--cyan);
  background: rgba(14, 95, 85, 0.45);
  border: 1px solid var(--cyan-deep);
  padding: 6px 10px;
  border-radius: 2px;
}

/* ---------- 切换指引 ---------- */
.page-products .pp-switch__intro {
  margin: 0 0 24px;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}

.page-products .pp-steps {
  display: grid;
  gap: 14px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

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

.page-products .pp-step {
  position: relative;
  padding-left: 54px;
  background: var(--panel);
  border: var(--line-bold);
  border-radius: var(--pp-radius);
  box-shadow: var(--shadow-hard);
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.page-products .pp-step:hover {
  border-color: var(--cyan);
  transform: translate(2px, 2px);
}

.page-products .pp-step__num {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  color: var(--cyan);
  border-right: var(--line-bold);
  background: rgba(14, 95, 85, 0.22);
}

.page-products .pp-step .fold {
  border: none;
  background: transparent;
  box-shadow: none;
}

.page-products .pp-step .fold__summary {
  padding: 15px 16px 15px 14px;
}

.page-products .pp-step[open] .fold__summary {
  background: rgba(14, 95, 85, 0.35);
}

.page-products .pp-step .fold__body {
  padding: 0 16px 16px 14px;
}

.page-products .pp-step .fold__body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

.page-products .pp-switch__figure {
  margin: 0;
}

/* ---------- 折叠面板基础 ---------- */
.page-products .fold {
  border: var(--line);
  background: var(--panel);
  border-radius: 2px;
}

.page-products .fold__summary {
  cursor: pointer;
  padding: 13px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  line-height: 1.5;
  color: var(--paper);
  list-style: none;
}

.page-products .fold__summary::-webkit-details-marker {
  display: none;
}

.page-products .fold__summary::after {
  content: "+";
  float: right;
  margin-left: 12px;
  color: var(--cyan);
  font-weight: 700;
}

.page-products .fold[open] .fold__summary::after {
  content: "–";
}

.page-products .fold__body {
  padding: 0 16px 16px;
}

/* ---------- 更新记录 ---------- */
.page-products .pp-log__intro {
  margin: 0 0 20px;
  max-width: 62ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.page-products .pp-log {
  display: grid;
  gap: 10px;
}

.page-products .pp-log__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .pp-log__item {
  display: grid;
  gap: 4px;
  padding: 11px 0;
  border-bottom: 1px solid var(--grid);
  font-size: 13px;
  line-height: 1.7;
}

.page-products .pp-log__item:last-child {
  border-bottom: none;
}

@media (min-width: 760px) {
  .page-products .pp-log__item {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 16px;
  }
}

.page-products .pp-log__type {
  font-size: 11px;
  letter-spacing: 0.1em;
}

.page-products .pp-log__text {
  color: var(--paper);
}

.page-products .pp-log__term {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.page-products .pp-log__more {
  margin: 22px 0 0;
  font-size: 13px;
}

.page-products .pp-log__more a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--cyan-deep);
}

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

/* ---------- 安装建议 ---------- */
.page-products .pp-tips {
  padding: 46px 0 54px;
  border-top: var(--line);
}

.page-products .pp-tips__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.page-products .pp-tip {
  padding: 18px 16px 20px;
  border-radius: var(--pp-radius);
}

.page-products .pp-tip h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.2;
  color: var(--paper);
}

.page-products .pp-tip p {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

.page-products .pp-tips__foot {
  margin: 24px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

.page-products .pp-tips__foot a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--cyan-deep);
}

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

/* ---------- 键盘焦点 ---------- */
.page-products a:focus-visible,
.page-products summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .page-products .pp-term,
  .page-products .pp-step,
  .page-products .chapter-rail__link {
    transition: none;
  }
  .page-products .pp-term:hover,
  .page-products .pp-term:focus-within,
  .page-products .pp-step:hover {
    transform: none;
  }
}
