/* CSS */
.banner-container {
  --primary-color: #2c3e50;
  --secondary-color: #95a5a6;
  --hover-color: #3498db;
  display: flex;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 左侧图片轮播 */
.banner-media {
  flex: 0 0 60%;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 16/9;
}

.banner-media__item {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.banner-media__item.is-active {
  opacity: 1;
}

/* 轮播指示点 */
.banner-indicators {
  position: absolute;
  bottom: 15px;
  left: 15px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.banner-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.2s ease;
}

.banner-indicator.is-active {
  background: var(--hover-color);
  transform: scale(1.2);
}

/* 右侧新闻列表 */
.news-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.news-list__item {
  padding: 15px;
  background: white;
  border-radius: 6px;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.news-list__item:hover {
  transform: translateX(5px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.news-title {
  font-size: 16px;
  color: var(--primary-color);
  margin: 0;
}

.news-date {
  font-size: 12px;
  color: var(--secondary-color);
}

.news-abstract {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .banner-container {
    flex-direction: column;
    gap: 15px;
    padding: 10px;
  }

  .banner-media {
    flex: none;
    aspect-ratio: 16/9;
  }

  .news-list {
    gap: 10px;
  }

  .news-list__item {
    padding: 10px;
  }

  .banner-indicators {
    bottom: 10px;
    left: 10px;
  }

  .banner-indicator {
    width: 10px;
    height: 10px;
  }

  /* 移动端隐藏悬停效果 */
  .news-list__item:hover {
    transform: none;
  }
}