/* ===== 首页样式 ===== */

/* Banner轮播 */
.banner-section {
  margin-bottom: 24px;
}

.banner-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  height: 280px;
}

.banner-main {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #1a1a1a;
}

.banner-main .banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s;
}

.banner-main .banner-slide.active {
  opacity: 1;
}

.banner-main img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.banner-main .banner-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
  padding: 6px 14px;
  background: rgba(0,0,0,0.4);
  border-radius: 16px;
}

.banner-main .banner-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
}

.banner-main .banner-dots span.active {
  background: #e74c3c;
  width: 28px;
  border-radius: 5px;
}

.banner-main .banner-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 24px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  z-index: 1;
}

.banner-main .banner-info h3 {
  font-size: 22px;
  color: #fff;
  margin-bottom: 4px;
}

.banner-main .banner-info p {
  font-size: 13px;
  color: #bbb;
}

.banner-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.banner-side-item {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #1a1a1a;
}

.banner-side-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.banner-side-item:hover img {
  transform: scale(1.05);
}

.banner-side-item .banner-side-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 14px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.banner-side-item .banner-side-info h4 {
  font-size: 15px;
  color: #fff;
}

.banner-side-item .banner-side-info p {
  font-size: 12px;
  color: #bbb;
  margin-top: 4px;
}

/* 今日更新 */
.today-update {
  background: #1a1a1a;
  border-radius: 10px;
  padding: 20px;
  margin-top: 24px;
  margin-bottom: 28px;
  position: relative;
  z-index: 10;
}

.today-update h3 {
  font-size: 17px;
  color: #fff;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.today-update h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: #e74c3c;
  border-radius: 2px;
}

.today-update h3 em {
  color: #e74c3c;
  font-style: normal;
}

.update-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 28px;
}

.update-list li {
  font-size: 14px;
  line-height: 2.2;
  border-bottom: 1px dashed #2a2a2a;
  display: flex;
  align-items: center;
}

.update-list li a {
  color: #ccc;
  transition: color 0.2s;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.update-list li a:hover {
  color: #e74c3c;
}

.update-list li .update-tag {
  color: #e74c3c;
  font-size: 12px;
  margin-right: 8px;
  min-width: 24px;
}

.update-list li .update-type {
  color: #666;
  font-size: 12px;
  margin-left: 8px;
  white-space: nowrap;
}

/* 分类区块 */
.category-section {
  margin-bottom: 32px;
}

/* 响应式 */
@media (max-width: 768px) {
  .banner-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .banner-main {
    height: 260px;
  }

  .banner-side {
    flex-direction: row;
    height: 160px;
  }

  .banner-side-item {
    flex: 1;
  }

  .update-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .banner-main {
    height: 220px;
  }

  .banner-side {
    height: 120px;
  }

  .banner-main .banner-info h3 {
    font-size: 18px;
  }
}
