/* ===== 通用 ===== */
.banner {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.course-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 10px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
}

.feature-icon:hover {
  transform: scale(1.1);
}

.course-tag {
  background-color: #fee2e2;
  color: #ef4444;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.btn-primary {
  background-color: #3b82f6;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.btn-primary:hover {
  background-color: #2563eb;
}

.btn-secondary {
  background-color: #f3f4f6;
  color: #374151;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.btn-secondary:hover {
  background-color: #e5e7eb;
}

.cover-wrapper,
.video-wrapper,
.swiper-slide-inner {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  /* 16:9 比例 */
  overflow: hidden;
}

.ratio-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ===== 新闻区域 ===== */
.news-section {
  padding: 1rem 0;
}

.news-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.news-section-header h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
}

.news-more {
  font-size: 0.875rem;
  color: #3b82f6;
  text-decoration: none;
}

.news-more:hover {
  color: #2563eb;
}

/* 移动端：卡片轮播 */
.news-mobile {
  margin-top: 1rem;
  overflow: hidden;
}

.news-card {
  display: block;
  background: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.news-card .cover-wrapper {
  padding-bottom: 66.67%;
  background: #f3f4f6;
}

.news-card-body {
  padding: 0.75rem;
}

.news-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.news-card-intro {
  font-size: 0.75rem;
  color: #6b7280;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.news-card-date {
  font-size: 0.7rem;
  color: #9ca3af;
}

.news-card-tag {
  font-size: 0.625rem;
  padding: 0.125rem 0.375rem;
  background: #eff6ff;
  color: #3b82f6;
  border-radius: 0.25rem;
}

/* PC端：双栏布局 */
.news-pc {
  display: none;
  margin-top: 1rem;
}

.news-pc-body {
  display: flex;
  gap: 1.5rem;
}

.news-pc-covers {
  flex: 3;
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.news-pc-covers .swiper,
.news-pc-covers .swiper-slide {
  width: 100%;
  height: 100%;
}

.news-pc-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.swiper-arrow {
  position: absolute;
  bottom: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.swiper-arrow:hover {
  background: #fff;
}

.swiper-arrow-prev {
  right: 3.5rem;
}

.swiper-arrow-next {
  right: 0.75rem;
}

.swiper-arrow::after {
  content: "";
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  border-top: 2px solid #374151;
  border-right: 2px solid #374151;
}

.swiper-arrow-prev::after {
  transform: rotate(-135deg);
  margin-left: 2px;
}

.swiper-arrow-next::after {
  transform: rotate(45deg);
  margin-right: 2px;
}

.news-pc-list {
  flex: 2;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.news-list-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: 0.5rem;
  text-decoration: none;
  transition: all 0.2s;
  position: relative;
}

.news-list-item:nth-child(n + 2) {
  padding-top: 0.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid #f3f4f6;
}

.news-list-item.active .news-list-title,
.news-list-item.active .news-list-intro,
.news-list-item.active .news-list-date,
.news-list-item.active .news-list-arrow {
  color: #0460ac;
}

.news-list-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #1f2937;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.news-list-intro {
  font-size: 0.75rem;
  color: #6b7280;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
  margin-top: 0.25rem;
}

.news-list-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.25rem;
}

.news-list-date {
  font-size: 0.75rem;
  color: #9ca3af;
}

.news-list-arrow {
  font-size: 0.75rem;
  color: #d1d5db;
}

/* PC端响应式 */
@media (min-width: 996px) {
  .news-mobile {
    display: none;
  }

  .news-pc {
    display: block;
  }
}
