/* 车辆列表页面样式 */
.buy-cars-page {
    padding: 20px 0;
    /* background-color: #f8f9fa; */
    min-height: 100vh;
}

/* 加载状态样式 */
.loading-container {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.loading-container .spinner-border {
    width: 3rem;
    height: 3rem;
    margin-bottom: 20px;
}

/* 无数据状态样式 */
.no-data-container {
    text-align: center;
    padding: 80px 20px;
    color: #666;
}

.no-data-icon {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.no-data-container h3 {
    color: #999;
    margin-bottom: 10px;
}

.no-data-container p {
    color: #aaa;
    font-size: 0.9rem;
}

/* 搜索头部 */
.search-header {
    background: linear-gradient(135deg, #5ACFC9 0%, #4AB8B2 100%);
    padding: 30px 0;
    margin-bottom: 30px;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-input {
    flex: 1;
    border: none;
    padding: 15px 25px;
    font-size: 1.1rem;
    outline: none;
}

.search-btn {
    background-color: #5ACFC9;
    color: white;
    border: none;
    padding: 15px 25px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background-color: #4AB8B2;
    color: white;
}

/* 筛选侧边栏 */
.filter-sidebar {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
}

.filter-title {
    color: #333;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #5ACFC9;
}

.filter-section {
    margin-bottom: 25px;
}

.filter-section-title {
    color: #555;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 12px;
}

/* 筛选选项 */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
    transition: color 0.3s ease;
}

.filter-option:hover {
    color: #5ACFC9;
}

.filter-option input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 3px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.filter-option input[type="checkbox"]:checked + .checkmark {
    background-color: #5ACFC9;
    border-color: #5ACFC9;
}

.filter-option input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: bold;
}

/* 品牌数量显示 */
.brand-count {
    color: #999;
    font-size: 0.8rem;
    margin-left: 5px;
}

/* 品牌展开/收起按钮 */
.brand-toggle {
    text-align: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.brand-toggle .btn-link {
    color: #5ACFC9;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 5px 10px;
    border: none;
    background: none;
    transition: color 0.3s ease;
}

.brand-toggle .btn-link:hover {
    color: #4AB8B2;
    text-decoration: none;
}

.brand-toggle .btn-link i {
    margin-left: 5px;
    font-size: 0.8rem;
}

/* 价格范围 */
.price-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-range input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
}

.price-separator {
    color: #666;
    font-weight: 500;
}

/* 应用筛选按钮 */
.apply-filters-btn {
    width: 100%;
    background: linear-gradient(135deg, #5ACFC9 0%, #4AB8B2 100%);
    border: none;
    padding: 12px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.apply-filters-btn:hover {
    background: linear-gradient(135deg, #4AB8B2 0%, #3AA7A1 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 207, 201, 0.3);
}

/* 车辆内容区域 */
.cars-content {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 结果头部 */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.results-count {
    font-size: 1.1rem;
    color: #666;
}

.sort-select {
    width: 200px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 8px 12px;
}

/* 车辆网格 */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* 车辆卡片 */
.car-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

.car-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.car-image-container {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.car-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.car-card:hover .car-image {
    transform: scale(1.03);
}

.car-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(90, 207, 201, 0.95);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.car-info {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.car-price-section {
	text-align: left;
    margin-bottom: 6px;
    padding: 0px 20px 10px 20px;
}

.price-amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: #5ACFC9;
    line-height: 1.2;
}

.car-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-top: 12px;
    line-height: 1.3;
    flex-shrink: 0;
    padding: 0 20px;
	text-align: left;
}

.car-specs {
    display: flex;
    flex-direction: row;
    gap: 0;
    flex: 1;
    border-radius: 0;
    overflow: hidden;
    background: #f8f9fa;
}

.spec-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 12px 8px;
    transition: all 0.3s ease;
    border-right: 1px solid #e9ecef;
}

.spec-item:last-child {
    border-right: none;
}

.spec-item:hover {
    background: #f0f8f8;
}

.spec-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
    flex: 1;
}

.spec-label {
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
    line-height: 1.2;
}

.spec-value {
    font-size: 0.85rem;
    color: #333;
    font-weight: 600;
    line-height: 1.2;
}


/* 分页 */
.pagination-container {
    margin-top: 30px;
}

.pagination .page-link {
    color: #5ACFC9;
    border-color: #eee;
    padding: 10px 15px;
    margin: 0 2px;
    border-radius: 5px;
}

.pagination .page-item.active .page-link {
    background-color: #5ACFC9;
    border-color: #5ACFC9;
    color: white;
}

.pagination .page-link:hover {
    background-color: #f8f9fa;
    border-color: #5ACFC9;
    color: #5ACFC9;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .filter-sidebar {
        position: static;
        margin-bottom: 20px;
    }
    
    .results-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .sort-select {
        width: 100%;
    }
    
    .cars-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .car-info {
        padding: 0;
    }
    
    .car-title {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .price-amount {
        font-size: 1.2rem;
    }
    
    .car-price-section {
        padding: 8px 15px 0 15px;
    }
    
    .car-specs {
        gap: 0;
    }
    
    .spec-item {
        padding: 10px 6px;
    }
    
    .spec-label {
        font-size: 0.7rem;
    }
    
    .spec-value {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .cars-grid {
        grid-template-columns: 1fr;
    }
    
    .search-input-group {
        flex-direction: column;
        border-radius: 10px;
    }
    
    .search-input {
        border-radius: 10px 10px 0 0;
    }
    
    .search-btn {
        border-radius: 0 0 10px 10px;
    }
    
    .car-specs {
        flex-direction: column;
        gap: 0;
        background: transparent;
    }
    
    .spec-item {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        padding: 8px 12px;
        text-align: center;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        background: #f8f9fa;
    }
    
    .spec-item:last-child {
        border-bottom: none;
    }
    
    .spec-content {
        align-items: center;
        text-align: center;
    }
    
    .spec-label {
        font-size: 0.7rem;
    }
    
    .spec-value {
        font-size: 0.75rem;
    }
} 