.page-products {
  --gl-rule: rgba(243, 239, 228, .14);
  --gl-edge: rgba(22, 225, 232, .30);
  --gl-card: linear-gradient(158deg, rgba(36, 21, 66, .92), rgba(14, 16, 48, .94));
  overflow-x: clip;
}

.page-products > .shell {
  padding-block: 1.25rem 4.5rem;
}

/* ---------- 面包屑 ---------- */
.page-products .breadcrumb {
  margin-bottom: 1.25rem;
}

/* ---------- 首屏 ---------- */
.gl-hero {
  position: relative;
  padding: 1.75rem 0 2.25rem;
  border-bottom: 1px solid var(--gl-rule);
  overflow: clip;
}

.gl-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg,
    var(--c-cyan) 0 26%,
    var(--c-orange) 26% 44%,
    var(--c-yellow) 44% 54%,
    transparent 54%);
}

.gl-hero__num {
  position: absolute;
  top: .2rem;
  right: -.6rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(5rem, 19vw, 9.5rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(22, 225, 232, .34);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.gl-hero__title {
  position: relative;
  z-index: 1;
  margin: .55rem 0 .9rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.85rem, 7vw, 3.6rem);
  line-height: 1.16;
  letter-spacing: -.01em;
  color: var(--c-paper);
  text-shadow: 0 3px 0 rgba(22, 225, 232, .28);
}

.gl-hero__lead {
  position: relative;
  z-index: 1;
  max-width: 40em;
  margin: 0 0 1.35rem;
  color: var(--c-mist);
  font-size: 1rem;
  line-height: 1.85;
}

.gl-hero__stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
}

.gl-hero__stats li {
  padding: .7rem .8rem;
  border: 1px solid var(--gl-rule);
  border-radius: var(--radius);
  background: rgba(14, 16, 48, .55);
}

.gl-hero__stats b {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-cyan);
  line-height: 1.2;
}

.gl-hero__stats span {
  font-size: .8rem;
  color: var(--c-mist);
}

.gl-hero__cta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

/* ---------- 通用章节 ---------- */
.gl-sec {
  position: relative;
  margin-top: 2.75rem;
  padding-top: 1.6rem;
}

.gl-sec__title {
  margin: .8rem 0 .7rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.35rem, 4.6vw, 2.2rem);
  line-height: 1.25;
  color: var(--c-paper);
}

.gl-sec__lead {
  max-width: 40em;
  margin: 0 0 1.4rem;
  color: var(--c-mist);
  font-size: .98rem;
  line-height: 1.85;
}

.gl-figure {
  margin: 0 0 1.5rem;
}

/* ---------- 01 类型墙 ---------- */
.cat-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  margin-bottom: 1.6rem;
}

.cat-tile {
  position: relative;
  display: grid;
  gap: .35rem;
  padding: .85rem .85rem .9rem;
  border: 1px solid var(--gl-rule);
  border-radius: var(--radius);
  background: var(--gl-card);
  text-decoration: none;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}

.cat-tile::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 22px;
  height: 22px;
  background: linear-gradient(225deg, rgba(22, 225, 232, .55) 0 50%, transparent 50%);
  border-radius: 0 var(--radius) 0 0;
}

.cat-tile:hover,
.cat-tile:focus-visible {
  transform: translateY(-2px);
  border-color: var(--gl-edge);
}

.cat-tile__name {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: .95rem;
  color: var(--c-paper);
}

.cat-tile__count {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--c-yellow);
}

.cat-tile__bar {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: rgba(243, 239, 228, .12);
  overflow: hidden;
}

.cat-tile__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-orange));
}

/* ---------- 02 条目结构 ---------- */
.gl-entry-demo {
  display: grid;
  gap: 1rem;
}

.gl-entry-demo__card {
  padding: 1.1rem;
  border: 1px solid var(--gl-edge);
  border-radius: var(--radius);
  background: rgba(14, 16, 48, .7);
}

.gl-entry-demo__name {
  margin: .45rem 0 1rem;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--c-paper);
}

.gl-entry-demo__rows {
  margin: 0;
  display: grid;
  gap: .8rem;
}

.gl-entry-demo__rows > div {
  display: grid;
  gap: .2rem;
  padding-left: .75rem;
  border-left: 2px solid rgba(22, 225, 232, .45);
}

.gl-entry-demo__rows dt {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--c-cyan);
}

.gl-entry-demo__rows dd {
  margin: 0;
  font-size: .9rem;
  line-height: 1.7;
  color: var(--c-paper);
}

/* ---------- 03 时间轴 ---------- */
.gl-track-wrap {
  margin: 0 -1rem;
  padding: 0 1rem;
}

.gl-track {
  position: relative;
  display: flex;
  gap: .9rem;
  margin: 0;
  padding: .4rem .25rem 1.2rem;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--c-cyan) transparent;
}

.gl-track::-webkit-scrollbar {
  height: 6px;
}

.gl-track::-webkit-scrollbar-thumb {
  background: rgba(22, 225, 232, .45);
  border-radius: 999px;
}

.gl-node {
  position: relative;
  flex: 0 0 78vw;
  max-width: 320px;
  scroll-snap-align: start;
  padding: .95rem;
  border: 1px solid var(--gl-rule);
  border-radius: var(--radius);
  background: var(--gl-card);
}

.gl-node::before {
  content: "";
  position: absolute;
  top: 30px;
  left: -0.9rem;
  width: .9rem;
  height: 2px;
  background: var(--gl-edge);
}

.gl-node:first-child::before {
  display: none;
}

.gl-node__ver {
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--c-ink);
  background: var(--c-cyan);
  border: 1px solid var(--c-cyan);
  border-radius: 6px;
  padding: .22rem .55rem;
  cursor: pointer;
}

.gl-node__ver:hover,
.gl-node__ver:focus-visible {
  background: var(--c-yellow);
  border-color: var(--c-yellow);
}

.gl-node__when {
  margin: .7rem 0 .3rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--c-orange);
}

.gl-node__note {
  margin: 0 0 .7rem;
  font-size: .88rem;
  line-height: 1.7;
  color: var(--c-paper);
}

.gl-node__more {
  font-size: .84rem;
  color: var(--c-mist);
}

.gl-track-hint {
  margin: .2rem 0 0;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--c-mist);
}

/* ---------- 04 大屏专区 ---------- */
.gl-dev-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: .7rem;
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
}

.gl-dev__n {
  margin: .3rem 0 .35rem;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-cyan);
}

.gl-dev__d {
  margin: 0;
  font-size: .86rem;
  line-height: 1.7;
  color: var(--c-mist);
}

.gl-inline-cta {
  margin: 0;
  font-size: .9rem;
  line-height: 1.8;
  color: var(--c-mist);
}

.gl-inline-cta a,
.gl-help__text a {
  color: var(--c-cyan);
  text-underline-offset: 3px;
}

/* ---------- 05 检索与筛选 ---------- */
.gl-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0 0 1.1rem;
}

.gl-filter__radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.gl-filter__btn {
  display: inline-block;
  padding: .42rem .9rem;
  border: 1px solid var(--gl-rule);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: .8rem;
  color: var(--c-mist);
  background: rgba(14, 16, 48, .55);
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}

.gl-filter__btn:hover {
  border-color: var(--c-cyan);
  color: var(--c-paper);
}

.gl-filter__radio:checked + .gl-filter__btn {
  background: var(--c-orange);
  border-color: var(--c-orange);
  color: var(--c-print);
}

.gl-filter__radio:focus-visible + .gl-filter__btn {
  outline: 2px solid var(--c-cyan);
  outline-offset: 2px;
}

.gl-list {
  display: grid;
  gap: .6rem;
  margin: 0 0 .9rem;
  padding: 0;
  list-style: none;
}

.gl-item {
  padding: .85rem .95rem;
  border: 1px solid var(--gl-rule);
  border-left: 3px solid var(--c-cyan);
  border-radius: var(--radius);
  background: rgba(14, 16, 48, .6);
}

.gl-item__title {
  margin: 0 0 .45rem;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: .98rem;
  color: var(--c-paper);
}

.gl-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  margin: 0;
  font-size: .8rem;
  color: var(--c-mist);
}

.gl-list-hint {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--c-mist);
}

.page-products:has(#gl-f-act:checked) .gl-item:not([data-cat="act"]),
.page-products:has(#gl-f-rpg:checked) .gl-item:not([data-cat="rpg"]),
.page-products:has(#gl-f-sht:checked) .gl-item:not([data-cat="sht"]),
.page-products:has(#gl-f-stg:checked) .gl-item:not([data-cat="stg"]),
.page-products:has(#gl-f-puz:checked) .gl-item:not([data-cat="puz"]),
.page-products:has(#gl-f-pty:checked) .gl-item:not([data-cat="pty"]) {
  display: none;
}

/* ---------- 06 三条路径 ---------- */
.gl-path {
  display: grid;
  gap: .8rem;
  margin: 0 0 1.6rem;
  padding: 0;
  list-style: none;
  counter-reset: gl-step;
}

.gl-step {
  position: relative;
  counter-increment: gl-step;
  padding: 1rem 1rem 1rem 3.2rem;
  border: 1px solid var(--gl-rule);
  border-radius: var(--radius);
  background: linear-gradient(158deg, rgba(36, 21, 66, .82), rgba(14, 16, 48, .9));
}

.gl-step::before {
  content: counter(gl-step, decimal-leading-zero);
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: var(--font-mono);
  font-size: .95rem;
  font-weight: 700;
  color: var(--c-yellow);
}

.gl-step__k {
  margin: 0 0 .35rem;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 1rem;
  color: var(--c-paper);
}

.gl-step__t {
  margin: 0 0 .8rem;
  font-size: .88rem;
  line-height: 1.75;
  color: var(--c-mist);
}

.gl-help {
  padding: 1rem 1.05rem;
  border: 1px solid var(--gl-edge);
  border-radius: var(--radius);
  background: rgba(22, 225, 232, .07);
}

.gl-help__text {
  margin: 0;
  font-size: .9rem;
  line-height: 1.85;
  color: var(--c-paper);
}

.gl-help__text .copy-chip {
  font-family: var(--font-mono);
  font-size: .84rem;
  color: var(--c-ink);
  background: var(--c-yellow);
  border: 1px solid var(--c-yellow);
  border-radius: 6px;
  padding: .18rem .5rem;
  cursor: pointer;
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .cat-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gl-hero__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .gl-entry-demo {
    grid-template-columns: 1.15fr .85fr;
    align-items: start;
  }
}

@media (min-width: 900px) {
  .page-products > .shell {
    padding-block: 1.75rem 5.5rem;
  }

  .gl-hero {
    padding: 2.5rem 0 3rem;
  }

  .gl-sec {
    margin-top: 3.75rem;
    padding-top: 2rem;
  }

  .cat-wall {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
  }

  .gl-node {
    flex: 0 0 300px;
  }

  .gl-track-wrap {
    margin: 0;
    padding: 0;
  }

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

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

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

@media (prefers-reduced-motion: reduce) {
  .cat-tile,
  .gl-filter__btn {
    transition: none;
  }
}
</final>
