.page-products {
  --p-gap: clamp(16px, 3vw, 32px);
  --p-block: clamp(48px, 8vw, 96px);
  --p-line: rgba(203, 211, 207, .28);
}

.page-products .p-hero {
  padding: clamp(28px, 6vw, 64px) 0 var(--p-block);
  border-bottom: 1px solid var(--hair-dark);
}

.page-products .p-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 48px);
  align-items: start;
}

.page-products .p-hero__text .crumbs {
  margin-bottom: 18px;
}

.page-products .p-hero__text .eyebrow {
  margin-bottom: 12px;
}

.page-products .p-hero__text .h-display {
  margin: 0 0 20px;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.page-products .p-hero__text .lede {
  max-width: var(--measure);
  margin: 0 0 28px;
}

.page-products .p-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  background: var(--hair-dark);
  border: 1px solid var(--hair-dark);
}

.page-products .p-hero__stats .stat {
  padding: 14px 12px;
  background: var(--ink-field);
}

.page-products .p-hero__stats .stat__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 30px;
  line-height: 1.1;
  color: var(--neon-grass);
}

.page-products .p-hero__stats .stat__unit {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--electric-cyan);
  margin-left: 4px;
}

.page-products .p-hero__stats .stat__label {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted-on-dark);
}

.page-products .p-hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.page-products .p-device {
  margin: 0;
  justify-self: center;
  width: min(100%, 340px);
}

.page-products .p-device__frame {
  border: 1px solid var(--hair-dark-strong);
  box-shadow: inset 0 0 0 1px var(--ink-field), inset 0 40px 80px -60px rgba(53, 240, 160, .35);
  background: var(--pitch-teal);
  position: relative;
}

.page-products .p-device__frame::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(25, 215, 200, .35);
  pointer-events: none;
}

.page-products .p-device__frame img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  aspect-ratio: 9 / 16;
}

.page-products .p-device__cap {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted-on-dark);
  border-left: 1px solid var(--stoppage-amber);
  padding-left: 10px;
}

/* ---------- 章节通用 ---------- */
.page-products .section {
  padding: var(--p-block) 0;
  border-bottom: 1px solid var(--hair-dark);
}

.page-products .sec-head {
  margin-bottom: clamp(24px, 4vw, 40px);
}

.page-products .sec-head .sec-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1;
  color: var(--electric-cyan);
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
}

.page-products .sec-head .sec-title {
  margin: 0 0 10px;
}

.page-products .sec-head .sec-lede {
  max-width: var(--measure);
  margin: 0;
}

.page-products .section--ivory .sec-num {
  color: var(--pitch-teal);
}

.page-products .section--teal .sec-num {
  color: var(--stoppage-amber);
}

.page-products .annot {
  display: block;
  max-width: 12em;
  color: var(--muted-on-dark);
  border-left: 1px solid var(--neon-grass);
  padding-left: 10px;
  margin: 0 0 20px;
}

.page-products .section--ivory .annot {
  color: var(--slate-green);
  border-left-color: var(--pitch-teal);
}

/* ---------- 规格定义列表 ---------- */
.page-products .p-spec {
  margin: 28px 0 0;
  border-top: 1px solid var(--hair-dark);
}

.page-products .p-spec__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair-dark);
}

.page-products .p-spec__row dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--electric-cyan);
  text-transform: uppercase;
}

.page-products .p-spec__row dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
}

.page-products .section--ivory .p-spec,
.page-products .section--ivory .p-spec__row {
  border-color: var(--hairline-cool);
}

.page-products .section--ivory .p-spec__row dt {
  color: var(--pitch-teal);
}

/* ---------- 五类视图标签页 ---------- */
.page-products .view-tabs {
  position: relative;
  border: 1px solid var(--hair-dark);
  background: var(--deep-teal);
}

.page-products .view-tabs__radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  clip-path: inset(50%);
  margin: 0;
}

.page-products .view-tabs__bar {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  border-bottom: 1px solid var(--hair-dark);
  background: var(--pitch-teal);
}

.page-products .view-tabs__tab {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 14px 18px;
  min-height: 44px;
  font-size: 15px;
  color: var(--muted-on-dark);
  border-right: 1px solid var(--hair-dark);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color 160ms linear, border-color 160ms linear, background-color 160ms linear;
}

.page-products .view-tabs__idx {
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--electric-cyan);
}

.page-products .view-tabs__tab:hover {
  color: var(--card-ivory);
  border-bottom-color: var(--neon-grass);
}

.page-products .view-tabs__panels {
  padding: clamp(20px, 3vw, 32px);
}

.page-products .view-tabs__panel {
  display: none;
  max-width: var(--measure);
}

.page-products .view-tabs__panel .h-sub {
  margin: 0 0 12px;
}

.page-products .view-tabs__panel p {
  margin: 0 0 12px;
  line-height: 1.75;
}

.page-products .view-tabs__panel .note {
  color: var(--muted-on-dark);
  border-top: 1px solid var(--hair-dark);
  padding-top: 12px;
  margin-bottom: 0;
}

.page-products .view-tabs__radio:nth-of-type(1):checked ~ .view-tabs__panels .view-tabs__panel:nth-child(1),
.page-products .view-tabs__radio:nth-of-type(2):checked ~ .view-tabs__panels .view-tabs__panel:nth-child(2),
.page-products .view-tabs__radio:nth-of-type(3):checked ~ .view-tabs__panels .view-tabs__panel:nth-child(3),
.page-products .view-tabs__radio:nth-of-type(4):checked ~ .view-tabs__panels .view-tabs__panel:nth-child(4),
.page-products .view-tabs__radio:nth-of-type(5):checked ~ .view-tabs__panels .view-tabs__panel:nth-child(5) {
  display: block;
}

.page-products .view-tabs__radio:nth-of-type(1):checked ~ .view-tabs__bar .view-tabs__tab:nth-child(1),
.page-products .view-tabs__radio:nth-of-type(2):checked ~ .view-tabs__bar .view-tabs__tab:nth-child(2),
.page-products .view-tabs__radio:nth-of-type(3):checked ~ .view-tabs__bar .view-tabs__tab:nth-child(3),
.page-products .view-tabs__radio:nth-of-type(4):checked ~ .view-tabs__bar .view-tabs__tab:nth-child(4),
.page-products .view-tabs__radio:nth-of-type(5):checked ~ .view-tabs__bar .view-tabs__tab:nth-child(5) {
  color: var(--ink-field);
  background: var(--neon-grass);
  border-bottom-color: var(--neon-grass);
}

.page-products .view-tabs__radio:nth-of-type(1):checked ~ .view-tabs__bar .view-tabs__tab:nth-child(1) .view-tabs__idx,
.page-products .view-tabs__radio:nth-of-type(2):checked ~ .view-tabs__bar .view-tabs__tab:nth-child(2) .view-tabs__idx,
.page-products .view-tabs__radio:nth-of-type(3):checked ~ .view-tabs__bar .view-tabs__tab:nth-child(3) .view-tabs__idx,
.page-products .view-tabs__radio:nth-of-type(4):checked ~ .view-tabs__bar .view-tabs__tab:nth-child(4) .view-tabs__idx,
.page-products .view-tabs__radio:nth-of-type(5):checked ~ .view-tabs__bar .view-tabs__tab:nth-child(5) .view-tabs__idx {
  color: var(--pitch-teal);
}

.page-products .view-tabs__radio:focus-visible:nth-of-type(1) ~ .view-tabs__bar .view-tabs__tab:nth-child(1),
.page-products .view-tabs__radio:focus-visible:nth-of-type(2) ~ .view-tabs__bar .view-tabs__tab:nth-child(2),
.page-products .view-tabs__radio:focus-visible:nth-of-type(3) ~ .view-tabs__bar .view-tabs__tab:nth-child(3),
.page-products .view-tabs__radio:focus-visible:nth-of-type(4) ~ .view-tabs__bar .view-tabs__tab:nth-child(4),
.page-products .view-tabs__radio:focus-visible:nth-of-type(5) ~ .view-tabs__bar .view-tabs__tab:nth-child(5) {
  outline: 2px solid var(--neon-grass);
  outline-offset: -2px;
}

/* ---------- 图片 ---------- */
.page-products .p-fig {
  margin: 0 0 24px;
}

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

.page-products .p-fig--org {
  margin-top: clamp(28px, 4vw, 48px);
  margin-bottom: 0;
}

.page-products .figure__cap {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
}

/* ---------- 表格 ---------- */
.page-products .p-table__cap {
  text-align: left;
  font-size: 13px;
  color: var(--slate-green);
  padding-bottom: 8px;
}

.page-products .table-wrap {
  border: 1px solid var(--hairline-cool);
  overflow-x: auto;
}

.page-products .data {
  min-width: 420px;
}

/* ---------- 定义列表 ---------- */
.page-products .p-deflist {
  margin: 0 0 28px;
  border-top: 1px solid var(--hairline-cool);
}

.page-products .p-deflist__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline-cool);
}

.page-products .p-deflist__row dt {
  font-family: var(--font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--pitch-teal);
}

.page-products .p-deflist__row dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-black);
}

/* ---------- 行式清单 ---------- */
.page-products .p-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hair-dark);
}

.page-products .p-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hair-dark);
}

.page-products .p-row__k {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--stoppage-amber);
}

.page-products .p-row__v {
  font-size: 14px;
  line-height: 1.7;
}

.page-products .section--ivory .p-rows,
.page-products .section--ivory .p-row {
  border-color: var(--hairline-cool);
}

.page-products .section--ivory .p-row__k {
  color: var(--pitch-teal);
}

/* ---------- 版本时间线 ---------- */
.page-products .p-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--hair-dark);
}

.page-products .p-timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 0 0 28px 20px;
}

.page-products .p-timeline__item::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 8px;
  width: 7px;
  height: 7px;
  background: var(--electric-cyan);
}

.page-products .p-timeline__item--current::before {
  background: var(--neon-grass);
  box-shadow: 0 0 0 3px rgba(53, 240, 160, .18);
}

.page-products .p-timeline__item--current {
  border: 1px solid var(--neon-grass);
  padding: 18px 20px 22px;
  margin-left: -1px;
}

.page-products .p-timeline__ver {
  font-family: var(--font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--neon-grass);
  letter-spacing: .04em;
}

.page-products .p-timeline__body .h-sub {
  margin: 0 0 6px;
}

.page-products .p-timeline__body p {
  margin: 0;
  line-height: 1.75;
  max-width: var(--measure);
}

.page-products .p-note-block {
  margin-top: 28px;
  border-top: 1px solid var(--hair-dark);
  padding-top: 18px;
}

.page-products .p-note-block .note {
  color: var(--muted-on-dark);
  max-width: var(--measure);
  line-height: 1.75;
  margin: 0;
}

/* ---------- 步骤 ---------- */
.page-products .p-steps {
  list-style: none;
  margin: 0 0 clamp(28px, 4vw, 48px);
  padding: 0;
  counter-reset: pstep;
}

.page-products .p-steps__item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline-cool);
}

.page-products .p-steps__n {
  font-family: var(--font-mono);
  font-size: 32px;
  line-height: 1;
  color: var(--pitch-teal);
  font-variant-numeric: tabular-nums;
}

.page-products .p-steps__item .h-sub {
  margin: 0 0 6px;
}

.page-products .p-steps__item p {
  margin: 0;
  line-height: 1.75;
  color: var(--ink-black);
  max-width: var(--measure);
}

.page-products .p-start .h-sub {
  margin: 0 0 14px;
}

.page-products .p-start .p-rows .p-row__k {
  color: var(--pitch-teal);
}

/* ---------- 内链列表 ---------- */
.page-products .p-links {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline-cool);
}

.page-products .p-links li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline-cool);
}

.page-products .p-links a {
  font-size: 15px;
  color: var(--pitch-teal);
  border-bottom: 1px solid transparent;
  transition: border-color 160ms linear, color 160ms linear;
}

.page-products .p-links a:hover,
.page-products .p-links a:focus-visible {
  border-bottom-color: var(--neon-grass);
  color: var(--ink-black);
}

.page-products .p-links .note {
  color: var(--slate-green);
  font-size: 13px;
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-products .p-spec__row {
    grid-template-columns: 160px 1fr;
    gap: 16px;
    align-items: baseline;
  }

  .page-products .p-deflist__row {
    grid-template-columns: 128px 1fr;
    gap: 14px;
    align-items: baseline;
  }

  .page-products .p-row {
    grid-template-columns: 132px 1fr;
    gap: 16px;
    align-items: baseline;
  }

  .page-products .p-timeline__item {
    grid-template-columns: 132px 1fr;
    gap: 20px;
    align-items: start;
    padding-left: 24px;
  }

  .page-products .p-links li {
    grid-template-columns: 168px 1fr;
    gap: 14px;
    align-items: baseline;
  }
}

@media (min-width: 900px) {
  .page-products .p-hero__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: clamp(32px, 5vw, 64px);
  }

  .page-products .p-device {
    justify-self: end;
    position: sticky;
    top: calc(var(--cmdbar-h) + 24px);
    width: min(100%, 300px);
  }

  .page-products .view-tabs__panels {
    min-height: 200px;
  }
}

@media (min-width: 1200px) {
  .page-products .p-hero__inner {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .view-tabs__tab,
  .page-products .p-links a {
    transition: none;
  }
}
