/* 首页特定样式 */

/* 主轮播图 */
.hero-slider {
  position: relative;
  overflow: hidden;
}

.hero-swiper {
  width: 100%;
  height: 600px;
}

.slide-content {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.slide-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.slide-content .container {
  position: relative;
  z-index: 2;
}

.slide-text {
  max-width: 600px;
  color: var(--white);
}

.slide-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--white);
  font-weight: 700;
}

.slide-desc {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.swiper-button-prev,
.swiper-button-next {
  color: var(--white);
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: var(--white);
  opacity: 0.7;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--primary-color);
}

/* 公司简介 */
.intro-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.intro-text {
  flex: 1;
}

.intro-text p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.intro-image {
  flex: 1;
  position: relative;
}

.image-container {
  position: relative;
  z-index: 1;
}

.rounded-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.circle-decoration {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background-color: rgba(240, 78, 78, 0.1);
  top: -30px;
  right: -30px;
  z-index: -1;
}

/* 产品特色 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.feature-item {
  text-align: center;
  padding: 2rem;
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon img {
  max-width: 60px;
  max-height: 60px;
}

.feature-title {
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.feature-desc {
  color: var(--text-light);
  line-height: 1.7;
}

/* 产品展示 */
.product-slider {
  position: relative;
  padding: 1rem 0 3rem;
}

.product-swiper {
  padding: 1rem;
  overflow: visible;
}

.product-card {
  background-color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.product-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-tags {
  position: absolute;
  top: 10px;
  right: 10px;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  margin-left: 0.5rem;
  color: var(--white);
}

.tag.hot {
  background-color: var(--primary-color);
}

.tag.new {
  background-color: var(--info);
}

.tag.limited {
  background-color: var(--warning);
}

.product-info {
  padding: 1.5rem;
  text-align: center;
}

.product-title {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: var(--secondary-color);
}

.product-desc {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  height: 3rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.view-all-products {
  text-align: center;
  margin-top: 2rem;
}

/* 健康价值 */
.benefits-container {
  display: flex;
  gap: 2rem;
}

.benefits-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  flex: 2;
}

.benefit-item {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  align-items: flex-start;
  box-shadow: var(--shadow);
}

.benefit-icon {
  margin-right: 1rem;
  width: 60px;
  flex-shrink: 0;
}

.benefit-text h3 {
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.benefit-text p {
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 0;
}

.cta-box {
  flex: 1;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.cta-box h3 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.cta-box p {
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* 新闻资讯 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.news-item {
  background-color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.news-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.news-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-item:hover .news-image img {
  transform: scale(1.05);
}

.news-date {
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 0.5rem 1rem;
  border-top-right-radius: var(--radius);
}

.news-date .day {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.news-date .month {
  display: block;
  font-size: 0.875rem;
}

.news-content {
  padding: 1.5rem;
}

.news-title {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  height: 3rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news-excerpt {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  height: 4.5rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 500;
  font-size: 0.875rem;
  transition: var(--transition);
}

.read-more:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.view-all-news {
  text-align: center;
  margin-top: 3rem;
}

/* 合作伙伴 */
.partners-swiper {
  padding: 2rem 0;
}

.partner-logo {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 1rem;
}

.partner-logo img {
  max-width: 120px;
  max-height: 60px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition);
}

.partner-logo:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* 联系我们 */
.contact-wrapper {
  display: flex;
  gap: 2rem;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.contact-info {
  flex: 1;
  padding: 3rem;
  background-color: var(--secondary-color);
  color: var(--white);
}

.contact-title,
.form-title {
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.contact-title {
  color: var(--white);
}

.contact-desc {
  margin-bottom: 2rem;
  opacity: 0.8;
}

.info-list {
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  margin-bottom: 1.5rem;
}

.info-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.info-content h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.info-content p {
  margin-bottom: 0.25rem;
  opacity: 0.8;
}

.social-media h3 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.social-icons {
  display: flex;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: var(--white);
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
}

.contact-form {
  flex: 1;
  padding: 3rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background-color: var(--gray-light);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(240, 78, 78, 0.1);
  background-color: var(--white);
}

.full-width {
  grid-column: 1 / -1;
}

/* 响应式设计 */
@media screen and (max-width: 1199px) {
  .hero-swiper {
    height: 500px;
  }

  .slide-title {
    font-size: 2.5rem;
  }
}

@media screen and (max-width: 991px) {
  .hero-swiper {
    height: 450px;
  }

  .slide-title {
    font-size: 2.25rem;
  }

  .intro-content {
    flex-direction: column;
    gap: 2rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits-container {
    flex-direction: column;
  }

  .benefits-content {
    grid-template-columns: 1fr;
  }

  .contact-wrapper {
    flex-direction: column;
  }
}

@media screen and (max-width: 767px) {
  .hero-swiper {
    height: 400px;
  }

  .slide-title {
    font-size: 2rem;
  }

  .slide-desc {
    font-size: 1rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 575px) {
  .hero-swiper {
    height: 350px;
  }

  .slide-title {
    font-size: 1.75rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

