/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

/* 容器样式（自适应） */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 导航栏样式 */
.navbar {
    background-color: #222;
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-menu a.active,
.nav-menu a:hover {
    color: #ff6700;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* 海报区域 */
.poster img {
    width: 100%;
    height: auto;
    display: block;
}

/* 两列内容区域 */
.content-section {
    padding: 40px 0;
    background-color: #f5f5f5;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.col-left, .col-right {
    flex: 1;
    min-width: 300px;
}

/* 轮播图样式 */
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.carousel-inner {
    display: flex;
}

.carousel-item {
    width: 100%;
    flex-shrink: 0;
    display: none;
}

.carousel-item.active {
    display: block;
}

.carousel-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* 轮播控制按钮 */
.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.carousel-prev:hover, .carousel-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* 新闻公告样式 */
.news-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 22px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6700;
    display: inline-block;
}

.news-list {
    list-style: none;
}

.news-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.news-list li:last-child {
    border-bottom: none;
}

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

.news-list a:hover {
    color: #ff6700;
}

/* 游戏资料区域 */
.game-data {
    padding: 40px 0;
    background-color: #fff;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.data-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    border-radius: 8px;
    transition: all 0.3s;
}

.data-item:hover {
    background-color: #ff6700;
    color: #fff;
    transform: scale(1.05);
}

/* 游戏截图区域 */
.game-screenshots {
    padding: 40px 0;
    background-color: #f5f5f5;
}

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

.screenshot-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.screenshot-grid img:hover {
    transform: scale(1.03);
}

/* 游戏下载区域 */
.game-download {
    padding: 40px 0;
    background-color: #fff;
    text-align: center;
}

.download-buttons {
    display: flex;
    justify-content: center; /* 单个PC按钮居中 */
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.download-btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: #ff6700;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    transition: background-color 0.3s;
}

.download-btn:hover {
    background-color: #e55a00;
}

.pc-btn {
    background-color: #2196f3;
}

.pc-btn:hover {
    background-color: #0b7dda;
}

/* 联系客服区域（集成稳定的二维码样式，解决微信浏览器布局问题） */
.contact-us {
    padding: 40px 0;
    background-color: #f5f5f5;
}

.contact-info {
    display: flex !important; /* 强制flex布局 */
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
    flex-wrap: nowrap !important; /* 强制不换行（核心：解决微信竖排问题） */
    gap: 40px;
    margin-top: 20px;
    width: 100%;
}

.contact-item {
    flex: 0 0 auto; /* 固定尺寸，不拉伸 */
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
}

.contact-item i {
    font-size: 24px;
    color: #ff6700;
}

/* 微信二维码核心样式（强制横排） */
.wechat-qrcodes {
    display: flex !important; /* 强制flex */
    flex-direction: row !important; /* 强制横向 */
    flex-wrap: nowrap !important; /* 强制不换行 */
    gap: 20px;
    align-items: center;
}

.qrcode-item {
    text-align: center;
    flex: 0 0 auto; /* 固定尺寸 */
}

.qrcode-item img {
    width: 150px;
    height: 150px;
    border: 1px solid #eee;
    padding: 5px;
    border-radius: 8px;
    display: block; /* 避免图片间隙 */
}

.qrcode-item p {
    margin-top: 10px;
    font-size: 16px;
    color: #333;
}

/* 页尾样式 */
.footer {
    background-color: #222;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.footer-links li {
    margin-left: 20px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

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

/* 内容页专属样式（优化版） */
.breadcrumb {
    background-color: #f5f5f5;
    padding: 15px 0;
    font-size: 14px;
    width: 100%;
}

.breadcrumb .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #ff6700;
}

.breadcrumb span {
    color: #333;
    font-weight: bold;
}

.article-content {
    padding: 40px 0;
    background-color: #fff;
    width: 100%;
}

.article-content .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

.article-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.article-title {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
}

.article-meta {
    font-size: 14px;
    color: #666;
}

.article-meta span {
    margin: 0 15px;
}

.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
    padding: 0 5px;
}

.article-body * {
    box-sizing: border-box;
}

.article-body p {
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.article-body h3 {
    font-size: 20px;
    color: #222;
    margin: 30px 0 15px;
    font-weight: 600;
    padding-bottom: 5px;
    border-bottom: 1px solid #f0f0f0;
}

.article-body ul {
    margin-left: 30px;
    margin-bottom: 20px;
    list-style-type: disc;
}

.article-body li {
    margin-bottom: 10px;
    color: #444;
}

.article-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px auto;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.related-articles {
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.related-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    border-radius: 8px;
    transition: all 0.3s;
}

.related-item:hover {
    background-color: #ff6700;
    color: #fff;
    transform: scale(1.05);
}

/* 全局响应式样式（整合所有移动端适配） */
@media (max-width: 768px) {
    /* 导航栏移动端 */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: #222;
        width: 100%;
        height: calc(100vh - 70px);
        padding: 20px;
        transition: left 0.3s;
    }

    .nav-menu.show {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .menu-toggle {
        display: block;
    }

    /* 通用间距调整 */
    .content-section, .game-data, .game-screenshots, .game-download, .contact-us {
        padding: 20px 0;
    }

    /* 客服区域移动端适配（仅超小屏换行） */
    .contact-info {
        flex-wrap: wrap !important;
        flex-direction: column;
        gap: 20px;
    }

    .wechat-qrcodes {
        gap: 15px;
    }

    .qrcode-item img {
        width: 120px;
        height: 120px;
    }

    /* 内容页移动端 */
    .article-title {
        font-size: 24px;
    }

    .article-content {
        padding: 20px 0;
    }

    .article-meta span {
        display: block;
        margin: 10px 0;
    }

    .article-body {
        font-size: 15px;
        line-height: 1.7;
    }

    .article-body ul {
        margin-left: 20px;
    }
}