.page-products {
  --dl-hair: rgba(169, 191, 204, 0.22);
  --dl-hair-strong: rgba(169, 191, 204, 0.34);
  --dl-card-bg: rgba(14, 44, 69, 0.62);
  --dl-shadow: 0 30px 70px -50px rgba(0, 0, 0, 0.95);
  display: block;
}

/* ---------- 首屏 ---------- */
.page-products .dl-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 5vw, 52px) 0 clamp(36px, 6vw, 72px);
}

.page-products .dl-hero::before {
  content: "";
  position: absolute;
  inset: -10% -5% 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 58%, rgba(43, 227, 176, 0.09) 58%, rgba(43, 227, 176, 0.09) 58.4%, transparent 58.4%),
    linear-gradient(115deg, transparent 74%, rgba(43, 227, 176, 0.06) 74%, rgba(43, 227, 176, 0.06) 74.4%, transparent 74.4%),
    radial-gradient(120% 90% at 92% -20%, rgba(255, 176, 32, 0.14), transparent 62%);
}

.page-products .dl-hero > .shell {
  position: relative;
}

.page-products .dl-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 6.6vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 16px 0 0;
  max-width: 18ch;
}

.page-products .dl-lede {
  margin: 20px 0 0;
  max-width: 40em;
  color: var(--text-muted);
}

.page-products .dl-hero-facts {
  margin-top: clamp(26px, 4vw, 44px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--dl-hair);
  border: 1px solid var(--dl-hair);
  border-radius: 14px;
  overflow: hidden;
}

.page-products .dl-fact {
  background: rgba(7, 26, 43, 0.94);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.page-products .dl-fact .stat-value {
  font-family: var(--font-mono);
  font-size: clamp(20px, 4.4vw, 28px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--amber);
}

.page-products .dl-fact .stat-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ---------- 通用区块头 ---------- */
.page-products .dl-sec-head {
  max-width: 56ch;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.page-products .dl-sec-head h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 4.4vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 12px 0 0;
}

.page-products .dl-sec-note {
  margin: 14px 0 0;
  color: var(--text-muted);
}

/* ---------- 版本卡片 ---------- */
.page-products .dl-version-layout {
  display: grid;
  gap: 28px;
}

.page-products .dl-version-cards {
  display: grid;
  gap: 20px;
  padding-bottom: 8px;
}

.page-products .dl-vcard {
  position: relative;
  padding: 30px 22px 24px;
  background: var(--dl-card-bg);
  border: 1px solid var(--dl-hair);
  border-radius: var(--r-card);
  box-shadow: var(--dl-shadow);
  min-width: 0;
}

.page-products .dl-vcard--lead {
  border-color: var(--accent-line);
  background:
    linear-gradient(180deg, rgba(43, 227, 176, 0.12), rgba(14, 44, 69, 0.68) 44%);
  box-shadow: 0 0 0 1px rgba(43, 227, 176, 0.16), var(--dl-shadow);
}

.page-products .dl-vcard .paper-tag {
  position: absolute;
  top: 0;
  left: 20px;
  transform: translateY(-50%);
}

.page-products .dl-vcard-ver {
  font-family: var(--font-mono);
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--amber);
  margin: 6px 0 0;
}

.page-products .dl-vcard-name {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.02em;
  margin: 10px 0 0;
  color: var(--text);
}

.page-products .dl-vcard-spec {
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px dashed var(--dl-hair-strong);
  display: grid;
  gap: 10px;
}

.page-products .dl-vcard-spec > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
}

.page-products .dl-vcard-spec dt {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  flex: 0 0 auto;
}

.page-products .dl-vcard-spec dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-align: right;
  min-width: 0;
}

.page-products .dl-vcard-note {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

.page-products .dl-version-shot {
  margin: 0;
}

/* ---------- 媒体框 ---------- */
.page-products .media-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--dl-hair);
  border-radius: 16px;
  background: var(--night-800);
}

.page-products .media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms var(--ease);
}

.page-products .media-frame--3x4 { aspect-ratio: 3 / 4; }
.page-products .media-frame--4x3 { aspect-ratio: 4 / 3; }
.page-products .media-frame--1x1 { aspect-ratio: 1 / 1; }
.page-products .dl-frame-2x1 { aspect-ratio: 2 / 1; }
.page-products .dl-frame-16x9 { aspect-ratio: 16 / 9; }

.page-products .media-caption {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ---------- 视频集锦 ---------- */
.page-products .dl-video-grid {
  display: grid;
  gap: 30px;
}

.page-products .dl-video-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 4.4vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 12px 0 0;
}

.page-products .dl-video-copy > p {
  margin: 16px 0 0;
  color: var(--text-muted);
}

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

.page-products .dl-reel-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 14px 16px;
  border-radius: 12px;
  border-left: 3px solid var(--mint);
  background: rgba(14, 44, 69, 0.55);
  font-size: 15px;
  line-height: 1.65;
}

.page-products .dl-reel-list .mono {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--mint);
  line-height: 1.2;
}

.page-products .dl-reel-shot:hover img,
.page-products .dl-version-shot:hover img {
  transform: scale(1.02);
}

/* ---------- 版本历史 ---------- */
.page-products .dl-history-figure {
  margin-bottom: clamp(24px, 4vw, 40px);
}

.page-products .dl-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--dl-hair);
  border-radius: 16px;
  background: rgba(7, 26, 43, 0.6);
}

.page-products .dl-table-wrap:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

.page-products .dl-table-caption {
  caption-side: top;
  text-align: left;
  padding: 16px 20px 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.page-products .dl-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 15px;
}

.page-products .dl-table th,
.page-products .dl-table td {
  text-align: left;
  padding: 18px 20px;
  vertical-align: top;
  border-bottom: 1px solid var(--dl-hair);
  line-height: 1.7;
}

.page-products .dl-table thead th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  background: rgba(14, 44, 69, 0.85);
  white-space: nowrap;
}

.page-products .dl-table tbody th {
  font-family: var(--font-mono);
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--amber);
  white-space: nowrap;
}

.page-products .dl-table tbody tr {
  transition: background-color var(--ease);
}

.page-products .dl-table tbody tr:hover {
  background: rgba(43, 227, 176, 0.08);
}

.page-products .dl-table tbody tr:last-child th,
.page-products .dl-table tbody tr:last-child td {
  border-bottom: 0;
}

.page-products .dl-row-current {
  background: rgba(43, 227, 176, 0.06);
  box-shadow: inset 3px 0 0 var(--mint);
}

/* ---------- 机型适配 ---------- */
.page-products .dl-device-grid {
  row-gap: 28px;
}

.page-products .dl-device-aside h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.6vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 12px 0 0;
}

.page-products .dl-device-hint {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

.page-products .dl-device-body > p {
  margin: 22px 0 0;
  color: var(--text-muted);
}

.page-products .dl-os-matrix {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 10px;
}

.page-products .dl-os-chip {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 12px;
  border-radius: 12px;
  border: 1px solid var(--accent-line);
  background: linear-gradient(180deg, rgba(43, 227, 176, 0.18), rgba(43, 227, 176, 0.04));
  min-width: 0;
}

.page-products .dl-os-chip .mono {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  line-height: 1.3;
}

.page-products .dl-os-chip em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mint);
}

.page-products .dl-device-body .btn {
  margin-top: 26px;
}

/* ---------- 三步安装 ---------- */
.page-products .dl-step-layout {
  display: grid;
  gap: 32px;
}

.page-products .dl-step-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-products .dl-step {
  position: relative;
  padding: 0 0 34px 62px;
  min-height: 44px;
}

.page-products .dl-step:last-child {
  padding-bottom: 0;
}

.page-products .dl-step::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 50px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent-line), rgba(43, 227, 176, 0.05));
}

.page-products .dl-step:last-child::before {
  display: none;
}

.page-products .dl-step-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--accent-line);
  background: var(--night-800);
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--amber);
}

.page-products .dl-step h3 {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.4;
  margin: 10px 0 0;
  letter-spacing: 0.01em;
}

.page-products .dl-step p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
}

.page-products .dl-step-shot {
  margin: 0;
}

/* ---------- 更新节奏 ---------- */
.page-products .dl-update-grid {
  display: grid;
  gap: 30px;
}

.page-products .dl-update-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 4.4vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 12px 0 0;
}

.page-products .dl-update-copy > p {
  margin: 16px 0 0;
  color: var(--text-muted);
}

.page-products .dl-update-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.page-products .dl-update-shot {
  margin: 0;
}

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

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

  .page-products .dl-vcard--lead {
    grid-column: 1 / -1;
  }
}

@media (min-width: 880px) {
  .page-products .dl-video-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr);
    align-items: center;
    gap: 52px;
  }

  .page-products .dl-update-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 52px;
  }

  .page-products .dl-device-grid {
    column-gap: 40px;
  }
}

@media (min-width: 960px) {
  .page-products .dl-version-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: start;
    gap: 48px;
  }

  .page-products .dl-version-cards {
    padding-bottom: 40px;
  }

  .page-products .dl-vcard:nth-child(2) {
    margin-top: 38px;
  }

  .page-products .dl-step-layout {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: start;
    gap: 60px;
  }

  .page-products .dl-step-shot {
    margin-top: 8px;
  }
}

@media (min-width: 1100px) {
  .page-products .dl-title {
    max-width: 16ch;
  }

  .page-products .dl-version-shot img {
    min-height: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .media-frame img {
    transition: none;
  }

  .page-products .dl-table tbody tr {
    transition: none;
  }

  .page-products .dl-reel-shot:hover img,
  .page-products .dl-version-shot:hover img {
    transform: none;
  }
}
