.news {
  margin: 0;
  padding: 0;
  position: relative;
  top: 100px;
  width: 100%;
  height: 600px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.news h3 {
  text-align: center;
  font-size: 2.5rem;
  color: #ffd700;
  margin-bottom: 30px;
}

.news-main {
  width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 20px;
}

#container {
  width: 800px;
  height: 450px;
  background: rgba(38, 18, 12, 0.62);
  margin: 0;
  padding: 0;
  overflow: hidden;
  position: relative;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

#container img.active {
  opacity: 1;
}

/* 轮播图控制按钮 */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.slider-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

/* 轮播图指示器 */
.slider-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

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

.indicator.active {
  background: #ffd700;
  transform: scale(1.2);
}

.news-content {
  width: 400px;
  height: 450px;
  background: rgba(38, 18, 12, 0.62);
  margin: 0;
  position: relative;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.news-nav {
  list-style: none;
  width: 100%;
  margin: 0;
  padding: 20px 20px 0;
  display: flex;
  align-items: flex-start;
  border-bottom: 3px solid rgba(255, 255, 255, 0.1);
}

.news-nav .nav-item {
  padding: 0 15px 12px;
  font-size: 18px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.news-nav .nav-item-active {
  color: #ffd700;
}

.news-nav .nav-item:hover {
  color: #ffd700;
  opacity: 0.8;
  text-shadow: 0 0 10px #ffd700;
}

.news-nav .nav-item-active::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.news-list {
  list-style: none;
  width: 100%;
  height: calc(100% - 120px);
  margin: 0;
  padding: 20px;
  overflow: hidden;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.list-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(10px);
}

.item-title {
  flex: 1;
  font-size: 16px;
  line-height: 1.4;
  color: #fff;
  padding-right: 15px;
}

.item-data {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

.ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-more {
  position: absolute;
  right: 20px;
  bottom: 20px;
  color: #ffd700;
  font-size: 16px;
  padding: 8px 15px;
  border: 1px solid #ffd700;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.news-more:hover {
  background: #ffd700;
  color: #000;
  opacity: 1;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

@media (max-width: 1280px) {
  .news-main {
    width: 95%;
  }

  #container {
    width: 65%;
  }

  .news-content {
    width: 35%;
  }
}
