.page-app-download {
  --dl-hero-pt: var(--space-6);
}

/* ---------- 面包屑微调 ---------- */
.page-app-download .breadcrumb {
  padding-top: var(--space-4);
  padding-bottom: var(--space-2);
  font-size: var(--text-xs);
}

/* ---------- 首屏 ---------- */
.page-app-download .dl-hero {
  position: relative;
  padding-block: var(--dl-hero-pt) var(--space-8);
  border-bottom: 1px dotted var(--color-line);
  background-image: radial-gradient(color-mix(in srgb, var(--color-line) 72%, transparent) 1px, transparent 1px);
  background-size: 28px 28px;
}

.page-app-download .dl-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  align-items: end;
}

.page-app-download .dl-hero__coord {
  margin: 0;
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  color: var(--color-ink-muted);
}

.page-app-download .dl-hero__title {
  margin: var(--space-2) 0 0;
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  font-size: var(--text-display);
  line-height: 1.02;
  letter-spacing: 0.05em;
  color: var(--color-ink);
}

.page-app-download .dl-hero__lede {
  max-width: var(--measure);
  margin: var(--space-4) 0 0;
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-ink-soft);
}

.page-app-download a {
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}

.page-app-download a:hover {
  background: var(--color-highlight);
}

.page-app-download a:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.page-app-download .dl-hero__figures {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin: var(--space-6) 0 0;
  padding-top: var(--space-3);
  border-top: 1px dotted var(--color-line);
}

.page-app-download .dl-fig {
  display: flex;
  flex-direction: column-reverse;
  gap: var(--space-1);
}

.page-app-download .dl-fig__num {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--text-figure);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}

.page-app-download .dl-fig__label {
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  color: var(--color-ink-muted);
}

.page-app-download .dl-hero__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
}

.page-app-download .dl-hero__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-app-download .dl-skel {
  position: absolute;
  left: var(--space-4);
  right: var(--space-4);
  bottom: var(--space-8);
  z-index: 3;
  display: grid;
  border: 1px solid var(--color-contrast-accent);
  background: color-mix(in srgb, var(--color-contrast-surface) 76%, transparent);
}

.page-app-download .dl-skel__head {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--color-contrast-line);
}

.page-app-download .dl-skel__cell {
  padding: var(--space-1) var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  color: var(--color-contrast-accent);
  border-right: 1px dotted var(--color-contrast-line);
}

.page-app-download .dl-skel__cell:last-child {
  border-right: 0;
}

.page-app-download .dl-skel__row {
  height: var(--space-2);
  border-bottom: 1px dotted var(--color-contrast-line);
}

.page-app-download .dl-skel__row:last-child {
  border-bottom: 0;
}

/* ---------- 方案概览 ---------- */
.page-app-download .dl-schemes {
  padding-block: var(--section-y) var(--space-8);
}

.page-app-download .dl-band {
  margin: var(--space-6) 0 var(--space-8);
  position: relative;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.page-app-download .dl-band img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-app-download .dl-schemes__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.page-app-download .dl-scheme {
  padding-block: var(--space-4);
  border-top: 1px dotted var(--color-line);
}

.page-app-download .dl-scheme--a {
  background: linear-gradient(180deg, color-mix(in srgb, var(--color-primary-soft) 62%, transparent), transparent 78%);
}

.page-app-download .dl-scheme__idx {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  color: var(--color-primary);
}

.page-app-download .dl-scheme__name {
  margin: var(--space-2) 0;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-heading);
  letter-spacing: 0.05em;
  color: var(--color-ink);
}

.page-app-download .dl-scheme__desc {
  margin: 0 0 var(--space-3);
  max-width: 42ch;
  font-size: var(--text-sm);
  line-height: var(--leading-body);
  color: var(--color-ink-soft);
}

.page-app-download .dl-scheme__kv {
  margin-bottom: var(--space-3);
}

/* ---------- 对照矩阵 ---------- */
.page-app-download .dl-matrix {
  padding-block: var(--section-y);
  background: var(--color-surface-alt);
  border-block: 1px dotted var(--color-line);
}

.page-app-download .dl-matrix__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.page-app-download .dl-table__scroll {
  overflow-x: auto;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
}

.page-app-download .dl-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.page-app-download .dl-table__caption {
  caption-side: top;
  text-align: left;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  line-height: var(--leading-body);
  color: var(--color-ink-muted);
  border-bottom: 1px dotted var(--color-line);
}

.page-app-download .dl-table th,
.page-app-download .dl-table td {
  padding: var(--space-2) var(--space-3);
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
  color: var(--color-ink);
  border-bottom: 1px dotted var(--color-line);
}

.page-app-download .dl-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--color-surface-deep);
  border-bottom: 1px solid var(--color-line);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--color-primary);
  white-space: nowrap;
}

.page-app-download .dl-table tbody th {
  width: 20%;
  font-weight: 400;
}

.page-app-download .dl-table__idx {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  color: var(--color-ink-muted);
}

.page-app-download .dl-table tbody tr:nth-child(even) {
  background: var(--color-surface-alt);
}

.page-app-download .dl-table tbody td:nth-child(2) {
  background: color-mix(in srgb, var(--color-primary-soft) 58%, transparent);
}

.page-app-download .dl-table tbody tr:hover > :is(th, td) {
  background: color-mix(in srgb, var(--color-highlight) 42%, transparent);
}

.page-app-download .dl-table:has(td:nth-child(2):hover) :is(th, td):nth-child(2),
.page-app-download .dl-table:has(td:nth-child(3):hover) :is(th, td):nth-child(3),
.page-app-download .dl-table:has(td:nth-child(4):hover) :is(th, td):nth-child(4) {
  background: var(--color-highlight);
}

.page-app-download .dl-matrix__side {
  display: grid;
  gap: var(--space-4);
  align-content: start;
}

.page-app-download .dl-matrix__side .frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
}

.page-app-download .dl-matrix__side .frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-app-download .dl-legend {
  list-style: none;
  margin: 0 0 var(--space-3);
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.page-app-download .dl-legend li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  line-height: 1.6;
  color: var(--color-contrast-ink);
}

.page-app-download .panel--dark a {
  color: var(--color-contrast-accent);
  border-bottom-color: var(--color-contrast-line);
}

.page-app-download .dl-matrix__note .panel__body p {
  margin: 0;
  font-size: var(--text-sm);
  line-height: var(--leading-body);
  color: var(--color-contrast-ink);
}

/* ---------- 准备清单 ---------- */
.page-app-download .dl-prep {
  padding-block: var(--section-y);
}

.page-app-download .dl-prep__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.page-app-download .dl-prep__visual .frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
}

.page-app-download .dl-prep__visual .frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-app-download .dl-prep__hint {
  margin: var(--space-3) 0 0;
  padding-left: var(--space-2);
  border-left: 1px solid var(--color-primary);
  font-size: var(--text-xs);
  line-height: 1.7;
  color: var(--color-ink-muted);
}

.page-app-download .dl-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-app-download .dl-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-3);
  padding-block: var(--space-3);
  border-bottom: 1px dotted var(--color-line);
}

.page-app-download .dl-check:first-child {
  border-top: 1px dotted var(--color-line);
}

.page-app-download .dl-check__num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  color: var(--color-primary);
}

.page-app-download .dl-check__title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-heading);
  letter-spacing: 0.04em;
  color: var(--color-ink);
}

.page-app-download .dl-check__std {
  margin: 0 0 var(--space-2);
  max-width: var(--measure);
  font-size: var(--text-sm);
  line-height: var(--leading-body);
  color: var(--color-ink-soft);
}

/* ---------- 选择建议 ---------- */
.page-app-download .dl-advice {
  padding-block: var(--section-y);
}

.page-app-download .dl-advice__list {
  list-style: none;
  margin: var(--space-6) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}

.page-app-download .dl-advice__item {
  padding-top: var(--space-3);
  border-top: 1px dotted var(--color-line);
}

.page-app-download .dl-advice__idx {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  color: var(--color-accent);
}

.page-app-download .dl-advice__title {
  margin: var(--space-2) 0;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-heading);
  letter-spacing: 0.04em;
  color: var(--color-ink);
}

.page-app-download .dl-advice__body {
  margin: 0;
  max-width: var(--measure);
  font-size: var(--text-sm);
  line-height: var(--leading-body);
  color: var(--color-ink-soft);
}

.page-app-download .dl-advice__note {
  margin: var(--space-6) 0 0;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-line);
  font-size: var(--text-xs);
  line-height: 1.7;
  color: var(--color-ink-muted);
}

/* ---------- 边界声明 ---------- */
.page-app-download .dl-scope {
  padding-block: var(--space-6) var(--section-y);
}

.page-app-download .dl-scope__list {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.page-app-download .dl-scope__list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-2);
  font-size: var(--text-sm);
  line-height: var(--leading-body);
  color: var(--color-contrast-ink);
}

.page-app-download .dl-scope__mark {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  color: var(--color-contrast-accent);
}

.page-app-download .dl-scope__links {
  margin: 0;
  padding-top: var(--space-3);
  border-top: 1px dotted var(--color-contrast-line);
  font-size: var(--text-xs);
  line-height: 1.8;
  color: var(--color-contrast-ink);
}

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

  .page-app-download .dl-scheme {
    padding-inline: var(--space-4);
    border-top: 0;
    border-left: 1px dotted var(--color-line);
  }

  .page-app-download .dl-scheme:first-child {
    padding-inline-start: 0;
    border-left: 0;
  }

  .page-app-download .dl-scheme:last-child {
    padding-inline-end: 0;
  }

  .page-app-download .dl-advice__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4) var(--space-6);
  }
}

@media (min-width: 960px) {
  .page-app-download .dl-hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--space-6);
  }
}

@media (min-width: 1080px) {
  .page-app-download .dl-matrix__layout {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  }

  .page-app-download .dl-prep__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: var(--space-8);
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-app-download .dl-scheme,
  .page-app-download .dl-check,
  .page-app-download .dl-table thead th {
    transition: none;
  }
}
