.page-products {
  --page-kicker-color: var(--flame-red);
  --page-body-color: #444;
  --page-deep-text: var(--deep-black);
  --page-divider: rgba(42, 42, 42, 0.18);
  background: var(--cream);
  color: var(--deep-black);
  font-family: var(--font-body);
  padding-bottom: 80px;
  overflow-x: clip;
  scroll-behavior: smooth;
}

.page-products__crumb {
  padding: 28px 0 0;
}

.page-products .product-section {
  scroll-margin-top: 96px;
}

.page-products .product-section:target {
  animation: page-products-sectionFlash 1.4s var(--ease);
}

@keyframes page-products-sectionFlash {
  0% {
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.45);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 106, 0, 0);
  }
}

/* ==================== 产品头 ==================== */
.product-hero {
  position: relative;
  display: grid;
  gap: 36px;
  padding: 44px 0 56px;
}

.product-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, transparent 0 16px, rgba(230, 57, 70, 0.1) 16px 18px);
  clip-path: polygon(0 0, 100% 0, 100% 76%, 0 100%);
  pointer-events: none;
}

.product-hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.2) 0, transparent 70%);
  pointer-events: none;
}

.product-hero__copy,
.product-hero__visual {
  position: relative;
  z-index: 1;
}

.product-hero__kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--page-kicker-color);
  border-left: 3px solid var(--fox-orange);
  padding-left: 12px;
  margin-bottom: 14px;
}

.product-hero h1 {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1.12;
  letter-spacing: 0.02em;
  color: var(--page-deep-text);
  margin: 0 0 16px;
}

.product-hero__lead {
  font-size: 16px;
  line-height: 1.8;
  color: #3a3a3a;
  margin-bottom: 28px;
  max-width: 56ch;
}

.product-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 480px;
}

.product-hero__stats .stat-block:last-child {
  grid-column: 1 / -1;
}

.stat-block {
  background: var(--deep-brown-black);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  color: var(--moon-white);
}

.stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: var(--fox-orange);
}

.stat-num small {
  font-size: 14px;
  color: var(--orange-light);
}

.stat-label {
  display: block;
  font-size: 12px;
  color: rgba(248, 249, 250, 0.75);
  margin-top: 6px;
}

.product-hero__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-frame {
  position: relative;
  width: 240px;
  background: #000;
  border-radius: 28px;
  padding: 38px 10px 14px;
  border: 4px solid var(--deep-black);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.phone-frame__notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 18px;
  background: #222;
  border-radius: 12px;
}

.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.phone-zoom {
  margin-top: 14px;
  font-size: 13px;
}

.phone-zoom summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--esports-blue);
  font-family: var(--font-mono);
  padding: 6px 14px;
  border: 1px solid var(--esports-blue);
  border-radius: 999px;
  transition: background 0.2s var(--ease);
}

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

.phone-zoom summary:hover,
.phone-zoom summary:focus-visible {
  background: rgba(0, 180, 216, 0.12);
  outline: none;
}

.phone-zoom__canvas {
  margin-top: 12px;
  background: var(--deep-black);
  padding: 12px;
  border-radius: var(--radius-md);
}

.phone-zoom__canvas img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 420px;
  margin: 0 auto;
  border-radius: var(--radius-sm);
}

/* ==================== 布局：目录 + 内容 ==================== */
.product-layout {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}

.product-toc {
  background: var(--deep-black);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.product-toc__title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-light);
  margin-bottom: 14px;
}

.product-toc__nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}

.product-toc__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--moon-white);
  background: var(--iron-gray);
  border-radius: 999px;
  padding: 8px 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.product-toc__link:hover,
.product-toc__link:focus-visible {
  background: var(--fox-orange);
  color: var(--deep-black);
  outline: none;
}

.product-toc__idx {
  color: var(--fox-orange);
  font-weight: 700;
}

.product-toc__link:hover .product-toc__idx,
.product-toc__link:focus-visible .product-toc__idx {
  color: var(--deep-black);
}

.product-toc__note {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  line-height: 1.6;
  color: rgba(248, 249, 250, 0.6);
}

.product-content {
  display: grid;
  gap: 56px;
}

/* ==================== 章节头 ==================== */
.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 2px solid var(--iron-gray);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.section-head__idx {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
  color: var(--fox-orange);
  min-width: 40px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 0;
  color: var(--page-deep-text);
}

.section-lead {
  font-size: 16px;
  line-height: 1.8;
  color: #4a4a4a;
  margin-bottom: 20px;
}

.compliance-line {
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--iron-gray);
  border-left: 3px solid var(--esports-blue);
  padding-left: 12px;
}

/* ==================== 模块网格 ==================== */
.module-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.module-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--moon-white);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--fox-orange);
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--page-deep-text);
}

.module-chip__idx {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--esports-blue);
}

/* ==================== V3特性卡片 ==================== */
.feature-list {
  display: grid;
  gap: 16px;
}

.feature-card {
  background: var(--moon-white);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--fox-orange);
  padding: 20px 20px 20px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-card__flag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--deep-black);
  background: var(--orange-light);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 10px;
}

.feature-card h3 {
  font-size: 18px;
  margin: 0 0 10px;
  color: var(--page-deep-text);
}

.feature-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--page-body-color);
  margin: 0;
}

.feature-card__scene {
  display: block;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(42, 42, 42, 0.25);
  font-size: 13px;
  line-height: 1.7;
  color: var(--iron-gray);
}

.feature-card__scene strong {
  color: var(--flame-red);
  font-weight: 700;
}

/* ==================== 左右分栏 ==================== */
.split-block {
  display: grid;
  gap: 24px;
}

.split-block__copy p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--page-body-color);
  margin-bottom: 14px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  font-size: 14px;
  line-height: 1.7;
  color: #333;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  background: var(--fox-orange);
  clip-path: polygon(14% 45%, 42% 72%, 86% 16%, 100% 30%, 42% 100%, 0 62%);
}

.split-block__media {
  margin: 0;
}

.split-block__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.split-block__media figcaption,
.data-viz figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--iron-gray);
  margin-top: 8px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

/* ==================== 数据面板 ==================== */
.data-panel {
  background: var(--blue-black);
  border-radius: var(--radius-lg);
  padding: 20px;
  color: var(--moon-white);
  font-family: var(--font-mono);
  margin: 20px 0;
}

.data-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  color: var(--orange-light);
  margin-bottom: 6px;
}

.data-panel__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #7dd3fc;
}

.data-panel__status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--esports-blue);
  box-shadow: 0 0 8px var(--esports-blue);
}

.data-panel__row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "team score"
    "league time";
  gap: 4px 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.data-panel__team {
  grid-area: team;
  font-weight: 700;
  color: var(--moon-white);
}

.data-panel__league {
  grid-area: league;
  color: rgba(248, 249, 250, 0.7);
}

.data-panel__time {
  grid-area: time;
  justify-self: end;
  color: #7dd3fc;
  font-size: 12px;
}

.data-panel__score {
  grid-area: score;
  justify-self: end;
  background: var(--fox-orange);
  color: var(--deep-black);
  font-weight: 700;
  border-radius: 6px;
  padding: 2px 8px;
  text-align: center;
}

.data-panel__bar {
  margin-top: 14px;
  background: rgba(0, 180, 216, 0.12);
  border: 1px solid rgba(0, 180, 216, 0.3);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #b8e6f2;
}

.data-viz {
  margin: 20px 0;
}

.data-viz img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.data-viz figcaption {
  text-align: right;
}

/* ==================== 订阅步骤 ==================== */
.steps-row {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin: 20px 0;
}

.step-card {
  background: var(--moon-white);
  border-radius: var(--radius-md);
  border-top: 3px solid var(--esports-blue);
  padding: 18px;
}

.step-card__num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  color: var(--esports-blue);
  margin-bottom: 8px;
}

.step-card h3 {
  font-size: 16px;
  margin: 0 0 6px;
  color: var(--page-deep-text);
}

.step-card p {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  margin: 0;
}

/* ==================== 官方下载 ==================== */
.download-block {
  display: grid;
  gap: 24px;
}

.download-link-code {
  background: var(--iron-gray);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-family: var(--font-mono);
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.download-link-code__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange-light);
}

.download-link-code code {
  color: var(--moon-white);
  font-size: 14px;
  word-break: break-all;
}

.download-note {
  font-size: 13px;
  color: var(--iron-gray);
}

.download-block__media {
  margin: 0;
}

.download-block__media img {
  display: block;
  max-width: 220px;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius-md);
  background: var(--moon-white);
  padding: 12px;
  box-shadow: var(--shadow-md);
}

.download-block__media figcaption {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--iron-gray);
  margin-top: 8px;
}

/* ==================== 服务介绍 ==================== */
.service-grid {
  display: grid;
  gap: 16px;
}

.service-card {
  background: var(--moon-white);
  border: 1px solid rgba(42, 42, 42, 0.15);
  border-radius: var(--radius-md);
  padding: 20px;
}

.service-card h3 {
  font-size: 16px;
  margin: 0 0 12px;
  color: var(--page-deep-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-card h3::before {
  content: "";
  width: 8px;
  height: 20px;
  background: var(--flame-red);
  border-radius: 2px;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.service-card li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--page-body-color);
}

.service-card li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--fox-orange);
  font-weight: 700;
}

.service-card--contact {
  background: var(--deep-black);
  border-color: var(--deep-black);
  color: var(--moon-white);
}

.service-card--contact h3 {
  color: var(--fox-orange);
}

.service-card--contact h3::before {
  background: var(--esports-blue);
}

.service-card--contact p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 10px;
  color: rgba(248, 249, 250, 0.85);
}

.service-card__note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--orange-light);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 10px;
  margin-top: 12px;
}

/* ==================== 中屏增强 ==================== */
@media (min-width: 600px) {
  .product-hero__stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-hero__stats .stat-block:last-child {
    grid-column: auto;
  }

  .module-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .data-panel__row {
    grid-template-columns: 1fr 1.2fr auto auto;
    grid-template-areas: "team league time score";
  }

  .data-panel__time,
  .data-panel__score {
    justify-self: auto;
  }

  .steps-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-card--contact {
    grid-column: 1 / -1;
  }
}

/* ==================== 桌面布局 ==================== */
@media (min-width: 900px) {
  .page-products {
    padding-bottom: 120px;
  }

  .product-hero {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    padding: 56px 0 72px;
  }

  .product-hero h1 {
    font-size: 56px;
  }

  .product-hero__lead {
    font-size: 18px;
  }

  .product-hero__visual {
    justify-content: flex-end;
  }

  .phone-frame {
    width: 260px;
  }

  .product-layout {
    grid-template-columns: 240px 1fr;
    gap: 48px;
    align-items: start;
  }

  .product-toc {
    position: sticky;
    top: 100px;
  }

  .product-toc__nav {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    overflow: visible;
    padding-bottom: 0;
  }

  .product-toc__link {
    justify-content: flex-start;
    border-radius: 8px;
    padding: 10px 12px;
    background: transparent;
    color: rgba(248, 249, 250, 0.8);
  }

  .product-toc__link:hover,
  .product-toc__link:focus-visible {
    background: var(--fox-orange);
    color: var(--deep-black);
  }

  .product-content {
    gap: 72px;
  }

  .section-head h2 {
    font-size: 36px;
  }

  .section-head__idx {
    font-size: 30px;
  }

  .feature-card {
    padding: 28px 28px 28px 32px;
  }

  .feature-card h3 {
    font-size: 20px;
  }

  .feature-card p {
    font-size: 15px;
  }

  .split-block {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .split-block--reverse .split-block__media {
    order: 1;
  }

  .split-block--reverse .split-block__copy {
    order: 2;
  }

  .download-block {
    grid-template-columns: 1fr 260px;
    align-items: center;
  }
}

@media (min-width: 1200px) {
  .product-layout {
    grid-template-columns: 260px 1fr;
    gap: 64px;
  }

  .product-toc {
    padding: 24px;
  }
}

/* ==================== 动效降级 ==================== */
@media (prefers-reduced-motion: reduce) {
  .page-products {
    scroll-behavior: auto;
  }

  .page-products *,
  .page-products *::before,
  .page-products *::after {
    animation: none !important;
    transition: none !important;
  }
}
