/**
 * Free Mini Games - Complete Left Alignment Fix
 * Final solution for navigation alignment issues
 * 2024-04-02
 */

/* 重置基本元素边距 */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

/* 固定容器宽度和边距 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* 头部导航区域样式 */
.site-header {
    background-color: #1a1a1a;
    width: 100%;
    box-sizing: border-box;
}

/* 分类导航区域样式 */
.categories-nav {
    background-color: #1e1e1e;
    width: 100%;
    padding: 15px 0;
    box-sizing: border-box;
    border-bottom: 1px solid #333;
}

/* 游戏区域样式 */
.game-section {
    width: 100%;
    box-sizing: border-box;
}

/* 分类列表样式 */
.categories-list {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.categories-list::-webkit-scrollbar {
    display: none;
}

/* 分类列表项样式 */
.categories-list li {
    margin: 0 6px;
    padding: 0;
}

.categories-list li:first-child {
    margin-left: 0;
    padding-left: 0;
}

/* 分类按钮样式 */
.categories-list button {
    background-color: #2a2a2a;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 90px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.categories-list button:hover {
    background-color: #3a3a3a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.categories-list button.active {
    background-color: #0078D7;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 120, 215, 0.4);
}

/* 完全禁用所有可能造成边距的伪元素 */
.categories-nav:before,
.categories-nav:after,
.categories-list:before,
.categories-list:after,
.categories-list li:before,
.categories-list li:after,
.categories-list button:before,
.categories-list button:after {
    display: none !important;
    content: none !important;
}

/* 移动设备适配 */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .categories-list button {
        padding: 8px 15px;
        min-width: 80px;
        font-size: 13px;
    }
    
    .categories-list li {
        margin: 0 4px;
    }
}

@media (max-width: 576px) {
    .categories-list button {
        padding: 7px 12px;
        min-width: 65px;
        font-size: 12px;
    }
    
    .categories-list li {
        margin: 0 3px;
    }
} 