.page-products {
  --xp-gap: clamp(16px, 2.2vw, 28px);
  --xp-soft: rgba(234, 246, 255, .78);
  display: block;
}

/* ---------- 首屏 ---------- */
.page-products .xp-hero {
  position: relative;
  padding: clamp(26px, 4.6vw, 60px) 0 clamp(34px, 5.4vw, 84px);
  overflow: hidden;
}

.page-products .xp-hero::before {
  content: "";
  position: absolute;
  inset: -18% -12% auto -12%;
  height: 128%;
  pointer-events: none;
  background:
    radial-gradient(58% 58% at 80% 14%, rgba(23, 240, 210, .17), transparent 70%),
    radial-gradient(48% 48% at 4% 86%, rgba(255, 106, 61, .11), transparent 72%);
}

.page-products .xp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image: radial-gradient(rgba(124, 246, 228, .18) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .7), transparent 62%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .7), transparent 62%);
}

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

.page-products .xp-hero__grid {
  display: grid;
  gap: clamp(24px, 4vw, 46px);
  margin-top: clamp(18px, 3vw, 34px);
}

.page-products .xp-hero__copy {
  position: relative;
}

.page-products .xp-hero__title {
  font-size: clamp(40px, 8.2vw, 92px);
  line-height: .98;
  font-weight: 300;
  letter-spacing: -.012em;
  margin: .22em 0 .34em;
  color: var(--ly-white);
}

.page-products .xp-hero__title em {
  font-style: normal;
  color: var(--ly-coral);
}

.page-products .xp-hero__lede {
  max-width: 44em;
  margin: 0;
  font-size: clamp(15px, 1.55vw, 17px);
  line-height: 1.85;
  color: var(--xp-soft);
}

.page-products .xp-hero__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: clamp(20px, 3vw, 30px);
}

.page-products .xp-hero__media {
  position: relative;
  margin: 0;
}

.page-products .xp-hero__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--ly-radius);
  border: 1px solid var(--ly-line);
}

.page-products .xp-hero__media::after {
  content: "";
  position: absolute;
  left: -6%;
  bottom: -14%;
  width: 62%;
  height: 1px;
  background: linear-gradient(90deg, var(--ly-cyan), rgba(23, 240, 210, 0));
  transform: rotate(-9deg);
  transform-origin: left center;
  pointer-events: none;
}

/* 页内索引条 */
.page-products .xp-toc {
  list-style: none;
  margin: clamp(26px, 4vw, 44px) 0 0;
  padding: clamp(14px, 2vw, 20px) 0 0;
  border-top: 1px solid var(--ly-line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.page-products .xp-toc a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--ly-mist);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--ly-radius);
  transition: color .22s var(--ly-ease), border-color .22s var(--ly-ease),
              background-color .22s var(--ly-ease), transform .22s var(--ly-ease);
}

.page-products .xp-toc a .num {
  color: var(--ly-cyan);
  font-size: 11px;
  letter-spacing: .1em;
}

.page-products .xp-toc a:hover,
.page-products .xp-toc a:focus-visible {
  color: var(--ly-white);
  border-color: var(--ly-line-strong);
  background: var(--ly-glass);
  transform: translateY(-1px);
}

.page-products .xp-toc a[aria-current="location"] {
  color: var(--ly-ink);
  background: var(--ly-cyan);
  border-color: var(--ly-cyan);
}

.page-products .xp-toc a[aria-current="location"] .num {
  color: var(--ly-ink);
}

/* ---------- 章节公共 ---------- */
.page-products .sec {
  position: relative;
  padding: clamp(46px, 6.6vw, 92px) 0;
}

.page-products .xp-member,
.page-products .xp-versions {
  background: linear-gradient(180deg, rgba(8, 39, 66, .55), rgba(8, 39, 66, 0));
}

.page-products .sec__head {
  display: grid;
  gap: 12px;
  padding-top: clamp(14px, 2vw, 20px);
  border-top: 1px solid var(--ly-line);
  margin-bottom: clamp(20px, 3.2vw, 36px);
}

.page-products .sec__num {
  position: relative;
  display: inline-block;
  width: max-content;
  font-family: var(--ly-font-mono);
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--ly-cyan);
  padding-bottom: 6px;
}

.page-products .sec__num::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 1px;
  background: var(--ly-line-strong);
}

.page-products .sec__title {
  margin: 0;
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 300;
  line-height: 1.24;
  letter-spacing: -.005em;
  color: var(--ly-white);
}

.page-products .xp-lead {
  max-width: 46em;
  margin: 0 0 clamp(20px, 3vw, 32px);
  font-size: clamp(15px, 1.55vw, 17px);
  line-height: 1.85;
  color: var(--xp-soft);
}

/* ---------- 01 对照面板 ---------- */
.page-products .xp-panel__grid {
  display: grid;
  gap: clamp(22px, 3.4vw, 42px);
}

.page-products .xp-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-products .xp-points li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--xp-soft);
}

.page-products .xp-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 7px;
  height: 1px;
  background: var(--ly-cyan);
}

.page-products .xp-points strong {
  color: var(--ly-white);
  font-weight: 600;
}

.page-products .xp-side-note {
  margin: 20px 0 0;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ly-white);
  background: rgba(255, 106, 61, .09);
  border-left: 2px solid var(--ly-coral);
  border-radius: 0 var(--ly-radius) var(--ly-radius) 0;
}

.page-products .panel-demo {
  position: relative;
  padding: clamp(14px, 2vw, 22px);
  background: var(--ly-glass);
  border: 1px solid var(--ly-line);
  border-radius: var(--ly-radius);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  overflow: hidden;
}

.page-products .panel-demo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--ly-cyan), rgba(23, 240, 210, 0) 78%);
}

.page-products .panel-demo__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.page-products .panel-demo__bar .index-label {
  margin: 0;
}

.page-products .panel-demo__switch {
  display: flex;
  gap: 6px;
}

.page-products .panel-demo__radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.page-products .panel-demo__switch label {
  display: inline-block;
  padding: 5px 13px;
  font-family: var(--ly-font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--ly-mist);
  border: 1px solid var(--ly-line);
  border-radius: var(--ly-radius);
  cursor: pointer;
  transition: color .2s var(--ly-ease), background-color .2s var(--ly-ease),
              border-color .2s var(--ly-ease);
}

.page-products .panel-demo__switch label:hover {
  color: var(--ly-white);
  border-color: var(--ly-line-strong);
}

.page-products .panel-demo__radio:checked + label {
  color: var(--ly-ink);
  background: var(--ly-cyan);
  border-color: var(--ly-cyan);
}

.page-products .panel-demo__radio:focus-visible + label {
  outline: 2px solid var(--ly-cyan);
  outline-offset: 2px;
}

.page-products .panel-demo:has(#xp-t2:checked) { --cols: 2; }
.page-products .panel-demo:has(#xp-t4:checked) { --cols: 4; }
.page-products .panel-demo:has(#xp-t6:checked) { --cols: 6; }

.page-products .pd-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  border-top: 1px solid var(--ly-line);
  --cols: 2;
}

.page-products .pd-table__cap {
  caption-side: top;
  text-align: left;
  padding: 0 0 10px;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ly-mist);
}

.page-products .pd-table th,
.page-products .pd-table td {
  padding: 9px 6px;
  text-align: right;
  font-size: 12.5px;
  font-family: var(--ly-font-mono);
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--ly-line);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-products .pd-table thead th {
  font-family: var(--ly-font-body);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--ly-white);
  border-bottom-color: var(--ly-line-strong);
}

.page-products .pd-corner {
  text-align: left;
  font-family: var(--ly-font-body);
  font-size: 12px;
  color: var(--ly-mist);
}

.page-products .pd-table tbody th {
  text-align: left;
  font-family: var(--ly-font-body);
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ly-mist);
  letter-spacing: .02em;
}

.page-products .pd-table td {
  color: var(--ly-white);
}

.page-products .pd-table .pd-hi {
  color: var(--ly-cyan);
}

.page-products .panel-demo:has(#xp-t2:checked) .pd-table [data-col="3"],
.page-products .panel-demo:has(#xp-t2:checked) .pd-table [data-col="4"],
.page-products .panel-demo:has(#xp-t2:checked) .pd-table [data-col="5"],
.page-products .panel-demo:has(#xp-t2:checked) .pd-table [data-col="6"],
.page-products .panel-demo:has(#xp-t4:checked) .pd-table [data-col="5"],
.page-products .panel-demo:has(#xp-t4:checked) .pd-table [data-col="6"] {
  display: none;
}

.page-products .panel-demo__note {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ly-mist);
}

/* ---------- 02 会员中心 ---------- */
.page-products .xp-member__grid {
  display: grid;
  gap: clamp(22px, 3.4vw, 42px);
}

.page-products .xp-member__media {
  margin: 0;
}

.page-products .xp-member__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--ly-radius);
  border: 1px solid var(--ly-line);
}

.page-products .xp-member__body > p {
  margin: 0 0 clamp(18px, 2.6vw, 26px);
  font-size: 15px;
  line-height: 1.85;
  color: var(--xp-soft);
  max-width: 42em;
}

.page-products .xp-paths {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.page-products .xp-paths li {
  position: relative;
  padding: 16px 0 16px 46px;
  border-top: 1px solid var(--ly-line);
}

.page-products .xp-paths li:last-child {
  border-bottom: 1px solid var(--ly-line);
}

.page-products .xp-paths__no {
  position: absolute;
  left: 0;
  top: 18px;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--ly-cyan);
}

.page-products .xp-paths h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ly-white);
  letter-spacing: .01em;
}

.page-products .xp-paths p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ly-mist);
}

.page-products .xp-member__limit {
  margin: clamp(18px, 2.6vw, 26px) 0 0;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ly-white);
  background: rgba(15, 58, 92, .55);
  border: 1px solid var(--ly-line);
  border-radius: var(--ly-radius);
}

.page-products .xp-member__limit .num {
  color: var(--ly-cyan);
}

/* ---------- 03 战术筛选 ---------- */
.page-products .xp-tactics__grid {
  display: grid;
  gap: clamp(22px, 3.4vw, 42px);
}

.page-products .xp-tactics__copy > p {
  margin: 0 0 clamp(18px, 2.6vw, 26px);
  font-size: 15px;
  line-height: 1.85;
  color: var(--xp-soft);
  max-width: 40em;
}

.page-products .xp-levels {
  display: grid;
  gap: 10px;
}

.page-products .lvl {
  background: rgba(15, 58, 92, .35);
  border: 1px solid var(--ly-line);
  border-radius: var(--ly-radius);
  transition: border-color .22s var(--ly-ease), background-color .22s var(--ly-ease);
}

.page-products .lvl[open] {
  border-color: var(--ly-line-strong);
  background: rgba(15, 58, 92, .55);
}

.page-products .lvl summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  color: var(--ly-white);
}

.page-products .lvl summary::-webkit-details-marker {
  display: none;
}

.page-products .lvl summary:focus-visible {
  outline: 2px solid var(--ly-cyan);
  outline-offset: -2px;
  border-radius: var(--ly-radius);
}

.page-products .lvl__no {
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--ly-cyan);
}

.page-products .lvl__name {
  flex: 1;
  min-width: 0;
}

.page-products .lvl__count {
  flex: none;
  font-family: var(--ly-font-mono);
  font-size: 12px;
  padding: 2px 9px;
  color: var(--ly-ink);
  background: var(--ly-cyan);
  border-radius: 2px;
}

.page-products .lvl__opts {
  list-style: none;
  margin: 0;
  padding: 0 16px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-products .lvl__opts li {
  font-size: 13px;
  padding: 5px 11px;
  color: var(--ly-mist);
  border: 1px solid var(--ly-line);
  border-radius: var(--ly-radius);
}

.page-products .xp-tactics__media {
  margin: 0;
  align-self: start;
}

.page-products .xp-tactics__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--ly-radius);
  border: 1px solid var(--ly-line);
}

/* ---------- 04 手机端 ---------- */
.page-products .xp-mobile__grid {
  display: grid;
  gap: clamp(24px, 3.6vw, 44px);
}

.page-products .xp-mobile__copy > p {
  margin: 0 0 clamp(16px, 2.4vw, 22px);
  font-size: 15px;
  line-height: 1.85;
  color: var(--xp-soft);
  max-width: 40em;
}

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

.page-products .xp-mobile__list li {
  position: relative;
  padding: 10px 14px 10px 30px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ly-mist);
  background: rgba(15, 58, 92, .34);
  border: 1px solid var(--ly-line);
  border-radius: var(--ly-radius);
}

.page-products .xp-mobile__list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--ly-cyan-soft);
}

.page-products .xp-mobile__list strong {
  color: var(--ly-white);
  font-weight: 600;
}

.page-products .xp-phone {
  justify-self: center;
  width: min(100%, 320px);
  padding: 12px;
  border: 1px solid var(--ly-line-strong);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(15, 58, 92, .6), rgba(4, 24, 43, .7));
}

.page-products .xp-phone__media {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
}

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

.page-products .xp-phone__cap {
  margin: 10px 2px 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ly-mist);
}

/* ---------- 05 版本演进 ---------- */
.page-products .xp-versions__media {
  margin: 0 0 clamp(20px, 3vw, 32px);
}

.page-products .xp-versions__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--ly-radius);
  border: 1px solid var(--ly-line);
}

.page-products .xp-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.page-products .xp-timeline li {
  position: relative;
  padding: 18px 0 18px 20px;
  border-top: 1px solid var(--ly-line);
}

.page-products .xp-timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ly-cyan);
  box-shadow: 0 0 0 3px rgba(23, 240, 210, .14);
}

.page-products .xp-timeline__ver {
  display: block;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--ly-cyan);
  margin-bottom: 6px;
}

.page-products .xp-timeline h3 {
  margin: 0 0 6px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ly-white);
}

.page-products .xp-timeline p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ly-mist);
  max-width: 34em;
}

/* ---------- 06 开始使用 ---------- */
.page-products .xp-start__grid {
  gap: var(--xp-gap);
}

.page-products .xp-start__card {
  position: relative;
  display: block;
  padding: 22px 20px 20px;
  text-decoration: none;
  color: inherit;
  background: rgba(15, 58, 92, .34);
  border: 1px solid var(--ly-line);
  border-radius: var(--ly-radius);
  transition: transform .25s var(--ly-ease), border-color .25s var(--ly-ease),
              background-color .25s var(--ly-ease);
}

.page-products .xp-start__card:hover,
.page-products .xp-start__card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--ly-line-strong);
  background: rgba(15, 58, 92, .6);
}

.page-products .xp-start__card:focus-visible {
  outline: 2px solid var(--ly-cyan);
  outline-offset: 2px;
}

.page-products .xp-start__card .card__index {
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: var(--ly-font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--ly-mist);
}

.page-products .xp-start__card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ly-white);
}

.page-products .xp-start__card p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ly-mist);
}

.page-products .xp-start__go {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--ly-cyan);
}

.page-products .xp-start__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: clamp(24px, 3.4vw, 38px);
  padding-top: clamp(18px, 2.6vw, 26px);
  border-top: 1px solid var(--ly-line);
}

.page-products .xp-start__foot p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ly-mist);
  max-width: 44em;
}

.page-products .xp-start__foot a:not(.btn) {
  color: var(--ly-cyan-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--ly-line-strong);
}

.page-products .xp-start__foot a:not(.btn):hover {
  color: var(--ly-white);
}

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .page-products .xp-levels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
  }

  .page-products .lvl:nth-child(2) {
    margin-top: 22px;
  }

  .page-products .lvl:nth-child(3) {
    margin-top: 44px;
  }
}

@media (min-width: 900px) {
  .page-products .xp-hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }

  .page-products .xp-member__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    align-items: start;
  }

  .page-products .xp-tactics__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }

  .page-products .xp-mobile__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }

  .page-products .xp-panel__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: start;
  }

  .page-products .xp-timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 clamp(14px, 2vw, 26px);
  }
}

@media (max-width: 719px) {
  .page-products .panel-demo__switch {
    display: none;
  }

  .page-products .pd-table [data-col="3"],
  .page-products .pd-table [data-col="4"],
  .page-products .pd-table [data-col="5"],
  .page-products .pd-table [data-col="6"] {
    display: none !important;
  }

  .page-products .pd-table th,
  .page-products .pd-table td {
    padding: 8px 4px;
    font-size: 11.5px;
  }

  .page-products .xp-hero__media::after {
    display: none;
  }

  .page-products .panel-demo {
    padding: 14px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .xp-toc a,
  .page-products .xp-start__card,
  .page-products .lvl {
    transition: none;
  }

  .page-products .xp-start__card:hover,
  .page-products .xp-toc a:hover {
    transform: none;
  }
}
</main>
