/* 应用中心页面专属样式 — 作用域：.page-products */
.page-products {
  --page-bg: var(--betbo-background);
  --page-header-bg: var(--betbo-secondary);
  --page-card-bg: var(--betbo-surface);
  --page-card-border: var(--betbo-highlight);
  --page-accent: var(--betbo-accent);
  --page-primary: var(--betbo-primary);
  --page-text: var(--betbo-text);
  --page-gap: var(--betbo-gap);
  --page-radius: var(--betbo-radius);
  --page-shadow: var(--betbo-shadow);
  --page-font-heading: var(--betbo-font-heading);
  --page-font-body: var(--betbo-font-body);
  --page-max: var(--betbo-container-max);
  display: block;
}

/* ----- 英雄区域 ----- */
.page-products__hero {
  background: var(--page-header-bg);
  padding: 4rem 1rem 3rem;
  position: relative;
  overflow: hidden;
}
.page-products__hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--page-primary), var(--page-accent));
  opacity: 0.6;
}
.page-products__hero-content {
  max-width: var(--page-max);
  margin: 0 auto;
}
.page-products__hero-img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--page-radius);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  margin-top: 2rem;
}
.page-products__hero-title {
  font-family: var(--page-font-heading);
  font-weight: var(--betbo-font-weight-bold);
  font-size: 2.8rem;
  letter-spacing: var(--betbo-tracking-wide);
  line-height: 1.1;
  color: #fff;
  margin: 0.5rem 0 0.2rem;
}
.page-products__hero-sub {
  font-family: var(--page-font-body);
  font-weight: var(--betbo-font-weight-light);
  font-size: 1.1rem;
  color: var(--page-accent);
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
}
.page-products__hero-desc {
  font-family: var(--page-font-body);
  font-weight: var(--betbo-font-weight-light);
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
}

/* ----- 章节标题通用 ----- */
.page-products__section-title {
  font-family: var(--page-font-heading);
  font-weight: var(--betbo-font-weight-bold);
  font-size: 2rem;
  letter-spacing: var(--betbo-tracking-wide);
  color: var(--page-text);
  margin: 0 0 var(--page-gap);
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--page-primary);
  display: inline-block;
}

/* ----- 核心功能布局 ----- */
.page-products__layout {
  display: flex;
  flex-direction: column;
  gap: var(--page-gap);
}
.page-products__layout-left {
  flex: 1 1 auto;
}
.page-products__layout-right {
  flex: 0 0 auto;
}
.page-products__feature-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--page-gap);
}

/* 功能卡片 */
.page-products__card {
  background: var(--page-card-bg);
  border-radius: var(--page-radius);
  box-shadow: var(--page-shadow);
  padding: 1.2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  cursor: default;
  transition: box-shadow 0.3s ease, transform 0.25s ease;
  border-left: 4px solid var(--page-card-border);
}
.page-products__card:hover {
  box-shadow: 0 8px 28px rgba(29,53,87,0.18);
  transform: translateX(4px);
}
.page-products__card-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
}
.page-products__card-icon img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.page-products__card-body {
  flex: 1;
  min-width: 0;
}
.page-products__card-title {
  font-family: var(--page-font-heading);
  font-weight: var(--betbo-font-weight-bold);
  font-size: 1.15rem;
  line-height: 1.2;
  margin: 0 0 0.3rem;
  color: var(--page-text);
}
.page-products__card-summary {
  font-family: var(--page-font-body);
  font-weight: var(--betbo-font-weight-light);
  font-size: 0.95rem;
  line-height: 1.5;
  color: #444;
  margin: 0;
}
.page-products__card-detail {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--page-accent);
  font-family: var(--page-font-body);
  font-weight: var(--betbo-font-weight-light);
  font-size: 0.9rem;
  line-height: 1.5;
  color: #333;
  display: none;
}
.page-products__card[data-expand] .page-products__card-detail {
  display: block;
}

/* 右侧演示区 */
.page-products__demo-area {
  background: var(--page-header-bg);
  border-radius: var(--page-radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
.page-products__demo-svg {
  max-width: 100%;
  height: auto;
}
.page-products__demo-caption {
  font-family: var(--page-font-body);
  font-weight: var(--betbo-font-weight-light);
  font-size: 0.9rem;
  color: #fff;
  margin-top: 1rem;
  text-align: center;
  opacity: 0.85;
}

/* ----- 步骤区 ----- */
.page-products__steps {
  background: var(--page-bg);
}
.page-products__steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--page-gap);
}
.page-products__step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--page-card-bg);
  border-radius: var(--page-radius);
  padding: 1.2rem;
  box-shadow: var(--page-shadow);
  border-left: 4px solid var(--page-primary);
}
.page-products__step-number {
  font-family: var(--page-font-heading);
  font-weight: var(--betbo-font-weight-bold);
  font-size: 2rem;
  line-height: 1;
  color: var(--page-primary);
  flex: 0 0 2.2rem;
  text-align: right;
}
.page-products__step-body {
  flex: 1;
  min-width: 0;
}
.page-products__step-body img {
  display: block;
  max-width: 48px;
  height: auto;
  margin-bottom: 0.5rem;
  border-radius: 4px;
}
.page-products__step-title {
  font-family: var(--page-font-heading);
  font-weight: var(--betbo-font-weight-bold);
  font-size: 1.1rem;
  line-height: 1.2;
  margin: 0 0 0.25rem;
  color: var(--page-text);
}
.page-products__step-desc {
  font-family: var(--page-font-body);
  font-weight: var(--betbo-font-weight-light);
  font-size: 0.95rem;
  line-height: 1.5;
  color: #444;
  margin: 0;
}
.page-products__step-cta {
  margin-top: 1.5rem;
  text-align: center;
}
.page-products__step-note {
  font-family: var(--page-font-body);
  font-weight: var(--betbo-font-weight-light);
  font-size: 0.95rem;
  color: var(--page-text);
}
.page-products__step-note a {
  color: var(--page-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ----- 下载区 ----- */
.page-products__download {
  background: var(--page-bg);
}
.page-products__download-text {
  font-family: var(--page-font-body);
  font-weight: var(--betbo-font-weight-light);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 var(--page-gap);
  color: var(--page-text);
  max-width: 600px;
}
.page-products__download-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.page-products__channel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  background: var(--page-card-bg);
  border: 1px solid var(--page-accent);
  border-radius: var(--page-radius);
  font-family: var(--page-font-heading);
  font-weight: var(--betbo-font-weight-bold);
  font-size: 0.95rem;
  color: var(--page-text);
  cursor: default;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.page-products__channel[data-hover-glow]:hover {
  box-shadow: 0 0 20px rgba(230,57,70,0.35);
  border-color: var(--page-primary);
}
.page-products__channel img {
  width: 24px;
  height: 24px;
  display: block;
  border-radius: 4px;
}
.page-products__download-faq {
  font-family: var(--page-font-body);
  font-weight: var(--betbo-font-weight-light);
  font-size: 0.9rem;
  color: #555;
  text-align: center;
}
.page-products__download-faq a {
  color: var(--page-primary);
  text-decoration: underline;
}

/* ----- 响应式：平板及以上 ----- */
@media (min-width: 768px) {
  .page-products__hero {
    padding: 5rem 2rem 4rem;
  }
  .page-products__hero-title {
    font-size: 3.5rem;
  }
  .page-products__hero-sub {
    font-size: 1.3rem;
  }
  .page-products__hero-desc {
    font-size: 1.1rem;
  }
  .page-products__layout {
    flex-direction: row;
    align-items: flex-start;
  }
  .page-products__layout-left {
    flex: 1 1 60%;
  }
  .page-products__layout-right {
    flex: 0 1 35%;
    position: sticky;
    top: 80px;
  }
  .page-products__feature-cards {
    grid-template-columns: 1fr 1fr;
  }
  .page-products__steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-products__section-title {
    font-size: 2.2rem;
  }
  .page-products__demo-area {
    min-height: 400px;
  }
}

@media (min-width: 1024px) {
  .page-products__hero-title {
    font-size: 4rem;
  }
  .page-products__feature-cards {
    grid-template-columns: 1fr 1fr;
  }
  .page-products__demo-svg {
    width: 180px;
  }
}
