/**
 * 纤伴益生菌 AI 官网 - 首页专属样式
 */

/* ==================== Hero 区 ==================== */
.qb-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--qianban-header-height);
  background: var(--qianban-gradient-hero);
  position: relative;
  overflow: hidden;
}

.qb-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--qianban-space-2xl);
  padding: var(--qianban-space-2xl) var(--qianban-space-lg);
}

.qb-hero__content {
  text-align: center;
  order: 1;
}

.qb-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(255,255,255,0.6);
  border-radius: var(--qianban-radius-full);
  font-size: var(--qianban-font-small);
  color: var(--qianban-color-primary);
  font-weight: 500;
  margin-bottom: var(--qianban-space-md);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(232,76,136,0.15);
  animation: qianban-fade-in 0.6s ease;
}

.qb-hero__title {
  font-size: var(--qianban-font-h1);
  font-weight: 800;
  line-height: 1.2;
  color: var(--qianban-color-text);
  margin-bottom: var(--qianban-space-md);
  animation: qianban-fade-in-up 0.8s ease;
}

.qb-hero__subtitle {
  font-size: var(--qianban-font-body);
  color: var(--qianban-color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--qianban-space-xl);
  animation: qianban-fade-in-up 0.8s ease 0.1s both;
}

.qb-hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--qianban-space-md);
  margin-bottom: var(--qianban-space-xl);
  animation: qianban-fade-in-up 0.8s ease 0.2s both;
}

.qb-hero__stats {
  display: flex;
  justify-content: center;
  gap: var(--qianban-space-2xl);
  animation: qianban-fade-in-up 0.8s ease 0.3s both;
}

.qb-hero__stat-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--qianban-color-primary);
  line-height: 1;
}

.qb-hero__stat-num span {
  font-size: 16px;
  font-weight: 600;
}

.qb-hero__stat-label {
  font-size: var(--qianban-font-tiny);
  color: var(--qianban-color-text-secondary);
  margin-top: 4px;
}

.qb-hero__image {
  order: 2;
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.qb-hero__img {
  width: 100%;
  border-radius: var(--qianban-radius-lg);
  box-shadow: var(--qianban-shadow-xl);
  animation: qianban-scale-in 0.8s ease 0.2s both;
}

.qb-hero__deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.qb-hero__deco--1 {
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(201,169,110,0.3) 0%, transparent 70%);
  animation: qianban-float 4s ease-in-out infinite;
}

.qb-hero__deco--2 {
  bottom: -10px;
  left: -20px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(74,144,217,0.2) 0%, transparent 70%);
  animation: qianban-float 5s ease-in-out infinite reverse;
}

@media (min-width: 1024px) {
  .qb-hero__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .qb-hero__content {
    text-align: left;
    flex: 1;
    order: 1;
  }

  .qb-hero__image {
    order: 2;
    flex: 0 0 45%;
  }

  .qb-hero__actions {
    flex-direction: row;
  }

  .qb-hero__stats {
    justify-content: flex-start;
  }
}

/* ==================== 核心卖点卡片 ==================== */
.qb-feature-card {
  text-align: center;
}

.qb-feature-card__icon {
  width: 72px;
  height: 72px;
  border-radius: var(--qianban-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto var(--qianban-space-md);
  color: #fff;
}

.qb-feature-card__icon--blue {
  background: var(--qianban-gradient-blue);
  box-shadow: 0 4px 16px rgba(74,144,217,0.25);
}

.qb-feature-card__icon--pink {
  background: var(--qianban-gradient-primary);
  box-shadow: var(--qianban-shadow-lg);
}

.qb-feature-card__icon--gold {
  background: var(--qianban-gradient-gold);
  box-shadow: var(--qianban-shadow-gold);
}

.qb-feature-card__title {
  font-size: var(--qianban-font-h3);
  margin-bottom: var(--qianban-space-sm);
}

.qb-feature-card__desc {
  font-size: var(--qianban-font-small);
  color: var(--qianban-color-text-secondary);
  line-height: 1.7;
}

/* ==================== 4种体质类型 ==================== */
.qb-types-section {
  background: linear-gradient(180deg, #fff 0%, var(--qianban-color-bg) 100%);
}

.qb-type-card {
  cursor: pointer;
  padding: var(--qianban-space-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.qb-type-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--qianban-gradient-primary);
  transform: scaleX(0);
  transition: var(--qianban-transition);
}

.qb-type-card:hover::before {
  transform: scaleX(1);
}

.qb-type-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto var(--qianban-space-md);
  background: var(--qianban-color-bg);
  color: var(--qianban-color-primary);
}

.qb-type-card__title {
  font-size: var(--qianban-font-h3);
  color: var(--qianban-color-text);
  margin-bottom: var(--qianban-space-sm);
}

.qb-type-card__score {
  font-size: var(--qianban-font-tiny);
  color: var(--qianban-color-gold);
  font-weight: 600;
  margin-bottom: var(--qianban-space-sm);
}

.qb-type-card__desc {
  font-size: var(--qianban-font-small);
  color: var(--qianban-color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--qianban-space-md);
}

.qb-type-card__btn {
  font-size: var(--qianban-font-small);
  color: var(--qianban-color-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==================== 信任背书 ==================== */
.qb-trust-section {
  background: var(--qianban-color-text);
  padding: var(--qianban-space-xl) 0;
}

.qb-trust-section .qianban-section-title {
  color: #fff;
}

.qb-trust-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--qianban-space-xl);
  margin-top: var(--qianban-space-lg);
}

.qb-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--qianban-space-sm);
  color: rgba(255,255,255,0.7);
  font-size: var(--qianban-font-small);
}

.qb-trust-item i {
  font-size: 28px;
  color: var(--qianban-color-gold);
}

/* ==================== 用户见证滚动 ==================== */
.qb-testimonials-section {
  background: var(--qianban-color-bg);
}

.qb-testimonial-scroll {
  display: flex;
  gap: var(--qianban-space-md);
  overflow-x: auto;
  padding: var(--qianban-space-sm);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.qb-testimonial-scroll::-webkit-scrollbar {
  height: 4px;
}

.qb-testimonial-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  padding: var(--qianban-space-lg);
}

.qb-testimonial-card__header {
  display: flex;
  align-items: center;
  gap: var(--qianban-space-sm);
  margin-bottom: var(--qianban-space-sm);
}

.qb-testimonial-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--qianban-gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
}

.qb-testimonial-card__name {
  font-size: var(--qianban-font-small);
  font-weight: 600;
}

.qb-testimonial-card__tag {
  font-size: var(--qianban-font-tiny);
  color: var(--qianban-color-text-secondary);
}

.qb-testimonial-card__content {
  font-size: var(--qianban-font-small);
  color: var(--qianban-color-text);
  line-height: 1.7;
}

/* ==================== 底部CTA ==================== */
.qb-cta-section {
  padding: var(--qianban-space-2xl) 0;
  background: linear-gradient(135deg, #FFF5F8 0%, #FFE4EC 100%);
}

.qb-cta-box {
  background: #fff;
  border-radius: var(--qianban-radius-lg);
  padding: var(--qianban-space-2xl) var(--qianban-space-lg);
  text-align: center;
  box-shadow: var(--qianban-shadow-lg);
  position: relative;
  overflow: hidden;
}

.qb-cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--qianban-gradient-gold);
}

.qb-cta-box__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 16px;
  background: var(--qianban-gradient-gold);
  color: #fff;
  font-size: var(--qianban-font-small);
  font-weight: 600;
  border-radius: var(--qianban-radius-full);
  margin-bottom: var(--qianban-space-md);
}

.qb-cta-box__title {
  font-size: var(--qianban-font-h2);
  margin-bottom: var(--qianban-space-sm);
}

.qb-cta-box__desc {
  font-size: var(--qianban-font-body);
  color: var(--qianban-color-text-secondary);
  margin-bottom: var(--qianban-space-lg);
}

.qb-cta-box__countdown {
  display: flex;
  justify-content: center;
  gap: var(--qianban-space-md);
  margin-bottom: var(--qianban-space-lg);
}

.qb-cta-box__countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.qb-cta-box__countdown-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--qianban-color-warning);
  background: rgba(250,140,22,0.08);
  padding: 8px 16px;
  border-radius: var(--qianban-radius-md);
  min-width: 60px;
}

.qb-cta-box__countdown-label {
  font-size: var(--qianban-font-tiny);
  color: var(--qianban-color-text-secondary);
}

.qb-cta-box__actions {
  display: flex;
  flex-direction: column;
  gap: var(--qianban-space-sm);
  align-items: center;
}

@media (min-width: 768px) {
  .qb-cta-box__actions {
    flex-direction: row;
    justify-content: center;
  }
}
