/**
 * 统一底部导航样式 - 以个人中心为基准，无动画效果
 * 所有页面的底部导航都使用这个样式文件
 * 修改这个文件就能同步更新所有页面的底部导航样式
 */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    /* 防止闪烁的初始状态 */
    opacity: 1;
    transform: translateY(0);
    will-change: opacity, transform;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    padding: 8px 12px;
    position: relative;
    min-width: 60px;
}

.nav-item.active {
    color: #d32f2f;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

.nav-item span {
    font-size: 11px;
    font-weight: 500;
}

/* 响应式设计 - 简化版本 */
@media (max-width: 375px) {
    .nav-item {
        padding: 6px 8px;
        min-width: 50px;
    }

    .nav-item svg {
        width: 20px;
        height: 20px;
    }

    .nav-item span {
        font-size: 10px;
    }
}

@media (min-width: 414px) {
    .nav-item {
        padding: 10px 16px;
        min-width: 70px;
    }

    .nav-item svg {
        width: 26px;
        height: 26px;
    }

    .nav-item span {
        font-size: 12px;
    }
}

/* 确保页面内容不被底部导航遮挡 */
body {
    padding-bottom: 80px;
}

/* 移动端安全区域适配 */
@supports (padding: max(0px)) {
    .bottom-nav {
        padding-bottom: max(8px, env(safe-area-inset-bottom));
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
}
