/* styles.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", Arial, sans-serif;
}

body {
  background-color: #f5f5f5;
  color: #333;
}

@media (max-width: 768px) {

  .branches {
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
  }

  .branch {
    width: 100%;
    max-width: 320px;
    margin-bottom: 12px;
  }

  .banner-slides {
    height: 200px;
    /* 保持这个高度 */
  }

  .banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 确保图片填充容器 */
    object-position: center;
    /* 图片居中显示 */
  }

  /* 如果图片仍然不显示，可以尝试强制显示 */
  .banner-slide {
    display: block !important;
    opacity: 1 !important;
  }


}


.main-menu {
  display: flex;
  list-style: none;
  position: relative;
}

.main-menu>li {
  margin-left: 30px;
  position: relative;
}

.main-menu>li>a {
  color: #333;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  padding: 10px 0;
  display: block;
  transition: color 0.3s;
}

.main-menu>li>a:hover {
  color: #ff6b00;
}


.view-all {
  display: inline-block;
  padding: 8px 20px;
  background-color: #ff6b00;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  transition: background-color 0.3s;
}

.view-all:hover {
  background-color: #e05e00;
}

.stats-title {
  font-size: 20px;
  color: #1a56a8;
  margin-bottom: 15px;
  font-weight: bold;
}

.stats-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

/* 轮播图 */
.banner-container {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.banner-slides {
  position: relative;
  height: 300px;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.banner-slide.active {
  opacity: 1;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-controls {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.banner-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s;
}

.banner-dot.active {
  background-color: #ff6b00;
}

.branches {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding-bottom: 20px;
  padding-top: 20px;
}

.branch {
  background: white;
  width: 280px;
  padding: 12px 15px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
}

.branch:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #ff6b00;
}

.branch h3 {
  color: #1a5f9a;
  font-size: 16px;
  margin: 8px 0 6px;
  font-weight: 600;
}

.branch p {
  color: #666;
  font-size: 13px;
  margin: 0;
  line-height: 1.4;
}