* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 头部样式 */
.header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.logo h1 {
  color: #e91e63;
  font-size: 1.8rem;
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.nav a:hover {
  color: #e91e63;
}

/* Banner轮播 */
.banner-section {
  margin-top: 80px;
  position: relative;
  height: 500px;
  overflow: hidden;
}

.banner-container {
  position: relative;
  height: 100%;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.banner-slide.active {
  opacity: 1;
}

.banner-content {
  text-align: center;
  color: white;
  max-width: 600px;
  padding: 2rem;
}

.banner-content h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-content p {
  font-size: 1.2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.banner-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: white;
}

/* 主要内容 */
.main-content {
  padding: 4rem 0;
}

.about-section,
.products-section,
.advantages-section,
.news-section,
.partners-section,
.culture-section,
.contact-section {
  margin-bottom: 4rem;
}

.about-section h2,
.products-section h2,
.advantages-section h2,
.news-section h2,
.partners-section h2,
.culture-section h2,
.contact-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #e91e63;
  margin-bottom: 1.5rem;
}

/* 关于我们 */
.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-align: justify;
  line-height: 1.8;
}

.about-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
}

/* 数据统计 */
.stats-section {
  background: #f8f9fa;
  padding: 1.5rem 0;
  margin: 2rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 2rem;
}

.stat-item h3 {
  font-size: 3rem;
  color: #e91e63;
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-size: 1.1rem;
  color: #666;
}

/* 产品网格 */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

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

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

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

.product-item h3 {
  color: #e91e63;
  margin: 1rem 1.5rem 0.5rem;
  font-size: 1.3rem;
}

.product-item p {
  margin: 0 1.5rem 1.5rem;
  color: #666;
}

/* 企业优势 */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.advantage-item {
  text-align: center;
  padding: 2rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.advantage-item:hover {
  transform: translateY(-5px);
}

.advantage-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
}

.advantage-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.advantage-item h3 {
  color: #e91e63;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

/* 新闻动态 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.news-item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.news-item:hover {
  transform: translateY(-5px);
}

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

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-content {
  padding: 1.5rem;
}

.news-date {
  color: #e91e63;
  font-size: 0.9rem;
  font-weight: 500;
}

.news-content h3 {
  margin: 0.5rem 0 1rem;
  color: #333;
  font-size: 1.2rem;
}

.news-content p {
  color: #666;
  line-height: 1.6;
}

/* 合作伙伴 */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.partner-item {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s;
}

.partner-item:hover {
  transform: translateY(-5px);
}

.partner-item img {
  width: 100%;
  height: 80px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s;
}

.partner-item:hover img {
  filter: grayscale(0%);
}

/* 企业文化 */
.culture-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.culture-item {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #e91e63, #ff6b9d);
  color: white;
  border-radius: 10px;
}

.culture-item h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

/* 联系方式 */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.contact-item {
  text-align: center;
  padding: 1.5rem;
  background: #f9f9f9;
  border-radius: 10px;
}

.contact-item h4 {
  color: #e91e63;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.contact-map img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
}

/* Footer样式 */
.footer {
  background: #333;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-info h3 {
  color: #e91e63;
  margin-bottom: 1rem;
}

.social-links {
  margin-top: 1rem;
}

.social-links a {
  display: inline-block;
  margin-right: 1rem;
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #e91e63;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
}
@media screen and (max-width: 768px) {
  .stat-item {
    padding: 1rem;
  }
  .footer-links .link-group {
    width: 100%;
  }
  .footer-links .horizontal-links {
    flex-grow: 2;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    flex-direction: column !important;
  }
  .footer-links .horizontal-links li {
    display: flex;
    width: auto;
  }
}

.horizontal-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.horizontal-links li {
  margin-bottom: 0;
}

.horizontal-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
  white-space: nowrap;
}

.horizontal-links a:hover {
  color: #e91e63;
}

.footer-bottom {
  border-top: 1px solid #555;
  padding-top: 1rem;
  text-align: center;
  color: #ccc;
}

.footer-bottom a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bottom a:hover {
  color: #e91e63;
  text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    padding: 1rem 5px;
    /* gap: 1rem; */
  }

  .nav ul {
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 14px;
  }

  /* 数据统计 */
  .stats-section {
    margin: 2rem 0;
  }

  .banner-content h2 {
    font-size: 2rem;
  }

  .banner-content p {
    font-size: 1rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid h3 {
    font-size: 2rem;
  }

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

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

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

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

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

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .horizontal-links {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
