/* ==========================================
   河南新唯思教育官网 - 首页样式
   ========================================== */

/* ========== Hero Banner 轮播区 ========== */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-swiper {
  width: 100%;
  height: 100%;
}

.hero-swiper .swiper-slide {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide-bg img,
.hero-slide-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  /* 完全移除遮罩层，保持图片原色 */
  display: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--white);
  padding: 0 20px;
  /* 添加半透明背景，确保文字在任何图片上都清晰 */
  background: rgba(0, 0, 0, 0.3);
  padding: 60px 40px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  max-width: 900px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-title {
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

.hero-title-text {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.2;
  display: block;
  /* 强化文字阴影 */
  text-shadow: 0 2px 8px rgba(0,0,0,0.4), 
               0 4px 16px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeInUp 1s ease 0.3s forwards;
  /* 副标题阴影 */
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  opacity: 0;
  animation: fadeInUp 1s ease 0.6s forwards;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 32px;
  color: var(--white);
  animation: bounce 2s infinite;
  cursor: pointer;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

/* ========== 核心优势 ========== */
.advantages-section {
  padding: 100px 0;
  background-color: var(--white);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.advantage-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.advantage-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.advantage-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.advantage-card:hover::before {
  transform: scaleX(1);
}

.advantage-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--white);
  transition: all var(--transition-base);
}

.advantage-card:hover .advantage-icon {
  transform: scale(1.1) rotate(5deg);
}

.advantage-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.advantage-desc {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 20px;
}

.advantage-number {
  font-family: var(--font-family-number);
  font-size: 36px;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.advantage-number .number-suffix {
  font-size: 28px;
}

/* ========== 明星师资 ========== */
.teachers-section {
  padding: 100px 0;
  background-color: var(--bg-color);
}

.teachers-swiper {
  padding: 20px 0 60px;
}

.teachers-swiper .swiper-slide {
  height: auto;
  display: flex;
}

.teacher-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  width: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.teacher-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.teacher-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary-color);
  box-shadow: var(--shadow-md);
}

.teacher-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teacher-name {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.teacher-title {
  font-size: 16px;
  color: var(--primary-color);
  margin-bottom: 12px;
  font-weight: 500;
}

.teacher-university {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 6px;
}

.teacher-major {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.teacher-intro {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.teacher-detail-btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-base);
}

.teacher-detail-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Swiper 自定义样式 */
.teachers-swiper .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: var(--primary-color);
  opacity: 0.3;
}

.teachers-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  width: 30px;
  border-radius: 6px;
}

.teachers-swiper .swiper-button-prev,
.teachers-swiper .swiper-button-next {
  color: var(--primary-color);
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

.teachers-swiper .swiper-button-prev:hover,
.teachers-swiper .swiper-button-next:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* ========== 成功案例数据 ========== */
.stats-section {
  padding: 80px 0;
  background: var(--gradient-primary);
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.stat-item {
  text-align: center;
}

.stat-icon {
  font-size: 48px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.stat-number {
  font-family: var(--font-family-number);
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 12px;
}

.stat-suffix {
  font-size: 40px;
}

.stat-label {
  font-size: 18px;
  font-weight: 400;
  opacity: 0.95;
}

/* ========== 最新资讯 ========== */
.news-section {
  padding: 100px 0;
  background-color: var(--white);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.news-image {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.news-card:hover .news-image img {
  transform: scale(1.1);
}

.news-category {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  z-index: 2;
}

.news-content {
  padding: 24px;
}

.news-title {
  margin-bottom: 12px;
}

.news-title a {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.news-title a:hover {
  color: var(--primary-color);
}

.news-excerpt {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.news-date {
  font-size: 13px;
  color: var(--text-muted);
}

.news-date i {
  margin-right: 4px;
}

.news-more {
  font-size: 14px;
  color: var(--primary-color);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.news-more:hover {
  gap: 8px;
}

.news-more i {
  margin-left: 4px;
  transition: transform var(--transition-fast);
}

.news-more:hover i {
  transform: translateX(4px);
}

.news-more-btn {
  text-align: center;
}

/* ========== CTA 行动号召区 ========== */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(0,212,170,0.1) 0%, rgba(0,212,170,0.05) 100%);
}

.cta-content {
  text-align: center;
  padding: 60px 40px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.cta-title {
  font-size: 40px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 32px;
}

.cta-btn {
  box-shadow: var(--shadow-lg);
}

/* ========== 响应式设计 ========== */

/* 平板 */
@media (max-width: 1023px) {
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-title-text {
    font-size: 42px;
  }
  
  .hero-subtitle {
    font-size: 20px;
  }
  
  .cta-title {
    font-size: 32px;
  }
  
  .cta-subtitle {
    font-size: 18px;
  }
}

/* 移动端 */
@media (max-width: 767px) {
  .hero-section {
    min-height: 500px;
  }
  
  .hero-title-text {
    font-size: 32px;
  }
  
  .hero-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  
  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
  }
  
  .advantages-section,
  .teachers-section,
  .news-section {
    padding: 60px 0;
  }
}

/* ========== Hero轮播自定义样式 ========== */
.hero-swiper .swiper-pagination {
  bottom: 40px;
}

.hero-swiper .swiper-pagination-bullet {
  width: 14px;
  height: 14px;
  background: var(--white);
  opacity: 0.5;
}

.hero-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  width: 40px;
  border-radius: 7px;
}

.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
  color: var(--white);
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  backdrop-filter: blur(5px);
}

.hero-swiper .swiper-button-prev:hover,
.hero-swiper .swiper-button-next:hover {
  background: rgba(255,255,255,0.25);
}

.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after {
  font-size: 24px;
}

/* 移动端响应式 */
@media (max-width: 767px) {
  .hero-swiper .swiper-button-prev,
  .hero-swiper .swiper-button-next {
    width: 40px;
    height: 40px;
  }
  
  .hero-swiper .swiper-button-prev::after,
  .hero-swiper .swiper-button-next::after {
    font-size: 18px;
  }
  
  .advantages-grid,
  .stats-grid,
  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .stats-section {
    padding: 60px 0;
  }
  
  .stat-number {
    font-size: 42px;
  }
  
  .cta-section {
    padding: 60px 0;
  }
  
  .cta-content {
    padding: 40px 20px;
  }
  
  .cta-title {
    font-size: 28px;
  }
  
  .cta-subtitle {
    font-size: 16px;
  }
}

