/* 全局背景兜底，防止 Telegram 首屏粉色闪烁 */
html {
    background-color: #0a0a0a !important;
}

body {
    background-color: #0a0a0a !important;
    color: #ffffff;
    min-height: 100vh;
}

/* 通用底边栏样式 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 105, 180, 0.3);
    z-index: 1000;
    padding: 8px 0;
    box-shadow: 0 -4px 20px rgba(255, 105, 180, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 105, 180, 0.1), transparent);
    transition: left 0.5s;
}

.nav-item:hover::before {
    left: 100%;
}

.nav-item:hover {
    background: rgba(255, 105, 180, 0.1);
    transform: translateY(-2px);
}

.nav-item.active {
    background: rgba(255, 105, 180, 0.2);
    color: #ec4899;
}

.nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.nav-item:hover .nav-icon {
    transform: scale(1.1);
    color: #ec4899;
}

.nav-text {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.nav-item:hover .nav-text {
    color: #ec4899;
}

.nav-item.active .nav-text {
    color: #ec4899;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .nav-container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .nav-item {
        padding: 6px 8px;
    }
    
    .nav-icon {
        width: 20px;
        height: 20px;
    }
    
    .nav-text {
        font-size: 11px;
    }
}

/* 页面内容底部留白 */
.scroll-container {
    padding-bottom: 80px;
}

/* 霓虹光效 */
.nav-item.active {
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.3);
}

.nav-item:hover {
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.2);
} 
