.page-products {
  --pp-radius: 22px;
  --pp-radius-lg: 28px;
  display: block;
  background:
    radial-gradient(900px 520px at 88% -6%, rgba(61, 240, 208, .10), transparent 62%),
    radial-gradient(720px 480px at 4% 26%, rgba(255, 162, 75, .07), transparent 60%),
    var(--abyss);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.75;
  overflow-x: clip;
  padding-bottom: clamp(72px, 10vw, 128px);
}

.page-products .breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding-top: 1.5rem;
  font-family: var(--font-numeric);
  font-size: .8rem;
  letter-spacing: .04em;
  color: var(--muted);
}

.page-products .breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color .18s var(--ease);
}

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

.page-products .breadcrumb__sep {
  color: var(--line);
}

.page-products .breadcrumb [aria-current="page"] {
  color: var(--cyan);
}

/* ---------- 首屏框景 ---------- */

.page-products .hero-frame {
  position: relative;
  margin-top: clamp(1.4rem, 4vw, 2.6rem);
  padding: clamp(1.6rem, 5vw, 3.4rem) clamp(1.2rem, 4vw, 3.2rem) clamp(1.6rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(158deg, rgba(11, 44, 59, .88), rgba(6, 23, 38, .68) 62%, rgba(27, 22, 56, .55));
  overflow: hidden;
}

.page-products .hero-frame::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 12px;
  background-image: repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px 22px);
  opacity: .85;
  pointer-events: none;
}

.page-products .hero-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(61, 240, 208, .6), transparent);
  pointer-events: none;
}

.page-products .eyebrow {
  margin: 0;
  font-family: var(--font-numeric);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.page-products .display-title {
  margin: .6rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 6.2vw, 3.35rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--text);
}

.page-products .lede {
  margin: 1rem 0 0;
  max-width: 62ch;
  font-size: clamp(1rem, 2.4vw, 1.06rem);
  color: var(--muted);
  line-height: 1.8;
}

.page-products .hl {
  font-family: var(--font-numeric);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--cyan);
}

/* ---------- 入口—关注—复盘 三格 ---------- */

.page-products .flow-rail {
  list-style: none;
  margin: clamp(1.6rem, 4vw, 2.6rem) 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.page-products .flow-step {
  position: relative;
  padding: 1.1rem 1.2rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--pp-radius);
  background: rgba(6, 23, 38, .55);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}

.page-products .flow-step:hover {
  border-color: rgba(61, 240, 208, .45);
  transform: translateY(-2px);
}

.page-products .flow-step__num {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--amber);
}

.page-products .flow-step__name {
  margin: .3rem 0 .35rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: .01em;
  color: var(--text);
}

.page-products .flow-step__desc {
  margin: 0;
  font-size: .92rem;
  line-height: 1.72;
  color: var(--muted);
}

/* ---------- 章节与分段控件 ---------- */

.page-products .section {
  margin-top: var(--gap-section);
  position: relative;
}

.page-products .section::before {
  content: "";
  position: absolute;
  top: calc(var(--gap-section) / -2);
  left: 0;
  width: 72px;
  height: 1px;
  background: var(--cyan);
  opacity: .55;
}

.page-products .section-title {
  margin: .7rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 2.1rem);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: balance;
}

.page-products .panel-title {
  margin: 0 0 .8rem;
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 3.4vw, 1.65rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--text);
}

.page-products .tabs {
  margin-top: clamp(1.4rem, 3.5vw, 2.2rem);
}

.page-products .tablist {
  display: flex;
  gap: .35rem;
  overflow-x: auto;
  padding-bottom: .25rem;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.page-products .tab {
  position: relative;
  flex: 0 0 auto;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: .72rem .95rem 1rem;
  border-radius: var(--r-pill) var(--r-pill) 0 0;
  cursor: pointer;
  white-space: nowrap;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}

.page-products .tab:hover {
  color: var(--mint);
}

.page-products .tab[aria-selected="true"] {
  color: var(--text);
  background: rgba(61, 240, 208, .07);
}

.page-products .tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: .95rem;
  right: .95rem;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(61, 240, 208, .65);
}

.page-products .tab:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.page-products .tabpanel {
  display: block;
  padding-top: clamp(1.6rem, 4vw, 2.6rem);
}

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

.page-products .tabpanel:focus-visible {
  outline: 2px solid var(--line);
  outline-offset: 8px;
  border-radius: var(--pp-radius);
}

/* ---------- 分栏 ---------- */

.page-products .split {
  display: grid;
  gap: clamp(1.4rem, 4vw, 2.8rem);
  align-items: start;
}

.page-products .split__body > p {
  margin: .8rem 0 0;
  font-size: .98rem;
  color: var(--muted);
}

.page-products .split__body > p:first-of-type {
  margin-top: 0;
}

/* ---------- 三步骤 ---------- */

.page-products .step-list {
  list-style: none;
  margin: clamp(1.3rem, 3.5vw, 2rem) 0 0;
  padding: 0 0 0 2.4rem;
  position: relative;
  display: grid;
  gap: 1.4rem;
}

.page-products .step-list::before {
  content: "";
  position: absolute;
  left: .74rem;
  top: 1.1rem;
  bottom: 1.1rem;
  width: 1px;
  background-image: repeating-linear-gradient(to bottom, var(--line) 0 6px, transparent 6px 13px);
}

.page-products .step {
  position: relative;
}

.page-products .step__num {
  position: absolute;
  left: -2.4rem;
  top: .05rem;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: .74rem;
  font-weight: 700;
  color: var(--abyss);
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(61, 240, 208, .12);
  transition: box-shadow .35s var(--ease), background-color .35s var(--ease);
}

.page-products .step__num[data-reveal] {
  background: rgba(61, 240, 208, .35);
  box-shadow: 0 0 0 4px rgba(61, 240, 208, .06);
}

.page-products .step__num[data-reveal].is-visible {
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(61, 240, 208, .16);
}

.page-products .card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--text);
}

.page-products .step p {
  margin: .35rem 0 0;
  font-size: .94rem;
  color: var(--muted);
  line-height: 1.76;
}

/* ---------- 媒体框 ---------- */

.page-products .media-frame {
  position: relative;
  margin: 0;
  border-radius: var(--pp-radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(11, 44, 59, .9), rgba(6, 23, 38, .7));
  overflow: hidden;
}

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

.page-products .media-frame--tall {
  max-width: 340px;
  margin-inline: auto;
}

.page-products .media-frame--band {
  margin-bottom: clamp(1.4rem, 4vw, 2.4rem);
}

.page-products .media-frame--band img {
  aspect-ratio: 3 / 1;
}

.page-products .media-frame__caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: .9rem;
  margin: 0;
  padding: .45rem .85rem;
  border-radius: var(--r-pill);
  background: rgba(4, 16, 28, .78);
  backdrop-filter: blur(6px);
  font-size: .76rem;
  line-height: 1.5;
  color: var(--text);
}

.page-products .media-frame__tag {
  position: absolute;
  top: .9rem;
  right: .9rem;
  padding: .3rem .75rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(61, 240, 208, .6);
  background: rgba(4, 16, 28, .72);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--cyan);
}

/* ---------- 信息卡网格 ---------- */

.page-products .feed-grid {
  display: grid;
  gap: 1rem;
  margin-top: clamp(1.3rem, 3.5vw, 2rem);
}

.page-products .card {
  border: 1px solid var(--line);
  border-radius: var(--pp-radius);
  background: rgba(11, 44, 59, .62);
  padding: 1.25rem 1.3rem 1.35rem;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}

.page-products .feed-card p {
  margin: .5rem 0 0;
  font-size: .93rem;
  color: var(--muted);
  line-height: 1.76;
}

/* ---------- 标签 chip 与过滤列表 ---------- */

.page-products .chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: clamp(1rem, 3vw, 1.5rem) 0;
}

.page-products .chip {
  appearance: none;
  font-family: inherit;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: .42rem .95rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(6, 23, 38, .7);
  color: var(--muted);
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}

.page-products .chip:hover {
  color: var(--mint);
  border-color: rgba(61, 240, 208, .45);
}

.page-products .chip[aria-pressed="true"] {
  background: rgba(61, 240, 208, .16);
  border-color: var(--cyan);
  color: var(--mint);
}

.page-products .chip:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.page-products .filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .7rem;
}

.page-products .filter-item {
  padding: .95rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--pp-radius);
  background: rgba(27, 22, 56, .55);
  transition: border-color .2s var(--ease);
}

.page-products .filter-item:hover {
  border-color: rgba(61, 240, 208, .42);
}

.page-products .filter-item__tag {
  display: inline-block;
  margin-bottom: .4rem;
  padding: .2rem .65rem;
  border-radius: var(--r-pill);
  background: rgba(255, 162, 75, .16);
  border: 1px solid rgba(255, 162, 75, .45);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--amber);
}

.page-products .filter-item__title {
  margin: 0;
  font-size: .96rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.55;
}

.page-products .filter-item__meta {
  margin: .3rem 0 0;
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--muted);
}

/* ---------- 数据表 ---------- */

.page-products .table-wrap {
  margin-top: clamp(1.2rem, 3.5vw, 2rem);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--pp-radius);
  background: rgba(11, 44, 59, .6);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.page-products .data-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: .92rem;
}

.page-products .data-table caption {
  caption-side: top;
  text-align: left;
  padding: .9rem 1rem .2rem;
  font-size: .8rem;
  letter-spacing: .04em;
  color: var(--muted);
}

.page-products .data-table th,
.page-products .data-table td {
  padding: .82rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

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

.page-products .data-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #0B2C3B;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
}

.page-products .data-table tbody th[scope="row"] {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #0B2C3B;
  font-weight: 800;
  color: var(--text);
}

.page-products .data-table .num {
  text-align: right;
  font-family: var(--font-numeric);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

.page-products .rank-move {
  display: inline-block;
  font-size: .84rem;
  font-weight: 700;
}

.page-products .rank-move--up {
  color: var(--cyan);
}

.page-products .rank-move--down {
  color: var(--coral);
}

.page-products .rank-move--flat {
  color: var(--muted);
}

/* ---------- 换设备续览 ---------- */

.page-products .plain-list {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  gap: .7rem;
}

.page-products .plain-list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.75;
}

.page-products .plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68rem;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--cyan);
}

/* ---------- 时间线 ---------- */

.page-products .timeline {
  list-style: none;
  margin: clamp(1.4rem, 4vw, 2.4rem) 0 0;
  padding: 0;
}

.page-products .timeline__item {
  position: relative;
  margin-left: .5rem;
  padding: 0 0 1.8rem 2.2rem;
  border-left: 1px solid var(--line);
}

.page-products .timeline__item:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.page-products .timeline__mark {
  position: absolute;
  left: -.44rem;
  top: .45rem;
  width: .85rem;
  height: .85rem;
  border-radius: 50%;
  background: var(--abyss);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 0 4px rgba(61, 240, 208, .08);
}

.page-products .timeline__ver {
  margin: 0 0 .25rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--amber);
}

.page-products .timeline__body p {
  margin: .45rem 0 0;
  font-size: .93rem;
  color: var(--muted);
  line-height: 1.76;
}

/* ---------- 帮助双卡 ---------- */

.page-products .help-pair {
  display: grid;
  gap: 1rem;
  margin-top: clamp(1.3rem, 3.5vw, 2rem);
}

.page-products .help-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-products .help-card p {
  margin: .6rem 0 0;
  font-size: .93rem;
  color: var(--muted);
  line-height: 1.78;
}

.page-products .help-card__go {
  display: inline-block;
  margin-top: 1rem;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--cyan);
}

.page-products .help-card:hover .help-card__go {
  color: var(--mint);
}

/* ---------- 右下角常驻胶囊 ---------- */

.page-products .float-pill {
  position: fixed;
  right: clamp(.85rem, 3.5vw, 2.4rem);
  bottom: clamp(.85rem, 3.5vw, 2.4rem);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  padding: .68rem 1.2rem;
  border-radius: var(--r-pill);
  background: var(--amber);
  color: var(--deep-ink);
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(255, 162, 75, .26);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

.page-products .float-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(255, 162, 75, .34);
}

.page-products .float-pill:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

/* ---------- 注释 ---------- */

.page-products .note {
  margin: 1.2rem 0 0;
  padding-left: .9rem;
  border-left: 2px solid var(--line);
  font-size: .86rem;
  line-height: 1.72;
  color: var(--muted);
}

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

@media (min-width: 720px) {
  .page-products .flow-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    position: relative;
  }

  .page-products .flow-rail::before {
    content: "";
    position: absolute;
    top: 2.05rem;
    left: 4%;
    right: 4%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(61, 240, 208, .5), transparent);
    pointer-events: none;
  }

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

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

@media (min-width: 880px) {
  .page-products .split {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    gap: clamp(2rem, 4.5vw, 3.4rem);
  }

  .page-products .split--media-left {
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  }

  .page-products .split--media-right {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  }

  .page-products .media-frame--tall {
    max-width: none;
  }

  .page-products .float-pill {
    right: clamp(1.5rem, 3vw, 2.6rem);
    bottom: clamp(1.5rem, 3vw, 2.6rem);
  }
}

@media (min-width: 1100px) {
  .page-products .flow-step {
    padding: 1.35rem 1.4rem 1.5rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  .page-products .flow-step,
  .page-products .card,
  .page-products .float-pill,
  .page-products .step__num,
  .page-products .chip {
    transition: none;
  }

  .page-products .flow-step:hover,
  .page-products .float-pill:hover {
    transform: none;
  }
}
