/* ===== 页面专属样式：应用中心（page-products） ===== */
.page-products {
  --products-accent-glow: rgba(240, 192, 64, 0.15);
  --products-card-bg: linear-gradient(145deg, rgba(43, 15, 76, 0.85), rgba(26, 10, 46, 0.95));
  --products-hero-gradient: linear-gradient(135deg, rgba(43, 15, 76, 0.6) 0%, rgba(26, 10, 46, 0.9) 100%);
  display: block;
}

/* ---- 内层容器 ---- */
.page-products__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

/* ---- 面包屑 ---- */
.page-products__breadcrumb {
  margin-bottom: 2.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

/* ---- 首屏：下载区块 ---- */
.page-products__hero {
  position: relative;
  margin-bottom: 4rem;
  border-radius: var(--radius);
  background: var(--products-hero-gradient);
  overflow: hidden;
  border: 1px solid rgba(240, 192, 64, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.page-products__hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle at 70% 50%, rgba(0, 212, 170, 0.08), transparent 70%);
  pointer-events: none;
}

.page-products__hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem 2rem;
  position: relative;
  z-index: 1;
}

.page-products__hero-text {
  flex: 1 1 320px;
  min-width: 0;
}

.page-products__hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--primary-gold);
  margin: 0 0 0.75rem;
  line-height: 1.15;
  text-shadow: 0 0 30px rgba(240, 192, 64, 0.2);
}

.page-products__hero-sub {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: var(--mineral-cream);
  line-height: 1.7;
  margin: 0 0 2rem;
  opacity: 0.92;
}

.page-products__version {
  font-family: var(--font-mono);
  color: var(--accent-neon);
  background: rgba(0, 212, 170, 0.12);
  padding: 0.1em 0.5em;
  border-radius: 4px;
  font-weight: 600;
}

.page-products__size {
  font-family: var(--font-mono);
  color: var(--primary-gold);
  font-weight: 600;
}

.page-products__download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.page-products__download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.3s ease;
  min-width: 180px;
  justify-content: center;
}

.page-products__download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(240, 192, 64, 0.35);
}

.page-products__download-btn:active {
  transform: translateY(0);
}

.page-products__download-icon {
  flex-shrink: 0;
}

.page-products__trust-badge {
  width: 150px;
  height: 150px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(240, 192, 64, 0.06);
  padding: 0.5rem;
  flex-shrink: 0;
}

.page-products__hero-visual {
  flex: 1 1 360px;
  min-width: 240px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-products__hero-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  aspect-ratio: 400 / 300;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(240, 192, 64, 0.15);
}

/* ---- 区块标题 ---- */
.page-products__section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--primary-gold);
  text-align: center;
  margin: 0 0 2.5rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.page-products__title-accent {
  display: inline-block;
  font-size: 0.7em;
  opacity: 0.7;
  color: var(--accent-neon);
}

/* ---- 功能亮点网格 ---- */
.page-products__features {
  margin-bottom: 4rem;
}

.page-products__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.page-products__feature-card {
  background: var(--products-card-bg);
  border: 1px solid rgba(240, 192, 64, 0.12);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem;
  transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.page-products__feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  border-color: rgba(240, 192, 64, 0.3);
}

.page-products__feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(240, 192, 64, 0.08);
  border-radius: 14px;
  margin-bottom: 0.25rem;
}

.page-products__feature-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.3;
}

.page-products__feature-desc {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--mineral-cream);
  line-height: 1.6;
  margin: 0;
  opacity: 0.85;
}

.page-products__feature-img {
  width: 100%;
  max-width: 250px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  margin-top: auto;
  border: 1px solid rgba(240, 192, 64, 0.08);
}

.page-products__feature-img--wide {
  max-width: 300px;
  aspect-ratio: 300 / 200;
}

/* ---- 操作指南 ---- */
.page-products__guide {
  margin-bottom: 3rem;
  background: rgba(43, 15, 76, 0.3);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  border: 1px solid rgba(240, 192, 64, 0.08);
}

.page-products__guide-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.page-products__guide-steps {
  flex: 1 1 380px;
  min-width: 0;
}

.page-products__step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.page-products__step-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.page-products__step-num {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-neon);
  line-height: 1;
  flex-shrink: 0;
  width: 2.4rem;
  text-align: right;
  padding-top: 0.1rem;
}

.page-products__step-body {
  flex: 1;
  min-width: 0;
}

.page-products__step-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--primary-gold);
  margin: 0 0 0.25rem;
  line-height: 1.3;
}

.page-products__step-text {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--mineral-cream);
  line-height: 1.6;
  margin: 0;
  opacity: 0.85;
}

.page-products__guide-link {
  color: var(--accent-neon);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.page-products__guide-link:hover {
  color: var(--primary-gold);
}

.page-products__guide-visual {
  flex: 1 1 280px;
  min-width: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-products__guide-img {
  width: 100%;
  max-width: 300px;
  height: auto;
  aspect-ratio: 300 / 200;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid rgba(240, 192, 64, 0.15);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ---- 平台动态提示 ---- */
.page-products__aside {
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(0, 212, 170, 0.04);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 212, 170, 0.08);
  margin-top: 0.5rem;
}

.page-products__aside-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--mineral-cream);
  margin: 0;
}

.page-products__aside-link {
  color: var(--accent-neon);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.page-products__aside-link:hover {
  color: var(--primary-gold);
}

/* ---- 下载确认对话框（模拟） ---- */
.page-products__dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-products__dialog-overlay[hidden] {
  display: none;
}

.page-products__dialog {
  background: linear-gradient(145deg, #2B0F4C, #1A0A2E);
  border: 1px solid rgba(240, 192, 64, 0.3);
  border-radius: var(--radius);
  padding: 2rem 2rem 1.75rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  position: relative;
}

.page-products__dialog-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--mineral-gray);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.page-products__dialog-close:hover {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.08);
}

.page-products__dialog-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--primary-gold);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.page-products__dialog-text {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--mineral-cream);
  margin: 0 0 0.25rem;
}

.page-products__dialog-detail {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--accent-neon);
  margin: 0 0 1.5rem;
  opacity: 0.75;
}

.page-products__dialog-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.page-products__dialog-confirm {
  flex: 1;
  min-width: 120px;
}

.page-products__dialog-cancel {
  flex: 1;
  min-width: 100px;
  border-color: rgba(240, 192, 64, 0.3);
  color: var(--mineral-cream);
}

/* ---- 响应式 ---- */
@media (max-width: 768px) {
  .page-products__inner {
    padding: 1.25rem 1rem 3rem;
  }

  .page-products__hero-content {
    flex-direction: column;
    padding: 1.75rem 1.25rem;
    gap: 1.5rem;
  }

  .page-products__hero-text {
    flex: none;
    width: 100%;
  }

  .page-products__hero-visual {
    flex: none;
    width: 100%;
    justify-content: center;
  }

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

  .page-products__download-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .page-products__download-btn {
    min-width: 0;
    width: 100%;
    justify-content: center;
  }

  .page-products__trust-badge {
    align-self: center;
  }

  .page-products__features-grid {
    grid-template-columns: 1fr;
  }

  .page-products__guide-layout {
    flex-direction: column;
  }

  .page-products__guide {
    padding: 1.5rem 1.25rem;
  }

  .page-products__section-title {
    font-size: 1.4rem;
  }

  .page-products__dialog {
    margin: 1rem;
    padding: 1.5rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .page-products__features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-products__hero-content {
    padding: 2rem 1.5rem;
  }
}

/* ---- 减少动效兼容 ---- */
@media (prefers-reduced-motion: reduce) {
  .page-products__download-btn,
  .page-products__feature-card {
    transition: none;
  }

  .page-products__download-btn:hover {
    transform: none;
  }

  .page-products__feature-card:hover {
    transform: none;
  }
}
