/* CSS变量定义 */
:root {
    --primary-green: #4caf50;
    --white: #ffffff;
    --border-gray: #e0e0e0;
    --text-light: #999999;
}

/* 底部导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-top: 1px solid var(--border-gray);
    display: flex;
    justify-content: space-around;
    padding: 0;
    height: 50px;
    align-items: center;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: var(--text-light);
    padding: 0 10px 5px;
    height: 50px;
    justify-content: flex-end;
    transition: color 0.3s;
}

.nav-item.active {
    color: var(--primary-green);
}

.nav-icon-wrap { 
    width: 24px; 
    height: 24px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%; 
    transition: all 0.2s ease; 
}

.nav-icon-img { 
    width: 20px; 
    height: 20px; 
    object-fit: contain; 
    display: block; 
}

.nav-item.active .nav-icon-wrap { 
    background-color: var(--primary-green); 
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.35); 
}

.nav-label {
    font-size: 11px;
}

/* 中间"淘料市场"图标特殊尺寸 */
.bottom-nav .nav-item:nth-child(3) .nav-icon-wrap {
    width: 45.6px;
    height: 43.8px;
    border-radius: 50%;
}

.bottom-nav .nav-item:nth-child(3) .nav-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 页面底部留白，避免内容被底部导航遮挡 */
.page-bottom-padding {
    height: 80px;
}

/* 响应式调整 */
@media (max-width: 375px) {
    .bottom-nav .nav-label {
        font-size: 9px;
        max-width: 50px;
    }
    
    .bottom-nav .nav-icon-wrap {
        width: 20px;
        height: 20px;
    }
    
    .bottom-nav .nav-item:nth-child(3) .nav-icon-wrap {
        width: 38px;
        height: 36px;
    }
}
