.page-products {
  --cat-cut: 22px;
  --cat-gap: clamp(14px, 2.2vw, 26px);
  --cat-pad: clamp(16px, 2.6vw, 26px);
  --cat-scroll-offset: clamp(88px, 12vw, 112px);
}

.page-products .breadcrumb {
  padding-top: clamp(14px, 2.6vw, 24px);
}

.page-products .cat-hero,
.page-products .cat-overview,
.page-products .cat-module,
.page-products .cat-charts,
.page-products .cat-log {
  scroll-margin-top: var(--cat-scroll-offset);
}

/* ---------- 首屏 ---------- */
.page-products .cat-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(20px, 4vw, 42px) 0 clamp(30px, 5vw, 60px);
}

.page-products .cat-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -34%;
  right: -20%;
  width: min(640px, 94vw);
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(closest-side, rgba(255, 90, 31, 0.32), transparent 72%),
    radial-gradient(closest-side, rgba(45, 125, 255, 0.24), transparent 70%);
  background-position: 32% 32%, 76% 70%;
  background-repeat: no-repeat;
  filter: blur(6px);
  pointer-events: none;
}

.page-products .cat-hero-grid {
  display: grid;
  gap: clamp(24px, 4vw, 44px);
}

.page-products .cat-hero-title {
  margin: 0 0 clamp(14px, 2vw, 20px);
  font-size: clamp(2.4rem, 8.4vw, 5.4rem);
  line-height: 0.94;
  letter-spacing: -0.01em;
}

.page-products .cat-hero-accent {
  display: inline-block;
  padding-right: 0.06em;
  background: linear-gradient(96deg, var(--orange) 6%, var(--orange-soft) 44%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-products .cat-hero-lead {
  max-width: 48ch;
  margin: 0 0 clamp(18px, 3vw, 26px);
  color: var(--body-soft);
  font-size: clamp(0.98rem, 1.6vw, 1.06rem);
  line-height: 1.75;
}

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

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

.page-products .cat-hero-facts li {
  padding: 14px 14px 14px 16px;
  background: linear-gradient(120deg, rgba(255, 90, 31, 0.2), rgba(21, 27, 36, 0.92) 64%);
  border-left: 2px solid var(--orange);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.page-products .cat-fact-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--paper);
}

.page-products .cat-fact-label {
  display: block;
  margin-top: 5px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--gray);
}

@media (min-width: 940px) {
  .page-products .cat-hero-grid {
    grid-template-columns: minmax(0, 1.42fr) minmax(0, 0.58fr);
    align-items: end;
  }
}

/* ---------- 目录总览 ---------- */
.page-products .cat-overview {
  padding-block: clamp(34px, 6vw, 68px);
}

.page-products .cat-tiles {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--cat-gap);
  margin-top: clamp(20px, 4vw, 34px);
}

.page-products .cat-tile {
  --base: 0px;
  --ty: 0px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: calc(var(--cat-pad) + 6px) var(--cat-pad) var(--cat-pad);
  background: var(--panel);
  border: 1px solid var(--line-soft);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cat-cut)), calc(100% - var(--cat-cut)) 100%, 0 100%);
  color: var(--paper);
  text-decoration: none;
  transform: translateY(calc(var(--base) + var(--ty)));
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
    box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.page-products .cat-tile::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--orange), var(--blue));
}

.page-products .cat-tile:hover {
  --ty: -6px;
  background: #1b2430;
  border-color: rgba(255, 90, 31, 0.45);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42);
}

.page-products .cat-tile:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.page-products .cat-tile-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--orange);
}

.page-products .cat-tile-name {
  font-family: var(--font-serif);
  font-size: 1.16rem;
  line-height: 1.35;
  color: var(--paper);
}

.page-products .cat-tile-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--body-soft);
}

.page-products .cat-tile-hint {
  overflow: hidden;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--lime);
}

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

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

  .page-products .cat-tiles > .cat-tile:nth-child(2) { --base: 26px; }
  .page-products .cat-tiles > .cat-tile:nth-child(3) { --base: -10px; }
  .page-products .cat-tiles > .cat-tile:nth-child(5) { --base: 26px; }
  .page-products .cat-tiles > .cat-tile:nth-child(6) { --base: -10px; }
}

@media (hover: hover) and (min-width: 620px) {
  .page-products .cat-tile-hint {
    max-height: 0;
    opacity: 0;
    transition: max-height 0.35s var(--ease), opacity 0.3s var(--ease);
  }

  .page-products .cat-tile:hover .cat-tile-hint,
  .page-products .cat-tile:focus-visible .cat-tile-hint {
    max-height: 60px;
    opacity: 1;
  }
}

/* ---------- 章节骨架 ---------- */
.page-products .cat-module,
.page-products .cat-charts {
  padding-block: clamp(34px, 6vw, 70px);
}

.page-products .cat-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
}

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

.page-products .cat-split-figure {
  margin: 0;
  width: 100%;
}

.page-products .cat-split-figure img,
.page-products .cat-chart-combo img,
.page-products .cat-log-visual img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.page-products .cat-body {
  margin: 0 0 14px;
  color: var(--body-soft);
  font-size: 0.96rem;
  line-height: 1.78;
}

.page-products .cat-note {
  margin: 16px 0 0;
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--gray);
}

.page-products .cat-note a {
  color: var(--orange-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-products .cat-note a:hover {
  color: var(--lime);
}

.page-products .cat-bullets {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.page-products .cat-bullets li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  line-height: 1.72;
  color: var(--body-soft);
}

.page-products .cat-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 9px;
  height: 9px;
  background: var(--lime);
  transform: skewX(-18deg);
}

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

/* ---------- 四类图表 ---------- */
.page-products .cat-chart-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 6px;
}

.page-products .cat-chart-index .chip {
  text-decoration: none;
}

.page-products .cat-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--cat-gap);
  margin-top: 18px;
}

.page-products .cat-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: var(--cat-pad);
  background: var(--panel);
  border: 1px solid var(--line-soft);
  clip-path: polygon(0 0, calc(100% - var(--cat-cut)) 0, 100% var(--cat-cut), 100% 100%, 0 100%);
  scroll-margin-top: var(--cat-scroll-offset);
}

.page-products .cat-chart h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.06rem;
  line-height: 1.4;
  color: var(--paper);
}

.page-products .cat-chart p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.72;
  color: var(--body-soft);
}

.page-products .cat-svg {
  display: block;
  width: 100%;
  height: auto;
  background: linear-gradient(160deg, rgba(20, 52, 95, 0.6), rgba(11, 14, 19, 0.3));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

.page-products .cat-chart-combo {
  margin: clamp(20px, 4vw, 34px) 0 0;
}

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

/* ---------- 战报频道六栏 ---------- */
.page-products .cat-channel-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.page-products .cat-channel-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 12px 14px;
  background: rgba(21, 27, 36, 0.75);
  border-left: 2px solid var(--deep-blue);
  font-size: 0.9rem;
  line-height: 1.66;
  color: var(--body-soft);
}

.page-products .cat-channel-list li.is-highlight {
  background: linear-gradient(100deg, rgba(255, 90, 31, 0.2), rgba(21, 27, 36, 0.85) 62%);
  border-left-color: var(--orange);
  color: var(--paper);
}

.page-products .cat-channel-list b {
  font-weight: 600;
  color: var(--paper);
}

.page-products .cat-ch-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--orange);
}

/* ---------- 客户端 ---------- */
.page-products .cat-client-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 16px;
  padding: 0;
  list-style: none;
}

.page-products .cat-client-tags li {
  padding: 5px 12px;
  border: 1px solid rgba(182, 255, 61, 0.5);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  color: var(--lime);
}

/* ---------- 新手引导 ---------- */
.page-products .cat-steps {
  display: grid;
  gap: 10px;
  margin: clamp(20px, 3vw, 30px) 0 0;
  padding: 0;
  list-style: none;
}

.page-products .cat-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}

.page-products .cat-step-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--orange);
}

.page-products .cat-step h3 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--paper);
}

.page-products .cat-step p {
  margin: 0;
  font-size: 0.89rem;
  line-height: 1.7;
  color: var(--body-soft);
}

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

  .page-products .cat-steps > .cat-step:last-child {
    grid-column: 1 / -1;
  }
}

/* ---------- 版本日志 ---------- */
.page-products .cat-log {
  padding-block: clamp(34px, 6vw, 70px);
}

.page-products .cat-log-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 12px 0 20px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--orange) transparent;
}

.page-products .cat-log-scroll::-webkit-scrollbar {
  height: 6px;
}

.page-products .cat-log-scroll::-webkit-scrollbar-thumb {
  background: var(--orange);
  border-radius: 3px;
}

.page-products .cat-log-scroll:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: -2px;
}

.page-products .cat-log-track {
  position: relative;
  display: flex;
  gap: 14px;
  width: max-content;
  margin: 0;
  padding: 0 clamp(20px, 5vw, 60px);
  list-style: none;
}

.page-products .cat-log-track::before {
  content: "";
  position: absolute;
  left: clamp(20px, 5vw, 60px);
  right: clamp(20px, 5vw, 60px);
  top: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--blue) 55%, var(--lime));
  opacity: 0.55;
}

.page-products .cat-log-item {
  position: relative;
  flex: 0 0 clamp(210px, 62vw, 278px);
  padding: 40px 16px 18px;
  background: rgba(21, 27, 36, 0.85);
  border: 1px solid var(--line-soft);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
  scroll-snap-align: start;
}

.page-products .cat-log-item::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 16px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.2);
}

.page-products .cat-log-ver {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--lime);
}

.page-products .cat-log-item h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--paper);
}

.page-products .cat-log-item p {
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.7;
  color: var(--body-soft);
}

.page-products .cat-log-visual {
  margin: clamp(6px, 1.6vw, 14px) 0 0;
}

/* ---------- 窄屏收边 ---------- */
@media (max-width: 480px) {
  .page-products {
    --cat-cut: 16px;
  }

  .page-products .cat-hero-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-products .cat-step {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .cat-tile {
    transition: none;
    transform: none;
  }

  .page-products .cat-tile:hover {
    --ty: 0px;
  }
}
