/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #1a1a1a;
    color: #fff;
}

/* 头部样式 */
.header {
    background-color: #000;
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    border-bottom: 1px solid #333;
}

.logo {
    margin-bottom: 0;
    margin-right: 0;
}

.logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
    justify-content: center;
    width: auto;
    margin-left: auto;
    margin-right: auto;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 3rem;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-menu a:hover {
    color: #ffd700;
    background-color: rgba(255, 255, 255, 0.1);
}

/* 主要内容区域 */
.main-content {
    margin-top: 120px;
    padding: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* 游戏标题区域 */
.game-title-section {
    margin-bottom: 2rem;
    width: 100%;
}

.game-section-wrapper {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.featured-game {
    background-color: #1a0f2a;
    border-radius: 10px;
    padding: 0;
    width: 80%;
    position: relative;
    overflow: hidden;
    border: 2px solid #33204d;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
}

.featured-game-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
}

.featured-game iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.featured-game img {
    width: 100%;
    max-height: 60%;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.featured-game h1 {
    font-size: 1.8rem;
    color: #e83cff;
    margin-bottom: 1rem;
}

.play-button {
    background-color: #9932CC;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-button:hover {
    background-color: #8A2BE2;
    transform: scale(1.05);
}

.play-icon {
    margin-right: 0.5rem;
}

.games-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, auto);
    gap: 15px;
    margin-bottom: 2rem;
    width: 20%;
}

.game-card {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 3/2;
    transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.game-card:hover img {
    transform: scale(1.05);
}

.game-link {
    display: block;
    height: 100%;
    width: 100%;
    position: relative;
}

@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: 1fr;
    }
}

@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, auto);
    }
    
    .game-section-wrapper {
        flex-direction: column;
    }
    
    .featured-game {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .games-grid {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, auto);
    }
}

.game-status {
    color: #fff;
}

/* 游戏介绍区域 */
.game-intro-section {
    background-color: #222;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.game-intro-section h2 {
    color: #ffd700;
    margin-bottom: 1rem;
}

/* 游戏玩法区域 */
.gameplay-section {
    background-color: #222;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.gameplay-section h2 {
    color: #ffd700;
    margin-bottom: 1.5rem;
}

.gameplay-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.gameplay-content h3 {
    color: #ffd700;
    margin-bottom: 1rem;
}

.gameplay-content ul {
    list-style: none;
}

.gameplay-content li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.gameplay-content li::before {
    content: "•";
    color: #ffd700;
    position: absolute;
    left: 0;
}

/* 游戏特色区域 */
.features-section {
    background-color: #222;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.features-section h2 {
    color: #ffd700;
    margin-bottom: 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background-color: #333;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.feature-card h3 {
    color: #ffd700;
    margin-bottom: 1rem;
}

/* FAQ区域 */
.faq-section {
    background-color: #222;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.faq-section h2 {
    color: #ffd700;
    margin-bottom: 1.5rem;
}

.faq-list {
    display: grid;
    gap: 1.5rem;
}

.faq-item {
    background-color: #333;
    padding: 1.5rem;
    border-radius: 8px;
}

.faq-item h3 {
    color: #ffd700;
    margin-bottom: 1rem;
}

/* 游戏视频区域 */
.videos-section {
    background-color: #222;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.videos-section h2 {
    color: #ffd700;
    margin-bottom: 1.5rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.video-card {
    background-color: #333;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.video-card h3 {
    color: #fff;
}

/* 玩家评论区域 */
.comments-section {
    background-color: #222;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.comments-section h2 {
    color: #ffd700;
    margin-bottom: 1.5rem;
}

.comments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.comment-card {
    background-color: #333;
    padding: 1.5rem;
    border-radius: 8px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.username {
    color: #ffd700;
    font-weight: bold;
}

.role {
    color: #999;
    font-size: 0.9rem;
}

/* 推荐游戏区域 */
.recommended-games-section {
    background-color: #222;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    text-align: center;
}

.section-title {
    margin-bottom: 1.5rem;
    text-align: center;
}

.featured-games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 95%;
}

.featured-card {
    position: relative;
    height: 150px;
    overflow: hidden;
}

.game-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 10px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s;
}

.game-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.play-button-mini {
    background-color: #6b46c1;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
}

.game-card:hover .play-button-mini {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .featured-games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .featured-games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .featured-games-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .featured-game {
        aspect-ratio: 4/3;
        height: auto;
    }
}

@media (max-width: 768px) {
    .featured-game {
        aspect-ratio: 4/3;
        height: auto;
    }
}

@media (max-width: 480px) {
    .featured-game {
        aspect-ratio: 4/3;
        height: auto;
    }
}

/* 页脚样式 */
.footer {
    background-color: #000;
    color: #fff;
    padding: 1rem;
    text-align: center;
    margin-top: 2rem;
    border-top: 1px solid #333;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 1rem;
}

.footer-links a:hover {
    color: #ffd700;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        padding: 1rem;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        margin-top: 1rem;
    }

    .main-content {
        padding: 1rem;
        margin-top: 120px;
    }

    .game-title-section {
        padding: 2rem 0;
    }

    .game-title-section h1 {
        font-size: 2rem;
    }

    .gameplay-content {
        grid-template-columns: 1fr;
    }
} 