/* Banner */
.banner-section {
  overflow: hidden;
}

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

.swiper-slide {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 8s ease;
}

.swiper-slide:hover .slide-bg {
  transform: scale(1.05);
}

.slide-content {
  position: relative;
  text-align: center;
  color: white;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.slide-content h2 {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slide-content p {
  font-size: 24px;
  margin-bottom: 30px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.slide-btn {
  display: inline-block;
  background-color: #007AFF;
  color: white;
  padding: 12px 28px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 17px;
  transition: all 0.3s;
}

.slide-btn:hover {
  background-color: #0056CC;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

main {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 10px;
}

.section-title p {
  font-size: 24px;
  color: #86868b;
}

/* 招生 */
.recruitment-tabs {
  margin-bottom: 50px;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  background: none;
  border: none;
  font-size: 20px;
  padding: 12px 24px;
  cursor: pointer;
  color: #86868b;
  position: relative;
  transition: color 0.3s;
}

.tab-btn.active {
  color: #1d1d1f;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  background-color: #007AFF;
  border-radius: 1.5px;
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.recruitment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.recruitment-card {
  background-color: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.recruitment-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.recruitment-img {
  height: 200px;
  background-size: contain;
  background-position: center;
}

.recruitment-info {
  padding: 24px;
}

.recruitment-info h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.recruitment-info p {
  font-size: 16px;
  color: #515154;
  margin-bottom: 20px;
  line-height: 1.5;
}

.view-more {
  display: inline-block;
  color: #007AFF;
  font-weight: 600;
  font-size: 17px;
  padding: 8px 16px;
  border-radius: 18px;
  transition: background-color 0.3s;
}

.view-more:hover {
  background-color: rgba(0, 122, 255, 0.1);
}

/* 专业 */
.majors-section {
  margin-bottom: 50px;
}

.majors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.major-card {
  background-color: white;
  border-radius: 18px;
  overflow: hidden;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.major-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.major-icon {
  width: 64px;
  height: 64px;
  background-color: #f5f5f7;
  border-radius: 16px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.major-icon img {
  width: 64px;
}

.major-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.major-card p {
  font-size: 16px;
  color: #515154;
  margin-bottom: 20px;
  line-height: 1.5;
}

.view-all {
  display: block;
  width: fit-content;
  margin: 0 auto;
  background-color: #007AFF;
  color: white;
  padding: 14px 32px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 17px;
  transition: all 0.3s;
}

.view-btn {
  margin-top: 50px;
}

.view-all:hover {
  background-color: #0056CC;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .majors-section {
    margin-bottom: 20px;
  }
  .desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .swiper {
    height: 400px;
  }

  .slide-content h2 {
    font-size: 28px;
  }

  .slide-content p {
    font-size: 18px;
  }
 .section-title {
    margin-bottom: 20px;
  }
  .section-title h2 {
    font-size: 28px;
    margin-bottom: 5px;
  }
 
  .section-title p {
    font-size: 16px;
  }

  .tab-buttons {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 10px;
    margin-bottom: 20px;
  }
  .tab-btn {
    font-size: 16px;
    padding: 10px 14px;
  }
  .recruitment-info {
    padding: 14px;
  }
  .recruitment-info p {
    margin-bottom: 5px;
  }
  .recruitment-info h3 {
    font-size: 18px;
  }
  .recruitment-grid,
  .majors-grid {
    grid-template-columns: 1fr;
    margin-bottom: 20px;
  }
  .recruitment-grid {
    gap: 20px;
  }
  .view-btn {
    margin-top: 20px;
  }
  .recruitment-tabs {
    margin-bottom: 20px;
  }
}
