/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
header {
    background-color: #2c3e50;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.logo span {
    margin-left: 10px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

nav ul li a:hover {
    color: #3498db;
}

.search-box {
    display: flex;
    margin-left: 20px;
}

.search-box input {
    padding: 8px;
    border: none;
    border-radius: 4px 0 0 4px;
    width: 200px;
}

.search-box button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* 主要内容区域 */
main {
    padding: 30px 0;
    min-height: calc(100vh - 180px);
}

/* 面包屑导航 */
.breadcrumb {
    background-color: #fff;
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumb span {
    margin: 0 5px;
    color: #999;
}

/* 家页样式 */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 30px;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

.featured-games {
    margin-bottom: 40px;
}

.section-title {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 24px;
}

.section-title i {
    margin-right: 10px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.game-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.game-card .card-content {
    padding: 15px;
}

.game-card h3 {
    margin-bottom: 10px;
}

.game-card p {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.game-card .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.game-card .tag {
    background-color: #f1f1f1;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
}

/* 游戏导航预览部分 */
.game-nav-preview {
    margin-bottom: 40px;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.preview-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.preview-category {
    margin-bottom: 15px;
}

.preview-category h3 {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #3498db;
}

.preview-category h3 i {
    margin-right: 10px;
}

.preview-category ul {
    list-style: none;
}

.preview-category ul li {
    margin-bottom: 8px;
}

.preview-category ul li a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.preview-category ul li a:hover {
    color: #3498db;
}

.preview-category ul li a i {
    margin-right: 8px;
    font-size: 14px;
}

.preview-more {
    text-align: center;
    margin-top: 20px;
}

/* 栏目页样式 */
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.category-header h1 {
    display: flex;
    align-items: center;
}

.category-header h1 i {
    margin-right: 10px;
}

.category-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.post-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card .card-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.post-card p {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
    flex-grow: 1;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 12px;
}

/* 文章页样式 */
.article-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.article-main {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.article-header {
    margin-bottom: 20px;
}

.article-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.article-meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 20px;
}

.article-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.article-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.article-content h2 {
    margin: 30px 0 15px;
}

.article-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.article-tags .tag {
    background-color: #f1f1f1;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
}

.article-author {
    display: flex;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.article-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
}

.article-author-info h4 {
    margin-bottom: 5px;
}

.article-author-info p {
    color: #666;
    font-size: 14px;
}

.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sidebar-widget h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 18px;
}

.related-posts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.related-post {
    display: flex;
    gap: 10px;
}

.related-post img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.related-post-content h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.related-post-content span {
    font-size: 12px;
    color: #999;
}

.categories-list {
    list-style: none;
}

.categories-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.categories-list li:last-child {
    border-bottom: none;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.categories-list a:hover {
    color: #3498db;
}

.categories-list .count {
    background-color: #f1f1f1;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

/* 注册页面样式 */
.auth-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-actions .btn {
    padding: 12px 24px;
}

.form-actions .link {
    color: #3498db;
    text-decoration: none;
}

/* 导航页样式 */
.nav-page {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.nav-main {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.nav-category {
    background-color: #f9f9f9;
    border-radius: 6px;
    padding: 15px;
    transition: transform 0.3s;
}

.nav-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.nav-category h3 {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #3498db;
}

.nav-category h3 i {
    margin-right: 10px;
}

.nav-category ul {
    list-style: none;
}

.nav-category ul li {
    margin-bottom: 8px;
}

.nav-category ul li a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.nav-category ul li a:hover {
    color: #3498db;
}

.nav-category ul li a i {
    margin-right: 8px;
    font-size: 14px;
}

.nav-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.why-us {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.why-us h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.features {
    list-style: none;
}

.features li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: flex-start;
}

.features li:last-child {
    border-bottom: none;
}

.features li i {
    color: #3498db;
    margin-right: 10px;
    margin-top: 5px;
}

.faq {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.faq h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.faq-item {
    margin-bottom: 15px;
}

.faq-question {
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 10px 0;
    color: #666;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* 页脚样式 */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 30px 0;
}

.footer-content {
    justify-content: center;
    justify-items: center;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #3498db;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #34495e;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: #3498db;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    text-align: center;
    font-size: 14px;
    color: #bbb;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .article-container {
        grid-template-columns: 1fr;
    }

    .nav-page {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
    }

    nav ul li {
        margin: 5px 10px 5px 0;
    }

    .search-box {
        margin: 15px 0 0 0;
        width: 100%;
    }

    .search-box input {
        width: 100%;
    }

    .mobile-menu {
        display: block;
        position: absolute;
        right: 15px;
        top: 15px;
    }

    nav {
        display: none;
        width: 100%;
    }

    nav.active {
        display: block;
    }

    .hero {
        height: 300px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .games-grid,
    .category-posts,
    .preview-categories {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* 页面切换样式 */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* 分页导航 */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 30px 0;
}

.pagination a {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    background-color: white;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

.pagination a:hover {
    background-color: #f5f5f5;
}

.pagination a.active {
    background-color: #3498db;
    color: white;
}

/* 评论模块 */
        .comments-section {
            margin-top: 40px;
            padding-top: 20px;
            border-top: 1px solid #eee;
        }

        .comments-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .comments-header h3 {
            font-size: 20px;
        }

        .comment-form {
            margin-bottom: 30px;
        }

        .comment-form textarea {
            width: 100%;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 4px;
            resize: vertical;
            min-height: 100px;
            margin-bottom: 10px;
        }

        .comment-form-actions {
            display: flex;
            justify-content: flex-end;
        }

        .comment-form-actions button {
            background-color: #3498db;
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 4px;
            cursor: pointer;
        }

        .comments-list {
            margin-top: 30px;
        }

        .comment-item {
            padding: 15px;
            background-color: #f9f9f9;
            border-radius: 8px;
            margin-bottom: 15px;
        }

        .comment-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
        }

        .comment-author {
            font-weight: bold;
        }
        .comment-date {
            color: #999;
            font-size: 12px;
        }

        .comment-content {
            color: #333;
        }
          .article-image {
            width: 100%;
            height: auto;
            max-height: 600px;
            object-fit: cover;
            border-radius: 8px;
            margin-bottom: 20px;
        }

