/* ============================================
   page-products 专用样式
   移动端优先 + 桌面增强
   ============================================ */
.page-products {
  --page-bg-hero: var(--color-bg, #F5E6CA);
  --page-bg-pc: var(--color-primary, #1B4332);
  --page-bg-mobile: var(--color-bg-dark, #E6D3B3);
  --page-bg-sync: var(--color-primary-light, #2D6A4F);
  --page-bg-explore: var(--color-bg, #F5E6CA);
  --page-accent: var(--color-accent, #FF6B35);
  --page-accent-dark: var(--color-accent-dark, #E55A2B);
  --page-text-light: var(--color-white, #FFFFFF);
  --page-text-dark: var(--color-text, #2D2D2D);
  --page-text-muted: var(--color-text-secondary, #6C757D);
  --page-radius: var(--radius-lg, 20px);
  --page-radius-sm: var(--radius-md, 12px);
  --page-max-width: var(--max-width, 1200px);
  --page-header-h: var(--header-height, 72px);

  background-color: var(--page-bg-explore);
  color: var(--page-text-dark);
  font-family: var(--font-body, 'Segoe UI', sans-serif);
  line-height: 1.6;
}

/* ---------- 面包屑 ---------- */
.page-products .breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--page-text-muted);
  margin-bottom: 1.5rem;
  padding-top: 0.5rem;
  flex-wrap: wrap;
}
.page-products .breadcrumb a {
  color: var(--page-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition, 0.3s);
}
.page-products .breadcrumb a:hover {
  color: var(--page-accent-dark);
}
.page-products .breadcrumb .sep {
  color: var(--page-text-muted);
  font-weight: 300;
}
.page-products .breadcrumb [aria-current="page"] {
  color: var(--page-text-dark);
  font-weight: 600;
}

/* ---------- 首屏框景双设备 ---------- */
.page-products .hero-devices {
  background-color: var(--page-bg-hero);
  padding: 2rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.page-products .hero-devices .container {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.page-products .hero-devices h1 {
  font-family: var(--font-heading, 'Segoe UI', sans-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--page-text-dark);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.page-products .hero-subtitle {
  font-size: 1.05rem;
  color: var(--page-text-muted);
  max-width: 640px;
  margin: 0 0 2rem;
  line-height: 1.5;
}

/* 双设备布局 */
.page-products .dual-device-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: relative;
}

/* 设备包装器 */
.page-products .device-wrapper {
  width: 100%;
  max-width: 400px;
  cursor: pointer;
  transition: transform var(--transition, 0.3s), box-shadow var(--transition, 0.3s);
  border-radius: var(--page-radius);
  outline: none;
}
.page-products .device-wrapper:hover,
.page-products .device-wrapper:focus-visible {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg, 0 8px 40px rgba(0,0,0,0.14));
}

/* 电脑框架 */
.page-products .pc-frame {
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  border-radius: var(--page-radius);
  padding: 0.75rem 0.75rem 2.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  position: relative;
  border: 1px solid rgba(255,255,255,0.08);
}
.page-products .pc-frame .device-screen {
  background: #0d1117;
  border-radius: calc(var(--page-radius-sm) - 4px);
  overflow: hidden;
  position: relative;
  aspect-ratio: 7 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-products .pc-frame .device-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-products .pc-frame .screen-overlay {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  right: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  pointer-events: none;
}
.page-products .pc-frame .screen-overlay .capsule-tag {
  font-size: 0.65rem;
  padding: 0.15rem 0.6rem;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  border-radius: var(--radius-full, 9999px);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.page-products .pc-frame .device-stand {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 0.35rem;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-full, 9999px);
}
.page-products .device-label {
  display: block;
  text-align: center;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.04em;
}

/* 手机框架 */
.page-products .mobile-frame {
  background: linear-gradient(160deg, #1a1a2e, #0f3460);
  border-radius: var(--page-radius);
  padding: 0.5rem 0.4rem 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  position: relative;
  border: 1px solid rgba(255,255,255,0.08);
  max-width: 240px;
  margin: 0 auto;
}
.page-products .mobile-frame .device-notch {
  width: 40%;
  height: 1.2rem;
  background: #0d1117;
  border-radius: 0 0 12px 12px;
  margin: 0 auto 0.4rem;
  position: relative;
}
.page-products .mobile-frame .device-notch::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: #1a1a2e;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
}
.page-products .mobile-frame .device-screen {
  background: #0d1117;
  border-radius: calc(var(--page-radius-sm) - 6px);
  overflow: hidden;
  position: relative;
  aspect-ratio: 1 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-products .mobile-frame .device-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-products .mobile-frame .screen-overlay {
  position: absolute;
  bottom: 0.5rem;
  left: 0.4rem;
  right: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  pointer-events: none;
}
.page-products .mobile-frame .screen-overlay .capsule-tag {
  font-size: 0.55rem;
  padding: 0.1rem 0.5rem;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  border-radius: var(--radius-full, 9999px);
  font-weight: 600;
}

/* 连接线 */
.page-products .device-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  width: 100%;
  max-width: 120px;
}
.page-products .connector-svg {
  width: 80px;
  height: 80px;
}
.page-products .connector-line {
  stroke-dashoffset: 0;
  animation: connectorDash 2s linear infinite;
}
@keyframes connectorDash {
  to { stroke-dashoffset: -20; }
}
.page-products .dot {
  animation: dotPulse 1.6s ease-in-out infinite;
}
.page-products .dot-2 { animation-delay: 0.3s; }
.page-products .dot-3 { animation-delay: 0.6s; }
@keyframes dotPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}
.page-products .connector-arrow {
  fill: var(--page-accent);
}
.page-products .connector-text {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--page-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- 区块标题 ---------- */
.page-products .section-title {
  font-family: var(--font-heading, 'Segoe UI', sans-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--page-text-dark);
  margin: 0 0 1.5rem;
  padding-left: 1rem;
  border-left: 4px solid var(--page-accent);
  line-height: 1.2;
}

/* ---------- 电脑端数据看板 ---------- */
.page-products .pc-features {
  background-color: var(--page-bg-pc);
  padding: 3rem 0;
}
.page-products .pc-features .container {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.page-products .pc-features .section-title {
  color: var(--page-text-light);
  border-left-color: var(--page-accent);
}

.page-products .feature-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.page-products .feature-grid.reverse {
  flex-direction: column;
}

/* 视觉框景 */
.page-products .feature-visual {
  position: relative;
}
.page-products .feature-frame {
  position: relative;
  border-radius: var(--page-radius-sm);
  overflow: hidden;
  background: #0d1117;
  box-shadow: var(--shadow-md, 0 4px 20px rgba(0,0,0,0.1));
}
.page-products .feature-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
/* 四角装饰 */
.page-products .frame-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--page-accent);
  border-style: solid;
  opacity: 0.7;
  pointer-events: none;
}
.page-products .frame-corner.top-left {
  top: 8px;
  left: 8px;
  border-width: 2px 0 0 2px;
  border-radius: 3px 0 0 0;
}
.page-products .frame-corner.top-right {
  top: 8px;
  right: 8px;
  border-width: 2px 2px 0 0;
  border-radius: 0 3px 0 0;
}
.page-products .frame-corner.bottom-left {
  bottom: 8px;
  left: 8px;
  border-width: 0 0 2px 2px;
  border-radius: 0 0 0 3px;
}
.page-products .frame-corner.bottom-right {
  bottom: 8px;
  right: 8px;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 3px 0;
}

/* 文字描述 */
.page-products .feature-desc {
  color: var(--page-text-light);
}
.page-products .feature-lead {
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
  opacity: 0.92;
  font-weight: 400;
}
.page-products .feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.page-products .feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.9;
}
.page-products .list-icon {
  color: var(--page-accent);
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}
.page-products .feature-list strong {
  color: var(--page-text-light);
  font-weight: 600;
}
.page-products .feature-desc .btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-full, 9999px);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background var(--transition, 0.3s), transform var(--transition, 0.3s);
  border: none;
  cursor: pointer;
}
.page-products .feature-desc .btn-accent {
  background: var(--page-accent);
  color: var(--page-text-light);
}
.page-products .feature-desc .btn-accent:hover {
  background: var(--page-accent-dark);
  transform: translateY(-2px);
}
.page-products .feature-desc .btn-primary {
  background: var(--page-bg-hero);
  color: var(--page-text-dark);
}
.page-products .feature-desc .btn-primary:hover {
  background: var(--page-bg-mobile);
  transform: translateY(-2px);
}

/* ---------- 移动端赛事浏览 ---------- */
.page-products .mobile-features {
  background-color: var(--page-bg-mobile);
  padding: 3rem 0;
}
.page-products .mobile-features .container {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.page-products .mobile-features .section-title {
  color: var(--page-text-dark);
}
.page-products .mobile-features .feature-desc {
  color: var(--page-text-dark);
}
.page-products .mobile-features .feature-list strong {
  color: var(--page-text-dark);
}
.page-products .mobile-features .feature-list li {
  opacity: 0.92;
}

/* 移动端内嵌手机框景 */
.page-products .mobile-frame-inner {
  max-width: 280px;
  margin: 0 auto;
  border-radius: var(--page-radius);
}
.page-products .mobile-frame-inner .feature-img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

/* ---------- 数据同步 ---------- */
.page-products .sync-section {
  background-color: var(--page-bg-sync);
  padding: 3rem 0;
}
.page-products .sync-section .container {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.page-products .sync-section .section-title {
  color: var(--page-text-light);
  border-left-color: var(--page-accent);
}

.page-products .sync-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.page-products .sync-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
  border-radius: var(--page-radius);
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--page-text-light);
  transition: background var(--transition, 0.3s);
}
.page-products .sync-card:hover {
  background: rgba(255,255,255,0.1);
}
.page-products .sync-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.75rem;
}
.page-products .sync-svg {
  width: 100%;
  height: 100%;
}
.page-products .sync-title {
  font-family: var(--font-heading, 'Segoe UI', sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--page-text-light);
}
.page-products .sync-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  opacity: 0.88;
  margin: 0;
}

/* 宽卡片 */
.page-products .sync-card.wide {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}
.page-products .sync-visual {
  width: 100%;
  overflow: hidden;
}
.page-products .sync-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.page-products .sync-desc {
  padding: 0 1.5rem 1.5rem;
}
.page-products .sync-desc .btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.65rem 1.8rem;
  border-radius: var(--radius-full, 9999px);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background var(--transition, 0.3s), transform var(--transition, 0.3s);
  border: none;
  cursor: pointer;
  background: var(--page-accent);
  color: var(--page-text-light);
}
.page-products .sync-desc .btn:hover {
  background: var(--page-accent-dark);
  transform: translateY(-2px);
}

/* ---------- 内部链接 ---------- */
.page-products .explore-links {
  background-color: var(--page-bg-hero);
  padding: 3rem 0;
}
.page-products .explore-links .container {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.page-products .link-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.page-products .explore-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--page-text-light);
  border-radius: var(--page-radius);
  text-decoration: none;
  color: var(--page-text-dark);
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.06));
  transition: transform var(--transition, 0.3s), box-shadow var(--transition, 0.3s);
  border: 1px solid rgba(0,0,0,0.04);
}
.page-products .explore-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md, 0 4px 20px rgba(0,0,0,0.1));
}
.page-products .explore-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.page-products .explore-label {
  font-family: var(--font-heading, 'Segoe UI', sans-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--page-text-dark);
}
.page-products .explore-desc {
  font-size: 0.85rem;
  color: var(--page-text-muted);
  margin-top: 0.25rem;
}

/* ============================================
   桌面端增强 (768px+)
   ============================================ */
@media (min-width: 768px) {
  .page-products .hero-devices {
    padding: 3rem 0 5rem;
  }
  .page-products .hero-devices h1 {
    font-size: 3rem;
  }
  .page-products .hero-subtitle {
    font-size: 1.15rem;
  }

  /* 双设备并排 */
  .page-products .dual-device-display {
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    gap: 0.5rem;
  }
  .page-products .device-wrapper.left {
    order: 1;
    max-width: 500px;
    flex: 1.2;
  }
  .page-products .device-connector {
    order: 2;
    max-width: 100px;
    flex-shrink: 0;
  }
  .page-products .device-wrapper.right {
    order: 3;
    max-width: 260px;
    flex-shrink: 0;
  }
  .page-products .connector-svg {
    width: 100px;
    height: 120px;
  }
  .page-products .connector-text {
    font-size: 0.75rem;
  }

  /* 电脑框架放大 */
  .page-products .pc-frame {
    padding: 1rem 1rem 2.8rem;
  }
  .page-products .pc-frame .device-screen {
    aspect-ratio: 7 / 5;
  }

  /* 特征网格图文并排 */
  .page-products .feature-grid {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }
  .page-products .feature-grid.reverse {
    flex-direction: row;
  }
  .page-products .feature-visual {
    flex: 1.1;
  }
  .page-products .feature-desc {
    flex: 1;
  }

  /* 同步网格三列 */
  .page-products .sync-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .page-products .sync-card.wide {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
  }
  .page-products .sync-visual {
    flex: 1;
    max-width: 45%;
  }
  .page-products .sync-desc {
    flex: 1;
    padding: 1.5rem 2rem;
  }

  /* 内部链接三列卡片 */
  .page-products .link-grid {
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
  }
  .page-products .explore-card {
    flex: 1;
    max-width: 280px;
  }
}

/* ============================================
   大桌面端 (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  .page-products .hero-devices h1 {
    font-size: 3.5rem;
  }
  .page-products .dual-device-display {
    gap: 1.5rem;
  }
  .page-products .device-wrapper.left {
    max-width: 580px;
  }
  .page-products .device-wrapper.right {
    max-width: 280px;
  }
  .page-products .pc-features,
  .page-products .mobile-features,
  .page-products .sync-section,
  .page-products .explore-links {
    padding: 5rem 0;
  }
  .page-products .section-title {
    font-size: 1.9rem;
    margin-bottom: 2rem;
  }
  .page-products .feature-grid {
    gap: 4rem;
  }
  .page-products .sync-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .page-products .sync-card.wide {
    grid-column: span 3;
  }
}

/* ============================================
   辅助：防止窄屏横向溢出
   ============================================ */
.page-products img {
  max-width: 100%;
  height: auto;
}
.page-products .container {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  box-sizing: border-box;
}
.page-products *,
.page-products *::before,
.page-products *::after {
  box-sizing: border-box;
}
