/* 首页轮播图 */
.hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.hero-carousel .carousel-item {
  height: 600px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-content {
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 20px;
}

.carousel-content h1 {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-content p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  line-height: 1.6;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.carousel-indicators {
  bottom: 30px;
}

.carousel-indicators li {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  /* width: 48px; */
  /* height: 8px; */
  /* border-radius: 3px; */
  background-color: rgba(255, 255, 255, 0.5);
  border: 1px solid white;
}

.carousel-indicators .active {
  /* width: 100px; */
  background-color: var(--primary-color);
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 30px;
  height: 30px;
}

/* 优化科技感配色方案 */
.service-card {
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(30, 64, 175, 0.08);
  height: 100%;
  border: 1px solid rgba(30, 64, 175, 0.1);
}

.service-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(30, 64, 175, 0.2);
  background: linear-gradient(145deg, #ffffff, #f1f5f9);
}

.service-icon {
  width: 90px;
  height: 90px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2.2rem;
  color: white;
  box-shadow: 0 10px 25px rgba(30, 64, 175, 0.3);
}

.service-card h4 {
  color: var(--text-dark);
  font-weight: bold;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.service-card p {
  color: var(--text-light);
  line-height: 1.7;
}

/* 统计数据样式 */
.stats-section {
  background: linear-gradient(
    135deg,
    #0f172a,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.stat-item {
  text-align: center;
  padding: 30px 20px;
  position: relative;
  z-index: 2;
}

.stat-number {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 15px;
  background: linear-gradient(45deg, var(--accent-color), #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item h5 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.stat-item p {
  opacity: 0.9;
  font-size: 1rem;
}

/* 新闻卡片样式 */
.news-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  height: 100%;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.news-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.news-content {
  padding: 25px;
}

.news-date {
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 600;
}

.news-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 10px 0;
  color: var(--text-dark);
}

.news-excerpt {
  color: var(--text-light);
  line-height: 1.6;
}

/* 页脚样式 */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 60px 0 30px;
}

.footer h5 {
  color: var(--accent-color);
  margin-bottom: 20px;
  font-weight: bold;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
  /* 首页轮播图 */
  .hero-carousel {
    height: 400px;
  }

  .hero-carousel .carousel-item {
    height: 400px;
  }

  .carousel-content h1 {
    font-size: 2.5rem;
  }

  .carousel-content p {
    font-size: 1.1rem;
  }

  .carousel-content h1 {
    font-size: 2.5rem;
  }

  .carousel-content p {
    font-size: 1.1rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }
}

/* IE11 兼容性修复 */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  .service-card,
  .news-card {
    display: block;
  }

  .carousel-overlay {
    display: block;
    padding-top: 200px;
  }
}
