/* ============================================================
   LEYU手机版 · 客户端下载（page-products）
   页面作用域：所有选择器均以 .page-products 限定
   ============================================================ */

.page-products {
  --pd-hair: rgba(233, 241, 246, .10);
  --pd-hair-soft: rgba(233, 241, 246, .055);
  --pd-neon-glow: rgba(61, 255, 158, .16);
  --pd-blue-glow: rgba(58, 168, 255, .16);
  padding-bottom: 88px;
}

.page-products .ly-section {
  scroll-margin-top: calc(var(--ly-header-h) + 26px);
}

.page-products .ly-crumb {
  padding-top: 26px;
}

.page-products .ly-eyebrow {
  margin: 0;
}

/* ---------- 首屏 ---------- */
.pd-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding-top: 26px;
}

.pd-hero::before {
  content: "";
  position: absolute;
  top: -90px;
  left: -20%;
  right: -20%;
  height: 500px;
  background:
    radial-gradient(56% 100% at 16% 0%, var(--pd-neon-glow), transparent 68%),
    radial-gradient(50% 100% at 86% 12%, var(--pd-blue-glow), transparent 70%);
  pointer-events: none;
}

.pd-hero > * {
  position: relative;
}

.pd-hero__title {
  margin: 16px 0 0;
  font-family: var(--ly-serif);
  font-weight: 700;
  font-size: clamp(29px, 6.6vw, 50px);
  line-height: 1.24;
  color: var(--ly-snow);
  letter-spacing: -.005em;
}

.page-products .pd-hero .ly-lede {
  margin-top: 18px;
  max-width: 60ch;
}

.pd-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* ---------- 速览面板 ---------- */
.pd-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--ly-r-lg);
  padding: 24px 22px 22px;
  background: linear-gradient(155deg, rgba(26, 36, 48, .95), rgba(14, 20, 27, .97));
  border: 1px solid rgba(58, 168, 255, .22);
  box-shadow: 0 34px 80px -52px rgba(0, 0, 0, .95);
}

.pd-panel::after {
  content: "";
  position: absolute;
  top: -74px;
  right: -62px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 255, 158, .2), transparent 68%);
  pointer-events: none;
}

.pd-panel__label {
  position: relative;
}

.pd-panel__stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 16px;
  margin-top: 22px;
}

.pd-panel__stat {
  display: grid;
  gap: 8px;
  align-content: start;
}

.pd-panel__num {
  font-family: var(--ly-mono);
  font-size: clamp(30px, 9vw, 40px);
  font-weight: 700;
  line-height: 1;
  color: var(--ly-neon);
  letter-spacing: -.02em;
}

.pd-panel__cap {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ly-mist);
}

/* ---------- 技能树路径 ---------- */
.pd-path {
  margin-top: 22px;
  padding-top: 26px;
  border-top: 1px solid var(--pd-hair-soft);
}

.pd-path__wire {
  display: none;
}

.pd-path__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.pd-path__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--ly-pill);
  background: linear-gradient(120deg, rgba(20, 28, 38, .92), rgba(20, 28, 38, .48));
  border: 1px solid var(--pd-hair-soft);
}

.pd-path__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  font-size: 13px;
  color: var(--ly-neon);
  background: rgba(61, 255, 158, .1);
  border: 1px solid rgba(61, 255, 158, .34);
}

.pd-path__body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.pd-path__label {
  font-size: 15px;
  font-weight: 500;
  color: var(--ly-snow);
  text-decoration: none;
}

.pd-path__label:hover,
.pd-path__label:focus-visible {
  color: var(--ly-neon);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.pd-path__hint {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ly-mist);
}

/* ---------- 章节标题 ---------- */
.pd-head {
  display: grid;
  gap: 12px;
  max-width: 780px;
  margin-bottom: 28px;
}

.pd-head .ly-h2 {
  margin: 0;
}

.pd-lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.85;
  color: var(--ly-mist);
}

.page-products .ly-h3 {
  margin: 0;
  color: var(--ly-snow);
}

.pd-h3-gap {
  margin-top: 34px !important;
}

/* ---------- 平台胶囊 ---------- */
.pd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 26px;
}

.pd-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: var(--ly-pill);
  border: 1px solid var(--pd-hair);
  background: var(--ly-panel);
  color: var(--ly-snow);
  font-size: 14px;
  text-decoration: none;
  transition: border-color .22s var(--ly-ease), color .22s var(--ly-ease), background-color .22s var(--ly-ease);
}

.pd-chip:hover,
.pd-chip:focus-visible {
  border-color: var(--ly-neon);
  color: var(--ly-neon);
  background: rgba(61, 255, 158, .08);
}

/* ---------- 图片 ---------- */
.pd-figure {
  margin: 0;
  border-radius: var(--ly-r-lg);
  overflow: hidden;
  border: 1px solid var(--pd-hair-soft);
  background: var(--ly-panel-2);
}

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

.pd-figure figcaption {
  padding: 13px 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ly-mist);
  background: rgba(11, 15, 20, .62);
  border-top: 1px solid var(--pd-hair-soft);
}

#platforms .pd-figure {
  margin-bottom: 28px;
}

/* ---------- 平台卡片 ---------- */
.pd-plat-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.pd-plat {
  padding: 22px 20px;
  border-radius: var(--ly-r-md);
  background: var(--ly-panel);
  border: 1px solid var(--pd-hair-soft);
  scroll-margin-top: calc(var(--ly-header-h) + 26px);
  transition: border-color .24s var(--ly-ease), transform .24s var(--ly-ease);
}

.pd-plat:hover {
  transform: translateY(-2px);
  border-color: rgba(58, 168, 255, .34);
}

.pd-plat:target {
  border-color: rgba(61, 255, 158, .46);
  box-shadow: 0 0 0 1px rgba(61, 255, 158, .16);
}

.pd-plat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.pd-plat__head .ly-h3 {
  font-size: 19px;
}

.pd-steps {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 13px;
  counter-reset: pdstep;
}

.pd-step {
  position: relative;
  padding-left: 34px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ly-mist);
}

.pd-step::before {
  counter-increment: pdstep;
  content: counter(pdstep, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--ly-mono);
  font-size: 12px;
  line-height: 22px;
  width: 24px;
  text-align: center;
  border-radius: var(--ly-pill);
  color: var(--ly-neon);
  background: rgba(61, 255, 158, .09);
  border: 1px solid rgba(61, 255, 158, .24);
}

/* ---------- 两栏错落 ---------- */
.pd-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
}

.pd-split__body {
  display: grid;
  gap: 14px;
  align-content: start;
}

.pd-split__body .ly-h2 {
  margin: 0;
}

/* ---------- 关注流条目 ---------- */
.pd-feed {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.pd-feed__item {
  border-left: 2px solid rgba(61, 255, 158, .3);
  padding-left: 16px;
}

.pd-feed__k {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ly-blue);
}

.pd-feed__item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ly-mist);
}

/* ---------- 权益数字 ---------- */
.pd-metrics {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 34px;
}

.pd-metric {
  padding: 24px 22px;
  border-radius: var(--ly-r-lg);
  background: linear-gradient(140deg, rgba(20, 28, 38, .95), rgba(16, 22, 30, .76));
  border: 1px solid var(--pd-hair);
  outline: none;
  transition: border-color .26s var(--ly-ease), transform .26s var(--ly-ease);
}

.pd-metric:hover,
.pd-metric:focus-visible {
  border-color: rgba(255, 122, 47, .42);
  transform: translateY(-2px);
}

.pd-metric__top {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.pd-metric__num {
  font-family: var(--ly-mono);
  font-size: clamp(46px, 13vw, 68px);
  font-weight: 700;
  line-height: 1;
  color: var(--ly-snow);
  letter-spacing: -.03em;
}

.pd-metric__unit {
  font-family: var(--ly-mono);
  font-size: 13px;
  color: var(--ly-orange);
}

.pd-metric__label {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ly-snow);
}

.pd-metric__tip {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ly-mist);
  transition: max-height .32s var(--ly-ease), opacity .32s var(--ly-ease), margin-top .32s var(--ly-ease);
}

.pd-metric:hover .pd-metric__tip,
.pd-metric:focus-visible .pd-metric__tip {
  max-height: 140px;
  opacity: 1;
  margin-top: 10px;
}

/* ---------- 条目列表 ---------- */
.pd-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  border-radius: var(--ly-r-md);
  overflow: hidden;
  background: var(--pd-hair-soft);
}

.pd-rows--plain {
  background: transparent;
  gap: 0;
  border-radius: 0;
}

.pd-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 20px 18px;
  background: var(--ly-ink);
}

.pd-rows--plain .pd-row {
  background: transparent;
  padding: 16px 0;
  border-bottom: 1px solid var(--pd-hair-soft);
}

.pd-rows--plain .pd-row:last-child {
  border-bottom: 0;
}

.pd-row__num {
  padding-top: 3px;
  font-size: 13px;
  color: var(--ly-neon);
}

.pd-row__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ly-snow);
}

.pd-row p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ly-mist);
}

/* ---------- 订阅档位 ---------- */
.pd-tiers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.pd-tier {
  padding: 20px;
  border-radius: var(--ly-r-md);
  background: var(--ly-panel);
  border: 1px solid var(--pd-hair-soft);
}

.pd-tier--best {
  border-color: rgba(61, 255, 158, .34);
  background: linear-gradient(150deg, rgba(61, 255, 158, .09), rgba(20, 28, 38, .92));
}

.pd-tier__name {
  display: block;
  margin-bottom: 8px;
  font-family: var(--ly-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--ly-snow);
}

.pd-tier p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ly-mist);
}

/* ---------- 版本记录 / 问答 ---------- */
.pd-rel {
  border-radius: var(--ly-r-md);
  border: 1px solid var(--pd-hair-soft);
  background: linear-gradient(140deg, rgba(20, 28, 38, .9), rgba(16, 22, 30, .66));
  overflow: hidden;
}

.pd-rel + .pd-rel {
  margin-top: 12px;
}

.pd-rel__sum {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  color: var(--ly-snow);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

.pd-rel__sum::-webkit-details-marker {
  display: none;
}

.pd-rel__sum::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--ly-mist);
  border-bottom: 2px solid var(--ly-mist);
  transform: rotate(45deg);
  transition: transform .26s var(--ly-ease), border-color .26s var(--ly-ease);
}

.pd-rel__sum:hover::after,
.pd-rel__sum:focus-visible::after {
  border-color: var(--ly-neon);
}

.pd-rel[open] .pd-rel__sum::after {
  transform: rotate(-135deg);
}

.pd-rel__ver {
  flex: none;
  padding: 4px 10px;
  border-radius: var(--ly-pill);
  font-size: 12px;
  color: var(--ly-neon);
  background: rgba(61, 255, 158, .1);
  border: 1px solid rgba(61, 255, 158, .26);
}

.pd-rel__title {
  flex: 1 1 180px;
  min-width: 0;
}

.pd-rel__body {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--pd-hair-soft);
  font-size: 15px;
  line-height: 1.82;
  color: var(--ly-mist);
}

.pd-qa-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.pd-qa-grid .pd-rel + .pd-rel {
  margin-top: 0;
}

/* ---------- 结尾引导 ---------- */
.pd-end {
  margin-top: 34px;
  padding: 30px 24px;
  border-radius: var(--ly-r-lg);
  border: 1px solid rgba(58, 168, 255, .22);
  background:
    radial-gradient(88% 130% at 8% 0%, rgba(58, 168, 255, .17), transparent 62%),
    radial-gradient(70% 120% at 96% 100%, rgba(255, 122, 47, .13), transparent 66%),
    linear-gradient(160deg, rgba(26, 36, 48, .95), rgba(14, 20, 27, .97));
  display: grid;
  gap: 14px;
}

.pd-end__title {
  font-size: clamp(21px, 4.4vw, 26px);
}

.pd-end__text {
  margin: 0;
  max-width: 70ch;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ly-mist);
}

.pd-end__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

/* ---------- 平板 ---------- */
@media (min-width: 760px) {
  .pd-plat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pd-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pd-tiers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pd-qa-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pd-row {
    padding: 24px 22px;
    gap: 22px;
  }

  .pd-rows--plain .pd-row {
    padding: 18px 0;
  }

  .pd-end {
    padding: 40px 36px;
  }
}

/* ---------- 路径连线：中等宽度以上 ---------- */
@media (min-width: 880px) {
  .pd-path__wire {
    display: block;
    width: 100%;
    height: 34px;
    margin-bottom: -12px;
  }

  .pd-path__wire svg {
    display: block;
    width: 100%;
    height: 100%;
  }

  .pd-path__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .pd-path__item {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    align-content: start;
    gap: 12px;
    padding: 20px 18px;
    border-radius: var(--ly-r-md);
  }
}

/* ---------- 桌面 ---------- */
@media (min-width: 1024px) {
  .pd-hero {
    grid-template-columns: minmax(0, 1.32fr) minmax(300px, .92fr);
    align-items: end;
    gap: 48px;
    padding-top: 40px;
  }

  .pd-panel {
    padding: 28px 26px 26px;
  }

  .pd-split {
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
    gap: 46px;
    align-items: start;
  }

  .pd-split--rev {
    grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr);
  }

  .pd-split__side {
    position: sticky;
    top: calc(var(--ly-header-h) + 28px);
  }

  .pd-split--rev .pd-split__side {
    position: static;
  }

  .pd-plat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .pd-panel__stats {
    gap: 26px 20px;
  }
}

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  .pd-chip,
  .pd-plat,
  .pd-metric,
  .pd-rel__sum::after,
  .pd-metric__tip {
    transition: none;
  }

  .pd-plat:hover,
  .pd-metric:hover,
  .pd-metric:focus-visible {
    transform: none;
  }
}
