/* ===== 平台服务页专属样式 ===== */
.page-products {
  --page-index-w: 264px;
  --page-panel-gap: 24px;
  --page-scan-duration: 2.8s;
}

/* --- 面包屑 --- */
.page-products .breadcrumb {
  padding-top: 20px;
}

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

.page-products .breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-products .breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: var(--blue);
  font-family: var(--font-num);
}

.page-products .breadcrumb__link {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-products .breadcrumb__link:hover {
  color: var(--blue);
}

.page-products .breadcrumb__item [aria-current="page"] {
  color: var(--white);
  font-weight: 700;
}

/* --- 首屏 Hero 区 --- */
.page-products .product-hero {
  position: relative;
  padding: 24px 0 48px;
  overflow: clip;
}

.page-products .product-hero::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -120px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(0, 200, 255, 0.12), transparent 70%);
  pointer-events: none;
}

.page-products .product-hero::after {
  content: "";
  position: absolute;
  bottom: 40px;
  left: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(57, 255, 136, 0.08), transparent 70%);
  pointer-events: none;
}

.page-products .product-hero__head {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

.page-products .product-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 0;
  padding: 6px 12px;
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  background: rgba(0, 200, 255, 0.04);
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}

.page-products .product-hero__tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.page-products .product-hero__title {
  margin: 0;
  font-family: var(--font-h);
  font-size: clamp(28px, 6vw, 46px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--white);
}

.page-products .product-hero__desc {
  margin: 0;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray);
}

.page-products .product-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --- Bento 功能卡片 --- */
.page-products .product-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  z-index: 0;
  transition: transform 0.2s var(--ease), border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-products .product-card:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.page-products .product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.06), transparent 48%);
  z-index: 0;
}

.page-products .product-card > * {
  position: relative;
  z-index: 1;
}

.page-products .product-card .card__tag {
  align-self: flex-start;
}

.page-products .product-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-products .product-card__title {
  margin: 0;
  font-family: var(--font-h);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.28;
  color: var(--white);
}

.page-products .product-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray);
}

.page-products .product-card__img {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

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

.page-products .product-card--calendar .product-card__img { aspect-ratio: 8 / 5; }
.page-products .product-card--cards .product-card__img { aspect-ratio: 7 / 5; }
.page-products .product-card--version .product-card__img { aspect-ratio: 8 / 5; }
.page-products .product-card--score .product-card__img { aspect-ratio: 7 / 4; }

/* 日历卡统计 */
.page-products .product-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--grid);
}

.page-products .product-card__stats > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* 红黄牌卡图例与统计 */
.page-products .product-card__legend {
  display: flex;
  gap: 16px;
  margin: 2px 0 0;
}

.page-products .product-card__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--gray);
}

.page-products .product-card__legend-swatch {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.page-products .product-card__legend-swatch--yellow {
  background: var(--yellow);
  box-shadow: 0 0 6px rgba(255, 209, 102, 0.5);
}

.page-products .product-card__legend-swatch--red {
  background: var(--red);
  box-shadow: 0 0 6px rgba(255, 59, 92, 0.5);
}

.page-products .product-card__stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--grid);
}

/* iOS 比分卡时间轴装饰 */
.page-products .product-card__chart {
  position: relative;
  height: 26px;
  margin-top: 6px;
}

.page-products .product-card__chart-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: var(--grid);
  transform: translateY(-50%);
}

.page-products .product-card__chart-dot {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px rgba(0, 200, 255, 0.5);
}

.page-products .product-card__chart-dot:nth-child(2) { left: 14%; }
.page-products .product-card__chart-dot:nth-child(3) { left: 48%; }
.page-products .product-card__chart-dot:nth-child(4) { left: 80%; }

/* --- 详细对比区 --- */
.page-products .product-detail {
  padding: 12px 0 64px;
}

.page-products .product-detail__layout {
  display: grid;
  gap: 32px;
}

.page-products .product-detail__index {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-products .product-detail__index-title {
  margin: 0;
  padding: 8px 0 0 14px;
  border-left: 3px solid var(--blue);
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
}

.page-products .product-detail__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-products .product-detail__nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--white);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.page-products .product-detail__nav-link:hover,
.page-products .product-detail__nav-link:focus-visible {
  border-color: var(--grid);
  background: var(--bg-card);
  color: var(--blue);
}

.page-products .product-detail__nav-num {
  width: 26px;
  text-align: right;
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}

.page-products .product-detail__index-foot {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--grid);
  font-size: 12px;
  line-height: 1.6;
  color: var(--gray);
}

/* --- 详情面板 --- */
.page-products .product-detail__content {
  display: flex;
  flex-direction: column;
  gap: var(--page-panel-gap);
}

.page-products .detail-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--grid);
  border-radius: 8px;
  position: relative;
  scroll-margin-top: calc(var(--header-h) + 16px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-products .detail-panel:target {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px rgba(0, 200, 255, 0.4), 0 12px 32px rgba(0, 0, 0, 0.3);
}

.page-products .detail-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  border-radius: 8px 8px 0 0;
  opacity: 0.7;
}

.page-products .detail-panel__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.page-products .detail-panel__num {
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
}

.page-products .detail-panel__title {
  margin: 0;
  font-family: var(--font-h);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--white);
}

.page-products .detail-panel__lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray);
}

.page-products .detail-panel__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.page-products .detail-spec {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--grid);
  border-radius: var(--radius);
}

.page-products .detail-spec__title {
  margin: 0;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.page-products .detail-spec p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--white);
}

/* 使用场景提示条 */
.page-products .detail-panel__tip {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 16px;
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(57, 255, 136, 0.05);
}

.page-products .detail-panel__tip-label {
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

.page-products .detail-panel__tip p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--white);
}

/* --- 版本号展示 --- */
.page-products .version-demo {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg-void);
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-products .version-demo::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 55%;
  background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.12), transparent);
  animation: page-products-scan var(--page-scan-duration) ease-in-out infinite;
  pointer-events: none;
}

.page-products .version-demo__label {
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
}

.page-products .version-demo__code {
  font-family: var(--font-num);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--green);
}

.page-products .version-demo__time {
  margin-left: auto;
  font-size: 13px;
  color: var(--gray);
}

@keyframes page-products-scan {
  from { transform: translateX(-100%); }
  to { transform: translateX(190%); }
}

/* --- iOS 比分时间轴可视化 --- */
.page-products .timeline-visual {
  position: relative;
  min-height: 92px;
  padding: 24px 12px 20px;
  background: var(--bg-void);
  border: 1px solid var(--grid);
  border-radius: var(--radius);
}

.page-products .timeline-visual__axis {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 50%;
  height: 2px;
  background: var(--grid);
}

.page-products .timeline-visual__event {
  position: absolute;
  top: 50%;
  transform: translateY(-56%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 56px;
  cursor: default;
}

.page-products .timeline-visual__dot {
  width: 10px;
  height: 10px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px rgba(0, 200, 255, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-products .timeline-visual__event:hover .timeline-visual__dot {
  transform: scale(1.4);
  box-shadow: 0 0 18px rgba(0, 200, 255, 0.95);
}

.page-products .timeline-visual__time {
  font-family: var(--font-num);
  font-size: 13px;
  color: var(--white);
}

.page-products .timeline-visual__tag {
  font-family: var(--font-num);
  font-size: 11px;
  color: var(--green);
}

/* --- 多端同步图片 --- */
.page-products .detail-sync__img .image-frame {
  aspect-ratio: 1 / 1;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

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

/* --- 底部内链 --- */
.page-products .product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 64px;
}

.page-products .product-links__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 14px;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.page-products .product-links__item:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(0, 200, 255, 0.04);
}

/* --- 响应式：≥768px --- */
@media (min-width: 768px) {
  .page-products .product-hero__title {
    font-size: 40px;
  }

  .page-products .detail-panel {
    padding: 26px;
  }

  .page-products .detail-panel__grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-products .detail-panel__lead {
    font-size: 16px;
  }

  /* 中间宽度下 Bento 卡片全宽堆叠，避免跨列溢出 */
  @media (max-width: 1023px) {
    .page-products .bento-card {
      grid-column: span 6;
    }
  }
}

/* --- 响应式：≥1024px --- */
@media (min-width: 1024px) {
  .page-products .product-hero {
    padding: 36px 0 64px;
  }

  .page-products .product-hero__head {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 48px;
    align-items: end;
    margin-bottom: 36px;
  }

  .page-products .product-hero__title {
    font-size: clamp(40px, 4.5vw, 52px);
    line-height: 1.08;
  }

  .page-products .product-hero__desc {
    font-size: 16px;
  }

  .page-products .product-hero__actions {
    margin-top: 8px;
  }

  .page-products .product-detail__layout {
    grid-template-columns: var(--page-index-w) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }

  .page-products .product-detail__index {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    height: fit-content;
  }

  .page-products .detail-panel {
    padding: 28px;
    scroll-margin-top: calc(var(--header-h) + 20px);
  }
}
