/* ===== 资料库下载页 · page-products ===== */
.page-products {
  --dl-panel-grad: linear-gradient(160deg, var(--panel), var(--ink-2) 74%);
}

/* 面包屑与页头 */
.page-products .breadcrumb {
  padding-top: clamp(18px, 3vw, 28px);
}

.page-products .pg-head {
  position: relative;
  padding: clamp(20px, 4vw, 40px) 0 clamp(22px, 3.5vw, 36px);
}

.page-products .pg-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--gold) 46%, var(--magenta));
  opacity: .5;
}

.page-products .dl-title {
  margin: 10px 0 16px;
  font-size: clamp(1.9rem, 5.4vw, 3.4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.page-products .dl-lede {
  max-width: 34em;
  margin: 0;
}

/* 首屏数字条 */
.page-products .dl-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
  margin-top: clamp(22px, 3.5vw, 34px);
}

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

.page-products .dl-fact {
  border-left: 2px solid rgba(56, 240, 216, .5);
  padding-left: 12px;
}

.page-products .dl-fact__num {
  display: block;
  font-size: clamp(1.35rem, 2.7vw, 1.85rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--cyan);
  letter-spacing: -0.01em;
}

.page-products .dl-fact__label {
  display: block;
  margin-top: 6px;
  font-size: .78rem;
  line-height: 1.5;
  color: rgba(242, 237, 228, .6);
  letter-spacing: .02em;
}

/* 主体骨架：左版本卡 + 右内容流 */
.page-products .dl-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 40px);
  padding-bottom: clamp(48px, 8vw, 96px);
}

@media (min-width: 1024px) {
  .page-products .dl-shell {
    grid-template-columns: 268px minmax(0, 1fr);
    gap: clamp(36px, 4.5vw, 68px);
    align-items: start;
  }
}

/* 版本卡 */
.page-products .version-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--dl-panel-grad);
  padding: 20px 18px;
  box-shadow: 0 22px 46px -30px rgba(56, 240, 216, .45);
}

@media (min-width: 1024px) {
  .page-products .version-card {
    position: sticky;
    top: calc(var(--bar-h) + 22px);
  }
}

.page-products .vc-label {
  margin: 0;
  font-size: .7rem;
  letter-spacing: .22em;
  color: var(--grey);
}

.page-products .vc-num {
  margin: 8px 0 6px;
  font-size: clamp(2.1rem, 6vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--gold);
}

.page-products .vc-note {
  margin: 0;
  font-size: .8rem;
  line-height: 1.6;
  color: rgba(242, 237, 228, .68);
}

.page-products .vc-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.page-products .vc-link {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 7px 8px;
  border-radius: 8px;
  font-size: .84rem;
  line-height: 1.5;
  color: rgba(242, 237, 228, .76);
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

.page-products .vc-link:hover,
.page-products .vc-link:focus-visible {
  background: rgba(56, 240, 216, .12);
  color: var(--cyan);
}

.page-products .vc-c {
  flex: none;
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--cyan);
}

/* 内容流与章节 */
.page-products .dl-body {
  min-width: 0;
}

.page-products .dl-section {
  border-top: 1px solid var(--line-soft);
  padding-top: clamp(20px, 3vw, 30px);
}

.page-products .dl-section + .dl-section,
.page-products .dl-section + .dl-next {
  margin-top: clamp(34px, 5.5vw, 72px);
}

.page-products .sec-code {
  margin: 0 0 10px;
  font-size: .74rem;
  letter-spacing: .18em;
  color: var(--cyan);
}

.page-products .sec-title {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 800;
  line-height: 1.26;
  letter-spacing: -0.015em;
  color: var(--paper);
}

.page-products .sec-lede {
  margin: 0 0 22px;
  max-width: 60ch;
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(242, 237, 228, .82);
}

.page-products .body-txt {
  margin: 0 0 14px;
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(242, 237, 228, .78);
}

/* 图片框 */
.page-products .dl-figure {
  margin: 0 0 26px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--ink-2);
  overflow: hidden;
}

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

.page-products .dl-figure--pair {
  display: grid;
  gap: 16px;
}

@media (min-width: 760px) {
  .page-products .dl-figure--pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 版本日志 */
.page-products .log-table {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-soft);
  margin-bottom: 10px;
}

.page-products .log-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
}

@media (min-width: 700px) {
  .page-products .log-row {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 26px;
    align-items: baseline;
  }
}

.page-products .log-key {
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--cyan);
  white-space: nowrap;
}

.page-products .log-txt {
  margin: 0;
  font-size: .96rem;
  line-height: 1.8;
  color: rgba(242, 237, 228, .8);
}

.page-products .log-band {
  height: 3px;
  margin: 5px 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--moss), rgba(181, 113, 79, .45) 48%, transparent 92%);
}

/* 双视图 */
.page-products .view-pair {
  display: grid;
  gap: 18px;
  margin-bottom: 26px;
}

@media (min-width: 860px) {
  .page-products .view-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }
}

.page-products .view-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(165deg, var(--ink-2), var(--ink) 88%);
  padding: 18px 18px 20px;
  transition: border-color .22s ease, box-shadow .22s ease;
}

.page-products .view-card:hover {
  border-color: rgba(56, 240, 216, .55);
  box-shadow: 0 18px 40px -32px rgba(56, 240, 216, .7);
}

.page-products .view-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.page-products .view-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--paper);
}

.page-products .v-icon {
  flex: none;
  color: var(--cyan);
  filter: drop-shadow(0 0 6px rgba(56, 240, 216, .45));
}

.page-products .view-card .body-txt {
  margin-bottom: 0;
  font-size: .94rem;
}

/* 筛选说明 */
.page-products .fil-wrap {
  display: grid;
  gap: 26px;
}

@media (min-width: 940px) {
  .page-products .fil-wrap {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }
}

.page-products .fil-item {
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
}

.page-products .fil-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.page-products .fil-name {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--paper);
}

.page-products .fil-item .body-txt {
  margin-bottom: 0;
  font-size: .94rem;
}

.page-products .fil-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.page-products .fil-chips .chip {
  font-size: .74rem;
}

.page-products .fil-figure {
  margin-bottom: 0;
}

/* 服务清单 */
.page-products .svc-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

@media (min-width: 720px) {
  .page-products .svc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.page-products .svc-card {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(16, 27, 54, .74);
  padding: 16px;
}

.page-products .svc-card h3 {
  margin: 0 0 8px;
  font-size: .98rem;
  font-weight: 700;
  color: var(--paper);
}

.page-products .svc-card p {
  margin: 0;
  font-size: .87rem;
  line-height: 1.78;
  color: rgba(242, 237, 228, .72);
}

.page-products .svc-chip {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  margin-bottom: 12px;
}

.page-products .svc-chip--cyan { background: var(--cyan); }
.page-products .svc-chip--gold { background: var(--gold); }
.page-products .svc-chip--moss { background: var(--moss); }
.page-products .svc-chip--clay { background: var(--clay); }

/* 升级对照 */
.page-products .up-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-products .up-list li {
  position: relative;
  padding-left: 22px;
  font-size: .96rem;
  line-height: 1.8;
  color: rgba(242, 237, 228, .8);
}

.page-products .up-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--gold);
  opacity: .85;
}

.page-products .up-list strong {
  color: var(--paper);
  font-weight: 700;
}

/* 设备适配 */
.page-products .dev-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 26px;
}

@media (min-width: 760px) {
  .page-products .dev-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
  }
}

.page-products .dev-card {
  border-left: 2px solid var(--cyan);
  padding: 2px 0 2px 16px;
}

.page-products .dev-title {
  margin: 0 0 8px;
  font-size: .82rem;
  letter-spacing: .06em;
  color: var(--cyan);
}

.page-products .dev-card .body-txt {
  margin-bottom: 0;
  font-size: .92rem;
}

/* 收尾 */
.page-products .dl-next {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(56, 240, 216, .09), rgba(224, 70, 140, .07) 62%, transparent);
  padding: clamp(22px, 4vw, 34px);
}

.page-products .dl-next .sec-title {
  margin-bottom: 10px;
}

.page-products .dl-next .body-txt {
  margin-bottom: 0;
}

.page-products .next-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

/* 窄屏兜底 */
@media (max-width: 420px) {
  .page-products .log-key {
    white-space: normal;
  }

  .page-products .fil-chips .chip {
    font-size: .7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .vc-link,
  .page-products .view-card {
    transition: none;
  }
}
