/* ===================================
   首页样式 v5.0
   Index Page Styles
   =================================== */

/* === Hero轮播区 === */
.hero-section {
  position: relative;
  height: calc(100vh - 120px);
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
}

.hero-swiper {
  height: 100%;
}

.hero-swiper .swiper-slide {
  position: relative;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.hero-swiper .swiper-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 110, 212, 0.9) 0%, rgba(30, 64, 175, 0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--space-12) 0;
}

.hero-text {
  max-width: 700px;
  color: white;
}

.hero-tag {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  margin-bottom: var(--space-6);
  animation: fadeInDown 0.6s ease forwards;
}

.hero-title {
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.6s ease 0.1s forwards;
  opacity: 0;
}

.hero-subtitle {
  font-size: var(--text-xl);
  opacity: 0.9;
  margin-bottom: var(--space-8);
  animation: fadeInUp 0.6s ease 0.2s forwards;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  gap: var(--space-4);
  animation: fadeInUp 0.6s ease 0.3s forwards;
  opacity: 0;
}

.hero-buttons .btn-lg {
  padding: var(--space-4) var(--space-8);
}

/* Swiper导航 */
.hero-swiper .swiper-pagination {
  bottom: var(--space-8);
}

.hero-swiper .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.4);
  opacity: 1;
}

.hero-swiper .swiper-pagination-bullet-active {
  background: white;
  width: 32px;
  border-radius: 6px;
}

.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  color: white;
  transition: all var(--transition-fast);
}

.hero-swiper .swiper-button-prev:hover,
.hero-swiper .swiper-button-next:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
}

@media (max-width: 768px) {
  .hero-section {
    height: auto;
    min-height: 500px;
    max-height: none;
  }
  
  .hero-title {
    font-size: var(--text-3xl);
  }
  
  .hero-subtitle {
    font-size: var(--text-lg);
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .hero-swiper .swiper-button-prev,
  .hero-swiper .swiper-button-next {
    display: none;
  }
}

/* === 品牌实力 === */
.strength-section {
  background: var(--bg-secondary);
  padding: var(--space-16) 0;
}

.strength-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.strength-item {
  text-align: center;
  padding: var(--space-8) var(--space-6);
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.strength-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.strength-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-600));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  color: white;
  font-size: var(--text-2xl);
}

.strength-number {
  font-family: var(--font-family-numbers);
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.strength-number .suffix {
  font-size: var(--text-2xl);
  color: var(--color-primary-500);
}

.strength-label {
  font-size: var(--text-base);
  color: var(--text-secondary);
  font-weight: var(--font-medium);
}

@media (max-width: 1024px) {
  .strength-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .strength-grid {
    grid-template-columns: 1fr;
  }
  
  .strength-number {
    font-size: var(--text-4xl);
  }
}

/* === 核心课程 === */
.courses-section {
  background: white;
}

.course-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
}

.course-tab {
  padding: var(--space-3) var(--space-6);
  background: var(--bg-secondary);
  border: none;
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.course-tab:hover {
  background: var(--color-primary-100);
  color: var(--color-primary-600);
}

.course-tab.active {
  background: var(--color-primary-500);
  color: white;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.course-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid var(--border-light);
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.course-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.course-image .image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--text-4xl);
}

.course-badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
}

.course-category {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
}

.course-content {
  padding: var(--space-6);
}

.course-title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.course-subtitle {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
}

.course-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.course-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.course-meta i {
  color: var(--color-primary-500);
  width: 16px;
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-light);
}

.course-price {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-accent-600);
}

@media (max-width: 1024px) {
  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .course-grid {
    grid-template-columns: 1fr;
  }
  
  .course-tabs {
    gap: var(--space-2);
  }
  
  .course-tab {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
  }
}

/* === 班型介绍 === */
.class-types-section {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, white 100%);
}

.class-types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.class-type-card {
  background: white;
  border-radius: var(--radius-2xl);
  padding: var(--space-10) var(--space-8);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.class-type-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary-500), var(--color-primary-600));
}

.class-type-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.class-type-icon {
  width: 88px;
  height: 88px;
  background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-600));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  color: white;
  font-size: var(--text-3xl);
}

.class-type-card h3 {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

.class-type-card > p {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.class-type-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.class-type-features span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.class-type-features i {
  color: var(--color-success-500);
}

.class-type-card .btn {
  width: 100%;
}

/* 不同班型的颜色 */
.class-type-vip::before {
  background: linear-gradient(90deg, var(--color-accent-500), var(--color-accent-600));
}

.class-type-vip .class-type-icon {
  background: linear-gradient(135deg, var(--color-accent-500), var(--color-accent-600));
}

.class-type-group::before {
  background: linear-gradient(90deg, var(--color-primary-500), var(--color-primary-600));
}

.class-type-class::before {
  background: linear-gradient(90deg, var(--color-success-500), var(--color-success-600));
}

.class-type-class .class-type-icon {
  background: linear-gradient(135deg, var(--color-success-500), var(--color-success-600));
}

@media (max-width: 1024px) {
  .class-types-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* === 校区分布 === */
.campuses-section {
  background: white;
}

.campuses-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.campus-tab {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  background: var(--bg-secondary);
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.campus-tab:hover {
  background: var(--color-primary-50);
  color: var(--color-primary-600);
}

.campus-tab.active {
  background: white;
  border-color: var(--color-primary-500);
  color: var(--color-primary-600);
  box-shadow: var(--shadow-md);
}

.campus-tab i {
  font-size: var(--text-lg);
}

.campuses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.campus-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid var(--border-light);
}

.campus-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.campus-image {
  height: 160px;
  background: linear-gradient(135deg, var(--color-primary-400), var(--color-primary-600));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--text-3xl);
  position: relative;
}

.campus-type-badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  padding: var(--space-1) var(--space-3);
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--color-primary-600);
}

.campus-content {
  padding: var(--space-5);
}

.campus-name {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.campus-address {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.campus-phone {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-primary-600);
  font-weight: var(--font-medium);
}

@media (max-width: 1024px) {
  .campuses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .campuses-tabs {
    flex-direction: column;
    align-items: center;
  }
  
  .campus-tab {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  
  .campuses-grid {
    grid-template-columns: 1fr;
  }
}

/* === 师资团队 === */
.teachers-section {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, white 100%);
}

.teachers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}

.teacher-card {
  background: white;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.teacher-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.teacher-avatar {
  height: 240px;
  background: linear-gradient(135deg, var(--color-primary-100), var(--color-primary-200));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.teacher-avatar i {
  font-size: 80px;
  color: var(--color-primary-300);
}

.teacher-badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  padding: var(--space-1) var(--space-3);
  background: var(--color-accent-500);
  color: white;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
}

.teacher-info {
  padding: var(--space-6);
  text-align: center;
}

.teacher-name {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.teacher-title {
  font-size: var(--text-sm);
  color: var(--color-primary-600);
  font-weight: var(--font-medium);
  margin-bottom: var(--space-3);
}

.teacher-subject {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  background: var(--color-primary-50);
  color: var(--color-primary-600);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}

.teacher-meta {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .teachers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .teachers-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }
}

/* === 学员口碑 === */
.testimonials-section {
  background: white;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.testimonial-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: var(--space-6);
  right: var(--space-8);
  font-size: 120px;
  font-family: Georgia, serif;
  color: var(--color-primary-200);
  line-height: 1;
  opacity: 0.5;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.testimonial-avatar {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--color-primary-400), var(--color-primary-600));
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
}

.testimonial-info h4 {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.testimonial-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.testimonial-score {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  background: var(--color-success-100);
  color: var(--color-success-600);
  border-radius: var(--radius-md);
  font-weight: var(--font-semibold);
}

.testimonial-content {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  position: relative;
  z-index: 1;
}

.testimonial-score-change {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-light);
}

.score-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.score-value {
  font-weight: var(--font-bold);
  color: var(--color-success-600);
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* === 新闻动态 === */
.news-section {
  background: var(--bg-secondary);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.news-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.news-image {
  height: 200px;
  background: linear-gradient(135deg, var(--color-primary-400), var(--color-primary-600));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--text-3xl);
  position: relative;
}

.news-category {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
}

.news-content {
  padding: var(--space-6);
}

.news-date {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.news-title {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  line-height: var(--leading-snug);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-excerpt {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-primary-600);
}

.news-link:hover {
  gap: var(--space-3);
}

@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* === CTA行动召唤 === */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary-600), var(--color-primary-800));
  color: white;
  text-align: center;
  padding: var(--space-24) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-4);
}

.cta-subtitle {
  font-size: var(--text-xl);
  opacity: 0.9;
  margin-bottom: var(--space-8);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
}

.cta-buttons .btn-white {
  color: var(--color-primary-600);
}

@media (max-width: 640px) {
  .cta-title {
    font-size: var(--text-2xl);
  }
  
  .cta-subtitle {
    font-size: var(--text-lg);
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* === 页面底部间距 === */
.section-footer {
  text-align: center;
  margin-top: var(--space-12);
}
