/* 首页样式 */

/* Banner区域样式 */
.banner {
    position: relative;
    margin-bottom: 30px;
}

.banner-carousel {
    position: relative;
    height: 480px;
    overflow: hidden;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    color: #fff;
}

.carousel-content h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.carousel-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

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

.indicator.active {
    background: #fff;
}

.banner-notice {
    margin-top: 12px;
    padding: 12px 16px;
    border: 1px solid #ffd08a;
    border-radius: 8px;
    background: #fff7e6;
    color: #8a4b08;
    font-size: 14px;
    line-height: 1.5;
}

/* 新闻资讯模块 */
.news-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0066cc;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.section-nav {
    display: flex;
    gap: 15px;
}

.section-nav a {
    color: #666;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.section-nav a.active {
    color: #0066cc;
    font-weight: bold;
    background: rgba(0,102,204,0.1);
}

.section-nav a:hover {
    color: #0066cc;
}

.section-nav a.more {
    color: #999;
    font-size: 0.9rem;
}

.news-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.news-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-featured {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.news-featured img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.news-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.news-info h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-info h3 a:hover {
    color: #0066cc;
}

.news-info p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.news-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #999;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.news-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.news-item img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
}

.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.sidebar-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-section ul {
    list-style: none;
}

.sidebar-section ul li {
    margin-bottom: 10px;
}

.sidebar-section ul li a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

.sidebar-section ul li a:hover {
    color: #0066cc;
}

/* 游戏攻略模块 */
.guides-section {
    margin-bottom: 40px;
}

.guides-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.guide-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.guide-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.guide-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.guide-card h3 {
    font-size: 1.1rem;
    margin: 15px;
}

.guide-card h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.guide-card h3 a:hover {
    color: #0066cc;
}

.guide-card p {
    color: #666;
    margin: 0 15px 15px;
    line-height: 1.4;
    font-size: 0.95rem;
}

.guide-meta {
    display: flex;
    gap: 10px;
    font-size: 0.85rem;
    color: #999;
    margin: 0 15px 15px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

/* 游戏库模块 */
.games-section {
    margin-bottom: 40px;
}

.games-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.game-card {
    display: flex;
    gap: 15px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.game-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.game-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.game-info {
    flex: 1;
    padding: 15px;
}

.game-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.game-info h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.game-info h3 a:hover {
    color: #0066cc;
}

.game-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.tag {
    background: #f0f0f0;
    color: #666;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.game-info p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
    font-size: 0.95rem;
}

.btn-secondary {
    display: inline-block;
    padding: 8px 16px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background: #e0e0e0;
    color: #0066cc;
}

/* 新游频道模块 */
.new-games-section {
    margin-bottom: 40px;
}

.new-games-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.new-game-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.new-game-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.new-game-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.new-game-card h3 {
    font-size: 1.1rem;
    margin: 15px;
}

.new-game-card h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.new-game-card h3 a:hover {
    color: #0066cc;
}

.new-game-card p {
    color: #666;
    margin: 0 15px 15px;
    line-height: 1.4;
    font-size: 0.95rem;
}

.new-game-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.85rem;
    color: #999;
    margin: 0 15px 15px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

/* 社区论坛模块 */
.community-section {
    margin-bottom: 40px;
}

.community-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.forum-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.forum-post {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.forum-post:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.post-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.post-info h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-info h3 a:hover {
    color: #0066cc;
}

.post-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #999;
}

/* 专题活动模块 */
.special-section {
    margin-bottom: 40px;
}

.special-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.special-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.special-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.special-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.special-info {
    padding: 20px;
}

.special-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.special-info h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.special-info h3 a:hover {
    color: #0066cc;
}

.special-info p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.4;
}

.btn-primary {
    display: inline-block;
    padding: 10px 20px;
    background: #0066cc;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #0052a3;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-content,
    .community-content {
        grid-template-columns: 1fr;
    }
    
    .news-featured {
        flex-direction: column;
    }
    
    .news-featured img {
        width: 100%;
        height: 200px;
    }
    
    .game-card {
        flex-direction: column;
    }
    
    .game-card img {
        width: 100%;
        height: 200px;
    }
    
    .special-content {
        grid-template-columns: 1fr;
    }
    
    .carousel-content h2 {
        font-size: 2rem;
    }
    
    .carousel-content p {
        font-size: 1rem;
    }
    
    .section-nav {
        flex-wrap: wrap;
    }
}