.page-products {
  --card-radius: 12px;
  --card-padding: 1rem;
  --glow-green: rgba(57, 255, 20, 0.25);
  --glow-green-soft: rgba(57, 255, 20, 0.08);
  --scrollbar-track: rgba(255, 255, 255, 0.04);
  --scrollbar-thumb: rgba(57, 255, 20, 0.4);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 1.5rem 1rem 3rem;
  max-width: var(--max-width, 1200px);
  margin: 0 auto;
  color: var(--text-primary, #ffffff);
  font-family: var(--font-body, 'Roboto', sans-serif);
  overflow-x: hidden;
}

/* ------- 背景数据流动画 ------- */
.page-products__bg-dataflow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at 15% 80%, rgba(57, 255, 20, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 20%, rgba(57, 255, 20, 0.04) 0%, transparent 50%);
}
.page-products__bg-dataflow::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, transparent 0px, transparent 40px, rgba(57, 255, 20, 0.03) 40px, rgba(57, 255, 20, 0.03) 41px),
    repeating-linear-gradient(0deg, transparent 0px, transparent 40px, rgba(57, 255, 20, 0.02) 40px, rgba(57, 255, 20, 0.02) 41px);
  animation: page-products__dataflow-scroll 8s linear infinite;
}
@keyframes page-products__dataflow-scroll {
  0% { transform: translate(0, 0); }
  100% { transform: translate(40px, 40px); }
}
@media (prefers-reduced-motion: reduce) {
  .page-products__bg-dataflow::before { animation: none; }
}

/* ------- 面包屑 ------- */
.page-products__breadcrumb {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-secondary, #a0b0c0);
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.page-products__breadcrumb a {
  color: var(--link-color, #39ff14);
  text-decoration: none;
  transition: opacity 0.2s;
}
.page-products__breadcrumb a:hover { opacity: 0.75; }
.page-products__sep { color: var(--text-secondary, #a0b0c0); }

/* ------- 视觉隐藏（辅助） ------- */
.page-products__visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

/* ------- Hero 区域 ------- */
.page-products__hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 0 1rem;
  border-bottom: 1px solid rgba(57, 255, 20, 0.15);
}
.page-products__hero-text { flex: 1; }
.page-products__hero-title {
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
  background: linear-gradient(135deg, #ffffff 40%, #39ff14 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-products__hero-desc {
  font-size: 1rem;
  color: var(--text-secondary, #a0b0c0);
  line-height: 1.6;
  max-width: 540px;
  margin: 0;
}
.page-products__hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0;
}
.page-products__hero-svg {
  width: 100%;
  max-width: 280px;
  height: auto;
}

/* ------- 通用章节标题 ------- */
.page-products__section-title {
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  color: var(--text-primary, #ffffff);
  border-left: 4px solid var(--primary-accent, #39ff14);
  padding-left: 0.75rem;
}

/* ------- 联赛区域 ------- */
.page-products__leagues {
  position: relative;
  z-index: 1;
}
.page-products__league-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}
.page-products__league-scroll::-webkit-scrollbar { height: 6px; }
.page-products__league-scroll::-webkit-scrollbar-track { background: var(--scrollbar-track); border-radius: 3px; }
.page-products__league-scroll::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 3px; }

.page-products__league-card {
  flex: 0 0 auto;
  width: 190px;
  background: var(--card-bg, rgba(255,255,255,0.05));
  border: var(--card-border, 1px solid rgba(57,255,20,0.3));
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: default;
  position: relative;
}
.page-products__league-card:hover,
.page-products__league-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--glow-green);
  border-color: var(--primary-accent, #39ff14);
}
.page-products__league-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(57,255,20,0.18), transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.page-products__league-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.page-products__league-name {
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0;
  letter-spacing: 0.02em;
}
.page-products__league-stats {
  display: flex;
  gap: 0.8rem;
  width: 100%;
  justify-content: center;
}
.page-products__stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}
.page-products__stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary, #a0b0c0);
}
.page-products__stat-number {
  font-family: var(--font-data, 'JetBrains Mono', monospace);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--primary-accent, #39ff14);
  line-height: 1;
}
.page-products__league-extra {
  display: flex;
  gap: 0.6rem;
  font-size: 0.7rem;
  color: var(--secondary-accent, #c0c0c0);
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, height 0.3s ease;
}
.page-products__league-card:hover .page-products__league-extra,
.page-products__league-card:focus-within .page-products__league-extra {
  opacity: 1;
  height: 1.2rem;
}
.page-products__league-link {
  font-size: 0.8rem;
  color: var(--link-color, #39ff14);
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
  padding-bottom: 1px;
  transition: opacity 0.2s;
  margin-top: 0.3rem;
}
.page-products__league-link:hover { opacity: 0.7; }
.page-products__league-hint {
  font-size: 0.75rem;
  color: var(--text-secondary, #a0b0c0);
  text-align: center;
  margin: 0.5rem 0 0;
  opacity: 0.7;
}

/* ------- 下载区域 ------- */
.page-products__download {
  position: relative;
  z-index: 1;
}
.page-products__download-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(57,255,20,0.04), rgba(57,255,20,0.01));
  border: 1px solid rgba(57,255,20,0.2);
  border-radius: calc(var(--card-radius) + 4px);
  padding: 1.5rem;
}
.page-products__download-info { flex: 1; }
.page-products__download-desc {
  font-size: 0.95rem;
  color: var(--text-secondary, #a0b0c0);
  line-height: 1.7;
  margin: 0 0 1.2rem;
  max-width: 480px;
}
.page-products__download-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.page-products__btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 40px;
  background: var(--primary-accent, #39ff14);
  color: #0b1a2a;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: page-products__pulse-btn 2.4s ease-in-out infinite;
  position: relative;
}
.page-products__btn-download:hover {
  transform: scale(1.04);
  box-shadow: 0 0 20px var(--glow-green);
}
@media (prefers-reduced-motion: reduce) {
  .page-products__btn-download { animation: none; }
}
@keyframes page-products__pulse-btn {
  0%, 100% { box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.4); }
  50% { box-shadow: 0 0 16px 6px rgba(57, 255, 20, 0.15); }
}
.page-products__qrcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.page-products__qrcode-img {
  width: 80px;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(57, 255, 20, 0.25);
  background: rgba(255,255,255,0.05);
}
.page-products__qrcode-label {
  font-size: 0.7rem;
  color: var(--text-secondary, #a0b0c0);
  letter-spacing: 0.03em;
}
.page-products__download-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.page-products__phone-frame {
  width: 150px;
  height: 260px;
  border: 2px solid rgba(57, 255, 20, 0.4);
  border-radius: 20px;
  padding: 6px;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-products__phone-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

/* ------- 小屏版适配区域 ------- */
.page-products__mobile {
  position: relative;
  z-index: 1;
}
.page-products__mobile-desc {
  font-size: 0.95rem;
  color: var(--text-secondary, #a0b0c0);
  line-height: 1.7;
  margin: 0 0 1.5rem;
  max-width: 600px;
}
.page-products__mobile-showcase {
  margin-bottom: 1.8rem;
}
.page-products__mobile-compare {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.page-products__compare-item {
  flex: 1 1 240px;
  min-width: 160px;
  margin: 0;
}
.page-products__compare-img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(57, 255, 20, 0.2);
  display: block;
  background: var(--card-bg, rgba(255,255,255,0.05));
}
.page-products__compare-caption {
  font-size: 0.8rem;
  color: var(--secondary-accent, #c0c0c0);
  margin-top: 0.4rem;
  text-align: center;
  letter-spacing: 0.02em;
}
.page-products__feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.page-products__feature-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-primary, #ffffff);
  line-height: 1.5;
}
.page-products__feature-icon {
  color: var(--primary-accent, #39ff14);
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ------- 底部提示 ------- */
.page-products__cta-note {
  position: relative;
  z-index: 1;
  padding: 1.2rem 1.5rem;
  background: rgba(57, 255, 20, 0.04);
  border-radius: var(--card-radius);
  border: 1px solid rgba(57, 255, 20, 0.12);
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary, #a0b0c0);
}
.page-products__cta-note a {
  color: var(--link-color, #39ff14);
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}
.page-products__cta-note a:hover { opacity: 0.75; }

/* ------- 模态提示 ------- */
.page-products__modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,0.65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.page-products__modal[data-download-modal][data-open] {
  display: flex;
}
.page-products__modal-content {
  background: #0f2438;
  border: 1px solid var(--primary-accent, #39ff14);
  border-radius: 16px;
  padding: 2rem 1.8rem;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}
.page-products__modal-text {
  font-size: 0.95rem;
  color: var(--text-secondary, #a0b0c0);
  line-height: 1.7;
  margin: 0 0 1.5rem;
}
.page-products__modal-close {
  display: inline-block;
  padding: 0.5rem 1.8rem;
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid var(--primary-accent, #39ff14);
  border-radius: 30px;
  background: transparent;
  color: var(--primary-accent, #39ff14);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.page-products__modal-close:hover {
  background: var(--primary-accent, #39ff14);
  color: #0b1a2a;
}

/* ------- Tablet 及之上 ------- */
@media (min-width: 600px) {
  .page-products {
    padding: 2rem 2rem 3.5rem;
    gap: 3.5rem;
  }
  .page-products__hero {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }
  .page-products__hero-title { font-size: 2.8rem; }
  .page-products__hero-visual { flex: 0 0 260px; }
  .page-products__download-inner {
    flex-direction: row;
    align-items: center;
    padding: 2rem;
  }
  .page-products__phone-frame {
    width: 170px;
    height: 290px;
  }
  .page-products__mobile-compare {
    flex-wrap: nowrap;
  }
  .page-products__qrcode-img { width: 100px; }
}

/* ------- Desktop ------- */
@media (min-width: 900px) {
  .page-products {
    padding: 2.5rem 3rem 4rem;
    gap: 4rem;
  }
  .page-products__hero-title { font-size: 3.2rem; }
  .page-products__hero-visual { flex: 0 0 320px; }
  .page-products__league-card { width: 210px; padding: 1.2rem; }
  .page-products__download-inner { padding: 2.5rem; }
  .page-products__phone-frame { width: 190px; height: 320px; }
  .page-products__section-title { font-size: 1.8rem; }
  .page-products__feature-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem 2rem;
  }
  .page-products__feature-item { flex: 1 1 200px; }
}

.page-products {
  --link-color: currentColor;
}
