.page-products {
  --apps-rule: 1px solid var(--brown);
  --apps-rule-soft: 1px solid rgba(36, 28, 24, 0.16);
  --apps-gap: clamp(20px, 4vw, 40px);
  background: var(--sand);
  color: var(--brown);
  font-family: var(--font-sans);
}

.page-products .section {
  padding-top: clamp(40px, 7vw, 76px);
  padding-bottom: clamp(40px, 7vw, 76px);
}

.page-products .section-lede {
  max-width: 42em;
  margin: 0 0 clamp(20px, 3vw, 30px);
  font-size: clamp(15.5px, 1.6vw, 17px);
  line-height: 1.8;
  color: var(--brown);
}

/* ---------- 首屏 ---------- */
.page-products .apps-hero {
  position: relative;
  overflow: hidden;
  border-bottom: var(--apps-rule);
  padding: clamp(18px, 3vw, 28px) 0 clamp(36px, 6vw, 68px);
  background:
    linear-gradient(180deg, rgba(227, 239, 242, 0.6) 0%, rgba(253, 246, 236, 0) 62%);
}

.page-products .apps-hero::before {
  content: "";
  position: absolute;
  top: -22%;
  right: -20%;
  width: 60%;
  height: 152%;
  background: rgba(14, 124, 155, 0.14);
  transform: skewX(-14deg);
  pointer-events: none;
}

.page-products .apps-hero .container {
  position: relative;
  z-index: 1;
}

.page-products .hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--apps-gap);
  margin-top: clamp(18px, 3vw, 34px);
}

.page-products .hero-copy h1 {
  margin: 0 0 16px;
  max-width: 17em;
  font-size: clamp(28px, 5.2vw, 52px);
  line-height: 1.18;
  letter-spacing: -0.6px;
  font-weight: 800;
  color: var(--ink);
}

.page-products .hero-lede {
  max-width: 32em;
  margin: 0;
  font-size: clamp(15.5px, 1.7vw, 17.5px);
  line-height: 1.8;
  color: var(--brown);
}

.page-products .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(20px, 3vw, 28px);
}

.page-products .hero-board {
  border: var(--apps-rule);
  background: var(--ink);
  color: var(--sand);
  box-shadow: var(--shadow-md);
  padding: clamp(18px, 3vw, 26px);
}

.page-products .board-kicker {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--signal);
}

.page-products .board-num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: clamp(72px, 15vw, 128px);
  line-height: 0.82;
  letter-spacing: -6px;
  color: var(--coral);
}

.page-products .board-caption {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(253, 246, 236, 0.84);
}

/* ---------- 章节头 ---------- */
.page-products .chapter-head {
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 2.4vw, 26px);
  margin-bottom: clamp(18px, 3vw, 30px);
  padding-bottom: 14px;
  border-bottom: var(--apps-rule);
}

.page-products .chapter-head h2 {
  margin: 2px 0 0;
  font-size: clamp(21px, 3vw, 32px);
  line-height: 1.32;
  letter-spacing: -0.5px;
  font-weight: 800;
  color: var(--ink);
}

.page-products .chapter-num {
  flex: none;
  font-family: var(--font-mono);
  font-size: clamp(36px, 6vw, 62px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -3px;
  color: var(--sky);
}

@supports (-webkit-text-stroke: 1px black) {
  .page-products .chapter-num {
    color: transparent;
    -webkit-text-stroke: 1.6px var(--sky);
  }
}

/* ---------- 功能矩阵 ---------- */
.page-products .module-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: var(--apps-rule);
  border-left: var(--apps-rule);
}

.page-products .module-cell {
  position: relative;
  border-right: var(--apps-rule);
  border-bottom: var(--apps-rule);
  padding: clamp(20px, 3vw, 30px);
  background: var(--sand);
  transition: box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
}

.page-products .module-cell--mist {
  background: var(--mist);
}

.page-products .module-cell--sky {
  background: rgba(14, 124, 155, 0.1);
}

.page-products .module-cell:hover {
  box-shadow: inset 0 0 0 1.5px var(--coral);
  transform: translateY(-2px);
}

.page-products .module-index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--coral);
}

.page-products .module-cell h3 {
  margin: 10px 0 8px;
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.35;
  font-weight: 800;
  color: var(--ink);
}

.page-products .module-cell p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--brown);
}

.page-products .module-fit {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 9px;
  border: var(--apps-rule-soft);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--broadcast);
  background: rgba(253, 246, 236, 0.7);
}

/* ---------- 图片容器 ---------- */
.page-products .media-frame {
  display: block;
  margin: 0;
  border: var(--apps-rule);
  background: var(--mist);
  overflow: hidden;
}

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

.page-products .figure-caption {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: var(--broadcast);
}

/* ---------- 赛季页面 ---------- */
.page-products .season-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--apps-gap);
  align-items: start;
}

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

.page-products .seq-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 16px 18px;
  border: var(--apps-rule);
  border-left: 4px solid var(--sky);
  background: var(--sand);
}

.page-products .seq-item:last-child {
  border-left-color: var(--coral);
  background: rgba(255, 107, 61, 0.06);
}

.page-products .seq-num {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--coral);
}

.page-products .seq-item h3 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 800;
  color: var(--ink);
}

.page-products .seq-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--brown);
}

/* ---------- 赛果页 ---------- */
.page-products .live-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--apps-gap);
  align-items: start;
}

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

.page-products .lane-item {
  border: var(--apps-rule);
  border-left: 4px solid var(--sky);
  background: var(--sand);
  padding: 14px 16px;
}

.page-products .lane-item--key {
  border-left-color: var(--coral);
  background: rgba(255, 107, 61, 0.07);
}

.page-products .lane-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--broadcast);
}

.page-products .lane-item h3 {
  margin: 6px 0 6px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--ink);
}

.page-products .lane-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--brown);
}

.page-products .report-preview {
  border: var(--apps-rule);
  border-left: 4px solid var(--coral);
  background: var(--sand);
  padding: 16px;
  box-shadow: 0 2px 8px rgba(36, 28, 24, 0.1);
}

.page-products .report-preview img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  border: var(--apps-rule-soft);
  margin-bottom: 14px;
}

.page-products .rp-kicker {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--coral);
}

.page-products .report-preview h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 800;
  color: var(--ink);
}

.page-products .report-preview p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--brown);
}

/* ---------- 联赛切换 ---------- */
.page-products .league-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--apps-gap);
  align-items: start;
}

.page-products .league-block {
  position: relative;
  border: var(--apps-rule);
  background: var(--sand);
  padding: clamp(16px, 2.6vw, 24px);
}

.page-products .league-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.page-products .league-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: var(--apps-rule);
  margin-bottom: 16px;
}

.page-products .league-tabs label {
  padding: 10px 14px;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--broadcast);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.page-products .league-tabs label:hover {
  color: var(--ink);
}

.page-products .league-radio:nth-of-type(1):checked ~ .league-tabs label:nth-of-type(1),
.page-products .league-radio:nth-of-type(2):checked ~ .league-tabs label:nth-of-type(2),
.page-products .league-radio:nth-of-type(3):checked ~ .league-tabs label:nth-of-type(3) {
  color: var(--ink);
  border-bottom-color: var(--coral);
}

.page-products .league-panel {
  display: none;
}

.page-products .league-radio:nth-of-type(1):checked ~ .league-panels .league-panel:nth-of-type(1),
.page-products .league-radio:nth-of-type(2):checked ~ .league-panels .league-panel:nth-of-type(2),
.page-products .league-radio:nth-of-type(3):checked ~ .league-panels .league-panel:nth-of-type(3) {
  display: block;
}

.page-products .panel-note {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--broadcast);
}

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

.page-products .channel-list li {
  border: var(--apps-rule-soft);
  background: var(--mist);
  padding: 11px 12px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--brown);
}

.page-products .league-foot {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: var(--apps-rule-soft);
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--brown);
}

/* ---------- 设备自查 ---------- */
.page-products .device-figure {
  margin-bottom: clamp(20px, 3vw, 28px);
}

.page-products .device-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: var(--apps-rule);
  border-left: var(--apps-rule);
}

.page-products .device-col {
  border-right: var(--apps-rule);
  border-bottom: var(--apps-rule);
  padding: 16px 14px 18px;
  background: var(--sand);
}

.page-products .device-col:nth-child(even) {
  background: rgba(227, 239, 242, 0.55);
}

.page-products .device-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: var(--apps-rule-soft);
}

.page-products .device-head h3 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
}

.page-products .check-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.page-products .check-list li {
  padding: 5px 2px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--brown);
}

.page-products .check-list li:nth-child(odd) {
  background: rgba(36, 28, 24, 0.035);
}

.page-products .check-list label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  cursor: pointer;
}

.page-products .check-list input {
  flex: none;
  margin-top: 3px;
  accent-color: var(--palm);
}

.page-products .check-list input:checked + span {
  color: var(--palm);
}

.page-products .device-foot {
  margin: clamp(18px, 3vw, 26px) 0 0;
  max-width: 44em;
  font-size: 15px;
  line-height: 1.8;
  color: var(--brown);
}

/* ---------- 登录与旧版 ---------- */
.page-products .migrate-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 2.4vw, 22px);
}

.page-products .migrate-card {
  border: var(--apps-rule);
  background: var(--sand);
  padding: clamp(20px, 3vw, 28px);
}

.page-products .migrate-card--dark {
  background: var(--ink);
  color: var(--sand);
  box-shadow: var(--shadow-md);
}

.page-products .migrate-tag {
  display: inline-block;
  padding: 4px 9px;
  border: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--coral);
}

.page-products .migrate-card h3 {
  margin: 14px 0 10px;
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.35;
  font-weight: 800;
  color: var(--ink);
}

.page-products .migrate-card--dark h3 {
  color: var(--sand);
}

.page-products .migrate-card p {
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--brown);
}

.page-products .migrate-card--dark p {
  color: rgba(253, 246, 236, 0.86);
}

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

.page-products .migrate-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--brown);
}

.page-products .migrate-card--dark .migrate-list li {
  color: rgba(253, 246, 236, 0.86);
}

.page-products .migrate-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 2px;
  background: var(--coral);
}

/* ---------- 三步开始 ---------- */
.page-products .step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--apps-rule);
}

.page-products .step-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(14px, 2.4vw, 24px);
  align-items: start;
  padding: clamp(16px, 2.6vw, 22px) 0;
  border-bottom: var(--apps-rule);
}

.page-products .step-num {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--coral);
}

.page-products .step-item h3 {
  margin: 0 0 6px;
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.4;
  font-weight: 800;
  color: var(--ink);
}

.page-products .step-item p {
  margin: 0;
  max-width: 40em;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--brown);
}

.page-products .start-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(22px, 3vw, 30px);
}

.page-products .start-note {
  margin: clamp(18px, 3vw, 26px) 0 0;
  max-width: 44em;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--broadcast);
}

/* ---------- 通用小链接 ---------- */
.page-products .mini-link {
  display: inline-block;
  margin-top: 16px;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--sky);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.page-products .mini-link:hover {
  color: var(--coral);
}

/* ---------- 响应式 ---------- */
@media (min-width: 700px) {
  .page-products .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (min-width: 900px) {
  .page-products .hero-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    align-items: start;
  }

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

  .page-products .league-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }
}

@media (min-width: 980px) {
  .page-products .live-grid {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  }

  .page-products .live-side {
    position: relative;
    height: 100%;
  }

  .page-products .report-preview {
    position: sticky;
    top: calc(var(--header-h) + 20px);
  }
}

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

@media (max-width: 420px) {
  .page-products .channel-list {
    grid-template-columns: 1fr;
  }

  .page-products .hero-actions .btn,
  .page-products .start-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .module-cell,
  .page-products .league-tabs label,
  .page-products .mini-link {
    transition: none;
  }

  .page-products .module-cell:hover {
    transform: none;
  }
}
