.page-products {
  background: var(--night);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
}

/* ---------- 首屏 ---------- */
.page-products .cat-hero {
  position: relative;
  border-bottom: 1px solid var(--line-soft);
  background-color: var(--deep);
  background-image:
    repeating-linear-gradient(114deg, rgba(198, 255, 61, 0.05) 0 1px, transparent 1px 24px),
    radial-gradient(130% 100% at 88% -10%, rgba(27, 92, 65, 0.8) 0%, rgba(6, 32, 24, 0) 62%);
}

.page-products .cat-hero__inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(22px, 3.4vw, 44px) clamp(16px, 4vw, 40px) clamp(34px, 5vw, 68px);
}

.page-products .cat-hero .breadcrumb {
  margin: 0 0 22px;
}

.page-products .cat-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 4.6vw, 3.2rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 0.3em 0 0.4em;
  max-width: 22ch;
}

.page-products .cat-hero__lead {
  margin: 0;
  max-width: 60ch;
  color: var(--ash);
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
  line-height: 1.85;
}

.page-products .cat-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px clamp(24px, 5vw, 56px);
  margin-top: clamp(24px, 3.5vw, 40px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.page-products .cat-hero__stats .stat__value {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.1;
  color: var(--volt);
}

.page-products .cat-hero__stats .stat__label {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-aux);
  color: var(--ash);
}

/* ---------- 主体框架 ---------- */
.page-products .cat-body {
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(28px, 4.5vw, 64px) clamp(16px, 4vw, 40px) clamp(48px, 7vw, 96px);
  display: grid;
  gap: 24px;
  min-width: 0;
}

/* ---------- 左侧索引轨道 ---------- */
.page-products .cat-rail {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.page-products .cat-rail__title {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ash);
}

.page-products .cat-rail__list {
  list-style: none;
  margin: 0;
  padding: 0 0 6px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.page-products .cat-rail__list::-webkit-scrollbar {
  display: none;
}

.page-products .cat-rail__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 10px;
  border-left: 2px solid transparent;
  color: var(--ash);
  text-decoration: none;
  font-size: 0.875rem;
  white-space: nowrap;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.page-products .cat-rail__link:hover,
.page-products .cat-rail__link:focus-visible {
  color: var(--volt);
  border-left-color: var(--volt);
  background: rgba(198, 255, 61, 0.06);
  outline: none;
}

.page-products .cat-rail__link:focus-visible {
  outline: 2px solid var(--volt);
  outline-offset: 2px;
}

.page-products .cat-rail__num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ash);
  opacity: 0.7;
}

/* ---------- 内容流与章节 ---------- */
.page-products .cat-flow {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(44px, 6vw, 84px);
}

.page-products .cat-section {
  min-width: 0;
  scroll-margin-top: 112px;
}

.page-products .cat-section h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.4vw, 1.95rem);
  line-height: 1.24;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  max-width: 26ch;
}

.page-products .cat-section__lead {
  margin: 0 0 24px;
  max-width: 62ch;
  color: var(--ash);
  font-size: 0.9375rem;
  line-height: 1.85;
}

.page-products .cat-section .prose {
  max-width: 64ch;
  margin-bottom: 22px;
}

.page-products .cat-section .prose p {
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--ash);
  margin: 0 0 14px;
}

.page-products .cat-section .prose p:last-child {
  margin-bottom: 0;
}

/* ---------- 图片槽 ---------- */
.page-products .cat-figure {
  margin: 0 0 24px;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  background: var(--deep);
  overflow: hidden;
}

.page-products .cat-figure:last-child {
  margin-bottom: 0;
}

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

.page-products .cat-figure figcaption {
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ash);
  border-top: 1px solid var(--line-soft);
}

/* ---------- 六类卡片磁贴 ---------- */
.page-products .card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 4px;
}

.page-products .tile {
  position: relative;
  background: var(--stand);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.page-products .tile:hover {
  border-color: rgba(198, 255, 61, 0.28);
}

.page-products .tile[open] {
  border-color: rgba(198, 255, 61, 0.42);
  background: #0d382c;
}

.page-products .tile::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: var(--notch);
  height: var(--notch);
  background: linear-gradient(225deg, var(--night) 50%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}

.page-products .tile--amber::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--amber);
  pointer-events: none;
}

.page-products .tile__summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  grid-template-areas:
    "name toggle"
    "brief toggle";
  gap: 6px 12px;
  align-items: start;
}

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

.page-products .tile__summary:focus-visible {
  outline: 2px solid var(--volt);
  outline-offset: -2px;
}

.page-products .tile__name {
  grid-area: name;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--white);
}

.page-products .tile__brief {
  grid-area: brief;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--ash);
}

.page-products .tile__toggle {
  grid-area: toggle;
  align-self: center;
  position: relative;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  flex: none;
}

.page-products .tile__toggle::before,
.page-products .tile__toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--volt);
  transition: transform 0.2s var(--ease);
}

.page-products .tile__toggle::before {
  width: 9px;
  height: 1.5px;
  transform: translate(-50%, -50%);
}

.page-products .tile__toggle::after {
  width: 1.5px;
  height: 9px;
  transform: translate(-50%, -50%);
}

.page-products .tile[open] .tile__toggle::after {
  transform: translate(-50%, -50%) scaleY(0);
}

.page-products .tile__body {
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--ash);
}

/* ---------- 积分榜表格 ---------- */
.page-products .rank-wrap {
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  background: var(--stand);
  overflow-x: auto;
  margin-bottom: 22px;
}

.page-products .rank-table {
  width: 100%;
  min-width: 460px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
}

.page-products .rank-caption {
  caption-side: top;
  text-align: left;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ash);
  border-bottom: 1px solid var(--line);
}

.page-products .rank-table thead th {
  padding: 11px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: left;
  color: var(--ash);
  white-space: nowrap;
  background: rgba(4, 18, 13, 0.55);
  border-bottom: 1px solid var(--line);
}

.page-products .rank-table tbody td {
  padding: 11px 14px;
  color: var(--white);
  white-space: nowrap;
  border-bottom: 1px solid rgba(244, 247, 242, 0.07);
}

.page-products .rank-table tbody tr:last-child td {
  border-bottom: 0;
}

.page-products .rank-table tbody tr:nth-child(even) td {
  background: rgba(27, 92, 65, 0.24);
}

.page-products .rank-table .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.page-products .rank-table thead th.num {
  text-align: right;
}

.page-products .rank-table td.pts {
  color: var(--volt);
  font-weight: 700;
}

.page-products .rank-table tbody td:first-child {
  border-left: 3px solid transparent;
}

.page-products .rank-table tbody tr.is-drop td:first-child {
  border-left: 3px solid var(--amber);
}

/* ---------- 两栏内容 ---------- */
.page-products .split {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.page-products .split__body {
  min-width: 0;
}

.page-products .split__media {
  margin: 0;
}

/* ---------- 射手榜小榜 ---------- */
.page-products .mini-board {
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  background: var(--stand);
  overflow: hidden;
  align-self: start;
}

.page-products .mini-board__head {
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ash);
}

.page-products .mini-board__row {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(244, 247, 242, 0.07);
  font-size: 0.875rem;
}

.page-products .mini-board__row:last-child {
  border-bottom: 0;
}

.page-products .mini-board__rank {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--ash);
}

.page-products .mini-board__row.is-tie .mini-board__rank {
  color: var(--amber);
  font-weight: 700;
}

.page-products .mini-board__name {
  color: var(--white);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-products .mini-board__goals {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1rem;
  color: var(--white);
}

/* ---------- 布局宽度刻度尺 ---------- */
.page-products .ruler {
  display: flex;
  height: 40px;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ash);
}

.page-products .ruler__seg {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-right: 1px solid var(--line-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-products .ruler__seg:last-child {
  border-right: 0;
}

.page-products .ruler__seg--rail {
  flex: 0 0 20%;
  background: rgba(27, 92, 65, 0.55);
}

.page-products .ruler__seg--main {
  flex: 1 1 auto;
  background: rgba(11, 50, 39, 0.7);
  color: var(--volt);
}

.page-products .ruler__seg--side {
  flex: 0 0 28%;
  background: rgba(255, 166, 48, 0.16);
  color: var(--amber);
}

.page-products .ruler--narrow .ruler__seg--rail {
  flex-basis: 15%;
}

.page-products .ruler-note {
  margin: 0 0 22px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ash);
  max-width: 62ch;
}

/* ---------- 三种用法 ---------- */
.page-products .path-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.page-products .path-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  background: var(--stand);
}

.page-products .path-card__step {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--amber);
}

.page-products .path-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--white);
}

.page-products .path-card__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: pstep;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--ash);
  flex: 1 1 auto;
}

.page-products .path-card__steps li {
  position: relative;
  padding-left: 22px;
  counter-increment: pstep;
}

.page-products .path-card__steps li::before {
  content: counter(pstep);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--volt);
}

.page-products .path-card__link {
  align-self: flex-start;
  margin-top: 4px;
  color: var(--volt);
  font-size: 0.8125rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(198, 255, 61, 0.4);
  padding-bottom: 1px;
}

.page-products .path-card__link:hover,
.page-products .path-card__link:focus-visible {
  border-bottom-color: var(--volt);
  outline: none;
}

.page-products .path-card__link:focus-visible {
  outline: 2px solid var(--volt);
  outline-offset: 3px;
}

/* ---------- 收尾行动区 ---------- */
.page-products .cat-cta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 3px;
  background-color: var(--stand);
  background-image: radial-gradient(120% 140% at 0% 0%, rgba(198, 255, 61, 0.1), transparent 58%);
}

.page-products .cat-cta p {
  margin: 0;
  max-width: 54ch;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--white);
}

.page-products .cat-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- 中屏 ---------- */
@media (min-width: 720px) {
  .page-products .card-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
  }

  .page-products .tile--2 {
    grid-column: span 2;
  }

  .page-products .tile--3 {
    grid-column: span 3;
  }

  .page-products .tile--4 {
    grid-column: span 4;
  }

  .page-products .path-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .page-products .cat-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ---------- 宽屏 ---------- */
@media (min-width: 860px) {
  .page-products .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
    gap: 34px;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .page-products .cat-body {
    grid-template-columns: var(--rail) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }

  .page-products .cat-rail {
    position: sticky;
    top: 104px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding-bottom: 12px;
  }

  .page-products .cat-rail__list {
    flex-direction: column;
    overflow-x: visible;
    gap: 2px;
    padding-bottom: 0;
  }

  .page-products .cat-rail__link {
    width: 100%;
    box-sizing: border-box;
  }
}

@media (min-width: 1280px) {
  .page-products .cat-flow {
    gap: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .tile,
  .page-products .tile__toggle::before,
  .page-products .tile__toggle::after,
  .page-products .cat-rail__link {
    transition: none;
  }
}
