/* ============================================================
   下载中心 · page-products
   ============================================================ */

.page-products {
  --dl-sec-pad: clamp(56px, 8vw, 104px);
  background: var(--ink);
  color: var(--text);
  overflow-x: clip;
}

.page-products img {
  max-width: 100%;
  height: auto;
}

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

.page-products .dl-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(80px, 12vw, 136px) 0 clamp(36px, 6vw, 64px);
  border-bottom: 1px solid var(--line-soft);
}

.page-products .dl-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(42, 74, 66, 0.75) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(42, 74, 66, 0.75) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(130% 95% at 72% 0%, #000 0%, transparent 76%);
  mask-image: radial-gradient(130% 95% at 72% 0%, #000 0%, transparent 76%);
  pointer-events: none;
}

.page-products .dl-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(58% 52% at 84% 6%, rgba(30, 156, 134, 0.34), transparent 68%),
    radial-gradient(46% 42% at 4% 96%, rgba(255, 122, 47, 0.14), transparent 70%);
  pointer-events: none;
}

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

.page-products .dl-hero .bs-crumb {
  margin-bottom: clamp(24px, 4vw, 40px);
}

.page-products .dl-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

.page-products .dl-hero__title {
  margin: 16px 0 0;
  font-family: var(--font-narrow);
  font-size: clamp(2rem, 7vw, 4.25rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--text);
}

.page-products .dl-lead {
  margin: clamp(18px, 3vw, 26px) 0 0;
  max-width: 640px;
  font-size: var(--fs-16);
  line-height: 1.9;
  color: var(--muted);
}

.page-products .dl-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 4vw, 36px);
}

/* ------------------------- 版本标牌 ------------------------- */

.page-products .dl-version {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 22px 22px 20px;
}

.page-products .dl-version__tag {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
}

.page-products .dl-version__num {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: clamp(2.25rem, 8vw, 3.25rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--text);
}

.page-products .dl-version__meta {
  list-style: none;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 10px;
}

.page-products .dl-version__meta li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: var(--fs-14);
}

.page-products .dl-version__k {
  flex: 0 0 auto;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.page-products .dl-version__v {
  margin-left: auto;
  text-align: right;
  font-family: var(--font-mono);
  color: var(--text);
  letter-spacing: 0.02em;
}

/* ------------------------- 数据条 ------------------------- */

.page-products .dl-stats {
  list-style: none;
  margin: clamp(32px, 5vw, 52px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-products .dl-stats__item {
  background: var(--ink-2);
  padding: 16px 18px 18px;
}

.page-products .dl-stats__num {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-28);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--cyan);
}

.page-products .dl-stats__label {
  display: block;
  margin-top: 6px;
  font-size: var(--fs-14);
  color: var(--muted);
}

/* ------------------------- 章节骨架 ------------------------- */

.page-products .dl-sec {
  padding: var(--dl-sec-pad) 0;
  border-bottom: 1px solid var(--line-soft);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.page-products .dl-head {
  max-width: 760px;
  margin-bottom: clamp(26px, 4vw, 44px);
}

.page-products .dl-head__num {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.24em;
  color: var(--cyan);
}

.page-products .dl-h2 {
  margin: 12px 0 0;
  font-family: var(--font-narrow);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--text);
}

.page-products .dl-head__desc {
  margin: 14px 0 0;
  max-width: 620px;
  font-size: var(--fs-16);
  line-height: 1.85;
  color: var(--muted);
}

/* ------------------------- 01 两种访问方式 ------------------------- */

.page-products .dl-ends {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.page-products .dl-end {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 22px 26px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
}

.page-products .dl-end--mobile {
  border-color: rgba(59, 232, 198, 0.34);
}

.page-products .dl-end__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.18em;
  color: var(--muted);
}

.page-products .dl-end__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 122, 47, 0.16);
}

.page-products .dl-end--mobile .dl-end__dot {
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(59, 232, 198, 0.16);
}

.page-products .dl-end__title {
  margin: 0;
  font-size: var(--fs-20);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

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

.page-products .dl-end__list li {
  position: relative;
  padding-left: 18px;
  font-size: var(--fs-16);
  line-height: 1.8;
  color: var(--muted);
}

.page-products .dl-end__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 1px;
  background: var(--teal);
}

.page-products .dl-end__figure {
  margin: 8px 0 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-2);
}

.page-products .dl-end--mobile .dl-end__figure {
  max-width: 288px;
  margin-inline: auto;
}

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

/* ------------------------- 02 导航结构 ------------------------- */

.page-products .dl-map__figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(140deg, #0E1D19 0%, #122A24 100%);
}

.page-products .dl-map__figure img {
  display: block;
  width: 100%;
  height: auto;
}

.page-products .dl-map__cap {
  margin: 10px 2px 0;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.1em;
  color: var(--muted);
}

.page-products .dl-tree {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: clamp(22px, 3vw, 32px);
}

.page-products .dl-node {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 240ms var(--ease);
}

.page-products .dl-node[open] {
  border-color: rgba(59, 232, 198, 0.42);
}

.page-products .dl-node > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--text);
  transition: color 240ms var(--ease);
}

.page-products .dl-node > summary::-webkit-details-marker {
  display: none;
}

.page-products .dl-node > summary:hover {
  color: var(--cyan);
}

.page-products .dl-node__idx {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.1em;
  color: var(--orange);
}

.page-products .dl-node__name {
  font-size: var(--fs-16);
  font-weight: 700;
}

.page-products .dl-node__count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.04em;
  color: var(--muted);
}

.page-products .dl-node > summary::after {
  content: "＋";
  font-family: var(--font-mono);
  font-size: var(--fs-14);
  color: var(--cyan);
}

.page-products .dl-node[open] > summary::after {
  content: "－";
}

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

.page-products .dl-node__list li {
  position: relative;
  padding-left: 14px;
  font-size: var(--fs-14);
  line-height: 1.75;
  color: var(--muted);
}

.page-products .dl-node__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 1px;
  background: var(--teal);
}

/* ------------------------- 03 球会栏目 ------------------------- */

.page-products .dl-club {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}

.page-products .dl-fields {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-products .dl-field {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding: 15px 18px;
  background: var(--panel);
}

.page-products .dl-field__num {
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.12em;
  color: var(--orange);
}

.page-products .dl-field__body {
  display: block;
}

.page-products .dl-field__body strong {
  display: block;
  font-size: var(--fs-16);
  font-weight: 700;
  color: var(--text);
}

.page-products .dl-field__body span {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-14);
  line-height: 1.7;
  color: var(--muted);
}

.page-products .dl-club__figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, #101F1B 0%, #16302A 100%);
}

.page-products .dl-club__figure img {
  display: block;
  width: 100%;
  height: auto;
}

.page-products .dl-pin {
  margin: clamp(22px, 3vw, 32px) 0 0;
  padding: 16px 18px;
  border-left: 2px solid var(--cyan);
  background: rgba(59, 232, 198, 0.07);
  font-size: var(--fs-14);
  line-height: 1.85;
  color: var(--muted);
}

.page-products .dl-pin strong {
  color: var(--text);
}

/* ------------------------- 04 记录导出 ------------------------- */

.page-products .dl-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.page-products .dl-step {
  position: relative;
  padding: 20px 18px 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 240ms var(--ease), transform 240ms var(--ease);
}

.page-products .dl-step:hover,
.page-products .dl-step:focus-within {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.page-products .dl-step__num {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.22em;
  color: var(--cyan);
}

.page-products .dl-step__title {
  margin: 10px 0 0;
  font-size: var(--fs-16);
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}

.page-products .dl-step__desc {
  margin: 8px 0 0;
  font-size: var(--fs-14);
  line-height: 1.75;
  color: var(--muted);
}

.page-products .dl-export__figure {
  margin: clamp(26px, 4vw, 40px) 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(120deg, #0E1D19 0%, #102A24 100%);
}

.page-products .dl-export__figure img {
  display: block;
  width: 100%;
  height: auto;
}

.page-products .dl-export__note {
  margin: 16px 0 0;
  max-width: 680px;
  font-family: var(--font-serif);
  font-size: var(--fs-16);
  line-height: 1.9;
  color: var(--muted);
}

/* ------------------------- 05 版本与异常 ------------------------- */

.page-products .dl-vers {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 4vw, 40px);
  align-items: start;
}

.page-products .dl-issues {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-products .dl-issue {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 18px;
  background: var(--panel);
}

.page-products .dl-issue__mark {
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: var(--fs-14);
  color: var(--orange);
}

.page-products .dl-issue__q {
  margin: 0;
  font-size: var(--fs-16);
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
}

.page-products .dl-issue__a {
  margin: 6px 0 0;
  font-size: var(--fs-14);
  line-height: 1.75;
  color: var(--muted);
}

.page-products .dl-vers__figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-2);
}

.page-products .dl-vers__figure img {
  display: block;
  width: 100%;
  height: auto;
}

.page-products .dl-vers__more {
  margin: clamp(22px, 3vw, 32px) 0 0;
  font-size: var(--fs-14);
  line-height: 1.9;
  color: var(--muted);
}

.page-products .dl-vers__more a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(59, 232, 198, 0.42);
}

.page-products .dl-vers__more a:hover {
  border-bottom-color: var(--cyan);
}

/* ------------------------- 结尾指向 ------------------------- */

.page-products .dl-outro {
  padding: clamp(48px, 7vw, 88px) 0;
}

.page-products .dl-outro__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: center;
}

.page-products .dl-outro__title {
  margin: 0;
  font-family: var(--font-narrow);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}

.page-products .dl-outro__text {
  margin: 12px 0 0;
  max-width: 620px;
  font-size: var(--fs-16);
  line-height: 1.85;
  color: var(--muted);
}

.page-products .dl-outro__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ------------------------- 断点 ------------------------- */

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

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

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

@media (min-width: 900px) {
  .page-products .dl-hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(280px, 4fr);
    align-items: end;
    gap: clamp(32px, 5vw, 64px);
  }

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

  .page-products .dl-club {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  }

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

  .page-products .dl-flow::before {
    content: "";
    grid-column: 1 / -1;
    height: 1px;
    background: linear-gradient(90deg, var(--cyan) 0%, rgba(59, 232, 198, 0) 72%);
  }

  .page-products .dl-vers {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  }

  .page-products .dl-outro__inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

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