.page-products {
  --prod-radius: 20px;
  --prod-line-soft: rgba(42, 63, 88, 0.65);
  position: relative;
  overflow-x: clip;
  color: var(--text);
  font-family: var(--font-body);
  background: var(--ink-0);
}

.page-products .prod-shell {
  width: 100%;
  max-width: var(--wrap-w);
  margin-inline: auto;
  padding-inline: clamp(1.125rem, 4vw, 2rem);
}

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

.page-products .prod-hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(1.25rem, 3vw, 2rem) clamp(2rem, 5vw, 3.5rem);
}

.page-products .prod-hero::before {
  content: "";
  position: absolute;
  inset: -14% -8% auto -8%;
  height: 80%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(52% 62% at 12% 2%, rgba(242, 162, 74, 0.20), transparent 68%),
    radial-gradient(46% 56% at 90% 0%, rgba(76, 211, 194, 0.14), transparent 70%);
}

.page-products .prod-hero__grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: end;
}

.page-products .prod-eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--amber);
}

.page-products .prod-title {
  margin: 0.75rem 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 7.2vw, 4.1rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.page-products .prod-title em {
  font-style: normal;
  color: var(--amber);
}

.page-products .prod-lede {
  margin: 1.1rem 0 0;
  max-width: 42ch;
  font-size: clamp(1rem, 1.6vw, 1.0625rem);
  line-height: 1.85;
  color: rgba(233, 239, 247, 0.82);
}

.page-products .prod-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* ---------- 首屏记分卡 ---------- */

.page-products .scorecard {
  position: relative;
  padding: 1.125rem 1.25rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--prod-radius) var(--prod-radius) var(--prod-radius) 6px;
  background: linear-gradient(155deg, rgba(18, 38, 61, 0.96), rgba(11, 26, 44, 0.92));
  box-shadow: 0 26px 64px -46px rgba(0, 0, 0, 0.95);
}

.page-products .scorecard__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.page-products .scorecard__live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  color: var(--mint);
}

.page-products .scorecard__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(125, 242, 176, 0.16);
}

.page-products .scorecard__time {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.page-products .scorecard__list {
  list-style: none;
  margin: 0.3rem 0 0;
  padding: 0;
}

.page-products .scorecard__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.72rem 0;
  border-bottom: 1px dashed var(--prod-line-soft);
}

.page-products .scorecard__row:last-child {
  border-bottom: 0;
}

.page-products .scorecard__meta {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}

.page-products .scorecard__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: var(--amber-soft);
}

.page-products .scorecard__foot {
  margin: 0.85rem 0 0;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- 技能树轨道 ---------- */

.page-products .track {
  margin-top: clamp(1.75rem, 5vw, 3rem);
}

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

.page-products .track__body::before {
  content: "";
  position: absolute;
  top: 0.85rem;
  bottom: 2.5rem;
  left: 16px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    rgba(242, 162, 74, 0.62) 0%,
    rgba(125, 242, 176, 0.42) 26%,
    rgba(76, 211, 194, 0.42) 52%,
    rgba(169, 155, 255, 0.40) 76%,
    rgba(42, 63, 88, 0.2) 100%
  );
}

.page-products .node {
  position: relative;
  padding: 0 0 clamp(2.75rem, 7vw, 5rem) 3rem;
}

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

.page-products .node__pin {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--ink-0);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--node-accent, var(--muted));
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.page-products .node.is-in .node__pin {
  border-color: var(--node-accent, var(--amber));
  box-shadow: 0 0 0 6px var(--node-glow, rgba(242, 162, 74, 0.1));
}

.page-products .node--refresh {
  --node-accent: var(--mint);
  --node-glow: rgba(125, 242, 176, 0.13);
}

.page-products .node--dual {
  --node-accent: var(--teal);
  --node-glow: rgba(76, 211, 194, 0.13);
}

.page-products .node--weekend {
  --node-accent: var(--violet);
  --node-glow: rgba(169, 155, 255, 0.14);
}

.page-products .node--device {
  --node-accent: var(--amber-soft);
  --node-glow: rgba(255, 217, 168, 0.12);
}

.page-products .node--start {
  --node-accent: var(--amber);
  --node-glow: rgba(242, 162, 74, 0.12);
}

.page-products .node__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3.6vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
}

.page-products .node__lede {
  margin: 0.9rem 0 0;
  max-width: 40ch;
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(233, 239, 247, 0.78);
}

.page-products .node__grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.35rem;
}

.page-products .node__text p {
  margin: 0 0 0.95rem;
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(233, 239, 247, 0.78);
}

.page-products .node__text p:last-child {
  margin-bottom: 0;
}

.page-products .node__foot {
  margin: 1.5rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--muted);
}

.page-products .node__foot a {
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px solid rgba(242, 162, 74, 0.4);
}

.page-products .node__foot a:hover {
  border-bottom-color: var(--amber);
}

.page-products .bullets {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.page-products .bullets li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-products .bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.64em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--node-accent, var(--amber));
  opacity: 0.9;
}

/* ---------- 图片容器 ---------- */

.page-products .shot {
  margin: 0;
}

.page-products .shot__frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--prod-radius);
  background: var(--ink-2);
}

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

.page-products .shot__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(233, 239, 247, 0.05),
    inset 0 -70px 90px -70px rgba(6, 17, 31, 0.95);
}

.page-products .shot__cap {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- 连续观赛时间线 ---------- */

.page-products .timeline {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  position: relative;
}

.page-products .timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(169, 155, 255, 0.85), rgba(169, 155, 255, 0.08));
}

.page-products .timeline li {
  position: relative;
  padding: 0 0 1.4rem 2.1rem;
}

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

.page-products .timeline li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink-0);
  border: 2px solid var(--violet);
}

.page-products .tl-time {
  display: block;
  margin-bottom: 0.22rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--amber-soft);
}

.page-products .tl-title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}

.page-products .tl-desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 设备卡片 ---------- */

.page-products .device-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.page-products .device {
  padding: 1.15rem 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(18, 38, 61, 0.5);
}

.page-products .device__tag {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--teal);
}

.page-products .device__name {
  margin: 0 0 0.45rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.page-products .device__desc {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 三步上手 ---------- */

.page-products .steps {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.page-products .step {
  position: relative;
  padding: 1.25rem 1.15rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(18, 38, 61, 0.72), rgba(11, 26, 44, 0.55));
}

.page-products .step__no {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  color: var(--amber);
}

.page-products .step__title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}

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

/* ---------- 延伸入口 ---------- */

.page-products .prod-next {
  margin-top: clamp(2.25rem, 6vw, 3.75rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(90% 130% at 0% 0%, rgba(242, 162, 74, 0.12), transparent 62%),
    rgba(11, 26, 44, 0.72);
}

.page-products .prod-next__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 1.3;
  color: var(--text);
}

.page-products .next-links {
  list-style: none;
  margin: 1.3rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.page-products .next-links a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.95rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(18, 38, 61, 0.5);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.page-products .next-links a span {
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--muted);
}

.page-products .next-links a:hover,
.page-products .next-links a:focus-visible {
  border-color: var(--amber);
  transform: translateY(-2px);
}

/* ---------- 桌面 ---------- */

@media (min-width: 900px) {
  .page-products .prod-hero__grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
  }

  .page-products .node {
    padding-left: 3.5rem;
  }

  .page-products .track__body::before {
    left: 16px;
  }

  .page-products .node__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.75rem, 3.5vw, 3rem);
    align-items: start;
  }

  .page-products .node__grid--wide {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  }

  .page-products .node__grid--flip > .node__text {
    order: 2;
  }

  .page-products .node__grid > .timeline {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .page-products .node__grid > .timeline::before {
    left: 0;
    right: 0;
    top: 8px;
    bottom: auto;
    width: auto;
    height: 2px;
    background: linear-gradient(90deg, rgba(169, 155, 255, 0.85), rgba(169, 155, 255, 0.08));
  }

  .page-products .node__grid > .timeline li {
    padding: 1.85rem 0 0 0;
  }

  .page-products .node__grid > .timeline li::before {
    left: 0;
    top: 0;
  }

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

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

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

@media (min-width: 1180px) {
  .page-products .node__grid > .timeline li {
    padding-right: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .node__pin,
  .page-products .next-links a {
    transition: none;
  }

  .page-products .next-links a:hover,
  .page-products .next-links a:focus-visible {
    transform: none;
  }
}
