.page-products {
  --pp-line: 1px solid var(--line);
  --pp-line-strong: 1px solid var(--line-2);
  --pp-notice: rgba(79, 227, 208, 0.10);
  background: var(--bg);
  color: var(--fg);
  padding-bottom: clamp(56px, 8vw, 96px);
}

.page-products .breadcrumb {
  padding: 20px 0 0;
}

/* ---------- 首屏 ---------- */
.page-products .off-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 40px);
  padding: clamp(28px, 6vw, 64px) 0 clamp(28px, 4vw, 44px);
  border-bottom: var(--pp-line-strong);
}

.page-products .off-hero-kicker {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.page-products .off-hero h1 {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(28px, 7vw, 46px);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--fg);
  max-width: 18em;
}

.page-products .off-hero-lede {
  margin: 0 0 24px;
  max-width: 40em;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(230, 234, 242, 0.82);
}

.page-products .off-stats {
  margin: 0;
  border-top: var(--pp-line-strong);
}

.page-products .off-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: var(--pp-line);
}

.page-products .off-stat dt {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.page-products .off-stat dd {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--cyan);
}

.page-products .off-stat dd .num {
  font-size: 26px;
}

@media (min-width: 900px) {
  .page-products .off-hero {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    gap: clamp(32px, 5vw, 72px);
  }
  .page-products .off-stats {
    border-top: var(--pp-line-strong);
  }
}

/* ---------- 主壳与左侧索引 ---------- */
.page-products .off-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.page-products .off-toc {
  padding: 20px 0 4px;
  border-bottom: var(--pp-line);
}

.page-products .off-toc-title {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-products .off-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.page-products .off-toc-list::-webkit-scrollbar {
  display: none;
}

.page-products .off-toc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 9px 14px;
  border: var(--pp-line);
  font-size: 14px;
  color: var(--fg);
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}

.page-products .off-toc-link .num {
  color: var(--muted);
  font-size: 12px;
}

.page-products .off-toc-link:hover,
.page-products .off-toc-link:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
}

.page-products .off-toc-link:hover .num,
.page-products .off-toc-link:focus-visible .num {
  color: var(--cyan);
}

@media (min-width: 980px) {
  .page-products .off-shell {
    grid-template-columns: 208px minmax(0, 1fr);
  }
  .page-products .off-toc {
    position: sticky;
    top: calc(var(--header-h) + 28px);
    padding: 40px 0 0;
    border-bottom: 0;
    border-right: var(--pp-line);
    padding-right: 24px;
  }
  .page-products .off-toc-list {
    flex-direction: column;
    overflow: visible;
    gap: 0;
  }
  .page-products .off-toc-link {
    border: 0;
    border-left: 2px solid transparent;
    padding: 9px 0 9px 12px;
    white-space: normal;
    line-height: 1.4;
  }
  .page-products .off-toc-link:hover,
  .page-products .off-toc-link:focus-visible {
    border-left-color: var(--cyan);
    background: rgba(79, 227, 208, 0.06);
  }
}

/* ---------- 章节骨架 ---------- */
.page-products .off-section {
  padding: clamp(36px, 6vw, 66px) 0;
  border-bottom: var(--pp-line);
}

.page-products .off-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-products .off-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.page-products .off-num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: var(--pp-line-strong);
  color: var(--cyan);
  font-size: 14px;
  margin-top: 4px;
}

.page-products .off-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(21px, 4.4vw, 30px);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.page-products .off-lede {
  margin: 0 0 26px;
  max-width: 46em;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(230, 234, 242, 0.82);
}

/* ---------- 分段切换 ---------- */
.page-products .segmented {
  position: relative;
  margin-bottom: 26px;
}

.page-products .segmented-tabs {
  position: relative;
  display: flex;
  gap: 4px;
  border-bottom: var(--pp-line-strong);
  margin-bottom: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.page-products .segmented-tabs::-webkit-scrollbar {
  display: none;
}

.page-products .segmented-tab {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color 180ms ease;
}

.page-products .segmented-tab:hover,
.page-products .segmented-tab:focus-visible {
  color: var(--fg);
}

.page-products .segmented-tab.is-active {
  color: var(--cyan);
}

.page-products .segmented-rail {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: var(--cyan);
  transition: transform 260ms ease, width 260ms ease;
}

.page-products .segmented-panel {
  padding-top: 22px;
}

.page-products .segmented-panel[hidden] {
  display: none;
}

/* ---------- 排名表 ---------- */
.page-products .rank-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-products .rank-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15px;
}

.page-products .rank-caption {
  text-align: left;
  padding: 0 0 14px;
  font-size: 13px;
  color: var(--muted);
}

.page-products .rank-table thead th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
  border-bottom: var(--pp-line-strong);
  white-space: nowrap;
}

.page-products .rank-table tbody th,
.page-products .rank-table tbody td {
  padding: 13px 12px;
  border-bottom: var(--pp-line);
  font-family: var(--font-mono);
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}

.page-products .rank-table tbody th {
  color: var(--cyan);
  font-weight: 700;
}

.page-products .rank-table tbody tr:nth-child(odd) {
  background: rgba(230, 234, 242, 0.035);
}

.page-products .rank-table tbody tr:hover {
  background: rgba(79, 227, 208, 0.07);
}

.page-products .zone {
  display: inline-block;
  padding: 3px 9px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--muted);
  border: var(--pp-line);
}

.page-products .zone--up {
  color: var(--cyan);
  border-color: rgba(79, 227, 208, 0.45);
  background: rgba(79, 227, 208, 0.10);
}

.page-products .zone--down {
  color: var(--red);
  border-color: rgba(224, 69, 60, 0.45);
  background: rgba(224, 69, 60, 0.10);
}

/* ---------- 事件流 ---------- */
.page-products .event-list {
  list-style: none;
  margin: 0 0 30px;
  padding: 4px 0 4px 30px;
  position: relative;
}

.page-products .event-list::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: var(--line-2);
}

.page-products .event-item {
  position: relative;
  padding: 0 0 24px;
}

.page-products .event-item:last-child {
  padding-bottom: 0;
}

.page-products .event-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 5px;
  width: 11px;
  height: 11px;
  background: var(--bg);
  border: 1px solid var(--line-2);
}

.page-products .event-item:hover::before {
  border-color: var(--cyan);
  background: var(--cyan);
}

.page-products .event-min {
  display: inline-block;
  min-width: 54px;
  font-size: 14px;
  font-weight: 700;
  color: var(--cyan);
}

.page-products .event-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  font-size: 12px;
  color: var(--muted);
  border: var(--pp-line);
}

.page-products .event-tag--goal {
  color: var(--cyan);
  border-color: rgba(79, 227, 208, 0.45);
}

.page-products .event-tag--card {
  color: var(--orange);
  border-color: rgba(255, 122, 47, 0.45);
}

.page-products .event-text {
  margin: 8px 0 0;
  max-width: 42em;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(230, 234, 242, 0.78);
}

/* ---------- 分布图 ---------- */
.page-products .dist-chart {
  margin: 0 0 30px;
  padding: 22px 0 14px;
  border-top: var(--pp-line-strong);
  border-bottom: var(--pp-line);
}

.page-products .dist-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 58px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
}

.page-products .dist-row--extra {
  border-top: var(--pp-line);
  margin-top: 6px;
  padding-top: 14px;
}

.page-products .dist-val {
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.page-products .dist-row .dist-val:first-child {
  color: var(--cyan);
}

.page-products .dist-row .dist-val:last-child {
  color: var(--orange);
}

.page-products .dist-track {
  height: 14px;
  background: rgba(230, 234, 242, 0.06);
  display: flex;
}

.page-products .dist-track--in {
  justify-content: flex-end;
}

.page-products .dist-track--out {
  justify-content: flex-start;
}

.page-products .dist-bar {
  display: block;
  height: 100%;
}

.page-products .dist-bar--in {
  background: linear-gradient(90deg, rgba(79, 227, 208, 0.35), var(--cyan));
}

.page-products .dist-bar--out {
  background: linear-gradient(90deg, var(--orange), rgba(255, 122, 47, 0.35));
}

.page-products .dist-label {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.page-products .dist-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 16px 0 0;
  padding-left: 34px;
  font-size: 12px;
  color: var(--muted);
}

.page-products .dist-key--in {
  color: var(--cyan);
}

.page-products .dist-key--out {
  color: var(--orange);
}

/* ---------- 关注列表 ---------- */
.page-products .follow-list {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: var(--pp-line);
}

.page-products .follow-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  background: var(--bg);
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(230, 234, 242, 0.86);
}

.page-products .follow-idx {
  flex: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
}

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

/* ---------- 设备 ---------- */
.page-products .device-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: var(--pp-line);
  margin-bottom: 24px;
}

.page-products .device-col {
  background: var(--bg);
  padding: 24px 22px;
}

.page-products .device-name {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--fg);
}

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

.page-products .device-list li {
  position: relative;
  padding: 0 0 12px 18px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(230, 234, 242, 0.8);
}

.page-products .device-list li:last-child {
  padding-bottom: 0;
}

.page-products .device-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  background: var(--cyan);
}

.page-products .device-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
  padding: 20px 22px;
  background: var(--pp-notice);
  border-left: 2px solid var(--cyan);
  margin-bottom: 30px;
}

.page-products .device-note p {
  flex: 1 1 24em;
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(230, 234, 242, 0.88);
}

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

/* ---------- 服务组合 ---------- */
.page-products .start-paper {
  margin-bottom: 32px;
}

.page-products .start-paper .paper-title {
  margin: 0 0 14px;
}

.page-products .start-text {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.8;
}

.page-products .start-text:last-child {
  margin-bottom: 0;
}

.page-products .start-sub {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
}

.page-products .start-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: var(--pp-line);
  margin-bottom: 30px;
}

.page-products .start-card {
  background: var(--bg);
  padding: 22px 20px;
}

.page-products .start-card-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--cyan);
}

.page-products .start-card-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: rgba(230, 234, 242, 0.8);
}

.page-products .start-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.page-products .start-code {
  padding: 8px 12px;
  border: var(--pp-line-strong);
  font-size: 14px;
  color: var(--fg);
  letter-spacing: 0.04em;
}

.page-products .start-actions {
  justify-content: flex-start;
}

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

/* ---------- 图片 ---------- */
.page-products .figure {
  margin: 30px 0 0;
}

.page-products .figure-caption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.page-products .figure-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border: var(--pp-line);
}

/* ---------- 延伸路径 ---------- */
.page-products .path-layer {
  margin-top: clamp(40px, 6vw, 72px);
  border-top: var(--pp-line-strong);
}

.page-products .path-item {
  display: block;
  padding: 20px 0;
  border-bottom: var(--pp-line);
  text-decoration: none;
  transition: background-color 180ms ease, padding-left 180ms ease;
}

.page-products .path-item:hover,
.page-products .path-item:focus-visible {
  background: rgba(79, 227, 208, 0.06);
  padding-left: 12px;
}

.page-products .path-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 6px;
}

.page-products .path-item:hover .path-title,
.page-products .path-item:focus-visible .path-title {
  color: var(--cyan);
}

.page-products .path-desc {
  display: block;
  font-size: 14px;
  color: var(--muted);
}

@media (min-width: 760px) {
  .page-products .path-layer {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 1px;
    background: var(--line);
    border-bottom: var(--pp-line);
  }
  .page-products .path-item {
    background: var(--bg);
    padding: 24px 22px;
    border-bottom: 0;
  }
  .page-products .path-item:hover,
  .page-products .path-item:focus-visible {
    padding-left: 22px;
  }
}

/* ---------- 窄屏收敛 ---------- */
@media (max-width: 480px) {
  .page-products .off-hero h1 {
    font-size: 26px;
  }
  .page-products .off-num {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .page-products .dist-row {
    grid-template-columns: 20px minmax(0, 1fr) 48px minmax(0, 1fr) 20px;
    gap: 5px;
  }
  .page-products .dist-val {
    font-size: 11px;
  }
  .page-products .dist-legend {
    padding-left: 0;
  }
  .page-products .event-list {
    padding-left: 22px;
  }
  .page-products .event-item::before {
    left: -22px;
    width: 9px;
    height: 9px;
  }
  .page-products .start-code {
    font-size: 12.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .segmented-rail,
  .page-products .off-toc-link,
  .page-products .path-item {
    transition: none;
  }
}
</main>
