.page-products {
  --wb-gap: clamp(14px, 2vw, 24px);
  --wb-panel: rgba(16, 34, 74, 0.82);
  --wb-rule: rgba(143, 163, 200, 0.18);
  --wb-rule-soft: rgba(143, 163, 200, 0.1);
  --wb-text-soft: rgba(244, 247, 255, 0.78);
  background:
    radial-gradient(120% 70% at 88% -18%, rgba(0, 214, 164, 0.1), transparent 62%),
    radial-gradient(90% 60% at 4% 12%, rgba(200, 16, 46, 0.1), transparent 58%),
    var(--night);
  color: var(--snow);
  font-family: var(--font-body);
  overflow-x: clip;
}

/* ---------- 工作台首屏 ---------- */

.page-products .wb-band {
  position: relative;
  padding: calc(var(--header-h) + 44px) 0 clamp(48px, 7vw, 96px);
  overflow: hidden;
  border-bottom: 1px solid var(--wb-rule);
}

.page-products .wb-band__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-products .wb-band__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-products .wb-band__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 22, 51, 0.7) 0%, rgba(10, 22, 51, 0.9) 62%, var(--night) 100%),
    linear-gradient(90deg, rgba(10, 22, 51, 0.92) 0%, rgba(10, 22, 51, 0.35) 60%, transparent 100%);
}

.page-products .wb-band__inner {
  position: relative;
  z-index: 1;
}

.page-products .wb-intro {
  max-width: 44rem;
  margin-top: clamp(20px, 3vw, 34px);
}

.page-products .wb-intro h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.85rem, 5vw, 3.4rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}

.page-products .wb-intro__lead {
  margin: 0;
  max-width: 38rem;
  font-size: clamp(0.95rem, 1.15vw, 1.08rem);
  line-height: 1.78;
  color: var(--mist);
}

.page-products .feature-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--banner);
}

.page-products .feature-kicker::before {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--saffron);
}

/* ---------- 三栏工作台 ---------- */

.page-products .workbench {
  margin-top: clamp(28px, 4.5vw, 56px);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--wb-gap);
}

.page-products .workbench__panel {
  background: var(--wb-panel);
  border: 1px solid var(--wb-rule);
  border-radius: var(--radius);
  padding: clamp(16px, 2vw, 22px);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  min-width: 0;
}

.page-products .workbench__label {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
}

.page-products .league-pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-products .league-pill {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--ridge);
  color: var(--mist);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background 140ms var(--ease), color 140ms var(--ease),
    border-color 140ms var(--ease), transform 120ms var(--ease);
}

.page-products .league-pill:hover,
.page-products .league-pill:focus-visible {
  background: var(--ridge);
  color: var(--snow);
}

.page-products .league-pill:active {
  transform: scale(0.97);
}

.page-products .league-pill.is-active {
  background: var(--saffron);
  border-color: var(--saffron);
  color: var(--snow);
}

.page-products .league-pill:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 2px;
}

.page-products .workbench__hint {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.65;
  color: var(--mist);
}

.page-products .wb-table-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--wb-rule);
}

.page-products .wb-table-head__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.page-products .wb-table-head__round {
  font-size: 12px;
  color: var(--banner);
}

.page-products .wb-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -4px;
  padding: 0 4px;
}

.page-products .mini-table {
  width: 100%;
  min-width: 320px;
  border-collapse: collapse;
  font-size: 13px;
}

.page-products .mini-table th {
  padding: 9px 6px;
  text-align: left;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--mist);
  white-space: nowrap;
}

.page-products .mini-table thead th {
  background: var(--saffron);
  color: var(--snow);
}

.page-products .mini-table thead th:first-child {
  border-radius: 8px 0 0 8px;
}

.page-products .mini-table thead th:last-child {
  border-radius: 0 8px 8px 0;
}

.page-products .mini-table td {
  padding: 11px 6px;
  border-bottom: 1px solid var(--wb-rule-soft);
  white-space: nowrap;
}

.page-products .mini-table th:nth-child(n + 3),
.page-products .mini-table td:nth-child(n + 3) {
  text-align: right;
}

.page-products .mini-table tbody tr {
  transition: background 140ms var(--ease);
}

.page-products .mini-table tbody tr:nth-child(even) {
  background: rgba(27, 58, 107, 0.28);
}

.page-products .mini-table tbody tr:hover {
  background: rgba(27, 58, 107, 0.52);
}

.page-products .mini-table td:first-child {
  color: var(--banner);
  font-weight: 700;
}

.page-products .mini-table tbody tr:first-child td:first-child {
  color: var(--saffron);
}

.page-products .mini-table .is-up {
  color: var(--jade);
}

.page-products .mini-table .is-down {
  color: var(--ember);
}

.page-products .mini-table .is-strong {
  font-weight: 700;
  color: var(--snow);
}

.page-products .wb-table-note {
  margin: 14px 0 0;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--mist);
}

.page-products .h2h-mini__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--wb-rule);
  font-size: 12.5px;
}

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

.page-products .h2h-mini__row > span:last-child {
  text-align: right;
}

.page-products .h2h-mini__row .mono {
  color: var(--banner);
  font-weight: 700;
  font-size: 13px;
}

.page-products .h2h-meter {
  margin-top: 16px;
}

.page-products .h2h-meter__bar {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--ridge);
}

.page-products .h2h-meter__home {
  background: var(--saffron);
}

.page-products .h2h-meter__draw {
  background: var(--banner);
}

.page-products .h2h-meter__away {
  background: var(--jade);
}

.page-products .h2h-meter__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 10px 0 0;
  font-size: 11.5px;
  color: var(--mist);
}

.page-products .legend-home::before,
.page-products .legend-away::before,
.page-products .legend-draw::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: 1px;
}

.page-products .legend-home::before {
  background: var(--saffron);
}

.page-products .legend-away::before {
  background: var(--jade);
}

.page-products .legend-draw::before {
  background: var(--banner);
}

/* ---------- 通用章节 ---------- */

.page-products .feature {
  position: relative;
  padding: clamp(48px, 7vw, 96px) 0;
}

.page-products .feature--tint {
  background: rgba(16, 34, 74, 0.5);
  border-top: 1px solid var(--wb-rule);
  border-bottom: 1px solid var(--wb-rule);
}

.page-products .feature--bleed::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--wb-rule-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--wb-rule-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(90% 70% at 50% 30%, #000 10%, transparent 82%);
  -webkit-mask-image: radial-gradient(90% 70% at 50% 30%, #000 10%, transparent 82%);
  pointer-events: none;
}

.page-products .feature > .container {
  position: relative;
  z-index: 1;
}

.page-products .feature__head {
  max-width: 44rem;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.page-products .feature h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  max-width: 24em;
}

.page-products .feature__sub {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.35;
  margin: 0 0 14px;
}

.page-products .feature__lead,
.page-products .feature__body p,
.page-products .feature__head p {
  margin: 0 0 20px;
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--wb-text-soft);
  max-width: 40em;
}

.page-products .feature a {
  color: var(--banner);
  text-decoration: none;
  border-bottom: 1px solid rgba(242, 183, 5, 0.4);
  transition: border-color 140ms var(--ease), color 140ms var(--ease);
}

.page-products .feature a:hover,
.page-products .feature a:focus-visible {
  color: var(--snow);
  border-bottom-color: var(--snow);
}

.page-products .feature__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
}

.page-products .feature__media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--wb-rule);
}

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

.page-products .feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-products .feature-list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--wb-text-soft);
}

.page-products .feature-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--saffron);
  font-family: var(--font-mono);
}

/* ---------- 历史交锋大面板 ---------- */

.page-products .h2h-panel {
  margin-bottom: clamp(36px, 5vw, 64px);
  padding: clamp(20px, 3vw, 34px);
  border-radius: var(--radius);
  border: 1px solid var(--wb-rule);
  background:
    linear-gradient(135deg, rgba(200, 16, 46, 0.14) 0%, transparent 46%),
    linear-gradient(315deg, rgba(0, 214, 164, 0.12) 0%, transparent 46%),
    var(--layer);
}

.page-products .h2h-panel__head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--wb-rule);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.page-products .h2h-panel__mark {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--mist);
  white-space: nowrap;
}

.page-products .h2h-panel__team--right {
  text-align: right;
}

.page-products .h2h-panel__bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 2vw, 22px);
  padding: 26px 0 18px;
}

.page-products .h2h-panel__side {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(10, 22, 51, 0.5);
  border: 1px solid var(--wb-rule);
}

.page-products .h2h-panel__side--home {
  border-left: 3px solid var(--saffron);
}

.page-products .h2h-panel__side--draw {
  border-left: 3px solid var(--banner);
}

.page-products .h2h-panel__side--away {
  border-left: 3px solid var(--jade);
}

.page-products .h2h-panel__num {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1;
}

.page-products .h2h-panel__side--home .h2h-panel__num {
  color: var(--saffron);
}

.page-products .h2h-panel__side--draw .h2h-panel__num {
  color: var(--banner);
}

.page-products .h2h-panel__side--away .h2h-panel__num {
  color: var(--jade);
}

.page-products .h2h-panel__cap {
  font-size: 12px;
  color: var(--mist);
}

.page-products .h2h-panel__note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--mist);
}

/* ---------- 球队资料卡 ---------- */

.page-products .squad-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-products .squad-card {
  padding: clamp(18px, 2vw, 24px);
  border-radius: var(--radius);
  background: var(--wb-panel);
  border: 1px solid var(--wb-rule);
  transition: border-color 180ms var(--ease), transform 180ms var(--ease);
}

.page-products .squad-card:hover {
  border-color: var(--ridge);
  transform: translateY(-2px);
}

.page-products .squad-card__index {
  display: block;
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--saffron);
}

.page-products .squad-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  margin: 0 0 10px;
}

.page-products .squad-card__text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--mist);
}

/* ---------- 筛选 ---------- */

.page-products .filter-block {
  max-width: 44rem;
}

.page-products .filter-chips {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-products .filter-chip {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  background: rgba(10, 22, 51, 0.6);
  border: 1px solid var(--ridge);
  color: var(--mist);
}

.page-products .filter-chip.is-active {
  background: var(--banner);
  border-color: var(--banner);
  color: var(--night);
  font-weight: 700;
}

.page-products .filter-chip--soft {
  border-style: dashed;
  border-color: var(--wb-rule);
  color: rgba(143, 163, 200, 0.72);
}

.page-products .filter-block__note {
  margin: 24px 0 0;
  padding-left: 16px;
  border-left: 2px solid var(--ridge);
  font-size: 13.5px;
  line-height: 1.78;
  color: var(--mist);
}

/* ---------- 同步横条 ---------- */

.page-products .sync-strip {
  margin: clamp(32px, 5vw, 56px) 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--wb-rule);
  background: var(--deep);
}

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

.page-products .sync-strip__cap {
  padding: 16px clamp(16px, 2.4vw, 24px);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--mist);
  border-top: 1px solid var(--wb-rule);
}

/* ---------- 试用步骤 ---------- */

.page-products .start-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  counter-reset: step;
}

.page-products .start-step {
  position: relative;
  padding: clamp(18px, 2.2vw, 24px);
  border-radius: var(--radius);
  border: 1px solid var(--wb-rule);
  background: rgba(10, 22, 51, 0.55);
}

.page-products .start-step__num {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--saffron);
}

.page-products .start-step__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.4;
  margin: 0 0 8px;
}

.page-products .start-step__text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--mist);
}

/* ---------- 收束条 ---------- */

.page-products .next-band {
  border-top: 1px solid var(--wb-rule);
  background: linear-gradient(180deg, rgba(10, 22, 51, 0.2), var(--deep));
}

.page-products .next-band__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
}

.page-products .next-band__copy h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.25;
  margin: 0 0 12px;
}

.page-products .next-band__copy p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--mist);
  max-width: 40em;
}

.page-products .next-band__copy a {
  color: var(--banner);
  text-decoration: none;
  border-bottom: 1px solid rgba(242, 183, 5, 0.4);
}

.page-products .next-band__copy a:hover,
.page-products .next-band__copy a:focus-visible {
  color: var(--snow);
  border-bottom-color: var(--snow);
}

.page-products .next-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

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

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

@media (min-width: 900px) {
  .page-products .workbench {
    grid-template-columns: minmax(180px, 0.72fr) minmax(0, 2fr) minmax(230px, 1fr);
    align-items: start;
  }

  .page-products .feature__grid--media-right {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
  }

  .page-products .feature__grid--media-left {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: center;
  }

  .page-products .feature__grid--media-left .feature__body {
    order: 2;
  }

  .page-products .feature__grid--media-left .feature__media {
    order: 1;
  }

  .page-products .next-band__inner {
    grid-template-columns: minmax(0, 1.4fr) auto;
  }
}

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

@media (max-width: 560px) {
  .page-products .h2h-panel__head {
    grid-template-columns: 1fr 1fr;
    row-gap: 6px;
  }

  .page-products .h2h-panel__mark {
    grid-column: 1 / -1;
    order: -1;
    text-align: left;
  }

  .page-products .h2h-panel__bars {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .page-products .h2h-panel__side {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
  }

  .page-products .next-band__actions .btn {
    flex: 1 1 auto;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .squad-card,
  .page-products .league-pill {
    transition: none;
  }
}
