/**
 * 玲珑颜 - 首页样式
 * @file webroot/lly/css/index.css
 */

/* ===== Hero区域 ===== */
.lly-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #FAF6F2 0%, #F5E6E8 50%, #EFD9DC 100%);
}

.lly-hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(192, 132, 151, 0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 60%, rgba(155, 142, 196, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.lly-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px 20px 40px;
}

.lly-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  font-size: 14px;
  color: var(--lly-color-primary);
  font-weight: 500;
  margin-bottom: 24px;
  border: 1px solid rgba(192, 132, 151, 0.2);
}

.lly-hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--lly-color-primary);
  border-radius: 50%;
  animation: lly-pulse 2s ease-in-out infinite;
}

.lly-hero__title {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  color: var(--lly-color-text);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #C08497 0%, #9B8EC4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lly-hero__subtitle {
  font-size: clamp(14px, 2vw, 18px);
  color: var(--lly-color-text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
}

.lly-hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 滚动指示器 */
.lly-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  z-index: 3;
}

.lly-scroll-indicator__text {
  font-size: 12px;
  color: var(--lly-color-text-light);
  letter-spacing: 0.1em;
}

.lly-scroll-indicator__arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--lly-color-primary);
  border-bottom: 2px solid var(--lly-color-primary);
  transform: rotate(45deg);
  animation: lly-scroll-bounce 2s ease-in-out infinite;
}

@keyframes lly-scroll-bounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50% { transform: rotate(45deg) translate(4px, 4px); }
}

/* ===== 数据统计区 ===== */
.lly-stats {
  padding: 60px 0;
  background: var(--lly-color-bg);
}

.lly-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.lly-stat-item__number {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  background: linear-gradient(135deg, #C08497, #D4AF7A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lly-stat-item__label {
  font-size: 14px;
  color: var(--lly-color-text-secondary);
  margin-top: 8px;
}

/* ===== 核心成分区 ===== */
.lly-ingredient__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.lly-ingredient__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.lly-ingredient__circle {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #C08497, #D4AF7A, #9B8EC4, #C08497);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: lly-rotate-slow 20s linear infinite;
}

.lly-ingredient__circle::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--lly-color-bg);
}

.lly-ingredient__circle-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  animation: lly-rotate-slow 20s linear infinite reverse;
}

.lly-ingredient__molecule {
  font-size: 60px;
  display: block;
  margin-bottom: 10px;
}

.lly-ingredient__label {
  font-family: 'Noto Serif SC', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--lly-color-text);
}

@keyframes lly-rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.lly-ingredient__feature {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.lly-ingredient__feature-icon {
  font-size: 32px;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(192, 132, 151, 0.1);
  border-radius: 12px;
}

.lly-ingredient__feature h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--lly-color-text);
  margin-bottom: 4px;
}

.lly-ingredient__feature p {
  font-size: 14px;
  color: var(--lly-color-text-secondary);
  line-height: 1.6;
}

/* ===== 产品轮播区 ===== */
.lly-product-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.lly-product-carousel__viewport {
  overflow: hidden;
  flex: 1;
}

.lly-product-carousel__track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lly-product-carousel__track .lly-product-card {
  flex-shrink: 0;
  width: calc(25% - 15px);
  min-width: 250px;
}

.lly-carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--lly-color-border);
  background: var(--lly-color-bg);
  color: var(--lly-color-text);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.lly-carousel-btn:hover {
  background: var(--lly-color-primary);
  color: white;
  border-color: var(--lly-color-primary);
}

.lly-products__cta {
  text-align: center;
}

/* ===== 产品卡片 ===== */
.lly-product-card {
  background: var(--lly-color-bg);
  border-radius: var(--lly-radius-lg);
  overflow: hidden;
  box-shadow: var(--lly-shadow-sm);
  transition: all 0.3s ease;
  position: relative;
}

.lly-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--lly-shadow-lg);
}

.lly-product-card__image {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  background: var(--lly-color-bg-light);
}

.lly-product-card__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.lly-product-card:hover .lly-product-card__image img {
  transform: scale(1.05);
}

.lly-product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: white;
  z-index: 2;
}

.lly-product-badge--hot {
  background: var(--lly-color-primary);
}

.lly-product-badge--new {
  background: var(--lly-color-tech);
}

.lly-product-card__body {
  padding: 16px;
}

.lly-product-card__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--lly-color-text);
  margin-bottom: 6px;
}

.lly-product-card__desc {
  font-size: 13px;
  color: var(--lly-color-text-secondary);
  margin-bottom: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lly-product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lly-product-card__price {
  font-size: 20px;
  font-weight: 700;
  color: var(--lly-color-primary);
}

/* ===== 诊断CTA区 ===== */
.lly-diagnosis-cta {
  background: linear-gradient(135deg, #F5E6E8 0%, #E8D5F0 100%);
}

.lly-diagnosis-cta__content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.lly-diagnosis-cta__steps {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.lly-diagnosis-cta__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.lly-diagnosis-cta__step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--lly-color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.lly-diagnosis-cta__step span:last-child {
  font-size: 14px;
  color: var(--lly-color-text-secondary);
}

/* ===== 用户见证轮播 ===== */
.lly-testimonial-slider {
  overflow: hidden;
}

.lly-testimonial-slider__viewport {
  overflow: hidden;
}

.lly-testimonial-slider__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lly-testimonial-slider__track .lly-testimonial-card {
  flex-shrink: 0;
  width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
}

.lly-testimonial-card {
  display: flex;
  gap: 20px;
  background: var(--lly-color-bg);
  border-radius: var(--lly-radius-lg);
  padding: 30px;
  box-shadow: var(--lly-shadow-sm);
}

.lly-testimonial-card__avatar {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--lly-color-bg-light);
}

.lly-testimonial-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lly-testimonial-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.lly-testimonial-card__name {
  font-weight: 600;
  color: var(--lly-color-text);
}

.lly-testimonial-card__rating {
  color: #D4AF7A;
  font-size: 14px;
}

.lly-testimonial-card__text {
  font-size: 14px;
  color: var(--lly-color-text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
}

.lly-testimonial-card__product {
  font-size: 12px;
  color: var(--lly-color-text-light);
}

.lly-testimonial-slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.lly-testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lly-color-border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.lly-testimonial-dot--active {
  background: var(--lly-color-primary);
  width: 24px;
  border-radius: 4px;
}

/* ===== 合伙人CTA区 ===== */
.lly-partner-cta {
  background: linear-gradient(135deg, #E8D5F0 0%, #F5E6E8 100%);
}

.lly-partner-cta__content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.lly-partner-cta__badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--lly-color-tech);
  color: white;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.lly-partner-cta__features {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.lly-partner-cta__feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.lly-partner-cta__feature-icon {
  font-size: 32px;
}

.lly-partner-cta__feature span:last-child {
  font-size: 14px;
  color: var(--lly-color-text-secondary);
  font-weight: 500;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .lly-hero {
    min-height: 80vh;
  }

  .lly-stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .lly-ingredient__content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .lly-ingredient__circle {
    width: 240px;
    height: 240px;
  }

  .lly-product-carousel__track .lly-product-card {
    width: calc(50% - 10px);
    min-width: 200px;
  }

  .lly-carousel-btn {
    display: none;
  }

  .lly-diagnosis-cta__steps {
    gap: 20px;
  }

  .lly-testimonial-card {
    padding: 20px;
  }

  .lly-partner-cta__features {
    gap: 16px;
  }
}
