/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    color: #333;
    background-color: #f5f5f5;
    line-height: 1.6;
}

.container {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #007bff;
}

.section-title p {
    font-size: 18px;
    color: #666;
}

/* 顶部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo {
    max-width: 150px;
}

.nav ul {
    display: flex;
}

.nav ul li {
    margin-left: 30px;
}

.nav ul li a {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    position: relative;
}

.nav ul li a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #007bff;
    transition: all 0.3s ease;
}

.nav ul li a:hover:after,
.nav ul li a.active:after {
    width: 100%;
}

/* 主视觉区域 */
.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
}

.slide-content {
    position: absolute;
    left: 10%;
    z-index: 10;
    max-width: 600px;
    color: #fff;
}

.slide-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.7);
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: #fff;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background-color: #007bff;
}

/* 游戏展示区 */
.games-section {
    padding: 100px 5%;
    background-color: #fff;
}

.games-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.game-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.game-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.game-info {
    padding: 20px;
}

.game-info h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.game-info p {
    color: #666;
    margin-bottom: 15px;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
}

.game-tags span {
    display: inline-block;
    padding: 5px 10px;
    background-color: #f0f0f0;
    border-radius: 20px;
    font-size: 14px;
    margin-right: 10px;
    margin-bottom: 10px;
}

/* 新闻资讯区 */
.news-section {
    padding: 100px 5%;
    background-color: #f5f5f5;
}

.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.news-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.news-info {
    padding: 20px;
}

.news-date {
    display: inline-block;
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
}

.news-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.news-info p {
    color: #666;
}

/* 关于我们 */
.about-section {
    padding: 100px 5%;
    background-color: #fff;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.feature {
    text-align: center;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 10px;
}

.feature h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #007bff;
}

.feature p {
    margin-bottom: 0;
    font-size: 14px;
}

/* 底部区域 */
.footer {
    background-color: #222;
    color: #fff;
    padding: 60px 5% 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-column h4 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
}

.footer-column h4:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #007bff;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #aaa;
    font-size: 14px;
}

.footer-column ul li a:hover {
    color: #007bff;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #007bff;
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .about-features {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 5%;
    }
    
    .nav ul li {
        margin-left: 15px;
    }
    
    .slide-content h2 {
        font-size: 36px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .section-title h2 {
        font-size: 30px;
    }
    
    .games-container,
    .news-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        margin: 20px 0;
    }
}

@media (max-width: 576px) {
    .nav {
        display: none;
    }
    
    .slide-content {
        left: 5%;
        max-width: 90%;
    }
    
    .slide-content h2 {
        font-size: 28px;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .section-title p {
        font-size: 16px;
    }
}
