/* 底部导航栏组件样式 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(28px) saturate(120%);
    -webkit-backdrop-filter: blur(28px) saturate(120%);
    display: flex;
    box-shadow: 0 -18px 60px rgba(0, 0, 0, 0.65);
    z-index: 2000;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    max-width: 750px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 8px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.72);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    user-select: none;
    border-radius: 16px;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 40px;
    height: 3px;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 0 0 3px 3px;
    transition: transform 0.3s;
}

.nav-item.active::before {
    transform: translateX(-50%) scaleX(1);
}

.nav-item.active {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.10);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.nav-item:active {
    transform: scale(0.95);
}

.nav-icon {
    width: 26px;
    height: 26px;
    margin-bottom: 4px;
    transition: transform 0.3s;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.78;
}

.nav-item.active .nav-icon {
    transform: scale(1.1);
    opacity: 1;
}

.nav-text {
    font-size: 11px;
    font-weight: 600;
}

/* 购物车角标 */
.nav-badge {
    position: absolute;
    top: 2px;
    right: 50%;
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.92);
    color: #111111;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

/* 响应式 */
@media (max-width: 375px) {
    .nav-text {
        font-size: 10px;
    }
    
    .nav-icon {
        width: 24px;
        height: 24px;
    }
}
