.page-products {
  --cat-line: rgba(111, 143, 124, 0.38);
  --cat-hair: rgba(18, 58, 90, 0.15);
  --cat-shadow: 0 22px 44px -32px rgba(7, 26, 43, 0.62);
  background: var(--board);
  color: var(--ink);
}

.page-products *,
.page-products *::before,
.page-products *::after {
  box-sizing: border-box;
}

.page-products :where(a, button):focus-visible {
  outline: 2px solid var(--whistle);
  outline-offset: 3px;
}

.page-products .cat-inline-link {
  color: var(--pitch);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-products .cat-inline-link:hover {
  color: var(--whistle-ink);
}

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

.page-products .cat-hero {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: var(--board);
  padding-block: clamp(1.1rem, 3vw, 2rem) clamp(2.2rem, 5vw, 3.6rem);
}

.page-products .cat-hero::before {
  content: "";
  position: absolute;
  right: -18%;
  bottom: -32%;
  width: 78%;
  height: 120%;
  background: var(--pitch);
  opacity: 0.18;
  transform: skewX(-8deg);
  pointer-events: none;
}

.page-products .cat-hero .container {
  position: relative;
  z-index: 1;
}

.page-products .breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  font-size: 0.8rem;
  color: rgba(246, 247, 242, 0.66);
}

.page-products .breadcrumb li + li::before {
  content: "/";
  margin-right: 0.4rem;
  color: var(--rail);
}

.page-products .breadcrumb a {
  color: rgba(246, 247, 242, 0.86);
  text-decoration: none;
  transition: color var(--ease);
}

.page-products .breadcrumb a:hover {
  color: var(--whistle);
}

.page-products .cat-hero-grid {
  display: grid;
  gap: clamp(1.6rem, 4vw, 2.6rem);
  align-items: end;
}

.page-products .cat-hero-copy {
  min-width: 0;
}

.page-products .cat-hero h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(2rem, 7.2vw, 3.4rem);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--board);
}

.page-products .cat-hero .lead {
  margin: 0 0 0.9rem;
  max-width: 34rem;
  font-size: clamp(0.96rem, 2.2vw, 1.05rem);
  line-height: 1.82;
  color: rgba(246, 247, 242, 0.84);
}

.page-products .cat-hero-note {
  margin: 0 0 1.2rem;
  padding-left: 0.7rem;
  border-left: 2px solid var(--whistle);
  font-size: 0.84rem;
  line-height: 1.7;
  color: rgba(246, 247, 242, 0.68);
}

.page-products .cat-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.page-products .cat-hero-figure {
  margin: 0;
  min-width: 0;
}

.page-products .cat-shot {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.page-products .cat-hero-figure .figure-caption {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(246, 247, 242, 0.6);
}

.page-products .cat-scoreboard {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.55rem;
  max-width: calc(100% - 1.7rem);
  padding: 0.6rem 0.85rem;
  background: rgba(7, 26, 43, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 3px solid var(--whistle);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
}

.page-products .cat-score-k {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(246, 247, 242, 0.8);
}

.page-products .cat-scoreboard .scoreboard-digits {
  font-family: var(--font-mono);
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--whistle);
}

.page-products .cat-score-v {
  font-size: 0.72rem;
  color: rgba(246, 247, 242, 0.62);
}

.page-products .cat-lines {
  list-style: none;
  margin: clamp(1.6rem, 4vw, 2.6rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-products .cat-lines li {
  background: var(--night);
  padding: 0.95rem 1rem 1.05rem;
  transition: background var(--ease);
}

.page-products .cat-lines li:hover {
  background: var(--stand);
}

.page-products .cat-line-no {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--whistle);
}

.page-products .cat-line-t {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--board);
}

.page-products .cat-line-d {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.66;
  color: rgba(246, 247, 242, 0.72);
}

/* ---------- 目录主体 ---------- */

.page-products .cat-board {
  background: var(--board);
  padding-block: clamp(1.8rem, 4.5vw, 3.6rem) clamp(2.4rem, 6vw, 4.6rem);
}

.page-products .cat-board-grid {
  display: grid;
  gap: 1.4rem;
  align-items: start;
}

.page-products .cat-index {
  background: var(--mist);
  border-left: 4px solid var(--pitch);
  border-radius: var(--radius);
  padding: 0.9rem 1rem 1.1rem;
}

.page-products .cat-index-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pitch);
}

.page-products .cat-index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 0.7rem;
}

.page-products .cat-index-list a {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.5rem 0.15rem;
  border-bottom: 1px solid rgba(14, 107, 58, 0.14);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--deep);
  text-decoration: none;
  transition: color var(--ease), padding-left var(--ease);
}

.page-products .cat-index-list a:hover {
  color: var(--whistle-ink);
  padding-left: 0.35rem;
}

.page-products .cat-i-no {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--pitch);
}

.page-products .cat-stack {
  display: grid;
  gap: clamp(1.8rem, 4.5vw, 3.2rem);
  min-width: 0;
}

.page-products .cat-sec {
  min-width: 0;
  scroll-margin-top: 1.2rem;
}

.page-products .cat-sec-head {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.page-products .cat-sec-no {
  margin: 0;
  padding-left: 0.55rem;
  border-left: 3px solid var(--whistle);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.2em;
  color: var(--pitch);
}

.page-products .cat-sec h2 {
  margin: 0;
  font-size: clamp(1.3rem, 3.2vw, 1.88rem);
  line-height: 1.28;
  font-weight: 900;
  letter-spacing: -0.015em;
  color: var(--night);
}

.page-products .cat-sec-lead {
  margin: 0 0 1.1rem;
  max-width: 34rem;
  font-size: 0.94rem;
  line-height: 1.78;
  color: rgba(7, 26, 43, 0.82);
}

/* ---------- 路径图 ---------- */

.page-products .cat-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.page-products .cat-flow li {
  position: relative;
  min-width: 0;
}

.page-products .cat-flow a {
  display: grid;
  gap: 0.3rem;
  height: 100%;
  padding: 0.95rem 1rem 1.05rem;
  background: #ffffff;
  border: 1.5px solid var(--cat-line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.page-products .cat-flow a:hover {
  border-color: var(--whistle);
  box-shadow: var(--cat-shadow);
  transform: translateY(-2px);
}

.page-products .cat-flow-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: 0.15rem;
  border-radius: var(--radius);
  background: var(--mist);
  color: var(--pitch);
  transition: background var(--ease), color var(--ease);
}

.page-products .cat-flow a:hover .cat-flow-ico {
  background: var(--whistle);
  color: var(--night);
}

.page-products .cat-flow-t {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--night);
}

.page-products .cat-flow-d {
  font-size: 0.81rem;
  line-height: 1.6;
  color: rgba(7, 26, 43, 0.7);
}

/* ---------- 注册四步 ---------- */

.page-products .cat-reg {
  display: grid;
  gap: 1.3rem;
}

.page-products .cat-reg-left {
  min-width: 0;
}

.page-products .cat-steps {
  list-style: none;
  margin: 0 0 0.9rem;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.page-products .cat-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  padding: 0.85rem 0.95rem;
  background: #ffffff;
  border: 1px solid var(--cat-hair);
  border-left: 4px solid var(--pitch);
  border-radius: var(--radius);
  transition: border-left-color var(--ease), background var(--ease), box-shadow var(--ease);
}

.page-products .cat-step:hover {
  border-left-color: var(--whistle);
  background: #fffcf7;
  box-shadow: var(--cat-shadow);
}

.page-products .cat-step-no {
  padding-top: 0.1rem;
  font-family: var(--font-mono);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--pitch);
}

.page-products .cat-step h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--night);
}

.page-products .cat-step p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.68;
  color: rgba(7, 26, 43, 0.78);
}

.page-products .cat-step-note {
  display: none;
  margin-top: 0.5rem;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius);
  background: var(--whistle-soft);
  color: var(--whistle-ink);
  font-size: 0.79rem;
  line-height: 1.6;
}

.page-products .cat-step:hover .cat-step-note {
  display: block;
}

@media (hover: none) {
  .page-products .cat-step-note {
    display: block;
  }
}

.page-products .cat-reg-foot {
  margin: 0;
  padding: 0.7rem 0.9rem;
  background: var(--mist);
  border-left: 3px solid var(--pitch);
  border-radius: var(--radius);
  font-size: 0.83rem;
  line-height: 1.72;
  color: var(--deep);
}

.page-products .cat-reg-figure {
  margin: 0;
  min-width: 0;
}

.page-products .cat-reg-figure .figure-caption {
  margin-top: 0.6rem;
  font-size: 0.77rem;
  line-height: 1.6;
  color: rgba(7, 26, 43, 0.6);
}

/* ---------- 赛程与战报 ---------- */

.page-products .cat-fixture-shot {
  margin: 0 0 1rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.page-products .cat-split {
  display: grid;
  gap: 0.9rem;
}

.page-products .cat-panel {
  position: relative;
  overflow: hidden;
  padding: 1rem 1rem 1.15rem;
  background: var(--night);
  color: var(--board);
  border-radius: var(--radius);
}

.page-products .cat-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--whistle);
}

.page-products .cat-panel--alt {
  background: var(--pitch);
}

.page-products .cat-panel--alt::before {
  background: var(--whistle-soft);
}

.page-products .cat-panel-k {
  margin: 0 0 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  letter-spacing: 0.18em;
  color: var(--whistle);
}

.page-products .cat-panel--alt .cat-panel-k {
  color: var(--whistle-soft);
}

.page-products .cat-fixtures {
  list-style: none;
  margin: 0 0 0.9rem;
  padding: 0;
}

.page-products .cat-fixtures li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.6rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.page-products .cat-fixtures li:last-child {
  border-bottom: 0;
}

.page-products .cat-fx-stage {
  flex: 1 1 auto;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--board);
}

.page-products .cat-fx-window {
  flex: 0 0 auto;
  font-size: 0.73rem;
  color: rgba(246, 247, 242, 0.6);
}

.page-products .cat-fx-score {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--whistle);
}

.page-products .cat-briefs {
  list-style: none;
  margin: 0 0 0.9rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.page-products .cat-briefs li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(246, 247, 242, 0.9);
}

.page-products .cat-briefs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--whistle-soft);
  transform: rotate(45deg);
}

.page-products .cat-panel-link {
  display: inline-block;
  padding-bottom: 0.1rem;
  border-bottom: 1.5px solid var(--whistle);
  font-size: 0.81rem;
  font-weight: 700;
  color: var(--board);
  text-decoration: none;
  transition: color var(--ease), border-color var(--ease);
}

.page-products .cat-panel-link:hover {
  color: var(--whistle);
  border-color: var(--board);
}

.page-products .cat-panel--alt .cat-panel-link {
  border-bottom-color: var(--whistle-soft);
}

.page-products .cat-panel--alt .cat-panel-link:hover {
  color: var(--whistle-soft);
  border-color: var(--board);
}

/* ---------- 桌面端入口 ---------- */

.page-products .cat-desk {
  display: grid;
  gap: 1.2rem;
}

.page-products .cat-desk-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
}

.page-products .cat-desk-copy {
  min-width: 0;
}

.page-products .cat-desk-copy > p {
  margin: 0 0 0.9rem;
  font-size: 0.93rem;
  line-height: 1.8;
  color: rgba(7, 26, 43, 0.82);
}

.page-products .cat-desk-dl {
  margin: 0 0 0.9rem;
  display: grid;
  gap: 0.5rem;
}

.page-products .cat-desk-dl > div {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 0.7rem;
  padding: 0.55rem 0.7rem;
  background: var(--mist);
  border-radius: var(--radius);
}

.page-products .cat-desk-dl dt {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--pitch);
}

.page-products .cat-desk-dl dd {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.6;
  color: var(--deep);
}

.page-products .cat-desk-note {
  padding-left: 0.7rem;
  border-left: 2px solid var(--whistle);
  font-size: 0.83rem;
  line-height: 1.72;
  color: rgba(7, 26, 43, 0.72);
}

/* ---------- 适用场景 ---------- */

.page-products .cat-scenes {
  display: grid;
  gap: 1.1rem;
}

.page-products .cat-scene-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
}

.page-products .cat-scene-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.page-products .cat-scene-list li {
  min-width: 0;
}

.page-products .cat-scene-link {
  display: block;
  height: 100%;
  padding: 0.8rem 0.9rem;
  background: #ffffff;
  border: 1px solid var(--cat-hair);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}

.page-products .cat-scene-link:hover {
  border-color: var(--whistle);
  transform: translateX(3px);
  box-shadow: var(--cat-shadow);
}

.page-products .cat-scene-k {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--pitch);
}

.page-products .cat-scene-d {
  display: block;
  font-size: 0.85rem;
  line-height: 1.68;
  color: rgba(7, 26, 43, 0.78);
}

/* ---------- 版本与更新 ---------- */

.page-products .cat-release {
  position: relative;
  overflow: hidden;
  padding: 1.1rem 1.15rem 1.25rem;
  background: var(--stand);
  color: var(--board);
  border-radius: var(--radius);
}

.page-products .cat-release::after {
  content: "";
  position: absolute;
  right: -12%;
  top: -40%;
  width: 55%;
  height: 180%;
  background: var(--whistle);
  opacity: 0.1;
  transform: skewX(-9deg);
  pointer-events: none;
}

.page-products .cat-release > * {
  position: relative;
  z-index: 1;
}

.page-products .cat-release > p {
  margin: 0 0 0.9rem;
  font-size: 0.91rem;
  line-height: 1.8;
  color: rgba(246, 247, 242, 0.86);
}

.page-products .cat-release-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-products .cat-release-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 0.8rem;
  padding: 0.55rem 0.75rem;
  background: var(--stand);
}

.page-products .cat-release-list span {
  font-size: 0.79rem;
  color: rgba(246, 247, 242, 0.62);
}

.page-products .cat-release-list strong {
  font-family: var(--font-mono);
  font-size: 0.81rem;
  font-weight: 700;
  color: var(--whistle-soft);
}

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

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

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

@media (min-width: 760px) {
  .page-products .cat-flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .page-products .cat-flow li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 2.05rem;
    right: -0.62rem;
    width: 0.55rem;
    height: 2px;
    background: var(--rail);
  }
}

@media (min-width: 860px) {
  .page-products .cat-reg {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
    gap: clamp(1.4rem, 3vw, 2.2rem);
  }
  .page-products .cat-desk {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    align-items: start;
    gap: clamp(1.4rem, 3vw, 2.4rem);
  }
  .page-products .cat-scenes {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
    gap: clamp(1.2rem, 2.5vw, 2rem);
  }
}

@media (min-width: 900px) {
  .page-products .cat-hero-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    gap: clamp(1.8rem, 4vw, 3rem);
  }
}

@media (min-width: 960px) {
  .page-products .cat-board-grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    gap: clamp(1.8rem, 3.5vw, 3rem);
  }
  .page-products .cat-index {
    position: sticky;
    top: 1.2rem;
  }
  .page-products .cat-index-list {
    grid-template-columns: 1fr;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .page-products *,
  .page-products *::before,
  .page-products *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
