/* =============================================
   安博电竞 APP下载页 专属样式
   作用域：.page-products
   ============================================= */
.page-products {
  --prod-glow: rgba(0, 229, 255, 0.16);
  --prod-glow-orange: rgba(255, 122, 0, 0.22);
  --prod-grid-line: rgba(0, 229, 255, 0.05);
  --prod-panel-line: rgba(138, 148, 166, 0.16);
  background:
    radial-gradient(ellipse 800px 400px at 10% -5%, rgba(0, 229, 255, 0.09), transparent 60%),
    radial-gradient(ellipse 600px 300px at 95% 25%, rgba(139, 92, 246, 0.08), transparent 65%),
    var(--bg-deep);
}

.page-products [id] {
  scroll-margin-top: 120px;
}

.page-products img {
  max-width: 100%;
}

/* ---------- Hero：下载客户端 ---------- */
.page-products .prod-hero {
  position: relative;
  padding: 26px 0 60px;
  overflow: hidden;
}

.page-products .prod-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--prod-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--prod-grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  z-index: 0;
}

.page-products .hero-trail {
  position: absolute;
  width: 380px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan) 20%, var(--purple) 80%, transparent);
  transform: rotate(-12deg);
  right: -120px;
  top: 220px;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.page-products .prod-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
}

.page-products .prod-download-col {
  width: 100%;
  max-width: 560px;
}

.page-products .prod-download-col h1 {
  font-family: var(--font-heading);
  font-size: 40px;
  line-height: 1.15;
  margin: 10px 0 16px;
  letter-spacing: 0.02em;
  color: var(--text-main);
}

.page-products .prod-hero-desc {
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.85;
  margin: 0 0 28px;
}

.page-products .download-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-products .download-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-panel);
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-left: 3px solid var(--cyan);
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s;
}

.page-products .download-option-cta {
  border-left-color: var(--orange);
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.1), var(--bg-panel) 55%);
}

.page-products .download-option:hover,
.page-products .download-option:focus-visible {
  transform: translateX(6px);
  box-shadow: 0 0 22px var(--prod-glow);
  border-color: var(--cyan);
}

.page-products .download-option-cta:hover,
.page-products .download-option-cta:focus-visible {
  box-shadow: 0 0 24px var(--prod-glow-orange);
}

.page-products .dopt-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 4px;
}

.page-products .dopt-mark-android {
  color: var(--orange);
  background: rgba(255, 122, 0, 0.08);
  border-color: rgba(255, 122, 0, 0.25);
}

.page-products .dopt-mark-web {
  color: var(--purple);
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.25);
}

.page-products .qr-svg {
  width: 22px;
  height: 22px;
  display: block;
}

.page-products .qr-void {
  fill: var(--bg-panel);
}

.page-products .dopt-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-products .dopt-text strong {
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.3;
  font-family: var(--font-heading);
  letter-spacing: 0.03em;
}

.page-products .dopt-text small {
  color: var(--text-sub);
  font-size: 12px;
  line-height: 1.4;
}

.page-products .scan-caption {
  margin-left: auto;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 12px;
  color: var(--cyan);
  opacity: 0;
  transition: width 0.35s var(--ease-out), opacity 0.35s;
}

.page-products .download-option:hover .scan-caption,
.page-products .download-option:focus-visible .scan-caption {
  width: 64px;
  opacity: 1;
}

.page-products .download-note {
  margin: 18px 0 0;
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.7;
  border-top: 1px dashed rgba(138, 148, 166, 0.22);
  padding-top: 12px;
}

.page-products .prod-phone-col {
  position: relative;
  flex-shrink: 0;
  z-index: 2;
}

.page-products .phone-frame {
  position: relative;
  width: 250px;
  height: 500px;
  padding: 12px;
  border-radius: 34px;
  background: linear-gradient(160deg, #1b2a45 0%, var(--bg-deep) 60%);
  border: 2px solid rgba(0, 229, 255, 0.55);
  box-shadow: 0 0 0 2px var(--bg-deep), 0 0 28px var(--prod-glow), 0 22px 50px rgba(0, 0, 0, 0.55);
}

.page-products .phone-frame::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
  z-index: 3;
}

.page-products .phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 7px;
  border-radius: 4px;
  background: var(--bg-deep);
  z-index: 3;
}

.page-products .phone-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 22px;
  border: 1px solid rgba(0, 229, 255, 0.12);
}

.page-products .phone-meta {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

/* ---------- 核心功能 ---------- */
.page-products .prod-features {
  padding: 70px 0 60px;
  position: relative;
  background: linear-gradient(180deg, transparent 0%, rgba(17, 27, 46, 0.5) 16%, rgba(17, 27, 46, 0.5) 84%, transparent 100%);
}

.page-products .features-layout {
  display: grid;
  gap: 18px;
  margin-top: 44px;
}

.page-products .feature-card {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--prod-panel-line);
  border-radius: 6px;
  padding: 24px 22px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}

.page-products .feature-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  pointer-events: none;
}

.page-products .feature-card:hover {
  border-color: rgba(0, 229, 255, 0.4);
  transform: translateY(-3px);
}

.page-products .feature-card h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  margin: 0 0 10px;
  color: var(--text-main);
}

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

.page-products .feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 4px;
}

.page-products .feature-icon-cyan {
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  border-color: rgba(0, 229, 255, 0.22);
}

.page-products .feature-icon-purple {
  color: var(--purple);
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.22);
}

.page-products .feature-icon-orange {
  color: var(--orange);
  background: rgba(255, 122, 0, 0.08);
  border-color: rgba(255, 122, 0, 0.22);
}

.page-products .feature-icon svg {
  width: 22px;
  height: 22px;
}

.page-products .feature-tablet {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.page-products .feature-tablet::after {
  background: linear-gradient(90deg, var(--purple), var(--cyan), transparent);
}

.page-products .tablet-frame {
  position: relative;
  padding: 14px;
  background: #0d1421;
  border-bottom: 1px solid rgba(139, 92, 246, 0.25);
}

.page-products .tablet-frame::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  bottom: 14px;
  border: 1px solid rgba(0, 229, 255, 0.1);
  border-radius: 4px;
  pointer-events: none;
  z-index: 2;
}

.page-products .tablet-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 4px;
}

.page-products .feature-content {
  padding: 24px 24px 28px;
}

/* ---------- 版本更新 ---------- */
.page-products .prod-updates {
  padding: 70px 0 80px;
  background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.06), transparent);
}

.page-products .update-layout {
  display: grid;
  gap: 44px;
  margin-top: 44px;
}

.page-products .timeline-item {
  position: relative;
  margin: 0 0 26px;
  padding-left: 30px;
  background: transparent;
  border: 0;
}

.page-products .timeline-item::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--cyan), var(--purple) 70%, transparent);
}

.page-products .timeline-item::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 16px;
  width: 12px;
  height: 12px;
  background: var(--cyan);
  transform: rotate(45deg);
  box-shadow: 0 0 10px var(--prod-glow);
}

.page-products .timeline-item summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  padding: 12px 0 8px;
  transition: color 0.3s;
}

.page-products .timeline-item summary:hover {
  color: var(--cyan);
}

.page-products .timeline-item summary::-webkit-details-marker {
  display: none;
}

.page-products .timeline-item summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--cyan);
  transition: transform 0.3s;
}

.page-products .timeline-item[open] summary::after {
  content: "−";
}

.page-products .timeline-content ul {
  margin: 0;
  padding: 0 0 0 18px;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.85;
}

.page-products .timeline-content li + li {
  margin-top: 6px;
}

.page-products .install-notes {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-products .install-note {
  padding: 20px 22px;
  background: var(--bg-panel);
  border: 1px solid var(--prod-panel-line);
  border-left: 3px solid var(--cyan);
  border-radius: 6px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.page-products .install-note:hover {
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.06);
}

.page-products .install-note h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 18px;
  margin: 0 0 10px;
  color: var(--text-main);
}

.page-products .install-note p {
  margin: 0;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.75;
}

/* ---------- 使用指南 ---------- */
.page-products .prod-guide {
  padding: 70px 0 90px;
  position: relative;
}

.page-products .guide-grid {
  display: grid;
  gap: 22px;
  margin-top: 44px;
}

.page-products .guide-step {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--prod-panel-line);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
}

.page-products .guide-step:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.page-products .guide-media {
  position: relative;
  overflow: hidden;
}

.page-products .guide-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.page-products .guide-step:hover .guide-media img {
  transform: scale(1.03);
}

.page-products .guide-content {
  padding: 20px 22px 24px;
}

.page-products .guide-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 6px;
}

.page-products .guide-content h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  margin: 0 0 8px;
  color: var(--text-main);
}

.page-products .guide-content p {
  margin: 0;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.75;
}

.page-products .guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 44px;
}

.page-products .guide-link {
  padding: 10px 18px;
  background: transparent;
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 4px;
  color: var(--text-main);
  font-size: 13px;
  text-decoration: none;
  transition: background 0.3s, box-shadow 0.3s, color 0.3s;
}

.page-products .guide-link:hover,
.page-products .guide-link:focus-visible {
  background: rgba(0, 229, 255, 0.1);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.15);
  color: var(--cyan);
}

.page-products .guide-link::after {
  content: "→";
  margin-left: 6px;
  color: var(--cyan);
}

/* ---------- 平板与桌面响应式 ---------- */
@media (min-width: 768px) {
  .page-products .prod-hero {
    padding: 40px 0 72px;
  }

  .page-products .phone-frame {
    width: 280px;
    height: 560px;
  }

  .page-products .features-layout {
    grid-template-columns: 1fr 1fr;
  }

  .page-products .feature-tablet {
    grid-column: 1 / -1;
  }

  .page-products .guide-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .page-products .prod-hero-inner {
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
  }

  .page-products .prod-download-col {
    flex: 1;
    max-width: 560px;
  }

  .page-products .features-layout {
    grid-template-columns: 1.35fr 1fr;
    grid-template-rows: repeat(4, auto);
  }

  .page-products .feature-tablet {
    grid-column: 1;
    grid-row: 1 / 5;
  }

  .page-products .update-layout {
    grid-template-columns: 1.25fr 1fr;
    gap: 48px;
    align-items: start;
  }

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