/* Existing styles.css content will be moved here by the tool */

/* 全局CSS变量 */
:root {
    --eco-green: #4CAF50;
    --dark-green: #2E7D32;
    --light-green: #A5D6A7;
    --rock-gray: #757575;
    --vibrant-orange: #FF9800;
}

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.5;
    min-height: 100vh;
    position: relative;
}



/* 搜索栏 */
.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;
}

/* 内容区域 */
.content {
    padding-bottom: 70px; /* 为底部导航栏留出空间 */
}

/* 底部导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    box-shadow: 0 -1px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.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;
}

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

.nav-item .label {
    font-size: 12px;
    margin-top: 4px;
}

/* 安全区适配 - 针对刘海屏/全面屏手机 */
@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));
    }
    
    .content {
        padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }
}

/* 公共标签样式 */
.tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    margin-right: 5px;
}

.tag-promo {
    background-color: rgba(255, 152, 0, 0.1);
    color: var(--vibrant-orange);
}

.tag-hot {
    background-color: rgba(244, 67, 54, 0.1);
    color: #F44336;
}

.tag-new {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--eco-green);
}

/* 通用导航栏 */
.nav-bar {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: var(--eco-green);
    color: white;
    position: relative;
}

.nav-bar .back {
    margin-right: 10px;
    font-size: 18px;
    width: 24px;
}

.nav-bar .title {
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    margin-right: 24px;
}

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