/* ========== 平台服务页 / platform / products ========== */
.page-products {
  --products-gap: clamp(24px, 4vw, 48px);
  --products-pad: clamp(64px, 8vw, 112px);
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: no-preference) {
  .page-products {
    scroll-behavior: smooth;
  }
}

/* ---------- 首屏：双栏拼贴画布 ---------- */
.page-products .products-hero {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.page-products .products-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.035) 0 2px,
    transparent 2px 10px
  );
  pointer-events: none;
}

.page-products .products-hero::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -140px;
  width: 360px;
  height: 360px;
  border: 64px solid rgba(46, 139, 192, 0.22);
  border-radius: 50%;
  pointer-events: none;
}

.page-products .products-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
  padding: 48px 0 64px;
}

.page-products .hero-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
}

.page-products .hero-kicker .index-chip {
  background: var(--orange);
  color: var(--white);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
}

.page-products .products-hero h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.12;
  letter-spacing: 0.01em;
  margin: 0 0 24px;
  color: var(--white);
}

.page-products .hero-lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 28px;
  max-width: 680px;
}

.page-products .hero-facts {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-products .hero-facts li {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

.page-products .hero-facts span {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--amber);
  margin-right: 4px;
}

.page-products .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.page-products .hero-support {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.page-products .hero-support a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 600;
}

.page-products .products-hero-diagram {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.page-products .hero-radar {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 20px;
}

.page-products .hero-radar svg {
  display: block;
  width: 100%;
  height: auto;
}

.page-products .hero-diagram-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
  text-align: right;
  margin-top: 12px;
}

/* ---------- 功能总览：大图背景 + 色块覆盖层 ---------- */
.page-products .products-overview {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}

.page-products .overview-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-products .overview-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.page-products .overview-tint {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(11, 60, 93, 0.94) 0%, rgba(11, 60, 93, 0.82) 45%, rgba(11, 60, 93, 0.66) 100%),
    linear-gradient(0deg, rgba(11, 60, 93, 0.72), rgba(11, 60, 93, 0.48));
}

.page-products .overview-inner {
  position: relative;
  z-index: 1;
  padding-top: var(--products-pad);
  padding-bottom: var(--products-pad);
}

.page-products .products-overview h2 {
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--white);
}

.page-products .overview-intro {
  max-width: 760px;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

.page-products .feature-list {
  margin-top: 48px;
}

.page-products .feature-entry {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.page-products .feature-entry:first-of-type {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.page-products .feature-index {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--amber);
  line-height: 1.6;
}

.page-products .feature-body h3 {
  font-size: 18px;
  line-height: 1.4;
  margin: 0 0 8px;
  color: var(--white);
}

.page-products .feature-body p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 12px;
}

.page-products .feature-anchor {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 600;
  transition: color 0.2s ease, gap 0.2s ease;
}

.page-products .feature-anchor:hover {
  color: var(--amber);
  gap: 10px;
}

.page-products .feature-entry--highlight {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 28px 24px;
  margin-bottom: 12px;
  border-bottom: 0;
}

.page-products .feature-entry--highlight:first-of-type {
  border-top: 0;
}

.page-products .entry-quicklist {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.page-products .quick-entry {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 14px;
  color: var(--white);
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.page-products .quick-entry:hover {
  border-color: var(--amber);
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(4px);
}

.page-products .quick-index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber);
  font-weight: 700;
}

/* ---------- 赛程时间轴：淡蓝分区 ---------- */
.page-products .products-timeline {
  background: var(--section);
  padding: var(--products-pad) 0;
  position: relative;
}

.page-products .products-timeline::before {
  content: "";
  display: block;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--orange), var(--amber), transparent);
}

.page-products .timeline-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.page-products .timeline-copy h2,
.page-products .mobile-copy h2,
.page-products .products-scenarios h2 {
  font-size: clamp(24px, 3.6vw, 38px);
  line-height: 1.22;
  margin: 0 0 16px;
  color: var(--text);
}

.page-products .timeline-lead,
.page-products .mobile-lead,
.page-products .scenarios-lead {
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 24px;
}

.page-products .timeline-points {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.page-products .timeline-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

.page-products .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 8px;
}

.page-products .dot-live {
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(241, 143, 1, 0.18);
}

.page-products .dot-done {
  background: #96A8B8;
}

.page-products .dot-upcoming {
  background: var(--blue);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.page-products .timeline-samples {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.page-products .timeline-samples li {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
}

.page-products .timeline-samples .index-chip {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 6px;
  width: fit-content;
}

.page-products .timeline-samples em {
  font-style: normal;
  font-size: 12px;
  color: var(--blue);
  font-weight: 600;
}

.page-products .timeline-visual {
  width: 100%;
}

.page-products .timeline-caption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  text-align: center;
}

/* ---------- 移动端赛后统计：白底双栏 ---------- */
.page-products .products-mobile {
  background: var(--white);
  padding: var(--products-pad) 0;
  position: relative;
}

.page-products .mobile-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.page-products .mobile-copy {
  order: -1;
}

.page-products .mobile-visual {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.page-products .mobile-frame {
  display: block;
  margin: 0;
}

.page-products .mobile-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 400 / 700;
  border-radius: 20px;
  object-fit: cover;
}

.page-products .mobile-frame-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
}

.page-products .mobile-frame-caption::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
}

.page-products .mobile-steps {
  list-style: none;
  counter-reset: mobileStep;
  margin: 28px 0 20px;
  padding: 0;
}

.page-products .mobile-steps li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  counter-increment: mobileStep;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

.page-products .mobile-steps li::before {
  content: counter(mobileStep, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  margin-top: 2px;
}

.page-products .mobile-note {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  padding-left: 16px;
  border-left: 3px solid var(--blue);
}

/* ---------- 更新公告与历史版本：深蓝版本轨道 ---------- */
.page-products .products-history {
  background: var(--navy);
  color: var(--white);
  padding: var(--products-pad) 0;
  overflow: hidden;
  position: relative;
}

.page-products .products-history h2 {
  font-size: clamp(24px, 3.6vw, 42px);
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--white);
}

.page-products .history-lede {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.8);
  max-width: 760px;
  margin: 0;
}

.page-products .eyebrow-on-dark {
  color: rgba(255, 255, 255, 0.6);
}

.page-products .version-track {
  display: flex;
  gap: 10px;
  margin-top: 48px;
  padding-bottom: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.page-products .version-node {
  flex: 0 0 160px;
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 20px;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.page-products .version-node:hover {
  border-color: var(--amber);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.page-products .version-node-index {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
  color: var(--amber);
  margin-bottom: 10px;
}

.page-products .version-node-title {
  display: block;
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
  margin-bottom: 4px;
}

.page-products .version-node-note {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
}

.page-products .version-node--current {
  background: rgba(241, 143, 1, 0.15);
  border-color: var(--orange);
}

.page-products .history-details {
  display: grid;
  gap: 48px;
  margin-top: 64px;
}

.page-products .history-compare h3 {
  font-size: 20px;
  color: var(--white);
  margin: 0 0 16px;
}

.page-products .history-compare ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-products .history-compare li {
  position: relative;
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.page-products .history-compare li::before {
  content: "▶";
  position: absolute;
  left: 4px;
  top: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--orange);
}

.page-products .history-art {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.page-products .history-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 600;
  border-radius: 24px;
  object-fit: cover;
}

.page-products .history-art-caption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  margin-top: 12px;
}

/* ---------- 使用场景：档案夹式记录行 ---------- */
.page-products .products-scenarios {
  background: var(--bg);
  padding: var(--products-pad) 0;
}

.page-products .scenario-grid {
  margin-top: 36px;
  border-bottom: 1px solid var(--border);
}

.page-products .scenario-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.page-products .scenario-index {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--orange);
  line-height: 1.6;
}

.page-products .scenario-body h3 {
  font-size: 18px;
  line-height: 1.4;
  margin: 0 0 8px;
  color: var(--text);
}

.page-products .scenario-body p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 12px;
}

.page-products .scenario-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 600;
  transition: color 0.2s ease, gap 0.2s ease;
}

.page-products .scenario-link:hover {
  color: var(--orange);
  gap: 10px;
}

.page-products .scenario-illustration {
  width: 100%;
  max-width: 440px;
  margin: 48px auto 0;
}

.page-products .scenario-illustration img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 500 / 500;
  border-radius: 24px;
  object-fit: cover;
}

/* ---------- 底部切换指南：橙色节奏区 ---------- */
.page-products .products-guide {
  background: linear-gradient(115deg, var(--orange) 0%, #FFA33C 55%, var(--amber) 100%);
  padding: var(--products-pad) 0;
  position: relative;
}

.page-products .products-guide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.06) 0 2px,
    transparent 2px 8px
  );
  pointer-events: none;
}

.page-products .guide-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.page-products .guide-heading h2,
.page-products .guide-heading p {
  color: var(--navy);
}

.page-products .guide-heading h2 {
  font-size: clamp(24px, 3.6vw, 38px);
  line-height: 1.22;
  margin: 0 0 12px;
}

.page-products .guide-heading p {
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

.page-products .eyebrow-on-orange {
  color: rgba(11, 60, 93, 0.65);
}

.page-products .guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-products .products-guide .btn-primary {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.page-products .products-guide .btn-ghost {
  border-color: var(--navy);
  color: var(--navy);
}

/* ---------- 桌面端网格整理 ---------- */
@media (min-width: 768px) {
  .page-products .products-hero-inner {
    padding-top: 80px;
    padding-bottom: 96px;
  }

  .page-products .feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 64px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .page-products .feature-entry {
    border-bottom: 0;
    padding: 36px 0;
  }

  .page-products .feature-entry:first-of-type {
    border-top: 0;
  }

  .page-products .feature-entry:nth-child(4) {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .page-products .feature-entry--highlight {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .page-products .timeline-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 56px;
  }

  .page-products .timeline-samples {
    max-width: 480px;
  }

  .page-products .timeline-visual,
  .page-products .history-art,
  .page-products .scenario-illustration {
    margin-left: auto;
    margin-right: auto;
  }

  .page-products .mobile-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 64px;
  }

  .page-products .mobile-copy {
    order: 2;
  }

  .page-products .mobile-visual {
    order: 1;
    margin-left: 0;
  }

  .page-products .history-details {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 64px;
  }

  .page-products .scenario-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 56px;
  }

  .page-products .scenario-item {
    padding: 28px 0;
  }

  .page-products .guide-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
  }
}

@media (min-width: 1024px) {
  .page-products .products-hero-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 64px;
    align-items: center;
    padding-top: 96px;
    padding-bottom: 112px;
  }

  .page-products .products-hero-diagram {
    margin-left: auto;
    margin-right: 0;
  }

  .page-products .product-features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
