.page-products {
  --fp-max: 1180px;
  --fp-pad: clamp(18px, 4.5vw, 64px);
  --fp-gap: clamp(16px, 2.4vw, 34px);
  --fp-sect: clamp(44px, 7vw, 88px);
  background: var(--ink);
  color: var(--text);
  overflow-x: hidden;
}

.page-products .f-crumbs {
  max-width: var(--fp-max);
  margin: 0 auto;
  padding: 20px var(--fp-pad) 0;
}

/* ---------- 首屏 ---------- */

.page-products .f-hero {
  max-width: var(--fp-max);
  margin: 0 auto;
  padding: clamp(26px, 4.5vw, 62px) var(--fp-pad) clamp(26px, 4vw, 46px);
  display: grid;
  gap: clamp(14px, 2vw, 22px);
}

.page-products .f-hero .eyebrow {
  color: var(--accent);
}

.page-products .f-hero__title {
  margin: 0;
  max-width: 19ch;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 6.2vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--hi);
}

.page-products .f-hero__lede {
  margin: 0;
  max-width: 58ch;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.8;
  color: var(--text);
}

.page-products .f-hero__lede strong {
  color: var(--accent);
  font-weight: 700;
  border-bottom: 2px solid rgba(61, 240, 138, 0.35);
}

.page-products .f-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 6px 0 0;
  padding: 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.page-products .f-facts__cell {
  background: var(--stand);
  padding: 14px 16px;
  display: grid;
  gap: 4px;
}

.page-products .f-facts__l {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.page-products .f-facts__n {
  margin: 0;
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-size: clamp(19px, 2.6vw, 26px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--accent);
}

/* ---------- 横向功能索引 ---------- */

.page-products .f-index {
  position: sticky;
  top: 0;
  z-index: 6;
  background: rgba(4, 18, 17, 0.94);
  border-block: 1px solid var(--line);
}

.page-products .f-index__list {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px var(--fp-pad);
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.page-products .f-index__list::-webkit-scrollbar {
  display: none;
}

.page-products .f-index__link {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.page-products .f-index__idx {
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.page-products .f-index__link:hover,
.page-products .f-index__link:focus-visible {
  color: var(--hi);
  border-color: var(--accent);
  background: rgba(61, 240, 138, 0.09);
}

/* ---------- 章节 ---------- */

.page-products .f-chapter {
  max-width: var(--fp-max);
  margin: 0 auto;
  padding: var(--fp-sect) var(--fp-pad);
  scroll-margin-top: 76px;
}

.page-products .f-chapter + .f-chapter {
  border-top: 1px solid var(--line);
}

.page-products .f-chapter__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(12px, 2.4vw, 30px);
  align-items: start;
  margin-bottom: clamp(20px, 3vw, 36px);
}

.page-products .f-chapter__num {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-size: clamp(34px, 6vw, 72px);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.04em;
  color: var(--line);
  transition: color 0.5s ease;
}

.page-products .f-chapter.is-inview .f-chapter__num,
.page-products .f-chapter:target .f-chapter__num {
  color: var(--accent);
}

.page-products .f-chapter__titles {
  min-width: 0;
}

.page-products .f-chapter__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(23px, 3.4vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--hi);
}

.page-products .f-chapter__claim {
  margin: 0;
  max-width: 56ch;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  font-size: clamp(14.5px, 1.5vw, 17px);
  line-height: 1.75;
  color: var(--text);
}

.page-products .f-chapter__body {
  display: grid;
  gap: var(--fp-gap);
}

/* ---------- 图 ---------- */

.page-products .f-figure {
  margin: 0;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.page-products .f-figure__frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  overflow: hidden;
}

.page-products .f-figure__frame img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.page-products .f-figure__frame:hover img,
.page-products .f-figure__frame:focus-within img {
  transform: scale(1.035);
}

.page-products .f-figure__cap {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--muted);
}

.page-products .f-chapter__body > .f-figure--wide,
.page-products .f-chapter > .f-figure--wide,
.page-products .f-chapter > .f-figure--center {
  margin-bottom: clamp(20px, 3vw, 34px);
}

.page-products .f-figure--center {
  max-width: 100%;
}

/* ---------- 要点 ---------- */

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

.page-products .f-points > li {
  position: relative;
  padding: 15px 18px 15px 20px;
  background: var(--stand);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.page-products .f-points > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
}

.page-products .f-points > li:hover {
  transform: translateY(-3px);
  border-color: rgba(61, 240, 138, 0.55);
  background: var(--panel);
}

.page-products .f-points__t {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--hi);
}

.page-products .f-points__d {
  display: block;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--muted);
}

.page-products .f-points--row {
  margin-top: clamp(18px, 3vw, 32px);
}

/* ---------- 数据模块索引 ---------- */

.page-products .f-mods {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}

.page-products .f-mods__group {
  min-width: 0;
}

.page-products .f-mods__title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--data);
}

.page-products .f-mods__title::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  margin-right: 10px;
  vertical-align: middle;
  background: var(--data);
}

.page-products .f-mods__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.page-products .f-mod {
  background: var(--ink);
  padding: 13px 16px;
  display: grid;
  gap: 4px;
  transition: background 0.2s ease;
}

.page-products .f-mod:hover {
  background: var(--panel);
}

.page-products .f-mod__name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--hi);
}

.page-products .f-mod__name::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.page-products .f-mod__desc {
  font-size: 12.8px;
  line-height: 1.66;
  color: var(--muted);
}

/* ---------- 快捷键 ---------- */

.page-products .f-keys {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  align-self: start;
}

.page-products .f-keys__row {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  background: var(--stand);
}

.page-products .f-key {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  line-height: 1;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-bottom-width: 3px;
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--accent);
  white-space: nowrap;
  text-align: center;
}

.page-products .f-keys__desc {
  font-size: 13.2px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- 数字条 ---------- */

.page-products .f-stats {
  display: grid;
  gap: 1px;
  margin-top: clamp(20px, 3vw, 34px);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.page-products .f-stat {
  background: var(--stand);
  padding: 16px 18px;
  display: grid;
  gap: 5px;
}

.page-products .f-stat__n {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--warn);
}

.page-products .f-stat__l {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- 结束区 ---------- */

.page-products .f-cta {
  max-width: var(--fp-max);
  margin: 0 auto;
  padding: var(--fp-sect) var(--fp-pad) clamp(48px, 7vw, 96px);
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  border-top: 1px solid var(--line);
}

.page-products .f-cta__title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.2;
  color: var(--hi);
}

.page-products .f-cta__text {
  margin: 0;
  max-width: 56ch;
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.8;
  color: var(--muted);
}

.page-products .f-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 响应式 ---------- */

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

  .page-products .f-mods {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

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

  .page-products .f-points--row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}

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

  .page-products .f-chapter__body > .f-points {
    align-self: start;
  }

  .page-products .f-figure--center {
    max-width: 100%;
  }

  .page-products .f-cta {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: end;
  }

  .page-products .f-cta__actions {
    justify-content: flex-end;
  }
}

@media (min-width: 1120px) {
  .page-products .f-mods {
    grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
    align-items: start;
  }

  .page-products .f-chapter__head {
    gap: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .f-figure__frame img,
  .page-products .f-points > li,
  .page-products .f-chapter__num,
  .page-products .f-index__link,
  .page-products .f-mod {
    transition: none;
  }

  .page-products .f-figure__frame:hover img,
  .page-products .f-figure__frame:focus-within img {
    transform: none;
  }

  .page-products .f-points > li:hover {
    transform: none;
  }
}
