/* 导航栏样式 */

:root {
    --eco-green: #4CAF50;
}

/* 底部导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    background-color: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000 !important;
    box-sizing: border-box;
    overflow: hidden;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 20%;
    height: 100%;
    color: #999;
    font-size: 24px;
    transition: color 0.3s;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    min-width: 0;
    flex-shrink: 1;
}

.nav-item.active {
    color: var(--eco-green) !important;
}

.nav-item.active i,
.nav-item.active .label {
    color: var(--eco-green) !important;
}

.nav-item i {
    font-size: 22px;
    color: #999;
    transition: color 0.3s;
}

.nav-item .label {
    font-size: 12px;
    margin-top: 4px;
    color: #999;
    transition: color 0.3s;
}



/* 搜索栏 */
.search-bar {
    background-color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    height: 40px;
    margin: 10px 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.search-bar i {
    color: #999;
    margin-right: 10px;
    font-size: 16px;
}

.search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #333;
    outline: none;
}

.search-bar input::placeholder {
    color: #aaa;
}

/* 安全区适配 - 针对刘海屏/全面屏手机 */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .bottom-nav {
        padding-bottom: env(safe-area-inset-bottom);
        height: calc(60px + env(safe-area-inset-bottom));
    }
}

/* 响应式设计 */
@media screen and (max-width: 320px) {
    .nav-item {
        font-size: 20px;
    }
    
    .nav-item .label {
        font-size: 10px;
    }
} 