/* assets/css/ct-tabs-style.css */

/* 定义CSS变量 */
:root {
    --ct-border-color: #e0e0e0;
    --ct-active-color: #007bff;
    --ct-hover-bg-color: #f9f9f9;
    --ct-bg-gradient: linear-gradient( 90deg,#131d52, #1d1948, #301037, #420a29, #50061f);
}

/* 全局样式重置，仅限ct-tabs__nav内 */
.ct-tabs__nav *,
.ct-tabs__nav {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 标签导航容器样式 */
.ct-tabs__nav {
    display: flex;
    position: relative;
    overflow-x: auto;
    background-color: #ffffff;
    border-radius: 6px;
    height: 62px;
    background-image: var(--ct-bg-gradient);
}

/* 主题切换: Punk */
:root[data-theme="Punk"] .ct-tabs__nav {
    background-image: var(--ct-bg-gradient);
    border: none;
}

/* 标签链接样式 */
.ct-tab__link {
    text-decoration: none;
    color: inherit;
    flex: 1;
}

/* 标签项目样式 */
.ct-tab {
    display: flex;
    flex-direction: row; /* 确保水平排列 */
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
    padding: 0 16px; /* 调整内边距以适应水平排列 */
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s;
    height: 100%;
}

/* 悬停效果 */
.ct-tab:hover {
    background-color: #007bff; /* 悬停时背景色 */
}
.ct-tab:hover .ct-tab__name {
    color: #FFFFFF; /* 悬停时文字颜色 */
}

/* 标签内容容器样式 */
.ct-tab__content {
    display: flex;
    align-items: center; /* 垂直居中图标和文字 */
    justify-content: center; /* 水平居中 */
}

/* 图标样式 */
.ct-tab__icon {
    width: 24px;
    height: 24px;
    margin-right: 8px; /* 图标和文字之间的间距 */
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    /* 如果使用字体图标，取消以下注释并删除宽度和高度 */
    /* font-size: 24px;
    color: #555555; */
}

/* 标签名称样式 */
.ct-tab__name {
    font-size: 16px;
    color: #FFFFFF;
    font-weight: bold;
}

/* 活动标签样式 */
.ct-tab--active .ct-tab__name {
    color: #FFFFFF;
    font-weight: bold;
}

@media (max-width: 768px) {
    .ct-tabs__nav {
        overflow-x: auto; /* 允许水平滚动 */
        scroll-behavior: smooth; /* 平滑滚动 */
    }
    .ct-tab__link {
        flex: 0 0 auto; /* 独立设置手机版宽度 */
        margin-right: 2px; /* 独立设置间距 */
    }
    }
    .ct-tab__icon {
        width: 28px; /* 手机版图标大小 */
        height: 28px;
        margin: 2px; /* 移除间距 */
        text-align: center; /* 确保文字居中 */
    }

    .ct-tab__name {
        font-size:  16px; /* 手机版文字大小 */
    margin: 0; /* 移除间距 */
        text-align: center; /* 确保文字居中 */
    }
.game-cate-sec {
    padding-bottom: 20px; /* 增加下边距来避免新添加的元素影响布局 */
}
