/* 底部导航样式 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    border-top: 1px solid #e0e0e0;
    z-index: 100;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item:hover {
    background-color: #f8f9fa;
}

.nav-item.active {
    color: #28a745;
}

.nav-item.active .nav-icon {
    background: #28a745;
    color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 16px;
    transform: scale(1.1);
}

.nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
}

.nav-item span {
    font-size: 12px;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .nav-item {
        padding: 6px 0;
    }
    
    .nav-icon {
        width: 22px;
        height: 22px;
        font-size: 18px;
    }
    
    .nav-item.active .nav-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
        background: #28a745;
        color: white;
    }
    
    .nav-item span {
        font-size: 11px;
    }
}

/* 动画效果 */
@keyframes navPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.nav-item.active .nav-icon {
    animation: navPulse 0.3s ease-out;
}

/* 安全区域适配（iPhone X等设备） */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .bottom-nav {
        padding-bottom: env(safe-area-inset-bottom);
    }
}
