.page-products {
  --pp-line: rgba(53, 240, 208, 0.24);
  --pp-line-soft: rgba(145, 168, 186, 0.18);
  --pp-panel: linear-gradient(158deg, rgba(13, 42, 66, 0.96), rgba(7, 26, 44, 0.92));
  --pp-band-a: var(--c-band-1);
  --pp-band-b: var(--c-band-2);
  --pp-band-c: var(--c-band-3);
  --pp-band-d: var(--c-band-4);
  background:
    radial-gradient(1100px 520px at 84% -8%, rgba(53, 240, 208, 0.1), transparent 62%),
    radial-gradient(900px 520px at -10% 42%, rgba(45, 140, 255, 0.08), transparent 60%),
    linear-gradient(180deg, var(--c-deep) 0%, var(--c-ink) 62%, var(--c-deep) 100%);
  color: var(--c-text);
  overflow-x: hidden;
}

.page-products .section {
  padding-block: clamp(40px, 6vw, 76px);
}

.page-products .container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

.page-products .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 clamp(20px, 3vw, 32px);
  padding: 0;
  font-size: 13px;
  color: var(--c-mist);
}

.page-products .breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(145, 168, 186, 0.5);
}

.page-products .breadcrumbs a {
  color: var(--c-cyan-soft);
  text-decoration: none;
}

.page-products .breadcrumbs a:hover {
  color: var(--c-cyan);
  text-decoration: underline;
}

.page-products .eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-cyan);
  margin: 0 0 12px;
}

.page-products h1,
.page-products h2,
.page-products h3 {
  font-family: var(--font-display);
  color: var(--c-title);
  letter-spacing: -0.02em;
}

.page-products h1 {
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  line-height: 1.02;
  font-weight: 900;
  margin: 0 0 18px;
}

.page-products .hero-em {
  display: block;
  color: var(--c-cyan);
}

.page-products h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  line-height: 1.14;
  font-weight: 800;
  margin: 0 0 14px;
}

.page-products h3 {
  font-size: clamp(1.05rem, 1.9vw, 1.24rem);
  line-height: 1.3;
  font-weight: 700;
  margin: 0 0 10px;
}

.page-products p {
  margin: 0 0 12px;
  line-height: 1.75;
}

.page-products .lede {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  color: var(--c-text);
  max-width: 54ch;
}

.page-products .section-head {
  max-width: 62ch;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.page-products .section-head--tight {
  max-width: 66ch;
}

.page-products .section-lede {
  color: var(--c-mist);
  font-size: 15px;
  margin: 0;
}

/* ---------- 首屏拼贴 ---------- */
.pp-hero {
  padding-top: clamp(20px, 3vw, 36px);
}

.hero-board {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
}

.hero-lead {
  position: relative;
  padding: clamp(22px, 3.6vw, 40px);
  border-radius: 32px;
  background: var(--pp-panel);
  border: 1px solid var(--pp-line-soft);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.hero-lead::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--pp-line) 0 2px, transparent 2px 22px);
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-stats {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(13, 42, 66, 0.66);
  border: 1px solid var(--pp-line-soft);
  border-left: 4px solid var(--c-cyan);
}

.stat-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 30px;
  line-height: 1;
  color: var(--c-cyan);
}

.stat-label {
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-mist);
}

.hero-media {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--pp-line-soft);
}

.hero-media .img-frame {
  height: 100%;
}

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

.hero-media img {
  height: 100%;
  min-height: 190px;
}

@media (min-width: 560px) {
  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .hero-board {
    grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
    grid-template-areas:
      "lead stats"
      "lead media";
  }

  .hero-lead { grid-area: lead; display: flex; flex-direction: column; justify-content: center; }
  .hero-stats { grid-area: stats; grid-template-columns: minmax(0, 1fr); }
  .hero-media { grid-area: media; }
}

/* ---------- 三种观看距离 ---------- */
.device-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.device-card {
  position: relative;
  padding: clamp(18px, 2.6vw, 26px);
  border-radius: 16px;
  background: rgba(13, 42, 66, 0.7);
  border: 1px solid var(--pp-line-soft);
  border-top: 4px solid var(--c-band-1);
}

.device-card--big {
  border-radius: 32px;
  border-top-color: var(--c-cyan);
  background: linear-gradient(160deg, rgba(13, 42, 66, 0.95), rgba(7, 26, 44, 0.9));
}

.device-card--mid {
  border-radius: 24px;
  border-top-color: var(--c-home);
}

.device-card--small {
  border-top-color: var(--c-orange);
}

.device-card p {
  font-size: 14.5px;
  color: var(--c-text);
}

.device-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 12px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--c-cyan-soft);
  background: rgba(53, 240, 208, 0.12);
}

.device-specs {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  border-top: 1px dashed var(--pp-line-soft);
}

.device-specs li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px dashed rgba(145, 168, 186, 0.1);
}

.device-specs li span:first-child {
  color: var(--c-mist);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
}

.device-specs li span:last-child {
  color: var(--c-title);
  text-align: right;
}

@media (min-width: 820px) {
  .device-grid {
    grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr) minmax(0, 0.86fr);
    gap: 18px;
  }

  .device-card--big { padding-block: clamp(24px, 3vw, 34px); }
  .device-card--small { margin-top: 22px; }
}

/* ---------- 订阅球队 ---------- */
.page-products .panel--paper {
  color: var(--c-ink);
  background: linear-gradient(168deg, var(--c-paper), #e6d6bd);
  border-radius: 32px;
  padding: clamp(20px, 3.4vw, 40px);
  border: 1px solid rgba(3, 11, 18, 0.1);
}

.page-products .panel--paper h2,
.page-products .panel--paper h3 {
  color: var(--c-ink);
}

.page-products .panel--paper .eyebrow {
  color: #0a6a5c;
}

.page-products .panel--paper p {
  color: rgba(3, 11, 18, 0.76);
}

.subscribe-panel {
  display: grid;
  gap: clamp(22px, 3vw, 34px);
  grid-template-columns: minmax(0, 1fr);
}

.pref-nodes {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr);
  margin: 20px 0 22px;
}

.pref-node {
  position: relative;
  padding: 14px 16px 14px 40px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(3, 11, 18, 0.08);
}

.pref-node h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.pref-node p {
  font-size: 13.5px;
  margin: 0;
}

.pref-dot {
  position: absolute;
  left: 14px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c-cyan);
  box-shadow: 0 0 0 4px rgba(53, 240, 208, 0.2);
}

.pref-dot--league { background: var(--c-home); box-shadow: 0 0 0 4px rgba(45, 140, 255, 0.18); }
.pref-dot--alert { background: var(--c-orange); box-shadow: 0 0 0 4px rgba(255, 138, 61, 0.18); }

.fav-demo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(3, 11, 18, 0.06);
  border: 1px dashed rgba(3, 11, 18, 0.16);
}

.fav-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.fav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  background: var(--c-orange);
  color: #2a0f00;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.fav-mark {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: #2a0f00;
}

.fav-input:focus-visible + .fav-btn {
  outline: 2px solid var(--c-deep);
  outline-offset: 3px;
}

.fav-input:checked + .fav-btn {
  background: var(--c-cyan);
  color: var(--c-ink);
}

.fav-input:checked + .fav-btn .fav-mark {
  background: var(--c-ink);
  transform: rotate(45deg);
}

.fav-btn .fav-on,
.fav-state .fav-on {
  display: none;
}

.fav-input:checked + .fav-btn .fav-on { display: inline; }
.fav-input:checked + .fav-btn .fav-off { display: none; }
.fav-input:checked ~ .fav-state .fav-on { display: block; }
.fav-input:checked ~ .fav-state .fav-off { display: none; }

.fav-state {
  flex: 1 1 220px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: rgba(3, 11, 18, 0.62);
}

.subscribe-media {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subscribe-media .img-frame {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(3, 11, 18, 0.12);
}

.subscribe-media .serif-note {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.7;
  color: rgba(3, 11, 18, 0.66);
  margin: 0;
  padding-left: 14px;
  border-left: 3px solid var(--c-orange);
}

@media (min-width: 760px) {
  .subscribe-panel {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
    align-items: start;
  }

  .pref-nodes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pref-node {
    padding: 16px 14px;
  }

  .pref-node .pref-dot {
    position: static;
    display: block;
    margin-bottom: 10px;
  }
}

/* ---------- 设备切换与同步 ---------- */
.sync-grid {
  display: grid;
  gap: clamp(20px, 3vw, 34px);
  grid-template-columns: minmax(0, 1fr);
}

.sync-badges {
  list-style: none;
  margin: 20px 0 24px;
  padding: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr);
}

.badge {
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(13, 42, 66, 0.72);
  border: 1px solid var(--pp-line-soft);
  border-left: 4px solid var(--c-mist);
}

.badge-name {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
  color: var(--c-title);
}

.badge-desc {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-mist);
}

.badge--synced { border-left-color: var(--c-cyan); }
.badge--synced .badge-name { color: var(--c-cyan); }
.badge--pending { border-left-color: var(--c-orange); }
.badge--pending .badge-name { color: var(--c-orange); }
.badge--local { border-left-color: var(--c-mist); }

.sort-row {
  padding: 16px;
  border-radius: 20px;
  background: rgba(3, 11, 18, 0.42);
  border: 1px solid var(--pp-line-soft);
}

.sort-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-cyan);
  margin-bottom: 10px;
}

.sort-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
}

.sort-pills .pill {
  padding: 5px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--pp-line);
  font-size: 12.5px;
  color: var(--c-cyan-soft);
  background: rgba(53, 240, 208, 0.06);
}

.sort-note {
  margin: 0;
  font-size: 13px;
  color: var(--c-mist);
}

.sort-note .num {
  font-family: var(--font-mono);
  color: var(--c-cyan);
}

.sync-media .img-frame {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--pp-line-soft);
}

@media (min-width: 860px) {
  .sync-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
  }

  .sync-badges {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- 赛后指标 ---------- */
.metrics-wrap {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr);
}

.metrics-media .img-frame {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--pp-line-soft);
}

.metrics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(13, 42, 66, 0.66);
  border: 1px solid var(--pp-line-soft);
  border-left: 4px solid var(--pp-band-a);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.metric:nth-child(4n+2) { border-left-color: var(--pp-band-b); }
.metric:nth-child(4n+3) { border-left-color: var(--pp-band-c); }
.metric:nth-child(4n) { border-left-color: var(--pp-band-d); }

.metric-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-title);
  margin-bottom: 3px;
}

.metric-hint {
  display: block;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--c-mist);
}

.metric:hover,
.metric:focus-within {
  background: rgba(53, 240, 208, 0.1);
  border-color: var(--c-cyan);
  transform: translateY(-2px);
}

@media (min-width: 640px) {
  .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .metrics-wrap {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    align-items: start;
  }

  .metrics {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .metric {
    padding: 10px 8px;
  }

  .metric-name {
    font-size: 12.5px;
  }

  .metric-hint {
    font-size: 10.5px;
  }
}

/* ---------- 技能树方案 ---------- */
.tree {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 24px;
}

.path-card {
  position: relative;
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: 24px;
  background: linear-gradient(166deg, rgba(13, 42, 66, 0.94), rgba(7, 26, 44, 0.86));
  border: 1px solid var(--pp-line-soft);
  display: flex;
  flex-direction: column;
}

.path-card:hover,
.path-card:focus-within {
  border-color: var(--pp-line);
}

.path-idx {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--c-orange);
  margin-bottom: 8px;
}

.path-who {
  font-size: 13.5px;
  color: var(--c-mist);
  min-height: 46px;
}

.path-mods {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 4px 0 18px;
  padding: 0;
}

.path-mods .pill {
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: 12px;
  color: var(--c-cyan-soft);
  background: rgba(53, 240, 208, 0.08);
  border: 1px solid rgba(53, 240, 208, 0.18);
}

.path-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.tree-media .img-frame {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--pp-line-soft);
}

@media (min-width: 840px) {
  .tree {
    position: relative;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding-top: 34px;
  }

  .tree::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 14%;
    right: 14%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--c-cyan), var(--c-orange), transparent);
  }

  .path-card::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 50%;
    width: 2px;
    height: 20px;
    transform: translateX(-1px);
    background: var(--c-cyan);
  }

  .path-card:nth-child(2)::before { background: var(--c-home); }
  .path-card:nth-child(3)::before { background: var(--c-orange); }
}

/* ---------- 三步开始 ---------- */
.steps {
  display: grid;
  gap: 10px;
  margin-bottom: clamp(22px, 3vw, 34px);
}

.step {
  border-radius: 20px;
  background: rgba(13, 42, 66, 0.7);
  border: 1px solid var(--pp-line-soft);
  overflow: hidden;
}

.step[open] {
  border-color: var(--pp-line);
  background: rgba(13, 42, 66, 0.92);
}

.step summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

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

.step summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--c-cyan);
  line-height: 1;
}

.step[open] summary::after { content: "–"; }

.step summary:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: -3px;
}

.step-idx {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-orange);
  letter-spacing: 0.1em;
}

.step-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.98rem, 1.8vw, 1.12rem);
  color: var(--c-title);
}

.step-body {
  padding: 0 18px 16px 18px;
}

.step-body p {
  font-size: 14px;
  color: var(--c-mist);
  margin-bottom: 10px;
}

.step-body p:last-child { margin-bottom: 0; }

.start-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: 28px;
  background:
    linear-gradient(120deg, rgba(53, 240, 208, 0.12), rgba(255, 138, 61, 0.12)),
    rgba(3, 11, 18, 0.66);
  border: 1px solid var(--pp-line-soft);
}

.start-cta-copy {
  flex: 1 1 320px;
}

.start-cta-copy h2 {
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  margin-bottom: 8px;
}

.start-cta-copy p {
  margin: 0;
  font-size: 14px;
  color: var(--c-mist);
  max-width: 56ch;
}

.start-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-products a:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 3px;
  border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .page-products .metric,
  .page-products .fav-btn,
  .page-products .path-card {
    transition: none;
  }
}
