/* 全局重置+基础样式：精简冗余，提升渲染性能 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft Yahei", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6; /* 提升文字可读性，利于SEO */
    color: #333;
	background-color: #f8f9fa;
	
    
}

/* 主体容器：适配不同屏幕 */
.index_body {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 顶部导航：优化布局+交互，提升用户体验 */
.index_top {
    background-color: #2c3e50;
    padding: 15px 0;
    margin-bottom: 30px;
    border-radius: 8px;
}

.index_top_li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Logo样式：适配移动端 */
.index_logo img {
    display: block;
    max-width: 100%;
    height: auto;
}



/* 核心内容区：优化排版，提升可读性 */
.container {
    padding: 20px 0;
}

.main-title {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 2px solid #e69800;
    padding-bottom: 10px;
}

.intro {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* 游戏分类区块：语义化样式+响应式 */
.section {
    margin-bottom: 40px;
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.section-title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 20px;
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background-color: #3498db;
}

/* 游戏列表：网格布局，适配多屏幕 */
.game-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* 游戏卡片：优化排版+交互 */
.game {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 6px;
    transition: box-shadow 0.3s ease;
}

.game:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.game-name {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.game-desc {
    color: #666;
    line-height: 1.7;
}

/* 页脚样式：提升页面完整性 */
.index-footer {
    margin-top: 50px;
    padding: 20px 0;
    text-align: center;
    color: #777;
    border-top: 1px solid #eee;
}

.footer-content p {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

/* 响应式适配：移动端优化 */
@media (max-width: 768px) {
    .index_top_li {
        flex-direction: column;
        gap: 15px;
    }

    .index_li ul {
        justify-content: center;
        gap: 10px;
    }

    .main-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .game-list {
        grid-template-columns: 1fr;
    }
}

/* 优化打印样式（可选，提升SEO兼容性） */
@media print {
    .index_top, .index-footer {
        display: none;
    }

    .game {
        border: none;
        padding: 10px 0;
    }
}


* ===================== 顶部导航栏 ===================== */
.index_top {
    width: 100%;
    height: 68px;
    border-bottom: 1px solid #ffffff;
}

.index_top_li {
    width: 960px;
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.index_logo {
    width: 123px;
    height: 40px;
    margin: 17px;
}

.index_li {
    flex: 1;
    height: 68px;
    width: 700px;
    margin-right: 30px;
}

.index_li > ul {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    padding: 0;
    margin: 0;
}

.index_li > ul > li {
    list-style: none;
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.index_li > ul > li > a {
    display: block;
    width: 100%;
    color: #ffffff;
    font-size: 17px;
    font-weight: 500;
    text-align: center;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

/* 顶部导航 hover/激活态 - 橙色下划线 */
.index_li > ul > li > a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: #fb923c;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.index_li > ul > li > a:hover,
.index_li > ul > li > a.active {
    color: #fb923c;
}

.index_li > ul > li > a:hover::after,
.index_li > ul > li > a.active::after {
    width: 80%;
}

/* ===================== 卡片导航样式 ===================== */

/* ===================== 全局链接样式 ===================== */
a:link {
    color: #f8fafc;
    text-decoration: none;
}

a:visited {
    color: #fb923c;
    text-decoration: none;
}

a:hover {
    color: #fb923c;
}

a:active {
    color: #0ea5e9;
    text-decoration: none;
}
