.page-products {
  --page-primary: #0a2540;
  --page-accent: #ff6b35;
  --page-gold: #f5c518;
  --page-bg: #f2f4f8;
  --page-surface: #ffffff;
  --page-text: #1a1a2e;
  --page-text-secondary: #5a5a7a;
  --page-border: #d0d4de;
  --page-radius: 12px;
  --page-radius-sm: 8px;
  --page-transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --page-shadow: 0 8px 32px rgba(10, 37, 64, 0.10);
  --page-shadow-hover: 0 16px 48px rgba(10, 37, 64, 0.18);

  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  margin: 0;
  background: var(--page-bg);
  color: var(--page-text);
  font: var(--font-body);
}

/* ========== 容器 ========== */
.page-products .container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ========== 面包屑 ========== */
.page-products__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font: var(--font-small);
  color: var(--page-text-secondary);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
.page-products__breadcrumb a {
  color: var(--page-gold);
  text-decoration: none;
  transition: color var(--page-transition);
}
.page-products__breadcrumb a:hover {
  color: var(--page-accent);
}
.page-products__breadcrumb-sep {
  color: var(--page-border);
  font-size: 0.8rem;
}

/* ========== 首屏 ========== */
.page-products__hero {
  background: var(--page-surface);
  position: relative;
  overflow: hidden;
  padding: 2.5rem 0 3rem;
}
.page-products__hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse at 80% 20%, rgba(245, 197, 24, 0.12), transparent 70%);
  pointer-events: none;
}
.page-products__hero-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

/* 左侧标题区 */
.page-products__hero-left {
  position: relative;
}
.page-products__title {
  font: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--page-primary);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.page-products__subtitle {
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--page-text-secondary);
  margin: 0 0 1.5rem;
  max-width: 32ch;
}
.page-products__hero-decoration {
  position: absolute;
  top: -1rem;
  right: 0;
  width: 180px;
  height: auto;
  opacity: 0.5;
  pointer-events: none;
}
.page-products__hero-glow {
  display: block;
  width: 100%;
  height: auto;
  max-width: 400px;
  object-fit: contain;
}

/* 右侧平台卡片网格 */
.page-products__hero-right {
  width: 100%;
}
.page-products__platform-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

/* ========== 平台卡片 ========== */
.page-products__platform-card {
  background: var(--page-surface);
  border: 1.5px solid var(--page-border);
  border-radius: var(--page-radius);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform var(--page-transition), box-shadow var(--page-transition), border-color var(--page-transition);
  box-shadow: var(--page-shadow);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  position: relative;
}
.page-products__platform-card:hover,
.page-products__platform-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--page-shadow-hover);
  border-color: var(--page-gold);
}
.page-products__platform-card:focus-visible {
  outline: 2px solid var(--page-gold);
  outline-offset: 2px;
}
.page-products__platform-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}
.page-products__platform-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
.page-products__platform-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--page-primary);
  margin: 0 0 0.25rem;
  letter-spacing: 0.01em;
}
.page-products__platform-desc {
  font: var(--font-small);
  color: var(--page-text-secondary);
  margin: 0 0 1rem;
}
.page-products__qrcode-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity var(--page-transition), max-height 0.5s ease;
  width: 100%;
}
.page-products__platform-card:hover .page-products__qrcode-wrapper,
.page-products__platform-card:focus-visible .page-products__qrcode-wrapper,
.page-products__platform-card[data-qrcode-open] .page-products__qrcode-wrapper {
  opacity: 1;
  max-height: 220px;
}
.page-products__qrcode-img {
  width: 120px;
  height: 120px;
  border-radius: var(--page-radius-sm);
  border: 1px solid var(--page-border);
  object-fit: cover;
  display: block;
}
.page-products__qrcode-label {
  font: var(--font-small);
  color: var(--page-text-secondary);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

/* ========== 安装前准备 ========== */
.page-products__preparation {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.page-products__prep-content {
  flex: 1;
}
.page-products__section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--page-primary);
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
  position: relative;
}
.page-products__section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--page-gold);
  margin-top: 0.5rem;
  border-radius: 2px;
}
.page-products__prep-intro {
  color: var(--page-text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 2rem;
  max-width: 55ch;
}
.page-products__steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: step-counter;
}
.page-products__step {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--page-border);
  position: relative;
}
.page-products__step:last-child {
  border-bottom: none;
}
.page-products__step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 36px;
}
.page-products__step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--page-primary);
  color: var(--page-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}
.page-products__step-line {
  width: 2px;
  flex: 1;
  min-height: 24px;
  background: var(--page-border);
  margin-top: 4px;
  border-radius: 1px;
}
.page-products__step:last-child .page-products__step-line {
  display: none;
}
.page-products__step-body {
  flex: 1;
  min-width: 0;
}
.page-products__step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--page-primary);
  margin: 0 0 0.35rem;
  line-height: 1.3;
}
.page-products__step-desc {
  color: var(--page-text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0 0 0.75rem;
  max-width: 60ch;
}
.page-products__step-detail {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  background: rgba(10, 37, 64, 0.04);
  border-radius: var(--page-radius-sm);
  border-left: 3px solid var(--page-gold);
  cursor: pointer;
  transition: background var(--page-transition);
}
.page-products__step-detail:hover {
  background: rgba(10, 37, 64, 0.07);
}
.page-products__step-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 4px;
  object-fit: contain;
}
.page-products__step-detail-text {
  font: var(--font-small);
  color: var(--page-text-secondary);
  font-size: 0.85rem;
  line-height: 1.4;
}
.page-products__prep-visual {
  display: none;
  flex-shrink: 0;
  align-self: center;
}
.page-products__prep-image {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: var(--page-radius);
  object-fit: cover;
  box-shadow: var(--page-shadow);
}

/* ========== 底部支持链接 ========== */
.page-products__support {
  padding-top: 1rem;
  padding-bottom: 3.5rem;
  text-align: center;
}
.page-products__support-title {
  color: var(--page-primary);
  margin-bottom: 1.5rem;
}
.page-products__support-title::after {
  margin-left: auto;
  margin-right: auto;
}
.page-products__support-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.page-products__support-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--page-primary);
  font-weight: 600;
  text-decoration: none;
  padding: 0.7rem 1.8rem;
  border: 1.5px solid var(--page-border);
  border-radius: 50px;
  transition: background var(--page-transition), color var(--page-transition), border-color var(--page-transition);
  font-size: 0.95rem;
}
.page-products__support-link:hover {
  background: var(--page-primary);
  color: var(--page-surface);
  border-color: var(--page-primary);
}

/* ========== 桌面端 ≥768px ========== */
@media (min-width: 768px) {
  .page-products .container {
    padding: 0 2rem;
  }
  .page-products__hero {
    padding: 3rem 0 4rem;
  }
  .page-products__hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }
  .page-products__hero-left {
    flex: 1 1 40%;
  }
  .page-products__hero-right {
    flex: 1 1 60%;
  }
  .page-products__hero-decoration {
    width: 240px;
    top: -2rem;
    right: 10%;
  }
  .page-products__platform-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  .page-products__platform-card {
    padding: 2rem 1.5rem;
  }
  .page-products__platform-icon {
    width: 80px;
    height: 80px;
  }
  .page-products__qrcode-img {
    width: 130px;
    height: 130px;
  }
  .page-products__preparation {
    flex-direction: row;
    gap: 3rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  .page-products__prep-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 280px;
  }
  .page-products__support-links {
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
  }
}

/* ========== 桌面端 ≥1024px ========== */
@media (min-width: 1024px) {
  .page-products .container {
    padding: 0 3rem;
  }
  .page-products__hero {
    padding: 4rem 0 5rem;
  }
  .page-products__hero-left {
    flex: 1 1 45%;
  }
  .page-products__hero-right {
    flex: 1 1 55%;
  }
  .page-products__platform-grid {
    gap: 2rem;
  }
  .page-products__platform-card {
    padding: 2.5rem 1.75rem;
  }
  .page-products__preparation {
    gap: 4rem;
  }
  .page-products__prep-visual {
    flex: 0 0 320px;
  }
  .page-products__step {
    padding: 1.5rem 0;
  }
}

/* ========== 桌面端 ≥1280px ========== */
@media (min-width: 1280px) {
  .page-products__hero-left {
    flex: 1 1 42%;
  }
  .page-products__hero-right {
    flex: 1 1 58%;
  }
  .page-products__platform-card {
    padding: 3rem 2rem;
  }
  .page-products__platform-icon {
    width: 96px;
    height: 96px;
  }
}
