/* 底部 Tab 导航样式 */
#bottom-tab-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 9999;
}

/* Tab 背景图 - 完整显示不裁剪 */
.tab-background {
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./images/bottomTab/tab_background.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center bottom;
    pointer-events: none;
    z-index: 1;
}

/* Tab 按钮容器 */
.tab-buttons-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 15px 20px;
    box-sizing: border-box;
    z-index: 2;
}

/* 单个 Tab 按钮 */
.tab-item {
    flex: 1;
    max-width: 120px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 3;
}

/* Tab 按钮背景图 */
.tab-item-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

/* 未选中状态背景 */
.tab-item:not(.active) .tab-item-bg {
    background-image: url('./images/bottomTab/tab_noSelect_box.png');
    opacity: 0.7;
}

/* 选中状态背景 */
.tab-item.active .tab-item-bg {
    background-image: url('./images/bottomTab/tab_selected_box.png');
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
}

/* Tab 文字 */
.tab-label {
    position: relative;
    z-index: 2;
    font-size: 15px;
    font-family: "varien", Arial, sans-serif;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    user-select: none;
}

/* 选中状态文字 */
.tab-item.active .tab-label {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8),
        1px 1px 3px rgba(0, 0, 0, 0.6);
    transform: scale(1.05);
}

/* 点击动画 */
.tab-item:active {
    transform: scale(0.95);
}

/* 选中状态的弹跳动画 */
@keyframes tabBounce {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1.05);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.tab-item.active .tab-item-bg {
    animation: tabBounce 0.6s ease-in-out;
}

/* 发光效果 */
@keyframes tabGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.8));
    }
}

.tab-item.active {
    animation: tabGlow 2s ease-in-out infinite;
}

/* 响应式适配 - 小屏幕 */
@media (max-width: 414px) {
    #bottom-tab-container {
        height: 100px;
    }

    .tab-buttons-wrapper {
        padding: 10px 15px;
    }

    .tab-item {
        max-width: 90px;
        height: 70px;
    }

    .tab-label {
        font-size: 13px;
    }
}

@media (max-width: 375px) {
    #bottom-tab-container {
        height: 90px;
    }

    .tab-buttons-wrapper {
        padding: 8px 10px;
    }

    .tab-item {
        max-width: 80px;
        height: 65px;
    }

    .tab-label {
        font-size: 12px;
    }
}

/* 响应式适配 - 大屏幕 */
@media (min-width: 768px) {
    #bottom-tab-container {
        height: 140px;
    }

    .tab-buttons-wrapper {
        padding: 20px 30px;
    }

    .tab-item {
        max-width: 140px;
        height: 90px;
    }

    .tab-label {
        font-size: 17px;
    }
}