.page-products {
  --pro-hairline: rgba(11, 42, 31, 0.14);
  --pro-text: rgba(11, 42, 31, 0.78);
  --pro-text-soft: rgba(11, 42, 31, 0.62);
  --pro-card-bg: #FFFDF6;
  --pro-gap: clamp(20px, 4vw, 40px);
}

/* ---------- 首屏报头区 ---------- */
.page-products .pro-hero {
  padding: clamp(26px, 5vw, 58px) 0 clamp(30px, 6vw, 68px);
}

.page-products .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--c-mist);
  margin-bottom: clamp(18px, 3vw, 30px);
}

.page-products .breadcrumb a {
  color: var(--c-gold-soft);
  text-decoration: none;
}

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

.page-products .pro-kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-gold);
  font-weight: 700;
}

.page-products .pro-kicker--dark {
  color: var(--c-gold);
  margin-bottom: 6px;
}

.page-products .pro-title {
  margin: 12px 0 0;
  font-size: clamp(32px, 7.2vw, 74px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--c-paper);
  max-width: 17ch;
}

.page-products .pro-lede {
  margin: clamp(18px, 3vw, 26px) 0 0;
  max-width: 60ch;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.75;
  color: rgba(247, 243, 232, 0.84);
}

.page-products .pro-hero__facts {
  list-style: none;
  margin: clamp(26px, 5vw, 46px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.page-products .pro-hero__facts li {
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  background: rgba(247, 243, 232, 0.06);
  border: 1px solid rgba(232, 212, 139, 0.22);
  border-left: 3px solid var(--c-gold);
}

.page-products .pro-hero__facts strong {
  display: block;
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--c-gold);
  font-variant-numeric: tabular-nums;
}

.page-products .pro-hero__facts span {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--c-mist);
}

/* ---------- 页面主体与目录 ---------- */
.page-products .pro-body {
  padding: 0 0 clamp(46px, 8vw, 96px);
}

.page-products .pro-layout {
  padding-top: 0;
}

.page-products .pro-toc {
  position: sticky;
  top: 0;
  z-index: 6;
  margin: 0 calc(-1 * var(--gutter)) 22px;
  padding: 10px var(--gutter);
  background: rgba(247, 243, 232, 0.94);
  border-bottom: 1px solid var(--pro-hairline);
}

.page-products .pro-toc__title {
  display: none;
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--c-mist);
  font-weight: 700;
}

.page-products .pro-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.page-products .pro-toc__list::-webkit-scrollbar {
  display: none;
}

.page-products .pro-toc__link {
  display: inline-block;
  white-space: nowrap;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(11, 42, 31, 0.16);
  font-size: 12.5px;
  color: var(--c-ink);
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.page-products .pro-toc__link:hover,
.page-products .pro-toc__link.is-active {
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: var(--c-paper);
}

/* ---------- 章节画板 ---------- */
.page-products .pro-block {
  padding: clamp(26px, 4.6vw, 44px) 0;
}

.page-products .pro-block + .pro-block {
  border-top: 1px solid var(--pro-hairline);
}

.page-products .pro-h2 {
  margin: 10px 0 0;
  max-width: 22ch;
  font-size: clamp(23px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}

.page-products .pro-h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--c-ink);
}

.page-products .pro-h3--light {
  color: var(--c-paper);
  margin: 0;
}

.page-products .pro-block__intro {
  margin: 18px 0 0;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.78;
  color: var(--pro-text);
}

.page-products .pro-block p {
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.78;
  color: var(--pro-text);
}

/* ---------- 分区与图版 ---------- */
.page-products .pro-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 4vw, 36px);
  margin-top: 22px;
}

.page-products .pro-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(158deg, var(--c-ink-2), var(--c-ink));
  box-shadow: var(--shadow-panel);
}

.page-products .pro-figure--wide {
  margin-top: 26px;
}

.page-products .pro-figure--slim {
  margin-top: 28px;
}

.page-products .pro-figure--tall {
  margin: 0;
}

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

.page-products .pro-figure figcaption {
  padding: 12px 16px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--c-mist);
  background: rgba(11, 42, 31, 0.92);
}

/* ---------- 索引行 ---------- */
.page-products .pro-rows {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.page-products .pro-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-areas:
    "no label"
    "no value";
  gap: 2px 10px;
  padding: 13px 0;
  border-top: 1px solid var(--pro-hairline);
}

.page-products .pro-row:last-child {
  border-bottom: 1px solid var(--pro-hairline);
}

.page-products .pro-row__no {
  grid-area: no;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-gold);
  padding-top: 2px;
}

.page-products .pro-row__label {
  grid-area: label;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--c-mist);
  font-weight: 700;
}

.page-products .pro-row__value {
  grid-area: value;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--c-char);
}

/* ---------- 昨日结果面板 ---------- */
.page-products .pro-board {
  margin-top: 24px;
  padding: clamp(20px, 4vw, 36px);
  border-radius: var(--radius-lg);
  background: linear-gradient(152deg, var(--c-ink) 0%, var(--c-ink-2) 100%);
  box-shadow: var(--shadow-panel);
}

.page-products .pro-stats {
  list-style: none;
  margin: 0 0 clamp(24px, 4vw, 34px);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.page-products .pro-stat {
  padding: 14px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(232, 212, 139, 0.26);
  background: rgba(247, 243, 232, 0.05);
}

.page-products .pro-stat strong {
  display: block;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.05;
  color: var(--c-gold);
  font-variant-numeric: tabular-nums;
}

.page-products .pro-stat span {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--c-mist);
}

.page-products .pro-recent__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-products .pro-recent__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 13px 0;
  border-top: 1px solid rgba(232, 212, 139, 0.16);
}

.page-products .pro-recent__when {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--c-gold-soft);
}

.page-products .pro-recent__text {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(247, 243, 232, 0.84);
}

/* ---------- 走势图 ---------- */
.page-products .pro-chart {
  margin-top: 26px;
  padding: clamp(16px, 3vw, 28px);
  border-radius: var(--radius-lg);
  background: var(--c-ink);
  box-shadow: var(--shadow-panel);
}

.page-products .pro-chart__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.page-products .pro-chart__legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: var(--c-mist);
}

.page-products .pro-chart__legend li {
  display: flex;
  align-items: center;
}

.page-products .pro-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 7px;
  border-radius: 50%;
}

.page-products .pro-dot--gold {
  background: var(--c-gold);
}

.page-products .pro-dot--cyan {
  background: var(--c-cyan);
}

.page-products .pro-chart__svg {
  display: block;
  width: 100%;
  height: auto;
}

.page-products .pro-chart__grid line {
  stroke: rgba(232, 212, 139, 0.14);
  stroke-width: 1;
}

.page-products .pro-chart__area {
  fill: url(#proTrendFill);
}

.page-products .pro-chart__line {
  fill: none;
  stroke: var(--c-gold);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-products .pro-chart__line--alt {
  stroke: var(--c-cyan);
  stroke-width: 2;
  stroke-dasharray: 6 7;
}

.page-products .pro-chart__pt {
  cursor: pointer;
  outline: none;
}

.page-products .pro-chart__pt circle {
  fill: var(--c-gold-soft);
  stroke: var(--c-ink);
  stroke-width: 2;
  transition: fill 0.22s var(--ease);
}

.page-products .pro-chart__pt:hover circle,
.page-products .pro-chart__pt:focus circle {
  fill: var(--c-orange);
}

.page-products .pro-chart__tip {
  fill: var(--c-paper);
  font-size: 13px;
  font-weight: 700;
  text-anchor: middle;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease);
}

.page-products .pro-chart__pt:hover .pro-chart__tip,
.page-products .pro-chart__pt:focus .pro-chart__tip {
  opacity: 1;
}

.page-products .pro-chart__readout {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0 0 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.page-products .pro-chart__readout::-webkit-scrollbar {
  display: none;
}

.page-products .pro-chart__readout li {
  flex: 0 0 auto;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(232, 212, 139, 0.3);
  font-size: 12px;
  color: var(--c-gold-soft);
  font-variant-numeric: tabular-nums;
}

.page-products .pro-chart__note {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--c-mist);
}

/* ---------- 筛选维度 ---------- */
.page-products .pro-filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 26px;
}

.page-products .pro-filter {
  padding-top: 16px;
  border-top: 2px solid var(--pro-hairline);
}

.page-products .pro-filter__title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-ink);
}

.page-products .pro-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.page-products .pro-tags li {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--pro-hairline);
  background: rgba(11, 42, 31, 0.05);
  font-size: 12.5px;
  color: var(--pro-text);
}

/* ---------- 移动端阅读 ---------- */
.page-products .pro-mobile {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 4vw, 34px);
  margin-top: 24px;
  align-items: center;
}

.page-products .pro-checklist {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.page-products .pro-checklist li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--pro-text);
}

.page-products .pro-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-gold);
}

/* ---------- 玩法关联入口 ---------- */
.page-products .pro-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 26px;
}

.page-products .pro-link {
  display: block;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--pro-hairline);
  background: var(--pro-card-bg);
  text-decoration: none;
  color: var(--c-char);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}

.page-products .pro-link:hover {
  transform: translateY(-3px);
  border-color: var(--c-gold);
  box-shadow: var(--shadow-panel);
}

.page-products .pro-link__title {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--c-ink);
}

.page-products .pro-link__text {
  display: block;
  margin-top: 9px;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--pro-text-soft);
}

.page-products .pro-link__arrow {
  display: block;
  margin-top: 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--c-gold);
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-products .pro-hero__facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

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

  .page-products .pro-recent__item {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 16px;
    align-items: baseline;
  }

  .page-products .pro-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 34px;
  }

  .page-products .pro-mobile {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(26px, 4vw, 48px);
  }

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

@media (min-width: 900px) {
  .page-products .pro-split {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
    gap: clamp(30px, 4vw, 54px);
    align-items: center;
  }
}

@media (min-width: 980px) {
  .page-products .pro-layout {
    display: grid;
    grid-template-columns: 188px minmax(0, 1fr);
    gap: clamp(30px, 4vw, 58px);
    align-items: start;
    padding-top: clamp(30px, 5vw, 56px);
  }

  .page-products .pro-toc {
    position: sticky;
    top: 96px;
    margin: 0;
    padding: 0;
    background: transparent;
    border-bottom: 0;
  }

  .page-products .pro-toc__title {
    display: block;
  }

  .page-products .pro-toc__list {
    flex-direction: column;
    gap: 2px;
    overflow: visible;
  }

  .page-products .pro-toc__link {
    display: block;
    width: 100%;
    padding: 8px 6px 8px 12px;
    border: 0;
    border-left: 2px solid transparent;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--pro-text-soft);
    font-size: 13px;
  }

  .page-products .pro-toc__link:hover {
    background: rgba(11, 42, 31, 0.05);
    border-left-color: rgba(201, 162, 39, 0.5);
    color: var(--c-ink);
  }

  .page-products .pro-toc__link.is-active {
    background: rgba(201, 162, 39, 0.1);
    border-left-color: var(--c-gold);
    color: var(--c-ink);
    font-weight: 700;
  }

  .page-products .pro-block:first-child {
    padding-top: 0;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .page-products .pro-toc__link,
  .page-products .pro-link,
  .page-products .pro-chart__pt circle,
  .page-products .pro-chart__tip {
    transition: none;
  }

  .page-products .pro-link:hover {
    transform: none;
  }
}
