.page-products {
  --pp-gap: clamp(48px, 8vw, 96px);
  background: var(--ink);
  color: var(--mist);
  line-height: 1.75;
  overflow-wrap: break-word;
}

.page-products .mod {
  padding-block: var(--pp-gap);
}

.page-products .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 面包屑 */
.page-products .crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--ash);
}

.page-products .crumbs li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--line-strong);
}

.page-products .crumbs a {
  color: var(--ash);
  text-decoration: none;
  transition: color var(--t-fast);
}

.page-products .crumbs a:hover,
.page-products .crumbs a:focus-visible {
  color: var(--lime);
}

/* 框景首屏 */
.page-products .biz-hero {
  padding-top: 22px;
  padding-bottom: 8px;
}

.page-products .hero-frame {
  position: relative;
  margin-top: 22px;
  padding: 30px 20px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(158deg, var(--raise) 0%, var(--panel) 48%, var(--ink) 100%);
  overflow: hidden;
}

.page-products .hero-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, var(--line-soft) 0 1px, transparent 1px 72px);
  opacity: 0.7;
  pointer-events: none;
}

.page-products .hero-frame::after {
  content: "";
  position: absolute;
  right: -18%;
  bottom: -46%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(198, 255, 61, 0.16), transparent 68%);
  pointer-events: none;
}

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

.page-products .hero-kicker {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--lime);
}

.page-products .hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(29px, 6vw, 58px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  max-width: 20em;
}

.page-products .hero-lead {
  margin: 18px 0 0;
  max-width: 62ch;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--mist);
}

.page-products .hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 14px;
  margin: 26px 0 0;
  padding: 20px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.page-products .hero-stats .num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(21px, 4.2vw, 28px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}

.page-products .hero-stats .label {
  display: block;
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--ash);
}

/* 章节头 */
.page-products .chapter {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "num kicker"
    "num title";
  column-gap: 16px;
  align-items: start;
  margin: 0 0 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.page-products .chapter-num {
  grid-area: num;
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(34px, 7vw, 60px);
  font-weight: 700;
  line-height: 0.88;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}

.page-products .chapter-kicker {
  grid-area: kicker;
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ash);
}

.page-products .chapter-title {
  grid-area: title;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(21px, 3.4vw, 32px);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--white);
  max-width: 24em;
}

/* 图片容器 */
.page-products .figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
  overflow: hidden;
}

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

.page-products .slant-figure {
  margin-bottom: 28px;
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), 0 100%);
}

/* 通用两列 */
.page-products .pp-grid {
  display: grid;
  gap: 24px;
}

.page-products .mod-body > .prose {
  max-width: 66ch;
}

.page-products .mod-body > .prose p {
  margin: 0 0 14px;
  font-size: 15.5px;
  color: var(--mist);
}

.page-products .mod-body > .prose p:last-child {
  margin-bottom: 0;
}

.page-products .mod-body > .cta-pill {
  margin-top: 22px;
}

/* 01 三阶段卡片 */
.page-products .stage-list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.page-products .stage {
  position: relative;
  padding: 18px 18px 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
  transition: border-color var(--t-fast), background var(--t-fast);
}

.page-products .stage::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 2px;
  background: var(--lime);
}

.page-products .stage:hover {
  border-color: rgba(198, 255, 61, 0.45);
  background: var(--raise);
}

.page-products .stage-k {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--lime);
}

.page-products .stage-t {
  margin: 0 0 8px;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--white);
}

.page-products .stage p:last-child {
  margin: 0;
  font-size: 14px;
  color: var(--mist);
}

/* 02 交锋对比 */
.page-products .h2h-card {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
}

.page-products .h2h-svg {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 6px;
  overflow: visible;
}

.page-products .h2h-svg text {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--ash);
  font-variant-numeric: tabular-nums;
}

.page-products .h2h-svg .axis {
  stroke: var(--line-strong);
  stroke-width: 1;
}

.page-products .h2h-svg .bar-home {
  fill: var(--lime);
}

.page-products .h2h-svg .bar-draw {
  fill: var(--orange);
}

.page-products .h2h-svg .bar-away {
  fill: #4B8574;
}

.page-products .h2h-svg g {
  transition: opacity var(--t-fast);
}

.page-products .h2h-svg g:hover {
  opacity: 0.76;
}

.page-products .h2h-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--ash);
}

.page-products .h2h-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 3px;
  vertical-align: middle;
}

.page-products .h2h-legend .k-home {
  background: var(--lime);
}

.page-products .h2h-legend .k-draw {
  background: var(--orange);
}

.page-products .h2h-legend .k-away {
  background: #4B8574;
}

/* 05 侧栏卡片与链接 */
.page-products .note-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
}

.page-products .note-card p {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--mist);
}

.page-products .note-card .note-meta {
  font-size: 12.5px;
  color: var(--ash);
}

.page-products .inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 0;
}

/* 04 导出格式 */
.page-products .fmt-grid {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.page-products .fmt-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #091612;
  transition: border-color var(--t-fast), transform var(--t-mid);
}

.page-products .fmt-card:hover,
.page-products .fmt-card:focus-within {
  border-color: rgba(198, 255, 61, 0.5);
  transform: translateY(-2px);
}

.page-products .fmt-card .tag {
  align-self: flex-start;
}

.page-products .fmt-card .card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
}

.page-products .fmt-code {
  margin: 0;
  padding: 12px 12px 14px;
  border-left: 2px solid var(--lime);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: rgba(6, 17, 14, 0.85);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.9;
  color: var(--mist);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}

.page-products .fmt-code b {
  color: var(--lime);
  font-weight: 600;
}

.page-products .fmt-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ash);
  line-height: 1.7;
}

/* 06 能力对照表 */
.page-products .table-wrap {
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
  overflow-x: auto;
}

.page-products .biz-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14px;
}

.page-products .biz-table th {
  padding: 13px 14px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ash);
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}

.page-products .biz-table tbody th {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--white);
  white-space: normal;
}

.page-products .biz-table td {
  padding: 14px;
  color: var(--mist);
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.page-products .biz-table tbody tr {
  transition: background var(--t-fast);
}

.page-products .biz-table tbody tr:hover,
.page-products .biz-table tbody tr:focus-within {
  background: rgba(198, 255, 61, 0.08);
}

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

.page-products .entry-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border: 1px solid rgba(198, 255, 61, 0.42);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--lime);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.page-products .entry-pill:hover,
.page-products .entry-pill:focus-visible {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--on-lime);
}

/* 收束带 */
.page-products .biz-close {
  padding-bottom: clamp(48px, 7vw, 88px);
}

.page-products .close-inner {
  position: relative;
  padding: 28px 20px 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(136deg, var(--raise) 0%, var(--panel) 58%, var(--ink) 100%);
  overflow: hidden;
}

.page-products .close-inner::after {
  content: "";
  position: absolute;
  right: -20%;
  top: -40%;
  width: 62%;
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%, rgba(255, 106, 43, 0.16), transparent 70%);
  pointer-events: none;
}

.page-products .close-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(21px, 3.4vw, 30px);
  font-weight: 800;
  line-height: 1.3;
  color: var(--white);
  max-width: 22em;
}

.page-products .close-text {
  margin: 0;
  max-width: 64ch;
  font-size: 15px;
  color: var(--mist);
}

.page-products .close-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 0;
}

/* 响应式 */
@media (min-width: 720px) {
  .page-products .hero-frame {
    padding: 44px 36px 36px;
  }

  .page-products .hero-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .page-products .close-inner {
    padding: 36px 32px 38px;
  }
}

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

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

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

  .page-products .stage-list {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: stretch;
  }

  .page-products .stage:nth-child(1) {
    grid-column: span 5;
  }

  .page-products .stage:nth-child(2) {
    grid-column: span 4;
  }

  .page-products .stage:nth-child(3) {
    grid-column: span 3;
  }

  .page-products .h2h-card {
    padding: 22px;
  }
}

@media (min-width: 1180px) {
  .page-products .hero-frame {
    padding: 54px 48px 42px;
  }

  .page-products .chapter {
    column-gap: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .fmt-card,
  .page-products .stage,
  .page-products .biz-table tbody tr,
  .page-products .entry-pill {
    transition: none;
  }

  .page-products .fmt-card:hover,
  .page-products .fmt-card:focus-within {
    transform: none;
  }
}
