/* ── 页面作用域：.page-products ── */
.page-products {
  --step-icon-size: 56px;
  --step-card-min-w: 160px;
  --guide-accent: var(--color-secondary);
  --guide-accent-light: var(--color-secondary-light);
  --progress-track-h: 6px;
}

/* ── 内容容器 ── */
.page-products .content-container {
  max-width: var(--max-width, 1280px);
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

/* ── 面包屑 ── */
.page-products .breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--small, 0.875rem);
  color: var(--color-secondary-light, #64B5F6);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.page-products .breadcrumb a {
  color: var(--color-secondary-light, #64B5F6);
  text-decoration: none;
  transition: color var(--transition, 0.3s);
}
.page-products .breadcrumb a:hover {
  color: var(--color-primary, #FF6B35);
}
.page-products .breadcrumb span[aria-current="page"] {
  color: var(--color-text, #FFFFFF);
  font-weight: 600;
}

/* ── 页面标题 ── */
.page-products .page-header {
  margin-bottom: 2rem;
  border-left: 4px solid var(--color-primary, #FF6B35);
  padding-left: 1rem;
}
.page-products .page-header h1 {
  font-family: var(--font-heading, 'Montserrat Black', sans-serif);
  font-size: var(--h1, 2rem);
  color: var(--color-text, #FFFFFF);
  margin: 0 0 0.4rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.page-products .page-desc {
  font-size: var(--body, 1rem);
  color: var(--color-secondary-light, #64B5F6);
  max-width: 640px;
  margin: 0;
  line-height: 1.6;
}

/* ── 兼容性设置向导 ── */
.page-products #compatibility-guide {
  background: var(--glass-bg, rgba(255,255,255,0.05));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--glass-border, rgba(255,255,255,0.12));
  border-radius: var(--radius, 12px);
  padding: 1.5rem 1.25rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow, 0 4px 24px rgba(0,0,0,0.3));
}

.page-products .guide-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.page-products .guide-head h2 {
  font-family: var(--font-heading, 'Montserrat Black', sans-serif);
  font-size: var(--h2, 1.5rem);
  color: var(--color-text, #FFFFFF);
  margin: 0;
  line-height: 1.2;
}

/* ── 进度条 ── */
.page-products .progress-track {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.page-products .progress-label {
  font-size: var(--small, 0.875rem);
  color: var(--color-secondary-light, #64B5F6);
  white-space: nowrap;
}
.page-products .progress-bar-wrap {
  display: inline-block;
  width: 160px;
  height: var(--progress-track-h);
  background: var(--color-card, #3A3A3A);
  border-radius: calc(var(--progress-track-h) / 2);
  overflow: hidden;
}
.page-products .progress-bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--color-secondary, #1E88E5), var(--color-primary, #FF6B35));
  border-radius: calc(var(--progress-track-h) / 2);
  transition: width 0.4s ease;
}

/* ── 步骤网格 ── */
.page-products .steps-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ── 步骤卡片 ── */
.page-products .step-card {
  flex: 1 1 var(--step-card-min-w);
  min-width: var(--step-card-min-w);
  max-width: 240px;
  background: var(--color-card, #3A3A3A);
  border-radius: var(--radius, 12px);
  padding: 1.25rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid var(--color-border, rgba(255,255,255,0.08));
  transition: transform var(--transition, 0.3s), box-shadow var(--transition, 0.3s);
  position: relative;
}
.page-products .step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(30, 136, 229, 0.18);
  border-color: var(--color-secondary, #1E88E5);
}

.page-products .step-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
  position: relative;
}
.page-products .step-num {
  font-family: var(--font-heading, 'Montserrat Black', sans-serif);
  font-size: 1.25rem;
  color: var(--guide-accent, #1E88E5);
  line-height: 1;
  opacity: 0.7;
}
.page-products .step-icon {
  width: var(--step-icon-size);
  height: var(--step-icon-size);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: rgba(30, 136, 229, 0.12);
  border-radius: 50%;
  border: 2px solid var(--guide-accent, #1E88E5);
  color: var(--guide-accent, #1E88E5);
  transition: background var(--transition, 0.3s), transform var(--transition, 0.3s);
}
.page-products .step-card:hover .step-icon {
  background: rgba(30, 136, 229, 0.25);
  transform: scale(1.08);
}

.page-products .step-title {
  font-family: var(--font-heading, 'Montserrat Black', sans-serif);
  font-size: 1rem;
  color: var(--color-text, #FFFFFF);
  margin: 0 0 0.35rem;
  line-height: 1.3;
}
.page-products .step-desc {
  font-size: var(--small, 0.875rem);
  color: rgba(255,255,255,0.7);
  margin: 0 0 0.5rem;
  line-height: 1.5;
}

.page-products .step-img {
  max-width: 100%;
  height: auto;
  max-height: 130px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  margin-top: 0.4rem;
  background: rgba(0,0,0,0.15);
}

/* ── 应用下载 ── */
.page-products #app-download {
  background: var(--glass-bg, rgba(255,255,255,0.05));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--glass-border, rgba(255,255,255,0.12));
  border-radius: var(--radius, 12px);
  padding: 1.5rem 1.25rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow, 0 4px 24px rgba(0,0,0,0.3));
}
.page-products .download-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}
.page-products .download-icon-wrap {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 53, 0.08);
  border-radius: 24px;
  border: 2px dashed var(--color-primary, #FF6B35);
  padding: 0.5rem;
}
.page-products .download-icon {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.page-products .download-info {
  flex: 1;
  min-width: 200px;
}
.page-products .download-info h2 {
  font-family: var(--font-heading, 'Montserrat Black', sans-serif);
  font-size: var(--h2, 1.5rem);
  color: var(--color-text, #FFFFFF);
  margin: 0 0 0.5rem;
  line-height: 1.2;
}
.page-products .download-info p {
  font-size: var(--body, 1rem);
  color: rgba(255,255,255,0.8);
  margin: 0 0 0.4rem;
  line-height: 1.6;
}
.page-products .download-note {
  font-size: var(--small, 0.875rem);
  color: var(--color-secondary-light, #64B5F6);
  padding: 0.5rem 0.75rem;
  background: rgba(30, 136, 229, 0.08);
  border-radius: 8px;
  display: inline-block;
}

/* ── 常见问题 ── */
.page-products #faq {
  background: var(--glass-bg, rgba(255,255,255,0.05));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--glass-border, rgba(255,255,255,0.12));
  border-radius: var(--radius, 12px);
  padding: 1.5rem 1.25rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow, 0 4px 24px rgba(0,0,0,0.3));
}
.page-products .faq-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
}
.page-products .faq-image-wrap {
  flex: 1 1 260px;
  max-width: 400px;
}
.page-products .faq-img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(0,0,0,0.12);
}
.page-products .faq-content {
  flex: 2 1 300px;
}
.page-products .faq-content h2 {
  font-family: var(--font-heading, 'Montserrat Black', sans-serif);
  font-size: var(--h2, 1.5rem);
  color: var(--color-text, #FFFFFF);
  margin: 0 0 0.3rem;
  line-height: 1.2;
}
.page-products .faq-sub {
  font-size: var(--body, 1rem);
  color: var(--color-secondary-light, #64B5F6);
  margin: 0 0 1rem;
  line-height: 1.5;
}
.page-products .faq-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  counter-reset: faq-counter;
}
.page-products .faq-list li {
  counter-increment: faq-counter;
  padding: 0.75rem 0 0.75rem 2.4rem;
  position: relative;
  font-size: var(--body, 1rem);
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  border-bottom: 1px solid var(--color-border, rgba(255,255,255,0.06));
}
.page-products .faq-list li:last-child {
  border-bottom: none;
}
.page-products .faq-list li::before {
  content: counter(faq-counter);
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading, 'Montserrat Black', sans-serif);
  font-size: 0.8rem;
  color: var(--color-text, #FFFFFF);
  background: var(--guide-accent, #1E88E5);
  border-radius: 50%;
  line-height: 1;
}
.page-products .faq-list li strong {
  color: var(--color-primary, #FF6B35);
}
.page-products .faq-tip {
  font-size: var(--small, 0.875rem);
  color: rgba(255,255,255,0.65);
  margin: 0;
  line-height: 1.6;
}
.page-products .faq-tip a {
  color: var(--color-secondary-light, #64B5F6);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition, 0.3s);
}
.page-products .faq-tip a:hover {
  color: var(--color-primary, #FF6B35);
}

/* ── 页面链接（内链导航） ── */
.page-products .page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border, rgba(255,255,255,0.08));
}
.page-products .btn-primary,
.page-products .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: var(--body, 1rem);
  font-weight: 600;
  border-radius: 40px;
  text-decoration: none;
  transition: background var(--transition, 0.3s), box-shadow var(--transition, 0.3s), transform var(--transition, 0.3s);
  cursor: default;
  line-height: 1.3;
}
.page-products .btn-primary {
  background: var(--color-primary, #FF6B35);
  color: #FFFFFF;
  border: 2px solid var(--color-primary, #FF6B35);
}
.page-products .btn-primary:hover {
  background: var(--color-primary-light, #FF8A65);
  border-color: var(--color-primary-light, #FF8A65);
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.35);
  transform: scale(1.02);
}
.page-products .btn-secondary {
  background: transparent;
  color: var(--color-secondary, #1E88E5);
  border: 2px solid var(--color-secondary, #1E88E5);
}
.page-products .btn-secondary:hover {
  background: rgba(30, 136, 229, 0.1);
  box-shadow: 0 0 16px rgba(30, 136, 229, 0.25);
  transform: scale(1.02);
}

/* ── 响应式：窄屏（默认移动端优先） ── */
@media (max-width: 639px) {
  .page-products .content-container {
    padding: 1rem 0.75rem 2rem;
  }
  .page-products .page-header h1 {
    font-size: 1.6rem;
  }
  .page-products .guide-head {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }
  .page-products .progress-track {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .page-products .progress-bar-wrap {
    width: 100%;
  }
  .page-products .steps-grid {
    flex-direction: column;
    align-items: stretch;
  }
  .page-products .step-card {
    max-width: 100%;
    flex: 1 1 auto;
  }
  .page-products .step-img {
    max-height: 100px;
  }
  .page-products .download-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-products .download-icon-wrap {
    width: 100px;
    height: 100px;
  }
  .page-products .faq-inner {
    flex-direction: column;
  }
  .page-products .faq-image-wrap {
    max-width: 100%;
  }
  .page-products .faq-list li {
    padding-left: 2rem;
  }
  .page-products .page-links {
    flex-direction: column;
    align-items: stretch;
  }
  .page-products .btn-primary,
  .page-products .btn-secondary {
    width: 100%;
  }
}

/* ── 桌面增强 ── */
@media (min-width: 640px) {
  .page-products .content-container {
    padding: 2rem 2rem 4rem;
  }
  .page-products .page-header h1 {
    font-size: var(--h1, 2rem);
  }
  .page-products .steps-grid {
    gap: 1.25rem;
  }
  .page-products .step-card {
    padding: 1.5rem 1rem 1.25rem;
  }
  .page-products .step-img {
    max-height: 130px;
  }
  .page-products .download-icon-wrap {
    width: 140px;
    height: 140px;
  }
  .page-products .faq-image-wrap {
    flex: 0 0 280px;
  }
}

@media (min-width: 1024px) {
  .page-products .content-container {
    padding: 2.5rem 3rem 5rem;
  }
  .page-products .steps-grid {
    gap: 1.5rem;
  }
  .page-products .step-card {
    max-width: 220px;
  }
  .page-products .step-img {
    max-height: 140px;
  }
  .page-products .faq-image-wrap {
    flex: 0 0 320px;
  }
}
