/* ==================================== */
/* 首页组件样式 (home.css) - 温暖科技女性风 */
/* ==================================== */

:root {
  --home-primary-pink: #FF6B9D;
  --home-soft-pink: #FFB6C1;
  --home-warm-pink: #FFE4E6;
  --home-golden: #D4AF37;
  --home-warm-beige: #F5F0E6;
  --home-soft-beige: #FAF7F2;
  --home-warm-gray: #4b4a4a;
  --home-dark-gray: #4A4A4A;
  --home-white: #FFFFFF;
  --home-gradient-warm: linear-gradient(135deg, #FFE4E6 0%, #F5F0E6 100%);
  --home-gradient-gold: linear-gradient(135deg, #D4AF37 0%, #FFD700 100%);
  --home-shadow-soft: 0 8px 32px rgba(255, 107, 157, 0.1);
  --home-shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 基础重置 */
.home-main {
  font-family: 'Noto Sans TC', sans-serif;
  line-height: 1.6;
  color: var(--home-dark-gray);
  background: var(--home-soft-beige);
  overflow-x: hidden;
}

.home-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 按钮样式 */
.home-btn {
  padding: 12px 32px;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Noto Sans TC', sans-serif;
}

.home-btn--primary {
  background: var(--home-gradient-gold);
  color: var(--home-white);
  box-shadow: var(--home-shadow-soft);
}

.home-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.3);
}

.home-btn--secondary {
  background: transparent;
  color: var(--home-primary-pink);
  border: 2px solid var(--home-primary-pink);
}

.home-btn--secondary:hover {
  background: var(--home-primary-pink);
  color: var(--home-white);
}

/* 模块一：价值主张 */
.home-hero {
  max-width: 100%;
  max-height: 600px;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: var(--home-gradient-warm);
  position: relative;
  overflow: hidden;
  margin: 0 auto; /* 添加这行使容器居中 */

  background-image: url('/images/home-hero.jpg');
  background-size: cover;
  background-position: center;
}

.home-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--home-soft-pink) 0%, transparent 70%);
  opacity: 0.3;
  border-radius: 50%;
}

.home-hero .home-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.home-hero__title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--home-dark-gray);
  line-height: 1.1;
}

.home-hero__highlight {
  background: var(--home-gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-hero__subtitle {
  font-size: 1.5rem;
  color: var(--home-primary-pink);
  margin-bottom: 30px;
  font-weight: 500;
}

.home-hero__description {
  font-size: 1.1rem;
  color: var(--home-warm-gray);
  margin-bottom: 40px;
  line-height: 1.8;
}

.home-hero__actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* 科学图形动画 */
.home-hero__graphic {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-hero__molecule {
  width: 200px;
  height: 200px;
  position: relative;
  animation: home-float 6s ease-in-out infinite;
}

.home-hero__molecule::before,
.home-hero__molecule::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid var(--home-soft-pink);
  border-radius: 50%;
  animation: home-rotate 20s linear infinite;
}

.home-hero__molecule::after {
  width: 150%;
  height: 150%;
  top: -25%;
  left: -25%;
  border-color: var(--home-golden);
  animation-duration: 25s;
  animation-direction: reverse;
}

.home-hero__spectrum {
  position: absolute;
  width: 300px;
  height: 300px;
  background: conic-gradient(from 0deg, #FF6B9D, #FFB6C1, #D4AF37, #FFE4E6, #FF6B9D);
  border-radius: 50%;
  opacity: 0.1;
  filter: blur(20px);
  animation: home-pulse 4s ease-in-out infinite;
}

/* 模块二：品牌哲学 */
.home-philosophy {
  padding: 100px 0;
  background: var(--home-white);
}

.home-section__header {
  text-align: center;
  margin-bottom: 60px;
}

.home-section__title {
  font-size: 2.5rem;
  color: var(--home-dark-gray);
  margin-bottom: 20px;
  font-weight: 700;
}

.home-section__subtitle {
  font-size: 1.2rem;
  color: var(--home-primary-pink);
  font-weight: 400;
}

.home-philosophy__content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.home-philosophy__text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--home-warm-gray);
}

.home-philosophy__blend {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.home-philosophy__icon {
  font-size: 4rem;
  opacity: 0.7;
  transition: transform 0.3s ease;
}

.home-philosophy__icon:hover {
  transform: scale(1.2);
}

/* 模块三：成分哲学 - 改为模块四样式 */
.home-ingredients {
  padding: 100px 0;
  background: var(--home-gradient-warm);
}

.home-systems__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.home-system__card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--home-shadow-card);
  aspect-ratio: 1 / 1;
  width: 100%;
  transition: all 0.4s ease;
  cursor: pointer;
}

.home-system__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(255, 107, 157, 0.2);
}

.home-system__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transition: transform 0.4s ease;
}

.home-system__card:hover .home-system__image {
  transform: scale(1.05);
}

/* 为每个系统设置不同的背景图片 */
.home-system__card[data-system="hydration"] .home-system__image {
  background-image: url('/images/system-hydration.jpg');
}

.home-system__card[data-system="brightening"] .home-system__image {
  background-image: url('/images/system-brightening.jpg');
}

.home-system__card[data-system="anti-aging"] .home-system__image {
  background-image: url('/images/system-anti-aging.jpg');
}

.home-system__card[data-system="soothing"] .home-system__image {
  background-image: url('/images/system-soothing.jpg');
}

.home-system__card[data-system="protection"] .home-system__image {
  background-image: url('/images/system-protection.jpg');
}

.home-system__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 30px 25px;
  background: transparent;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(10px);
  border-radius: 12px;
}

.home-system__card:hover .home-system__content {
  background: rgba(255, 255, 255, 0.452);
  backdrop-filter: blur(10px);
  border-radius: 12px;
}

.home-system__title {
  font-size: 1rem;
  margin-bottom: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--home-white);
}

.home-system__desc {
  font-weight: 500;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--home-white);
  margin-bottom: 8px;
}

.home-system__details {
  color: var(--home-white);
  font-size: 0.8rem;
  line-height: 1.4;
}

.home-system__card:hover .home-system__title,
.home-system__card:hover .home-system__desc,
.home-system__card:hover .home-system__details {
  color: #1f1d1d;
}

/* 添加系统图标装饰 */
.home-system__icon {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: all 0.3s ease;
}

.home-system__card:hover .home-system__icon {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.home-system__icon::before {
  content: '❀';
  font-size: 1.2rem;
  color: var(--home-white);
}

/* 模块四：专利技术 */
.home-technology {
  padding: 100px 0;
  background: var(--home-gradient-warm);
}

.home-technology__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.home-tech__card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--home-shadow-card);
  aspect-ratio: 1 / 1;
  width: 100%;
  transition: all 0.4s ease;
  cursor: pointer;
}

.home-tech__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(255, 107, 157, 0.2);
}

.home-tech__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transition: transform 0.4s ease;
}

.home-tech__card:hover .home-tech__image {
  transform: scale(1.05);
}

/* 为每个技术设置不同的背景图片 */
.home-tech__card[data-tech="spectrafusion"] .home-tech__image {
  background-image: url('/images/tech-spectrafusion.jpg');
}

.home-tech__card[data-tech="trihyal"] .home-tech__image {
  background-image: url('/images/tech-trihyal.jpg');
}

.home-tech__card[data-tech="peptidegen"] .home-tech__image {
  background-image: url('/images/tech-peptidegen.jpg');
}

.home-tech__card[data-tech="vitaclear"] .home-tech__image {
  background-image: url('/images/tech-vitaclear.jpg');
}

.home-tech__card[data-tech="ceramide"] .home-tech__image {
  background-image: url('/images/tech-ceramide.jpg');
}

.home-tech__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 30px 25px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(10px);
  border-radius: 12px;
}

.home-tech__card:hover .home-tech__content {
  background: rgba(255, 255, 255, 0.452);
  backdrop-filter: blur(10px);
  border-radius: 12px;
}

.home-tech__title {
  font-size: 1rem;
  margin-bottom: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--home-white);
}

.home-tech__desc {
  font-weight: 500;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--home-white);
  margin-bottom: 8px;
}

.home-tech__details {
  color: var(--home-white);
  font-size: 0.8rem;
  line-height: 1.4;
}

.home-tech__card:hover .home-tech__title,
.home-tech__card:hover .home-tech__desc,
.home-tech__card:hover .home-tech__details {
  color: #1f1d1d;
}

/* 添加技术图标装饰 */
.home-tech__icon {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: all 0.3s ease;
}

.home-tech__card:hover .home-tech__icon {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.home-tech__icon::before {
  content: '⚡';
  font-size: 1.2rem;
  color: var(--home-white);
}

/* 模块五：解决方案 */
.home-solutions {
  padding: 100px 0;
  background: var(--home-white);
}

.home-solutions__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.home-solution__card {
  background: var(--home-white);
  padding: 50px 30px;
  border-radius: 25px;
  text-align: center;
  box-shadow: var(--home-shadow-card);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 107, 157, 0.1);
}

.home-solution__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--home-gradient-gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.home-solution__card:hover::before {
  transform: scaleX(1);
}

.home-solution__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(255, 107, 157, 0.15);
  border-color: rgba(255, 107, 157, 0.2);
}

.home-solution__visual {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  position: relative;
}

.home-solution__icon {
  width: 150px;
  height: 150px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  transition: all 0.3s ease;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 3px solid transparent;
  background-clip: padding-box;
}

.home-solution__card:hover .home-solution__icon {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

/* 为每个解决方案设置不同的图标样式 */
.home-solution__card[data-solution="brightening"] .home-solution__icon {
  background-image: url('/images/icon-brightening.jpg');
  background-color: rgba(255, 245, 230, 0.8);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 
    0 4px 15px rgba(212, 175, 55, 0.2),
    inset 0 0 20px rgba(255, 255, 255, 0.5);
}

.home-solution__card[data-solution="repair"] .home-solution__icon {
  background-image: url('/images/icon-repair.jpg');
  background-color: rgba(255, 230, 230, 0.8);
  border-color: rgba(255, 107, 157, 0.3);
  box-shadow: 
    0 4px 15px rgba(255, 107, 157, 0.2),
    inset 0 0 20px rgba(255, 255, 255, 0.5);
}

.home-solution__card[data-solution="anti-aging"] .home-solution__icon {
  background-image: url('/images/icon-anti-aging.jpg');
  background-color: rgba(255, 240, 245, 0.8);
  border-color: rgba(255, 182, 193, 0.3);
  box-shadow: 
    0 4px 15px rgba(255, 182, 193, 0.2),
    inset 0 0 20px rgba(255, 255, 255, 0.5);
}

/* 图标悬停时的特殊效果 */
.home-solution__card[data-solution="brightening"]:hover .home-solution__icon {
  filter: drop-shadow(0 6px 12px rgba(212, 175, 55, 0.3));
  border-color: rgba(212, 175, 55, 0.5);
}

.home-solution__card[data-solution="repair"]:hover .home-solution__icon {
  filter: drop-shadow(0 6px 12px rgba(255, 107, 157, 0.3));
  border-color: rgba(255, 107, 157, 0.5);
}

.home-solution__card[data-solution="anti-aging"]:hover .home-solution__icon {
  filter: drop-shadow(0 6px 12px rgba(255, 182, 193, 0.3));
  border-color: rgba(255, 182, 193, 0.5);
}

.home-solution__title {
  font-size: 1.5rem;
  color: var(--home-dark-gray);
  margin-bottom: 15px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.home-solution__card:hover .home-solution__title {
  color: var(--home-primary-pink);
}

.home-solution__desc {
  color: var(--home-warm-gray);
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 0.95rem;
}

.home-solution__tech {
  color: var(--home-primary-pink);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 16px;
  background: rgba(255, 107, 157, 0.1);
  border-radius: 20px;
  display: inline-block;
  transition: all 0.3s ease;
}

.home-solution__card:hover .home-solution__tech {
  background: rgba(255, 107, 157, 0.2);
  transform: translateY(-2px);
}



@media (max-width: 768px) {

  .home-hero {
    max-height: 600px;
    min-height: 300px;
    height: 380px;
  }

  .home-hero__description {
    font-size: 0.8rem;
    color: var(--home-warm-gray);
    margin-bottom: 20px;
    line-height: 1.5rem;
  }

  .home-container {
    padding: 0 15px;
  }
  
  .home-hero__title {
    font-size: 2rem;
  }

  .home-philosophy {
    padding: 60px 0;
  }
  
  .home-section__header {
    margin-bottom: 40px;
  }
  
  .home-section__title {
    font-size: 1.8rem;
    line-height: 1.3;
  }
  
  .home-section__subtitle {
    font-size: 1rem;
    margin-bottom: 10px;
  }
  
  .home-philosophy__content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .home-philosophy__text {
    order: 1;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 10px;
  }
  
  .home-philosophy__text p {
    margin-bottom: 15px;
  }
  
  .home-philosophy__visual {
    order: 2;
    margin-top: 20px;
  }
  
  .home-philosophy__blend {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
  }
  
  .home-philosophy__image {
    flex: 0 0 auto;
  }
  
  .home-philosophy__image img {
    width: 90px;
    height: 90px;
  }
  
  .home-philosophy__caption {
    font-size: 0.85rem;
    margin-top: 8px;
  }
  
  .home-philosophy__connector {
    font-size: 1.3rem;
    margin: 0 5px;
  }

  .home-philosophy__text {
    order: 1;
    font-size: 1rem;
    text-align: left; /* 新增：文字左对齐 */
  }
  
  .home-btn {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .home-hero__actions {
    flex-direction: column;
  }
  
  .home-system__content {
    padding: 20px 15px;
  }
  
  .home-system__title {
    font-size: 1.1rem;
  }
  
  .home-system__desc {
    font-size: 0.9rem;
  }
  
  .home-system__details {
    font-size: 0.85rem;
  }
  
  .home-tech__content {
    padding: 20px 15px;
  }
  
  .home-tech__title {
    font-size: 1.1rem;
  }
  
  .home-tech__desc {
    font-size: 0.9rem;
  }
  
  .home-tech__details {
    font-size: 0.85rem;
  }
}