.page-products {
  --prods-rail-w: 208px;
  --prods-gap: clamp(20px, 3vw, 40px);
  padding-bottom: clamp(40px, 7vw, 88px);
  color: var(--mist);
}

/* ---------- 面包屑下面的头部留白 ---------- */
.page-products .breadcrumbs {
  margin-top: clamp(12px, 2vw, 20px);
}

/* ---------- 首屏 ---------- */
.page-products .prods-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 5vw, 60px) 0 clamp(24px, 4vw, 44px);
}

.page-products .prods-hero::before {
  content: "";
  position: absolute;
  inset: -40% -12% auto -12%;
  height: 520px;
  background:
    radial-gradient(58% 62% at 18% 0%, rgba(43, 227, 198, 0.16), transparent 70%),
    radial-gradient(48% 58% at 92% 8%, rgba(255, 138, 61, 0.13), transparent 72%);
  pointer-events: none;
}

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

.page-products .prods-hero__title {
  margin: 14px 0 18px;
  max-width: 17ch;
  font-family: var(--font-display);
  font-size: clamp(34px, 7vw, 82px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.02em;
  color: var(--mist);
}

.page-products .prods-hero__lede {
  max-width: 62ch;
  color: var(--mist);
  opacity: 0.86;
}

.page-products .prods-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
  margin: clamp(26px, 4vw, 40px) 0 0;
  padding-top: clamp(20px, 3vw, 30px);
  border-top: 1px dashed var(--line-soft);
}

.page-products .prods-hero__stats .stat {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
}

.page-products .prods-hero__stats .stat__value {
  font-family: var(--font-num);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--cyan);
}

.page-products .prods-hero__stats .stat__value--tick {
  color: var(--tick);
}

.page-products .prods-hero__stats .stat__label {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--data);
}

/* ---------- 主布局：左轨 + 右面板 ---------- */
.page-products .prods-layout {
  display: grid;
  gap: clamp(18px, 3vw, 34px);
  margin-top: clamp(10px, 2vw, 24px);
}

.page-products .prods-rail__title {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--data);
}

.page-products .prods-rail__list {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 4px 0 10px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.page-products .prods-rail__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  background: rgba(35, 42, 46, 0.66);
  color: var(--data);
  font-size: 14px;
  white-space: nowrap;
  text-decoration: none;
  transition: color 200ms var(--ease), border-color 200ms var(--ease), background 200ms var(--ease);
}

.page-products .prods-rail__link:hover,
.page-products .prods-rail__link:focus-visible {
  color: var(--cyan);
  border-color: var(--line-cyan);
  outline: none;
}

.page-products .prods-rail__link.is-active,
.page-products .prods-rail__link[data-active="true"] {
  color: var(--mist);
  border-color: var(--tick);
  background: rgba(245, 196, 81, 0.13);
}

/* ---------- 内容区块 ---------- */
.page-products .prods-block {
  padding: clamp(30px, 5vw, 60px) 0;
  border-top: 1px dashed var(--line-soft);
}

.page-products .prods-block:first-of-type {
  padding-top: clamp(12px, 2vw, 22px);
  border-top: 0;
}

.page-products .prods-block .section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--mist);
}

.page-products .prods-block .lede {
  max-width: 60ch;
  color: var(--mist);
  opacity: 0.8;
}

/* ---------- 栏目总览 ---------- */
.page-products .prods-map {
  display: grid;
  gap: var(--prods-gap);
  margin-top: clamp(22px, 3vw, 34px);
}

.page-products .prods-map__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .prods-map__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
}

.page-products .prods-map__item:last-child {
  border-bottom: 1px solid var(--line-soft);
}

.page-products .prods-map__idx {
  grid-row: span 2;
  padding-top: 7px;
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.page-products .prods-map__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--mist);
}

.page-products .prods-map__note {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--data);
}

.page-products .prods-map__note .num {
  font-family: var(--font-num);
  color: var(--tick);
}

/* ---------- 分布示意卡 ---------- */
.page-products .prods-dist {
  margin: 0;
  padding: 20px 20px 18px;
  border: 1px solid var(--line-mid);
  border-radius: var(--radius-l);
  background: linear-gradient(158deg, rgba(35, 42, 46, 0.94), rgba(27, 58, 87, 0.5));
  box-shadow: var(--shadow-lift);
}

.page-products .prods-dist__cap {
  margin-bottom: 14px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--tick);
}

.page-products .prods-dist__svg {
  display: block;
  width: 100%;
  height: auto;
}

.page-products .prods-dist__axis {
  stroke: var(--line-mid);
  stroke-width: 1;
}

.page-products .prods-dist__bar--home {
  fill: var(--cyan);
}

.page-products .prods-dist__bar--away {
  fill: var(--amber);
}

.page-products .prods-dist__label {
  fill: var(--data);
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.page-products .prods-dist__note {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--data);
}

/* ---------- 图文分栏 ---------- */
.page-products .prods-split {
  display: grid;
  gap: var(--prods-gap);
  margin-top: clamp(20px, 3vw, 30px);
}

.page-products .prods-split__text p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.78;
  color: var(--mist);
  opacity: 0.88;
}

.page-products .prods-split__tail {
  padding-top: 12px;
  border-top: 1px dashed var(--line-soft);
  font-size: 14.5px;
  color: var(--data) !important;
  opacity: 1 !important;
}

.page-products .prods-points {
  display: grid;
  gap: 12px;
  margin: 18px 0 18px;
  padding: 0;
  list-style: none;
}

.page-products .prods-points > li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--mist);
  opacity: 0.88;
}

.page-products .prods-points > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

.page-products .prods-points > li:nth-child(2n)::before {
  background: var(--amber);
}

.page-products .prods-inline-link {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--line-cyan);
  transition: color 200ms var(--ease);
}

.page-products .prods-inline-link:hover,
.page-products .prods-inline-link:focus-visible {
  color: var(--tick);
  border-bottom-color: var(--tick);
}

.page-products .prods-sorts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 4px;
}

/* ---------- 平板视图 ---------- */
.page-products .prods-tablet-shot {
  margin: clamp(20px, 3vw, 30px) 0 0;
  border-radius: var(--radius-l);
}

.page-products .prods-swipe {
  display: flex;
  gap: 14px;
  margin-top: clamp(20px, 3vw, 28px);
  padding-bottom: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.page-products .prods-swipe:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 6px;
  border-radius: var(--radius-m);
}

.page-products .prods-swipe__item {
  flex: 0 0 min(76%, 320px);
  scroll-snap-align: start;
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  background: var(--glass);
}

.page-products .prods-swipe__tag {
  margin: 0 0 10px;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--amber);
}

.page-products .prods-swipe__name {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--mist);
}

.page-products .prods-swipe__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--data);
}

.page-products .prods-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: clamp(18px, 3vw, 26px);
}

.page-products .prods-facts .stat {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  background: rgba(27, 58, 87, 0.34);
}

.page-products .prods-facts .stat__value {
  font-family: var(--font-num);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--cyan);
}

.page-products .prods-facts .stat__label {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--data);
}

.page-products .prods-note {
  margin: 22px 0 0;
  padding-left: 16px;
  border-left: 2px solid var(--tick);
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--data);
}

.page-products .prods-note .num {
  font-family: var(--font-num);
  color: var(--tick);
}

/* ---------- 组合用法 ---------- */
.page-products .prods-paths {
  display: grid;
  gap: 14px;
  margin: clamp(22px, 3vw, 32px) 0 0;
  padding: 0;
  list-style: none;
}

.page-products .prods-path {
  position: relative;
  padding: 22px 22px 22px 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  background: rgba(35, 42, 46, 0.62);
}

.page-products .prods-path__step {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--tick);
}

.page-products .prods-path__name {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--mist);
}

.page-products .prods-path p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.74;
  color: var(--data);
}

.page-products .prods-workshop {
  margin-top: clamp(24px, 3.5vw, 36px);
  border-radius: var(--radius-l);
}

/* ---------- 收尾 ---------- */
.page-products .prods-outro {
  position: relative;
  margin-top: clamp(28px, 4vw, 48px);
  padding: clamp(28px, 4.6vw, 52px);
  border: 1px solid var(--line-cyan);
  border-radius: var(--radius-l);
  background:
    radial-gradient(70% 90% at 10% 0%, rgba(43, 227, 198, 0.16), transparent 68%),
    linear-gradient(150deg, rgba(35, 42, 46, 0.96), rgba(14, 43, 36, 0.9));
  overflow: hidden;
}

.page-products .prods-outro__title {
  margin: 12px 0 14px;
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.8vw, 40px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--mist);
}

.page-products .prods-outro__text {
  max-width: 58ch;
  margin: 0 0 24px;
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--data);
}

.page-products .prods-outro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 平板与桌面 ---------- */
@media (min-width: 640px) {
  .page-products .prods-hero__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-products .prods-paths {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-products .prods-swipe__item {
    flex: 0 0 min(46%, 320px);
  }
}

@media (min-width: 900px) {
  .page-products .prods-map {
    grid-template-columns: 1.4fr minmax(0, 1fr);
    align-items: start;
  }

  .page-products .prods-dist {
    margin-left: -26px;
    margin-top: 22px;
  }

  .page-products .prods-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .page-products .prods-split--flip > :first-child {
    order: 2;
  }
}

@media (min-width: 1024px) {
  .page-products .prods-layout {
    grid-template-columns: var(--prods-rail-w) minmax(0, 1fr);
    gap: clamp(28px, 3.4vw, 52px);
    align-items: start;
  }

  .page-products .prods-rail {
    position: sticky;
    top: 116px;
    align-self: start;
    padding-left: 20px;
  }

  .page-products .prods-rail::before {
    content: "";
    position: absolute;
    left: 0;
    top: 34px;
    bottom: 10px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--tick), var(--line-cyan) 45%, transparent);
  }

  .page-products .prods-rail__list {
    flex-direction: column;
    overflow: visible;
    padding-bottom: 0;
  }

  .page-products .prods-rail__link {
    width: 100%;
    justify-content: flex-start;
  }

  .page-products .prods-swipe__item {
    flex: 0 0 min(32%, 340px);
  }
}
