#iframeContainer {
    width: 1200px;
    margin: 0 auto;
    overflow-x: auto;
    direction: rtl;
    scrollbar-width: thin;
    -webkit-scrollbar-width: thin;
    padding: 0;
}

#iframeWrap {
    direction: ltr;
    display: inline-block;
}
.index-course {height:410px;}

/* 全局样式重置与基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
}
body {
    background: #0a0a0a url(./images/bg.jpg) no-repeat top center;
    background-size: cover;
    color: #fff;
    line-height: 1.8;
    position: relative;
    padding-left: 240px; /* 为侧边目录预留空间 */
}
a {
    text-decoration: none;
    color: #ffd700;
    transition: all 0.3s ease;
}
a:hover {
    color: #ff6600;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 侧边固定目录样式 - 核心新增 */
.sidebar-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    border-right: 3px solid #ff6600;
    padding: 30px 15px;
    z-index: 999;
    overflow-y: auto;
}
.sidebar-logo {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ff660033;
}
.sidebar-logo h2 {
    font-size: 20px;
    color: #ff6600;
    text-shadow: 0 0 8px #ff6600;
}
.sidebar-logo h2 span {
    color: #ffd700;
}
.dir-title {
    font-size: 18px;
    color: #ff6600;
    margin: 20px 0 10px 0;
    padding-left: 10px;
    border-left: 3px solid #ff6600;
}
.dir-list {
    list-style: none;
    padding-left: 10px;
}
.dir-item {
    margin: 10px 0;
}
.dir-link {
    font-size: 16px;
    color: #ccc;
    display: block;
    padding: 8px 10px;
    border-radius: 4px;
}
.dir-link:hover, .dir-link.active {
    background: #ff6600;
    color: #000;
}
/* 移动端隐藏侧边目录，显示汉堡按钮 */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: #ff6600;
    color: #000;
    text-align: center;
    line-height: 40px;
    font-size: 20px;
    border-radius: 5px;
    z-index: 1000;
    cursor: pointer;
}

/* 头部样式 - 优化适配侧边目录 */
header {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px 0;
    border-bottom: 3px solid #ff6600;
}
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-nav ul {
    display: flex;
    list-style: none;
}
.top-nav li {
    margin: 0 15px;
}
.top-nav a {
    font-size: 18px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
}
.top-nav a.active {
    background: #ff6600;
    color: #000;
}

/* 核心banner区域 */
.banner {
    height: 500px;
    background: url(./images/banner.jpg) no-repeat center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.banner-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}
.banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
}
.banner-content h2 {
    font-size: 48px;
    color: #ff6600;
    margin-bottom: 20px;
    text-shadow: 0 0 15px #ff6600;
}
.banner-content p {
    font-size: 24px;
    margin-bottom: 30px;
    color: #fff;
}
.banner-btn {
    display: inline-block;
    padding: 15px 40px;
    background: #ff6600;
    color: #000;
    font-size: 20px;
    font-weight: bold;
    border-radius: 8px;
    box-shadow: 0 0 10px #ff6600;
}

/* 游戏分类区域 - 添加锚点ID */
.game-cate {
    padding: 50px 0;
    background: rgba(0, 0, 0, 0.7);
    margin: 30px 0;
    border-radius: 10px;
}
.section-title {
    text-align: center;
    font-size: 30px;
    color: #ff6600;
    margin-bottom: 40px;
    position: relative;
}
.section-title::after {
    content: "";
    display: block;
    width: 100px;
    height: 3px;
    background: #ff6600;
    margin: 10px auto;
}
.cate-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.cate-item {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ff6600;
    text-align: center;
    transition: transform 0.3s ease;
}
.cate-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px #ff6600;
}
.cate-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #ffd700;
}
.cate-item p {
    color: #ccc;
    margin-bottom: 20px;
}

/* 最新发布区域 - 添加锚点ID */
.game-release {
    padding: 50px 0;
}
.release-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.release-item {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ff6600;
}
.release-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.release-content {
    padding: 20px;
}
.release-content h4 {
    font-size: 20px;
    color: #ff6600;
    margin-bottom: 10px;
}
.release-content .tags {
    display: flex;
    flex-wrap: wrap;
    margin: 10px 0;
}
.release-content .tag {
    font-size: 12px;
    padding: 3px 8px;
    background: #ff6600;
    color: #000;
    border-radius: 3px;
    margin-right: 8px;
    margin-bottom: 8px;
}
.release-content p {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 15px;
}
.release-content .time {
    color: #999;
    font-size: 12px;
}

/* 玩家攻略区域 - 添加锚点ID */
.game-guide {
    padding: 50px 0;
    background: rgba(0, 0, 0, 0.7);
    margin: 30px 0;
    border-radius: 10px;
}
.guide-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}
.guide-item {
    display: flex;
    gap: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ff6600;
}
.guide-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}
.guide-content h4 {
    font-size: 20px;
    color: #ffd700;
    margin-bottom: 10px;
}
.guide-content p {
    color: #ccc;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 玩家问答区域 - 新增模块，丰富目录内容 */
.game-qna {
    padding: 50px 0;
    background: rgba(0, 0, 0, 0.7);
    margin: 30px 0;
    border-radius: 10px;
}
.qna-list {
    max-width: 800px;
    margin: 0 auto;
}
.qna-item {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid #ff6600;
    margin-bottom: 20px;
}
.qna-item h4 {
    font-size: 18px;
    color: #ffd700;
    margin-bottom: 10px;
}
.qna-item p {
    color: #ccc;
    font-size: 14px;
}

/* 底部样式 */
footer {
    background: rgba(0, 0, 0, 0.9);
    padding: 40px 0;
    border-top: 3px solid #ff6600;
    margin-top: 50px;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.footer-col {
    width: 25%;
    margin-bottom: 20px;
}
.footer-col h5 {
    font-size: 18px;
    color: #ff6600;
    margin-bottom: 15px;
    border-bottom: 1px solid #ff6600;
    padding-bottom: 8px;
}
.footer-col ul {
    list-style: none;
}
.footer-col li {
    margin-bottom: 8px;
}
.footer-col a {
    color: #ccc;
    font-size: 14px;
}
.footer-col a:hover {
    color: #ff6600;
}
.copyright {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #333;
    color: #999;
    font-size: 14px;
}

/* 响应式适配 - 适配侧边目录 */
@media (max-width: 1200px) {
    body {
        padding-left: 0;
    }
    .sidebar-nav {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .sidebar-nav.show {
        transform: translateX(0);
    }
    .mobile-menu-btn {
        display: block;
    }
    .container {
        width: 95%;
    }
    .cate-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .release-list {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 15px;
    }
    .top-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .banner {
        height: 300px;
    }
    .banner-content h2 {
        font-size: 32px;
    }
    .banner-content p {
        font-size: 18px;
    }
    .cate-list, .release-list, .guide-list {
        grid-template-columns: 1fr;
    }
    .footer-col {
        width: 50%;
    }
    .guide-item {
        flex-direction: column;
    }
    .guide-img {
        width: 100%;
    }
}

/* 平滑滚动 - 锚点跳转更丝滑 */
html {
    scroll-behavior: smooth;
}