.page-products {
  --rail-w: 252px;
  --panel-pad: clamp(16px, 2.6vw, 26px);
  background: var(--ink);
  color: var(--bone);
  padding-bottom: clamp(48px, 8vw, 96px);
  overflow-x: hidden;
}

/* ---------- 首屏 ---------- */
.page-products .products-hero {
  position: relative;
  isolation: isolate;
  padding-top: clamp(22px, 4vw, 44px);
  padding-bottom: clamp(30px, 5vw, 58px);
}

.page-products .products-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(57, 242, 200, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(57, 242, 200, 0.09) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.35) 62%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.35) 62%, transparent 100%);
}

.page-products .products-hero__grid {
  display: grid;
  gap: clamp(24px, 4vw, 46px);
  margin-top: clamp(18px, 3vw, 30px);
}

.page-products .products-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 6.6vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin: 16px 0 0;
  max-width: 15ch;
  padding-right: 0.1em;
  color: var(--bone);
  transform: skewX(var(--skew));
  transform-origin: left bottom;
}

.page-products .products-hero__lead {
  margin: clamp(16px, 2.4vw, 22px) 0 0;
  max-width: 46ch;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.75;
  color: var(--mist);
}

.page-products .entry-list {
  list-style: none;
  margin: clamp(24px, 3.6vw, 34px) 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.page-products .entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(28, 42, 54, 0.92), rgba(11, 22, 34, 0.5));
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.page-products .entry:hover,
.page-products .entry:focus-visible {
  transform: translate(-2px, -2px);
  border-color: var(--neon);
  background: linear-gradient(90deg, rgba(57, 242, 200, 0.16), rgba(11, 22, 34, 0.45));
}

.page-products .entry__num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--tactic);
}

.page-products .entry__body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.page-products .entry__title {
  font-weight: 700;
  font-size: 16px;
  color: var(--bone);
}

.page-products .entry__desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--stone);
}

.page-products .entry__arrow {
  font-family: var(--font-mono);
  color: var(--neon);
  font-size: 16px;
}

.page-products .products-hero__visual {
  display: grid;
  gap: 14px;
  align-content: start;
}

.page-products .hero-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.page-products .hero-stat {
  border-left: 3px solid var(--signal);
  padding: 5px 0 5px 12px;
}

.page-products .hero-stat__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(18px, 2.3vw, 25px);
  line-height: 1.2;
  color: var(--neon);
}

.page-products .hero-stat__label {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

/* ---------- 媒体 ---------- */
.page-products .media {
  position: relative;
  overflow: hidden;
}

.page-products .media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-products .products-hero__visual .media {
  transform: rotate(-1deg);
}

/* ---------- 左侧索引 + 右侧内容 ---------- */
.page-products .products-shell {
  display: grid;
  gap: clamp(26px, 4.5vw, 52px);
}

.page-products .products-rail {
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--coal);
  padding: 16px 15px 14px;
}

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

.page-products .rail__list > li {
  flex: 0 0 auto;
}

.page-products .rail__link {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 8px 10px;
  font-size: 13.5px;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
  color: var(--bone);
  border: 1px solid var(--line);
  border-radius: 3px;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease), background 0.18s var(--ease);
}

.page-products .rail__link span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--tactic);
}

.page-products .rail__link:hover,
.page-products .rail__link:focus-visible {
  border-color: var(--neon);
  color: var(--neon);
  background: rgba(57, 242, 200, 0.07);
}

.page-products .rail__note {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.65;
  color: var(--stone);
}

.page-products .products-flow {
  display: flex;
  flex-direction: column;
  gap: clamp(34px, 5.5vw, 62px);
  min-width: 0;
}

/* ---------- 章节 ---------- */
.page-products .feature {
  scroll-margin-top: calc(var(--header-h) + 24px);
  border-top: 2px solid var(--line);
  padding-top: clamp(20px, 3.4vw, 32px);
  transition: border-color 0.25s var(--ease);
}

.page-products .feature:target {
  border-top-color: var(--neon);
}

.page-products .feature__head {
  display: grid;
  gap: 10px;
}

.page-products .feature h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(27px, 4.2vw, 46px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 24ch;
  color: var(--bone);
  transform: skewX(-3deg);
  transform-origin: left center;
}

.page-products .feature h3 {
  font-size: 17px;
  line-height: 1.4;
  margin: 0 0 8px;
  color: var(--bone);
}

.page-products .feature p.prose a {
  color: var(--neon);
}

/* ---------- 功能卡集群 ---------- */
.page-products .cluster-grid {
  display: grid;
  gap: 13px;
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  margin-top: clamp(18px, 3vw, 26px);
}

.page-products .func-card {
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--coal);
  padding: var(--panel-pad);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.45);
}

.page-products .func-card .prose {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--mist);
  margin-bottom: 12px;
}

.page-products .feature-step {
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: rgba(28, 42, 54, 0.7);
  padding: 0 12px;
}

.page-products .feature-step summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--neon);
}

.page-products .feature-step summary::-webkit-details-marker {
  display: none;
}

.page-products .feature-step summary::before {
  content: "+";
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
  color: var(--neon);
}

.page-products .feature-step[open] summary::before {
  content: "−";
}

.page-products .feature-step p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--mist);
}

/* ---------- 球队库 ---------- */
.page-products .split {
  display: grid;
  gap: clamp(18px, 3vw, 30px);
  margin-top: clamp(18px, 3vw, 26px);
}

.page-products .split__main {
  min-width: 0;
}

.page-products .split__main .prose {
  font-size: 14.5px;
  color: var(--mist);
}

.page-products .filter-label {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--stone);
}

.page-products .chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.page-products .chip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--mist);
  background: rgba(11, 22, 34, 0.65);
}

.page-products .chip--on {
  border-color: var(--neon);
  background: var(--neon);
  color: var(--ink);
  font-weight: 700;
}

.page-products .team-list {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-products .team-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 12px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--moss);
  border-radius: 3px;
  background: var(--pitch);
}

.page-products .team-item__name {
  font-weight: 600;
  font-size: 14px;
  color: var(--bone);
}

.page-products .team-item__meta {
  grid-column: 1 / 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--stone);
}

.page-products .fav {
  grid-row: 1 / 3;
  grid-column: 2 / 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--stone);
  white-space: nowrap;
}

.page-products .fav__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.page-products .fav--on {
  border-color: var(--signal);
  color: var(--signal);
  background: rgba(255, 122, 61, 0.1);
}

/* ---------- 归档 ---------- */
.page-products .archive-strip {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  margin-top: clamp(18px, 3vw, 26px);
}

.page-products .archive-strip__cell {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--coal);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mist);
}

.page-products .archive-strip__cell b {
  display: block;
  margin-bottom: 3px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--signal);
}

.page-products .archive-media {
  margin: clamp(16px, 2.6vw, 24px) 0;
}

/* ---------- 双端 ---------- */
.page-products .device-pair {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: clamp(18px, 3vw, 26px);
}

.page-products .device-card {
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--pitch);
  padding: var(--panel-pad);
}

.page-products .device-card__tag {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--tactic);
}

.page-products .device-card .prose {
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--mist);
}

.page-products .split--reverse {
  align-items: start;
}

.page-products .media--phone {
  max-width: 280px;
  margin-inline: auto;
}

.page-products .split__main .btn {
  margin-top: 6px;
}

/* ---------- 步骤 ---------- */
.page-products .step-list {
  list-style: none;
  counter-reset: step;
  margin: clamp(18px, 3vw, 26px) 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-products .step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.page-products .step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--neon);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid var(--neon);
  border-radius: var(--radius);
  background: rgba(57, 242, 200, 0.08);
}

.page-products .step h3 {
  margin-bottom: 4px;
}

.page-products .step .prose {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--mist);
}

.page-products .step-media {
  margin-top: clamp(18px, 3vw, 26px);
}

/* ---------- 时间线 ---------- */
.page-products .timeline {
  list-style: none;
  margin: clamp(18px, 3vw, 26px) 0 0;
  padding: 0 0 0 20px;
  display: grid;
  gap: 18px;
  border-left: 2px solid var(--line-strong);
}

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

.page-products .timeline__item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 0 4px rgba(57, 242, 200, 0.14);
}

.page-products .timeline__year {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--tactic);
}

.page-products .timeline__item .prose {
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--mist);
}

/* ---------- 收尾 ---------- */
.page-products .cta-band {
  display: grid;
  gap: 16px;
  margin-top: clamp(10px, 2vw, 18px);
  padding: clamp(20px, 3.6vw, 36px);
  border: 2px solid var(--neon);
  border-radius: var(--radius);
  background:
    linear-gradient(112deg, rgba(57, 242, 200, 0.13), rgba(11, 22, 34, 0.35) 58%, rgba(255, 122, 61, 0.1));
}

.page-products .cta-band h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(23px, 3.4vw, 34px);
  line-height: 1.1;
  margin: 0 0 8px;
  color: var(--bone);
}

.page-products .cta-band .prose {
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist);
}

.page-products .cta-band .cluster {
  align-content: center;
}

/* ---------- 响应式 ---------- */
@media (min-width: 900px) {
  .page-products .products-hero__grid {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    align-items: start;
  }

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

  .page-products .split--reverse {
    grid-template-columns: minmax(0, 0.68fr) minmax(0, 1fr);
  }

  .page-products .cta-band {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

@media (min-width: 960px) {
  .page-products .products-shell {
    grid-template-columns: var(--rail-w) minmax(0, 1fr);
    align-items: start;
  }

  .page-products .products-rail {
    position: sticky;
    top: calc(var(--header-h) + 18px);
    box-shadow: var(--shadow-soft);
  }

  .page-products .rail__list {
    flex-direction: column;
    overflow: visible;
  }

  .page-products .rail__list > li {
    flex: 1 1 auto;
  }

  .page-products .rail__link {
    white-space: normal;
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 640px) {
  .page-products .entry {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .page-products .entry__arrow {
    display: none;
  }

  .page-products .products-hero__visual .media {
    transform: none;
  }

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

  .page-products .team-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-products .fav {
    grid-row: auto;
    grid-column: 1 / 2;
    justify-self: start;
    margin-top: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .entry,
  .page-products .rail__link,
  .page-products .feature,
  .page-products .products-hero__visual .media {
    transition: none;
    transform: none;
  }
}
