.page-products {
  --dl-gap-s: 56px;
  --dl-gap-l: 80px;
  --dl-ink-soft: rgba(244, 241, 234, 0.78);
  --dl-ink-faint: rgba(244, 241, 234, 0.58);
  --dl-ink-dark: rgba(11, 13, 12, 0.78);
  --dl-rule: rgba(244, 241, 234, 0.15);

  display: block;
  background-color: var(--grass-900);
  background-image:
    radial-gradient(120% 60% at 88% -6%, rgba(255, 106, 19, 0.14), transparent 62%),
    radial-gradient(90% 46% at 4% 42%, rgba(6, 26, 58, 0.55), transparent 66%);
  color: var(--paper);
  font-family: var(--font);
  overflow-x: hidden;
}

.page-products > .shell {
  padding-top: 22px;
}

.page-products h1,
.page-products h2,
.page-products h3 {
  letter-spacing: -0.02em;
}

/* ---------- 首屏 ---------- */

.page-products .dl-hero {
  padding: 24px 0 44px;
}

.page-products .dl-hero h1 {
  margin: 14px 0 18px;
  max-width: 17ch;
  font-size: clamp(2rem, 8.6vw, 3.5rem);
  font-weight: 900;
  line-height: 1.05;
}

.page-products .dl-hero__lead {
  max-width: 62ch;
  margin: 0;
  font-size: 1rem;
  line-height: 1.82;
  color: var(--dl-ink-soft);
}

.page-products .dl-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  border: 1px solid var(--dl-rule);
  background-color: var(--dl-rule);
}

.page-products .dl-stat {
  padding: 16px 14px;
  background-color: var(--grass-800);
}

.page-products .dl-stat__v {
  display: block;
  font-family: var(--mono);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--neon);
}

.page-products .dl-stat__l {
  display: block;
  margin-top: 7px;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--dl-ink-faint);
}

/* ---------- 章节通用 ---------- */

.page-products .sect {
  padding: var(--dl-gap-s) 0;
  border-top: 1px solid var(--dl-rule);
}

.page-products .sect h2 {
  margin: 12px 0 18px;
  max-width: 24ch;
  font-size: clamp(1.4rem, 5.4vw, 2.125rem);
  font-weight: 900;
  line-height: 1.18;
}

.page-products .sect__lead {
  max-width: 64ch;
  margin: 0 0 4px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--dl-ink-soft);
}

.page-products .sect__note {
  max-width: 64ch;
  margin: 20px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--orange);
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--dl-ink-faint);
}

/* ---------- 取用路径 ---------- */

.page-products .path-tree {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.page-products .path-node {
  position: relative;
  padding: 0 0 30px 56px;
}

.page-products .path-node:last-child {
  padding-bottom: 0;
}

.page-products .path-node::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 42px;
  bottom: 4px;
  width: 2px;
  background-image: linear-gradient(180deg, var(--orange), rgba(255, 106, 19, 0.1));
}

.page-products .path-node:last-child::before {
  display: none;
}

.page-products .path-node__idx {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  background-color: var(--grass-900);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--neon);
}

.page-products .path-node__t {
  margin: 0 0 6px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
}

.page-products .path-node__d {
  margin: 0;
  max-width: 46ch;
  font-size: 0.9375rem;
  line-height: 1.72;
  color: var(--dl-ink-faint);
}

/* ---------- 文件面板 ---------- */

.page-products .file-stack {
  margin-top: 26px;
}

.page-products .file-panel {
  border: 1px solid var(--dl-rule);
  border-left: 3px solid var(--grass-700);
  background-color: var(--grass-800);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.page-products .file-panel + .file-panel {
  margin-top: 10px;
}

.page-products .file-panel[open] {
  border-left-color: var(--neon);
  background-color: var(--grass-700);
}

.page-products .file-panel > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 14px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.page-products .file-panel > summary::-webkit-details-marker {
  display: none;
}

.page-products .file-panel > summary::before {
  content: "+";
  grid-column: 2;
  grid-row: 1 / span 2;
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  color: var(--orange);
}

.page-products .file-panel[open] > summary::before {
  content: "\2212";
  color: var(--neon);
}

.page-products .file-panel__name {
  grid-column: 1;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
}

.page-products .file-panel__meta {
  grid-column: 1;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.03em;
  line-height: 1.5;
  color: var(--dl-ink-faint);
}

.page-products .file-panel[open] .file-panel__meta {
  color: var(--neon);
}

.page-products .file-panel__body {
  padding: 2px 18px 20px;
}

.page-products .file-panel__body p {
  margin: 0;
  max-width: 68ch;
  font-size: 0.9375rem;
  line-height: 1.78;
  color: var(--dl-ink-soft);
}

/* ---------- 图片 ---------- */

.page-products .dl-figure {
  margin: 28px 0 0;
}

.page-products .dl-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--dl-rule);
  object-fit: cover;
}

.page-products .dl-figure figcaption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: var(--dl-ink-faint);
}

.page-products .dl-figure--phone {
  max-width: 300px;
  margin-inline: auto;
}

/* ---------- 纸白面板 ---------- */

.page-products .dl-paper {
  padding: 28px 20px;
  background-color: var(--paper);
  color: var(--ink);
}

.page-products .dl-paper .section-label {
  color: var(--grass-700);
}

.page-products .dl-paper h2 {
  margin: 10px 0 16px;
  max-width: 20ch;
  font-size: clamp(1.35rem, 5.2vw, 2rem);
  font-weight: 900;
  line-height: 1.18;
  color: var(--ink);
}

.page-products .dl-paper__lead {
  max-width: 64ch;
  margin: 0 0 6px;
  font-size: 0.9375rem;
  line-height: 1.82;
  color: var(--dl-ink-dark);
}

.page-products .dl-paper .dl-figure img {
  border-color: rgba(11, 13, 12, 0.14);
}

.page-products .dl-paper .dl-figure figcaption {
  color: rgba(11, 13, 12, 0.55);
}

.page-products .rule-grid {
  display: grid;
  gap: 20px;
  margin-top: 26px;
}

.page-products .rule-item {
  padding-top: 12px;
  border-top: 2px solid var(--orange);
}

.page-products .rule-item h3 {
  margin: 0 0 7px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.page-products .rule-item p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--dl-ink-dark);
}

/* ---------- 字段表 ---------- */

.page-products .table-scroll {
  margin-top: 22px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-products .dl-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.page-products .dl-table caption {
  caption-side: top;
  padding: 0 0 10px;
  text-align: left;
  font-family: var(--font);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--dl-ink-faint);
}

.page-products .dl-table th {
  padding: 10px 14px;
  text-align: left;
  white-space: nowrap;
  background-color: var(--grass-700);
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.page-products .dl-table td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(11, 13, 12, 0.1);
  vertical-align: top;
}

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

.page-products .dl-table td:first-child {
  font-weight: 600;
  color: var(--grass-700);
}

.page-products .dl-table tbody tr:hover td {
  background-color: rgba(232, 255, 58, 0.28);
}

.page-products .dl-code {
  margin: 22px 0 0;
  padding: 18px 16px;
  overflow-x: auto;
  border: 1px solid var(--dl-rule);
  border-left: 3px solid var(--orange);
  background-color: rgba(0, 0, 0, 0.3);
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.85;
  color: rgba(244, 241, 234, 0.85);
}

.page-products .dl-code code {
  font-family: inherit;
}

/* ---------- 更新节奏 ---------- */

.page-products .cadence {
  display: grid;
  gap: 1px;
  margin-top: 24px;
  border: 1px solid var(--dl-rule);
  background-color: var(--dl-rule);
}

.page-products .cadence__row {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  background-color: var(--grass-800);
}

.page-products .cadence__k {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
}

.page-products .cadence__v {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--neon);
}

.page-products .history {
  margin: 30px 0 0;
  padding: 0 0 0 24px;
  list-style: none;
  border-left: 2px solid rgba(255, 106, 19, 0.35);
}

.page-products .history__item {
  position: relative;
  padding-bottom: 22px;
}

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

.page-products .history__item::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 106, 19, 0.16);
}

.page-products .history__when {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--orange-soft);
}

.page-products .history__what {
  display: block;
  margin-top: 6px;
  max-width: 60ch;
  font-size: 0.9375rem;
  line-height: 1.72;
  color: var(--dl-ink-soft);
}

/* ---------- 使用场景 ---------- */

.page-products .use-grid {
  display: grid;
  gap: 1px;
  margin-top: 26px;
  background-color: var(--dl-rule);
}

.page-products .use-card {
  position: relative;
  padding: 22px 20px;
  background-color: var(--grass-800);
}

.page-products .use-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 40px;
  background-color: var(--orange);
}

.page-products .use-card__n {
  display: block;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--orange);
}

.page-products .use-card h3 {
  margin: 10px 0 8px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
}

.page-products .use-card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.76;
  color: var(--dl-ink-soft);
}

/* ---------- 取用步骤 ---------- */

.page-products .dl-steps {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: dlstep;
}

.page-products .dl-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px 16px;
  padding: 20px 0;
  border-top: 1px solid var(--dl-rule);
  counter-increment: dlstep;
}

.page-products .dl-step::before {
  content: counter(dlstep, decimal-leading-zero);
  grid-column: 1;
  padding-top: 3px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--neon);
}

.page-products .dl-step > div {
  grid-column: 2;
}

.page-products .dl-step h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.page-products .dl-step p {
  margin: 0;
  max-width: 60ch;
  font-size: 0.9375rem;
  line-height: 1.76;
  color: var(--dl-ink-soft);
}

.page-products .dl-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ---------- 响应式 ---------- */

@media (min-width: 640px) {
  .page-products .dl-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-products .dl-stat {
    padding: 20px 18px;
  }

  .page-products .dl-stat__v {
    font-size: 1.625rem;
  }

  .page-products .dl-paper {
    padding: 40px 36px;
  }

  .page-products .dl-cta {
    margin-top: 38px;
  }

  .page-products .dl-figure--phone {
    margin-inline: 0;
  }
}

@media (min-width: 820px) {
  .page-products > .shell {
    padding-top: 32px;
  }

  .page-products .dl-hero {
    padding: 40px 0 64px;
  }

  .page-products .sect {
    padding: var(--dl-gap-l) 0;
  }

  .page-products .path-tree {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
  }

  .page-products .path-node {
    padding: 54px 0 0;
  }

  .page-products .path-node::before {
    left: 44px;
    right: -22px;
    top: 18px;
    bottom: auto;
    width: auto;
    height: 2px;
    background-image: linear-gradient(90deg, var(--orange), rgba(255, 106, 19, 0.22));
  }

  .page-products .path-node__idx {
    width: 38px;
    height: 38px;
  }

  .page-products .rule-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
  }

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

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

  .page-products .file-panel > summary {
    padding: 20px 22px;
  }

  .page-products .file-panel__name {
    font-size: 1.1875rem;
  }

  .page-products .file-panel__body {
    padding: 4px 22px 24px;
  }

  .page-products .dl-paper {
    padding: 52px 48px;
  }

  .page-products .dl-figure--phone {
    max-width: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .file-panel,
  .page-products .dl-figure img {
    transition: none;
  }
}
