/* 
 * 静态导航栏样式 - 简洁版本
 * 使用同色系不同深度来表示激活状态
 */

/* 导航栏容器 */
.static-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e8e8e8;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 70px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 0px 0;
}

/* 导航链接 */
.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #999; /* 默认灰色 */
    transition: all 0.2s ease;
    padding: 6px 16px;
    border-radius: 12px;
    min-width: 70px;
    position: relative;
}

/* 导航图标 */
.nav-icon {
    font-size: 30px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

/* 导航文字 */
.nav-text {
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* 页面特定状态 - 首页激活状态 */
.nav-home.active,
.nav-home:active {
    color: #10B981; /* 绿色 */
    background: rgba(16, 185, 129, 0.1);
}

.nav-home:hover {
    color: #059669; /* 深绿色 */
    background: rgba(16, 185, 129, 0.05);
}

/* 页面特定状态 - 约课激活状态 */
.nav-courses.active,
.nav-courses:active {
    color: #3B82F6; /* 蓝色 */
    background: rgba(59, 130, 246, 0.1);
}

.nav-courses:hover {
    color: #1D4ED8; /* 深蓝色 */
    background: rgba(59, 130, 246, 0.05);
}

/* 页面特定状态 - 用户激活状态 */
.nav-user.active,
.nav-user:active {
    color: #F59E0B; /* 橙色 */
    background: rgba(245, 158, 11, 0.1);
}

.nav-user:hover {
    color: #D97706; /* 深橙色 */
    background: rgba(245, 158, 11, 0.05);
}

/* 激活状态的图标稍微放大 */
.nav-link.active .nav-icon {
    transform: scale(1.1);
}

/* 页面内容区域留白 - 为导航栏让出空间 */
body {
    padding-bottom: 70px !important;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .static-bottom-nav {
        height: 70px;
        padding: 0px 0;
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
    }
    
    .nav-link {
        padding: 4px 12px;
        min-width: 60px;
    }
    
    .nav-icon {
        font-size: 20px;
        margin-bottom: 2px;
    }
    
    .nav-text {
        font-size: 11px;
    }
    
    body {
        padding-bottom: 70px !important;
    }
}

@media (max-width: 375px) {
    .nav-link {
        padding: 4px 10px;
        min-width: 55px;
    }
    
    .nav-icon {
        font-size: 18px;
    }
    
    .nav-text {
        font-size: 10px;
    }
}

/* 安全区域适配 */
@supports(padding: max(0px)) {
    .static-bottom-nav {
        padding-bottom: max(8px, env(safe-area-inset-bottom));
    }
    
    body {
        padding-bottom: max(75px, calc(75px + env(safe-area-inset-bottom))) !important;
    }
    
    @media (max-width: 480px) {
        body {
            padding-bottom: max(70px, calc(70px + env(safe-area-inset-bottom))) !important;
        }
    }
}