/* 底部导航公用样式 v20250130 */
.bottom-nav {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 8px 24px;
    z-index: 1000;
    transform: scaleY(0.9);
    transform-origin: bottom center;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    color: #666;
    text-decoration: none;
}

.nav-item.active {
    background: transparent;
    color: #007bff;
    transform: scale(1.05);
}

.nav-item.active .nav-icon {
    color: #007bff;
    filter: drop-shadow(0 0 8px rgba(0, 123, 255, 0.6));
}

.nav-item:hover:not(.active) {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

.nav-icon {
    width: 22px;
    height: 22px;
}

.nav-label {
    font-size: 12px;
    font-weight: 500;
}

/* 桌面端隐藏底部导航 */
@media (min-width: 768px) {
    .bottom-nav {
        display: none;
    }
}

/* 深色模式适配 */
.dark .bottom-nav {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .nav-item {
    color: #999;
}

.dark .nav-item.active {
    background: transparent;
    color: #60a5fa;
}

.dark .nav-item.active .nav-icon {
    color: #60a5fa;
    filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.6));
}

.dark .nav-item:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
}

/* 为主内容添加底部间距，避免被导航栏遮挡 */
body {
    padding-bottom: 100px;
}

/* 移动端额外增加间距 */
@media (max-width: 767px) {
    body {
        padding-bottom: 100px;
    }
    
    /* 确保主要内容区域有足够的底部间距 */
    .container {
        padding-bottom: 20px;
    }
    
    /* 为页面主要内容添加底部间距 */
    .main-content {
        padding-bottom: 20px;
    }
}

/* 桌面端和移动端显示控制 */
.mobile-only {
    display: flex;
}

.desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .mobile-only {
        display: none;
    }
    
    .desktop-only {
        display: flex;
    }
    
    body {
        padding-bottom: 0px !important;
    }
}

/* 桌面端登录按钮容器样式 */
.desktop-login-buttons {
    display: flex;
    gap: 8px;
}

.desktop-login-buttons .nav-item {
    flex: 1;
    min-width: 0;
}

/* 登录和注册按钮特殊样式 */
.login-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.login-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: scale(1.05);
}

.register-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.register-btn:hover {
    background: linear-gradient(135deg, #e881f0 0%, #f44a5c 100%);
    transform: scale(1.05);
}

.login-btn .nav-icon,
.register-btn .nav-icon {
    color: white;
}

.login-btn .nav-label,
.register-btn .nav-label {
    color: white;
    font-weight: 600;
}
