.page-products {
  --p-shadow: 0 30px 60px -34px rgba(0, 0, 0, .9);
  --p-paper-mist: #5B6673;
  --p-paper-line: #CDC3B0;
  background:
    radial-gradient(110% 55% at 88% -8%, rgba(123, 91, 255, .22), transparent 60%),
    radial-gradient(80% 45% at -6% 6%, rgba(200, 255, 61, .10), transparent 58%),
    var(--night);
  color: var(--score);
  overflow-x: clip;
}

.page-products h2,
.page-products h3 {
  margin: 0;
}

.page-products p {
  margin: 0;
}

/* ---------- 通用区块 ---------- */
.page-products .dl-section {
  position: relative;
  padding: clamp(58px, 8vw, 116px) 0;
}

.page-products .dl-intro {
  margin-top: 16px;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--mist);
}

.page-products .dl-note {
  margin-top: clamp(26px, 4vw, 40px);
  padding: 18px 20px 18px 24px;
  border-left: 3px solid var(--purple);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(123, 91, 255, .12);
  font-size: 15px;
  line-height: 1.8;
  color: var(--score);
}

.page-products .dl-after {
  margin-top: clamp(28px, 4vw, 40px);
  font-size: 15px;
  line-height: 1.85;
  color: var(--mist);
}

.page-products .dl-after a {
  color: var(--green);
}

/* ---------- 首屏 ---------- */
.page-products .dl-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(84px, 12vw, 160px) 0 clamp(40px, 6vw, 76px);
}

.page-products .dl-hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -14%;
  right: -16%;
  width: min(820px, 88vw);
  aspect-ratio: 1 / 1;
  background: linear-gradient(140deg, rgba(123, 91, 255, .36) 0%, rgba(200, 255, 61, .16) 46%, rgba(6, 26, 46, 0) 74%);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  transform: rotate(-4deg);
  pointer-events: none;
}

.page-products .dl-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image:
    linear-gradient(rgba(28, 71, 103, .55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 71, 103, .55) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(78% 68% at 58% 28%, #000 0%, transparent 78%);
  mask-image: radial-gradient(78% 68% at 58% 28%, #000 0%, transparent 78%);
  pointer-events: none;
}

.page-products .dl-hero .shell {
  position: relative;
  z-index: 1;
}

.page-products .dl-hero__title {
  margin-top: 20px;
  max-width: 17ch;
  font-family: var(--font-display);
  font-size: clamp(36px, 6.2vw, 88px);
  line-height: .98;
  letter-spacing: -.02em;
}

.page-products .dl-hero__lede {
  margin-top: 22px;
  max-width: 58ch;
  color: var(--mist);
}

.page-products .dl-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.page-products .dl-stats {
  list-style: none;
  margin: clamp(40px, 6vw, 68px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.page-products .dl-stats__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 18px;
  background: rgba(12, 42, 71, .92);
}

.page-products .dl-stats__num {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--green);
}

.page-products .dl-stats__unit {
  margin-left: 4px;
  font-size: .45em;
  color: var(--mist);
}

.page-products .dl-stats__label {
  font-size: 13px;
  line-height: 1.6;
  color: var(--mist);
}

/* ---------- 图片容器 ---------- */
.page-products .media-frame {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

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

.page-products .media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--score);
  background: linear-gradient(to top, rgba(6, 26, 46, .94), rgba(6, 26, 46, 0));
}

.page-products .dl-compare__media {
  margin-top: clamp(30px, 5vw, 52px);
  aspect-ratio: 14 / 9;
}

/* ---------- 01 版本对照 ---------- */
.page-products .dl-matrix {
  margin-top: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(12, 42, 71, .6);
}

.page-products .dl-matrix__row {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}

.page-products .dl-matrix__row:first-child {
  border-top: 0;
}

.page-products .dl-matrix__row--head {
  display: none;
}

.page-products .dl-matrix__cell {
  padding: 14px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--score);
  border-top: 1px solid rgba(28, 71, 103, .6);
}

.page-products .dl-matrix__cell:first-child {
  border-top: 0;
}

.page-products .dl-matrix__key {
  padding-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--green);
}

.page-products .dl-matrix__cell[data-k]::before {
  content: attr(data-k);
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--mist);
}

@media (min-width: 820px) {
  .page-products .dl-matrix__row {
    grid-template-columns: minmax(130px, .68fr) minmax(0, 1fr) minmax(0, 1fr);
  }

  .page-products .dl-matrix__row__head,
  .page-products .dl-matrix__row--head {
    display: grid;
    background: rgba(200, 255, 61, .07);
  }

  .page-products .dl-matrix__row--head .dl-matrix__cell {
    border-top: 0;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .2em;
    color: var(--green);
  }

  .page-products .dl-matrix__cell {
    border-top: 0;
    border-left: 1px solid rgba(28, 71, 103, .6);
  }

  .page-products .dl-matrix__cell:first-child {
    border-left: 0;
  }

  .page-products .dl-matrix__key {
    padding-bottom: 14px;
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: .02em;
    color: var(--mist);
  }

  .page-products .dl-matrix__cell[data-k]::before {
    display: none;
  }
}

/* ---------- 02 安装步骤 ---------- */
.page-products .dl-section--paper {
  --mist: var(--p-paper-mist);
  --line: var(--p-paper-line);
  padding: clamp(78px, 10vw, 138px) 0;
  background: var(--paper);
  color: var(--ink);
  clip-path: polygon(0 2.4%, 100% 0, 100% 97.6%, 0 100%);
}

.page-products .dl-section--paper .dl-intro {
  color: var(--p-paper-mist);
}

.page-products .dl-steps {
  list-style: none;
  margin: clamp(34px, 5vw, 58px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 28px);
}

.page-products .dl-step {
  position: relative;
  z-index: 1;
  padding: 26px 22px 24px;
  border: 1px solid var(--p-paper-line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .66);
  box-shadow: 0 18px 34px -30px rgba(8, 13, 20, .8);
}

.page-products .dl-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  background: var(--night);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
}

.page-products .dl-step__title {
  margin-top: 20px;
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.page-products .dl-step__text {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--p-paper-mist);
}

@media (min-width: 860px) {
  .page-products .dl-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(22px, 3vw, 34px);
  }

  .page-products .dl-steps::before {
    content: "";
    position: absolute;
    top: calc(clamp(34px, 5vw, 58px) + 26px + 28px);
    left: 12%;
    right: 12%;
    border-top: 2px dashed rgba(255, 106, 26, .55);
    pointer-events: none;
  }

  .page-products .dl-steps {
    position: relative;
  }
}

.page-products .dl-step-figure {
  margin-top: clamp(34px, 5vw, 56px);
  aspect-ratio: 2 / 1;
}

/* ---------- 03 设备要求 ---------- */
.page-products .dl-device {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 44px);
  margin-top: clamp(30px, 4vw, 48px);
}

.page-products .dl-device__media {
  aspect-ratio: 3 / 2;
}

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

.page-products .dl-specs__row {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(12, 42, 71, .62);
  transition: border-color var(--t), background-color var(--t);
}

.page-products .dl-specs__row:hover {
  border-color: var(--green);
  background: rgba(12, 42, 71, .9);
}

.page-products .dl-specs__device {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  color: var(--green);
}

.page-products .dl-specs__list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.page-products .dl-specs__list > div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.page-products .dl-specs__list dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--mist);
}

.page-products .dl-specs__list dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--score);
}

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

/* ---------- 04 移动端 ---------- */
.page-products .dl-mobile__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}

.page-products .dl-mobile__media {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
}

.page-products .dl-points {
  list-style: none;
  margin: clamp(28px, 4vw, 42px) 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.page-products .dl-points__item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid rgba(28, 71, 103, .8);
}

.page-products .dl-points__item:last-child {
  border-bottom: 1px solid rgba(28, 71, 103, .8);
}

.page-products .dl-points__num {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--green);
}

.page-products .dl-points__item p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--mist);
}

@media (min-width: 900px) {
  .page-products .dl-mobile__grid {
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  }
}

/* ---------- 05 更新日志 ---------- */
.page-products .dl-log__filters {
  margin-top: clamp(26px, 4vw, 38px);
}

.page-products .dl-log__viewport {
  position: relative;
  margin-top: clamp(20px, 3vw, 30px);
}

.page-products .dl-log__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .16;
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.page-products .dl-log__rail {
  position: relative;
  display: flex;
  gap: 18px;
  padding: 6px 4px 24px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--green) rgba(28, 71, 103, .45);
}

.page-products .dl-log__rail::-webkit-scrollbar {
  height: 6px;
}

.page-products .dl-log__rail::-webkit-scrollbar-track {
  background: rgba(28, 71, 103, .45);
  border-radius: var(--radius-pill);
}

.page-products .dl-log__rail::-webkit-scrollbar-thumb {
  background: var(--green);
  border-radius: var(--radius-pill);
}

.page-products .dl-log__item {
  flex: 0 0 min(78vw, 320px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(12, 42, 71, .94);
  transition: border-color var(--t), transform var(--t);
}

.page-products .dl-log__item:hover {
  border-color: var(--green);
  transform: translateY(-3px);
}

.page-products .dl-log__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.page-products .dl-log__ver {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--score);
}

.page-products .dl-log__type {
  padding: 4px 10px;
  border: 1px solid currentColor;
  border-radius: var(--radius-pill);
  font-size: 11px;
  letter-spacing: .16em;
}

.page-products .dl-log__type--refresh {
  color: var(--green);
}

.page-products .dl-log__type--league {
  color: var(--orange);
}

.page-products .dl-log__type--ui {
  color: var(--purple);
}

.page-products .dl-log__item .card-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  color: var(--mist);
}

.page-products .dl-log__item p {
  font-size: 14px;
  line-height: 1.78;
  color: var(--score);
}

/* ---------- 06 常见问题 ---------- */
.page-products .dl-faq {
  display: grid;
  gap: 12px;
  margin-top: clamp(28px, 4vw, 42px);
}

.page-products .dl-faq .faq__item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(12, 42, 71, .62);
  transition: border-color var(--t);
}

.page-products .dl-faq .faq__item[open] {
  border-color: rgba(200, 255, 61, .6);
}

.page-products .dl-faq .faq__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--score);
}

.page-products .dl-faq .faq__button::-webkit-details-marker {
  display: none;
}

.page-products .dl-faq .faq__button::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--green);
}

.page-products .dl-faq .faq__item[open] .faq__button::after {
  content: "−";
}

.page-products .dl-faq .faq__panel {
  padding: 0 20px 20px;
}

.page-products .dl-faq .faq__panel p {
  font-size: 15px;
  line-height: 1.82;
  color: var(--mist);
}

/* ---------- 结尾 ---------- */
.page-products .dl-cta {
  padding: clamp(52px, 7vw, 100px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(118deg, rgba(255, 106, 26, .18) 0%, rgba(123, 91, 255, .16) 52%, rgba(6, 26, 46, 0) 80%),
    var(--panel);
}

.page-products .dl-cta__inner {
  display: grid;
  gap: 20px;
  max-width: 760px;
}

.page-products .dl-cta__text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--mist);
}

.page-products .dl-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}

/* ---------- 响应式收紧 ---------- */
@media (max-width: 600px) {
  .page-products .dl-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-products .dl-stats__item {
    padding: 16px 14px;
  }

  .page-products .dl-points__item {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 14px;
  }

  .page-products .dl-log__item {
    flex-basis: 82vw;
  }

  .page-products .dl-section--paper {
    clip-path: polygon(0 1.4%, 100% 0, 100% 98.6%, 0 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .dl-log__item,
  .page-products .dl-specs__row,
  .page-products .dl-faq .faq__item {
    transition: none;
  }

  .page-products .dl-log__item:hover {
    transform: none;
  }
}
