/* 筛选选项样式 */
.filter-options {
    display: flex;
    background-color: #fff;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.filter-item {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    color: #333;
}

.filter-item i {
    margin-left: 5px;
    font-size: 12px;
}

/* 筛选项选中样式 */
.filter-item.selected span {
    color: #e94842;
    font-weight: bold;
}

.filter-item.selected i {
    color: #e94842;
}

/* 筛选弹出层 */
.filter-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 480px;
    margin: 0 auto;
    background-color: #fff;
    z-index: 200;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding-bottom: 60px; /* 为底部按钮留出空间 */
}

.filter-panel.active {
    transform: translateY(0);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 10;
}

.filter-reset {
    color: #888;
    border: none;
    background: none;
    font-size: 14px;
    padding: 5px 10px;
}

.filter-title {
    font-weight: bold;
    font-size: 16px;
}

.filter-confirm {
    color: #e94842;
    border: none;
    background: none;
    font-weight: bold;
    font-size: 14px;
    padding: 5px 10px;
}

.filter-section {
    display: none;
    padding: 15px;
}

.filter-section.active {
    display: block;
}

.filter-section-title {
    font-weight: bold;
    margin: 15px 0 10px;
    font-size: 15px;
}

.filter-section-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 修改后的样式,使选项垂直排列 */
.filter-option {
    padding: 8px 0;
    font-size: 14px;
    color: #333;
    transition: all 0.2s ease;
    display: block;
    text-align: left;
    border: none;
    background: none;
    border-bottom: 1px solid #f5f5f5;
}

.filter-option:last-child {
    border-bottom: none;
}

/* 选项激活状态 */
.filter-option.active {
    color: #e94842;
    font-weight: bold;
}

.filter-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 150;
    display: none;
}

.filter-mask.active {
    display: block;
}

/* 更多筛选的样式 */
#moreFilter .filter-section-content {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 10px;
}

#moreFilter .filter-option {
    padding: 8px 15px;
    background-color: #f5f5f5;
    border-radius: 5px;
    border: none;
    width: auto;
    text-align: center;
    margin-bottom: 10px;
}

#moreFilter .filter-option.active {
    background-color: #ffeeee;
    color: #e94842;
    border: 1px solid rgba(233, 72, 66, 0.3);
}

/* 重置和确定按钮 */
.filter-buttons {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    position: sticky;
    bottom: 0;
    background-color: white;
    border-top: 1px solid #f5f5f5;
}

.filter-reset-btn {
    width: 25%;
    height: 40px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    font-size: 14px;
}

.filter-confirm-btn {
    width: 70%;
    height: 40px;
    background-color: #e94842;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 14px;
}

/* 添加额外的样式 */
.filter-options {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #fff;
}

/* 增加toast样式 */
.toast {
    position: fixed;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    z-index: 9999;
    transition: bottom 0.3s ease;
}

.toast.show {
    bottom: 80px;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .filter-panel {
        width: 100%;
    }
    
    .filter-section-content {
        padding: 0 10px;
    }
}

/* 切换动画 */
.filter-option {
    transition: all 0.2s ease;
}

/* "不限"选项的特殊样式 */
.filter-option:first-child {
    font-weight: normal;
} 