/* 筛选弹窗样式 */
.filter-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 80%;
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

@media (min-width: 769px) {
    .filter-modal {
        max-width: 400px;
    }
}

.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

/* 筛选弹窗头部 */
.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.filter-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s;
}

.close-btn:hover {
    background-color: #f0f0f0;
    color: #ff6b6b;
}

.close-icon {
    font-size: 20px;
    line-height: 1;
}

/* 筛选弹窗主体 */
.filter-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* 筛选导航 */
.filter-nav {
    width: 25%;
    background-color: #fafafa;
    border-right: 1px solid #eee;
    overflow-y: auto;
    padding: 10px 0;
}

.filter-nav .nav-item {
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.filter-nav .nav-item:hover {
    background-color: #f0f0f0;
    color: #ff6b6b;
}

.filter-nav .nav-item.active {
    background-color: white;
    color: #ff6b6b;
    border-left-color: #ff6b6b;
    font-weight: 600;
}

/* 筛选内容 */
.filter-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px 20px;
}

.filter-panel {
    display: none;
}

.filter-panel.active {
    display: block;
}

.filter-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

/* 标签组 */
.tag-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-tag-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 0;
    transition: all 0.3s;
}

.filter-tag-item:hover {
    background-color: #f0f0f0;
}

.filter-tag-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #ff6b6b;
}

.filter-tag-label {
    font-size: 14px;
    color: #666;
    flex: 1;
}

/* 价格范围 */
.price-range {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.price-range input {
    flex: 1;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}

.price-range input:focus {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.1);
}

.price-separator {
    color: #999;
    font-size: 14px;
    font-weight: 600;
}

/* 其他筛选条件 */
.other-filters {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 0;
    transition: all 0.3s;
}

.filter-checkbox:hover {
    background-color: #f0f0f0;
}

.filter-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: #ff6b6b;
}

.filter-checkbox span {
    font-size: 14px;
    color: #666;
}

/* 筛选弹窗底部 */
.filter-footer {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background-color: white;
    position: sticky;
    bottom: 0;
}

.reset-btn {
    flex: 1;
    background-color: white;
    border: 1px solid #eee;
    color: #666;
    cursor: pointer;
    padding: 12px;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s;
}

.reset-btn:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.confirm-btn {
    flex: 1;
    background-color: #ff6b6b;
    color: white;
    border: none;
    cursor: pointer;
    padding: 12px;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s;
}

.confirm-btn:hover {
    background-color: #ff5252;
    transform: translateY(-1px);
}

/* 分享弹窗 */
.share-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    max-width: 90%;
    width: 400px;
}

.share-content {
    padding: 20px;
    text-align: center;
}

.share-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.share-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.share-image {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    border: 1px solid #eee;
    border-radius: 4px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .filter-modal {
        max-width: 100%;
    }
    
    .filter-container {
        flex-direction: column;
    }
    
    .filter-nav {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
        overflow-y: visible;
        overflow-x: auto;
        display: flex;
        padding: 0;
    }
    
    .filter-nav .nav-item {
        border-left: none;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
    }
    
    .filter-nav .nav-item.active {
        border-left-color: transparent;
        border-bottom-color: #ff6b6b;
    }
    
    .filter-content {
        padding: 15px;
    }
    
    .filter-footer {
        flex-direction: column;
    }
    
    .share-modal {
        width: 90%;
    }
    
    .share-image {
        width: 150px;
        height: 150px;
    }
}