/* 新闻模块样式 */

.news-bg {
  background-color: transparent; /* 背景透明 */
  background-image: url('../igame/module/news.png'); /* 替换为你的图片路径 */
  background-size: 100% 100%; /* 关键：完整显示图片，不裁剪 */ 
  background-position: center; /* 图片居中显示，确保核心内容可见 */
  /*background-attachment: fixed; /* 固定背景，滚动时不移动（与fixed定位配合更稳定） */
  background-repeat: no-repeat; /* 避免图片重复平铺 */
  position: relative;
}
/* 新闻模块 - 仅轮播图版本 */
.news-section {
    padding: 80px 0;
    background-color: white;
    display: flex;
    justify-content: center;
}

.news-container {
    max-width: 1000px;
    width: 100%;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.news-title {
    text-align: center;
    margin-bottom: 50px;
    width: 100%;
}

.news-title h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
}

.news-title .separator {
    width: 60px;
    height: 3px;
    background-color: #3b82f6;
    margin: 0 auto 15px;
}

.news-subtitle {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 轮播图样式 */
.news-carousel {
    margin-top: 20px;
    position: relative;
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 300px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    padding: 25px;
    color: white;
}

.carousel-content h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.carousel-content p {
    margin-bottom: 15px;
    opacity: 0.9;
    font-size: 1rem;
    line-height: 1.5;
}

.carousel-content .carousel-read-more {
    display: inline-block;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    background-color: rgba(59, 130, 246, 0.8);
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.carousel-content .carousel-read-more:hover {
    background-color: rgba(59, 130, 246, 1);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.05);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    margin: 0 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: #3b82f6;
    transform: scale(1.2);
}

/* 轮播图信息展示 */
.carousel-info {
    margin-top: 30px;
    text-align: center;
    max-width: 700px;
    padding: 0 20px;
}

.carousel-current-title {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 12px;
    font-weight: 600;
}

.carousel-current-excerpt {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

.view-all-container {
    text-align: center;
    margin-top: 40px;
    width: 100%;
}

.view-all-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(59, 131, 246, 0);
}

.view-all-btn:hover {
    background-color: #000000;
    color: #ffee00;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-section {
        padding: 60px 0;
    }
    
    .news-title h2 {
        font-size: 2rem;
    }
    
    .carousel-container {
        height: 350px;
    }
    
    .carousel-content {
        padding: 20px;
    }
    
    .carousel-content h3 {
        font-size: 1.4rem;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
    }
    
    .carousel-info {
        margin-top: 25px;
    }
    
    .carousel-current-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .news-title h2 {
        font-size: 1.8rem;
    }
    
    .carousel-container {
        height: 300px;
        border-radius: 8px;
    }
    
    .carousel-content h3 {
        font-size: 1.2rem;
    }
    
    .carousel-content p {
        font-size: 0.9rem;
    }
    
    .carousel-nav {
        width: 35px;
        height: 35px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .carousel-info {
        margin-top: 20px;
    }
    
    .carousel-current-title {
        font-size: 1.1rem;
    }
    
    .view-all-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}