/* 车库页面的地区-品牌-车型层级结构样式 */
#region-brands-container {
    margin-top: 20px;
}

.region-section {
    margin-bottom: 30px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background-color: #fafafa;
}

.region-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
}

.brand-section {
    margin-bottom: 20px;
    padding: 10px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.brand-title {
    font-size: 1.3em;
    margin: 0 0 10px 0;
    color: #2c3e50;
    display: inline-block;
}

/* 紧凑型车型列表样式 */
.compact-model-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.compact-model-link {
    display: inline-block;
    padding: 5px 12px;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 16px;
    color: #495057; /* 默认链接颜色 */
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.2s ease;
}

.compact-model-link:hover {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    text-decoration: none;
    transform: scale(1.05);
}

/* 品牌标题行样式，包含品牌名和信息图标 */
.brand-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-info-icon {
    font-size: 1.2em;
    cursor: pointer;
    vertical-align: middle;
    display: inline-block;
    line-height: 1;
}

.brand-description {
    margin-top: 8px;
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

/* 弹窗样式 */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 80%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.brand-info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.brand-info-table td {
    padding: 8px 12px;
    border: 1px solid #ddd;
    vertical-align: top;
}

.info-key {
    font-weight: bold;
    background-color: #f8f9fa;
    width: 30%;
}

.info-value {
    word-break: break-word;
}

.modal-close-btn {
    display: block;
    margin: 15px auto 0;
    padding: 8px 16px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.modal-close-btn:hover {
    background-color: #5a6268;
}

/* 车型页面样式 */
.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.model-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
}

.model-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.model-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.model-info {
    padding: 15px;
}

.model-name {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.model-brand {
    color: #666;
    margin-bottom: 10px;
}

.model-specs {
    font-size: 0.9em;
    color: #888;
}

/* 车库页面样式 */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.vehicle-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.vehicle-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.vehicle-info {
    padding: 15px;
}

.vehicle-brand {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.vehicle-model {
    color: #666;
    margin-bottom: 10px;
}

.vehicle-specs {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: #888;
}

/* 品牌筛选页面样式 */
.filter-section {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-title {
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-option {
    display: flex;
    align-items: center;
}

.filter-option input {
    margin-right: 5px;
}

.filter-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.filter-button {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

.filter-button:hover {
    background: #0069d9;
}

.reset-button {
    padding: 10px 20px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

.reset-button:hover {
    background: #5a6268;
}

/* 主要筛选器布局 - 水平排列 */
.primary-filters {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.primary-filters .filter-group {
    flex: 1;
    min-width: 250px; /* 每个组的最小宽度 */
}

/* 高级筛选样式 */
.advanced-filters {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #ccc;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .primary-filters {
        flex-direction: column;
    }
    
    .filter-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-actions button {
        width: 100%;
        margin-bottom: 5px;
    }
}