.page-products {
  --dl-gap: clamp(14px, 2vw, 22px);
  --dl-pad: clamp(18px, 3vw, 32px);
  background: var(--xb-ink);
  color: var(--xb-paper);
  padding-bottom: clamp(56px, 8vw, 96px);
}

/* ---------- 首屏 ---------- */
.page-products .dl-hero {
  padding-top: calc(var(--xb-header-h) + clamp(24px, 5vw, 56px));
  padding-bottom: clamp(28px, 5vw, 56px);
  border-bottom: 1px solid var(--xb-line-soft);
  background:
    radial-gradient(900px 380px at 82% 0%, rgba(53, 242, 192, .10), transparent 62%),
    radial-gradient(600px 300px at 0% 100%, rgba(89, 199, 216, .07), transparent 60%);
}

.page-products .dl-hero__kicker {
  margin: 20px 0 10px;
  font-family: var(--xb-font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--xb-signal);
}

.page-products .dl-hero__title {
  margin: 0 0 18px;
  max-width: 20ch;
  font-family: var(--xb-font-display);
  font-size: clamp(34px, 7.4vw, 64px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.01em;
  color: var(--xb-paper);
}

.page-products .dl-hero__lead {
  margin: 0 0 clamp(24px, 4vw, 40px);
  max-width: 60ch;
  font-size: 17px;
  line-height: 1.85;
  color: var(--xb-mist);
}

/* ---------- 版本进度条 ---------- */
.page-products .dl-band {
  padding: 16px var(--dl-pad) 18px;
  border: 1px solid var(--xb-line-soft);
  border-radius: var(--xb-radius);
  background: var(--xb-panel);
}

.page-products .dl-band__label {
  margin: 0 0 16px;
  font-family: var(--xb-font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--xb-stone);
}

.page-products .dl-band__track {
  display: flex;
  margin: 0;
  padding: 0 4px 0 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}

.page-products .dl-band__track > li {
  position: relative;
  flex: 1 0 96px;
  padding-top: 22px;
  font-size: 12px;
  color: var(--xb-stone);
}

.page-products .dl-band__track > li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 10px;
  right: 0;
  height: 2px;
  background: var(--xb-line);
}

.page-products .dl-band__track > li:last-child::before {
  right: auto;
  width: 0;
}

.page-products .dl-band__track > li::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--xb-ink);
  border: 2px solid var(--xb-stone);
}

.page-products .dl-band__track > li.is-done::before,
.page-products .dl-band__track > li.is-now::before {
  background: var(--xb-signal);
}

.page-products .dl-band__track > li.is-done::after,
.page-products .dl-band__track > li.is-now::after {
  background: var(--xb-signal);
  border-color: var(--xb-signal);
}

.page-products .dl-band__track > li.is-now::after {
  box-shadow: 0 0 0 4px rgba(53, 242, 192, .18);
}

.page-products .dl-band__track > li.is-now {
  color: var(--xb-signal);
}

.page-products .dl-band__v {
  display: block;
  font-family: var(--xb-font-mono);
  font-size: 13px;
  letter-spacing: .02em;
}

.page-products .dl-band__t {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--xb-stone);
}

.page-products .dl-band__track > li.is-now .dl-band__t {
  color: var(--xb-mist);
}

/* ---------- 面板矩阵 ---------- */
.page-products .dl-panels {
  display: grid;
  gap: var(--dl-gap);
  margin-top: clamp(24px, 4vw, 44px);
}

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

.page-products .dl-panel__head {
  display: grid;
  gap: 6px;
  padding: var(--dl-pad) var(--dl-pad) clamp(14px, 2vw, 18px);
  border-bottom: 1px solid var(--xb-line-soft);
}

.page-products .dl-panel__no {
  font-family: var(--xb-font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--xb-signal);
}

.page-products .dl-panel__title {
  margin: 0;
  font-family: var(--xb-font-display);
  font-size: clamp(22px, 3.4vw, 32px);
  font-weight: 700;
  line-height: 1.12;
  color: var(--xb-paper);
}

.page-products .dl-panel__sub {
  margin: 2px 0 0;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--xb-mist);
}

.page-products .dl-panel__body {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
  padding: var(--dl-pad);
}

/* ---------- 图片容器 ---------- */
.page-products .dl-shot {
  border: 1px solid var(--xb-line-soft);
  border-radius: var(--xb-radius);
  overflow: hidden;
  background: var(--xb-void);
}

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

/* ---------- 01 版本 ---------- */
.page-products .dl-version {
  gap: clamp(20px, 3vw, 32px);
}

.page-products .dl-specs {
  margin: 0;
  border-top: 1px solid var(--xb-line-soft);
}

.page-products .dl-specs > div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 8px 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--xb-line-soft);
}

.page-products .dl-specs dt {
  font-family: var(--xb-font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--xb-stone);
}

.page-products .dl-specs dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--xb-paper);
}

.page-products .dl-specs dd .xb-num {
  font-size: 19px;
  color: var(--xb-signal);
}

.page-products .xb-copy {
  font-size: 12px;
}

.page-products .dl-version__shot img {
  object-fit: contain;
  max-height: 520px;
}

/* ---------- 02 渠道 ---------- */
.page-products .dl-channels {
  display: grid;
  gap: 12px;
}

.page-products .dl-channel {
  padding: 16px 16px 18px;
  border: 1px solid var(--xb-line-soft);
  border-top: 3px solid var(--xb-signal);
  border-radius: var(--xb-radius);
  background: rgba(5, 12, 10, .38);
}

.page-products .dl-channel:nth-child(2) {
  border-top-color: var(--xb-link);
}

.page-products .dl-channel:nth-child(3) {
  border-top-color: var(--xb-mist);
}

.page-products .dl-channel__idx {
  display: block;
  font-size: 13px;
  color: var(--xb-stone);
}

.page-products .dl-channel__name {
  margin: 8px 0 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--xb-paper);
}

.page-products .dl-channel p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--xb-stone);
}

.page-products .dl-note {
  margin: 0;
  padding: 12px 0 12px 16px;
  border-left: 2px solid var(--xb-signal);
  font-size: 14px;
  line-height: 1.8;
  color: var(--xb-mist);
}

.page-products .dl-note--tight {
  border-left-color: var(--xb-stone);
}

.page-products .dl-note a {
  color: var(--xb-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 03 安装步骤 ---------- */
.page-products .dl-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: dl-step;
}

.page-products .dl-steps > li {
  position: relative;
  counter-increment: dl-step;
  padding: 0 0 24px 48px;
}

.page-products .dl-steps > li:last-child {
  padding-bottom: 0;
}

.page-products .dl-steps > li::before {
  content: counter(dl-step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--xb-signal);
  border-radius: 50%;
  font-family: var(--xb-font-mono);
  font-size: 12px;
  color: var(--xb-signal);
}

.page-products .dl-steps > li::after {
  content: "";
  position: absolute;
  top: 38px;
  bottom: 6px;
  left: 16px;
  width: 1px;
  background: var(--xb-line-soft);
}

.page-products .dl-steps > li:last-child::after {
  display: none;
}

.page-products .dl-steps__title {
  margin: 4px 0 6px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--xb-paper);
}

.page-products .dl-steps p {
  margin: 0;
  max-width: 62ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--xb-stone);
}

/* ---------- 04 权限 ---------- */
.page-products .dl-perms {
  display: grid;
  gap: 10px;
}

.page-products .dl-perm {
  border: 1px solid var(--xb-line-soft);
  border-radius: var(--xb-radius);
  background: rgba(5, 12, 10, .34);
}

.page-products .dl-perm__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.page-products .dl-perm__name {
  font-family: var(--xb-font-mono);
  font-size: 15px;
  letter-spacing: .02em;
  color: var(--xb-signal);
}

.page-products .dl-perm__use {
  font-size: 14px;
  line-height: 1.7;
  color: var(--xb-stone);
}

.page-products .dl-perm__panel p {
  margin: 0;
  padding: 0 16px 16px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--xb-mist);
}

/* ---------- 05 推送 ---------- */
.page-products .dl-push {
  gap: clamp(20px, 3vw, 30px);
}

.page-products .dl-push__shot img {
  object-fit: contain;
  max-height: 420px;
}

.page-products .dl-push__side {
  min-width: 0;
}

.page-products .dl-dims {
  display: grid;
  gap: 14px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.page-products .dl-dims > li {
  padding-left: 14px;
  border-left: 2px solid var(--xb-signal);
}

.page-products .dl-dims strong {
  display: block;
  margin-bottom: 2px;
  font-size: 15px;
  color: var(--xb-paper);
}

.page-products .dl-dims span {
  display: block;
  font-size: 14px;
  line-height: 1.75;
  color: var(--xb-stone);
}

.page-products .dl-switches {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.page-products .dl-switch {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--xb-line-soft);
  border-radius: var(--xb-radius);
  background: rgba(5, 12, 10, .4);
  cursor: pointer;
}

.page-products .dl-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.page-products .dl-switch__track {
  position: relative;
  display: block;
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--xb-stone);
  transition: background .2s var(--xb-ease);
}

.page-products .dl-switch__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--xb-paper);
  transition: transform .2s var(--xb-ease);
}

.page-products .dl-switch input:checked + .dl-switch__track {
  background: var(--xb-signal);
}

.page-products .dl-switch input:checked + .dl-switch__track .dl-switch__knob {
  transform: translateX(20px);
}

.page-products .dl-switch input:focus-visible + .dl-switch__track {
  outline: 2px solid var(--xb-signal);
  outline-offset: 3px;
}

.page-products .dl-switch__body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.page-products .dl-switch__title {
  font-size: 15px;
  line-height: 1.5;
  color: var(--xb-paper);
}

.page-products .dl-switch__state {
  font-family: var(--xb-font-mono);
  font-size: 12px;
  color: var(--xb-stone);
}

.page-products .dl-switch__state .on {
  display: none;
}

.page-products .dl-switch__state .off {
  display: inline;
}

.page-products .dl-switch input:checked ~ .dl-switch__body .dl-switch__state {
  color: var(--xb-signal);
}

.page-products .dl-switch input:checked ~ .dl-switch__body .dl-switch__state .on {
  display: inline;
}

.page-products .dl-switch input:checked ~ .dl-switch__body .dl-switch__state .off {
  display: none;
}

/* ---------- 06 机型适配 ---------- */
.page-products .dl-fitgrid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}

.page-products .dl-fitgrid__cell {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--xb-line-soft);
  border-radius: var(--xb-radius);
  font-family: var(--xb-font-mono);
  font-size: 13px;
}

.page-products .dl-fitgrid__cell.is-on {
  border-color: var(--xb-signal);
  background: rgba(53, 242, 192, .14);
  color: var(--xb-signal);
}

.page-products .dl-fitgrid__cell.is-off {
  background: var(--xb-void);
  color: var(--xb-stone);
}

.page-products .dl-fitgrid__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin: 0 0 22px;
  font-size: 13px;
  color: var(--xb-stone);
}

.page-products .dl-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 50%;
  vertical-align: middle;
}

.page-products .dl-dot--on {
  background: var(--xb-signal);
}

.page-products .dl-dot--off {
  background: var(--xb-stone);
}

.page-products .dl-notes {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .dl-notes > li {
  padding: 12px 14px;
  border: 1px solid var(--xb-line-soft);
  border-radius: var(--xb-radius);
  background: rgba(5, 12, 10, .3);
  font-size: 14px;
  line-height: 1.75;
  color: var(--xb-stone);
}

.page-products .dl-notes strong {
  margin-right: 6px;
  color: var(--xb-paper);
}

.page-products .dl-fit__shot img {
  object-fit: contain;
  max-height: 340px;
}

/* ---------- 07 版本演进 ---------- */
.page-products .dl-timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .dl-timeline > li {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 16px 12px 16px 0;
  border-top: 1px solid var(--xb-line-soft);
}

.page-products .dl-timeline > li:last-child {
  border-bottom: 1px solid var(--xb-line-soft);
}

.page-products .dl-timeline > li.is-current {
  padding-left: 12px;
  background: rgba(53, 242, 192, .07);
  box-shadow: inset 3px 0 0 var(--xb-signal);
}

.page-products .dl-timeline__v {
  font-family: var(--xb-font-mono);
  font-size: 18px;
  letter-spacing: .02em;
  color: var(--xb-signal);
}

.page-products .dl-timeline__desc {
  margin: 0;
  max-width: 68ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--xb-stone);
}

.page-products .dl-timeline > li.is-current .dl-timeline__desc {
  color: var(--xb-mist);
}

/* ---------- 08 排障 ---------- */
.page-products .dl-trouble {
  display: grid;
  gap: 12px;
}

.page-products .dl-trouble__item {
  padding: 16px;
  border: 1px solid var(--xb-line-soft);
  border-left: 3px solid var(--xb-red);
  border-radius: var(--xb-radius);
  background: rgba(5, 12, 10, .34);
}

.page-products .dl-trouble__item h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--xb-paper);
}

.page-products .dl-trouble__item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--xb-stone);
}

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

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

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

@media (min-width: 900px) {
  .page-products .dl-version {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: start;
  }

  .page-products .dl-push {
    grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
    align-items: start;
  }

  .page-products .dl-fit {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
    align-items: start;
  }

  .page-products .dl-timeline > li {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .page-products .dl-band__track > li {
    flex: 1 0 0;
  }
}
