/* 水平标签导航 */
.horizontal-tabs {
    display: flex;
    width: 100%;
    justify-content: space-around;
    background-color: var(--secondary-color);
    margin-bottom: 15px;
    /* height: 4.75rem;  */
}

/* 标签样式 */
.tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

.tab:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.tab.active {
    color: var(--active-color, --active-color);
}

/* 激活标签中的span元素颜色 */
.tab.active span {
    color: var(--text-color);
}

/* 标签图标样式 */
.tab-icon {
    font-size: 50px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px; /* 修改为50px，与font-size一致 */
    width: 50px; /* 添加宽度确保图标居中 */
    margin-left: auto; /* 水平居中 */
    margin-right: auto;
}
.tab-icon svg{
    width: 100%;
    height: 100%;
    object-fit: contain;
    fill: var(--secondary-color);
}

/* 标签文字样式 */
.tab span:not(.tab-icon) {
    font-size: 12px;
    font-weight: 500;
    display: block; /* 确保文字独占一行 */
    text-align: center; /* 文字居中 */
    margin-top: 5px; /* 增加与图标的间距 */
    color: inherit; /* 继承父元素颜色 */
}
