
:root {
    --bcg-bg-dark: #191424; /* 主背景深紫色/黑色 */
    --bcg-bg-light: #241d34; /* 侧边栏/卡片背景 */
    --bcg-text-light: #ffffff;
    --bcg-accent-purple: #906ad3; /* Logo 和部分高亮紫色 */
    --bcg-accent-green: #37a77d; /* 徽章/高亮绿色 */
    --bcg-text-muted: #8c8898; /* 搜索框和部分图标颜色 */
    --bcg-font-stack: 'Arial', sans-serif;
}

/* --- 2. PC 端默认布局 (Flex) --- */
body {
    font-family: var(--bcg-font-stack);
    margin: 0;
    padding: 0;
    background-color: var(--bcg-bg-dark);
    color: var(--bcg-text-light);
    display: flex; /* PC 端：启用 Flex 布局 */
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: var(--bcg-text-light);
    transition: color 0.2s;
}

/* --- 3. 侧边栏 (Sidebar - PC Only) --- */
.bcg-sidebar {
    background-color: var(--bcg-bg-light);
    padding: 15px 0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
    z-index: 100;
}

.bcg-sidebar-logo {
    padding: 0 15px 15px;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    color: var(--bcg-text-light);
}

.bcg-sidebar-logo i {
    font-size: 30px;
    color: var(--bcg-accent-purple);
    margin-right: 5px;
    font-style: normal;
}

.bcg-nav-section {
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bcg-nav-item a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    font-size: 15px;
    font-weight: 500;
    color: var(--bcg-text-light);
    transition: background-color 0.2s;
}

.bcg-nav-item a:hover, .bcg-nav-item.bcg-active a {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--bcg-accent-purple);
}

.bcg-nav-item i {
    margin-right: 10px;
    font-size: 18px;
    width: 20px;
    text-align: center;
    font-style: normal;
}

/* --- 4. 主内容区域 (Main Content) --- */
.bcg-main-wrapper {
    flex-grow: 1;
    padding: 20px 30px 50px;
    background-color: var(--bcg-bg-dark);
}

/* PC 顶部 Header/Search Bar */
.bcg-top-header {
    display: flex;
    justify-content: flex-end; /* 搜索框靠右 */
    align-items: center;
    margin-bottom: 25px;
}

.bcg-top-search {
    width: 361px;
    background-color: rgb(55 57 82 / var(--tw-bg-opacity, 1));
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 10px;
    margin-right: 20px; /* 与右侧图标留空 */
}

.bcg-top-search input {
    flex-grow: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--bcg-text-light);
    padding: 10px 0;
    font-size: 15px;
}

.bcg-top-search button {
    background: none;
    border: none;
    color: var(--bcg-text-muted);
    cursor: pointer;
    font-size: 18px;
}

/* 游戏网格 */
.bcg-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

/* 游戏卡片 */
.bcg-game-card {
    background-color: var(--bcg-bg-dark);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.bcg-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
}

.bcg-card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.bcg-game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bcg-card-info {
    padding: 10px;
    text-align: center;
}

.bcg-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--bcg-text-light);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- 5. 网站描述和特色 (Footer Area) --- */
.bcg-footer-section {
    background-color: var(--bcg-bg-light);
    padding: 30px;
    margin-top: 40px;
    border-radius: 8px;
}

.bcg-footer-section h2 {
    font-size: 24px;
    color: var(--bcg-text-light);
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: bold;
}

.bcg-features-list li i {
    color: var(--bcg-accent-green);
    margin-right: 10px;
    font-weight: bold;
    font-style: normal;
}

/* --- 6. 移动端元素 (默认隐藏) --- */
.bcg-mobile-header {
    display: none;
    background-color: var(--bcg-bg-light);
    padding: 10px 15px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    z-index: 10;
}

.bcg-mobile-logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--bcg-text-light);
}

.bcg-mobile-logo i {
    color: var(--bcg-accent-purple);
    font-size: 30px;
    margin-right: 5px;
    font-style: normal;
}

/* Featured Cards Wrapper (用于横向滚动) */
.bcg-featured-wrapper {
    /* 默认 PC 端不需要特殊滚动，但在移动端会被覆盖 */
}

.bcg-main-games-grid {
    /* 默认 PC 端：两列布局 */
    display: grid;
    grid-template-columns: minmax(180px, 200px) 1fr;
    gap: 20px;
}
#bcg-top-search{
    display: none;
}

/* --- 7. 响应式调整 (Mobile Layout) --- */
@media (max-width: 768px) {
    /* 主体布局切换为块级 */
    body {
        display: block;
    }
    #bcg-top-search{
        display: block;
    }

    /* PC 元素隐藏 */
    .bcg-sidebar, .bcg-top-header {
        display: none;
    }

    .bcg-sidebar-logo {
        display: none;
    }

    /* 移动端 Header 显示 */
    .bcg-mobile-header {
        display: flex;
    }

    /* 主内容区域调整 */
    .bcg-main-wrapper {
        padding: 15px;
    }

    /* 调整通用网格为适应手机屏幕的列数 */
    .bcg-game-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }

    /* 顶部特色卡片：启用横向滚动 (仿照截图) */
    .bcg-featured-wrapper {
        overflow-x: scroll;
        overflow-y: hidden;
        white-space: nowrap; /* 强制子元素保持一行 */
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        margin: 0 -15px 20px -15px; /* 扩展到边缘 */
        padding-left: 15px;
    }

    .bcg-featured-wrapper::-webkit-scrollbar {
        display: none; /* 隐藏 Webkit 浏览器的滚动条 */
    }

    .bcg-featured-wrapper > .bcg-game-card {
        width: 160px; /* 固定宽度，确保滚动 */
        flex-shrink: 0; /* 防止压缩 */
        margin-right: 15px; /* 卡片间距 */
        display: inline-block;
        white-space: normal;
    }

    /* 底部两列游戏网格：堆叠 */
    .bcg-main-games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* 描述/特色区域调整 */
    .bcg-footer-section {
        padding: 20px;
        margin-top: 30px;
    }
}
.bcg-horizontal-scroll{
    margin-right: 17px;
}