/* 车辆页面专用样式 */

/* 头部区域 */
.vehicles-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.vehicles-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/pattern.png') repeat;
    opacity: 0.1;
}

.hero-bg {
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-badge i {
    color: #ffd700;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 0;
    opacity: 0.9;
    font-weight: 400;
}

/* 车辆区域 */
.vehicles-section {
    padding: 80px 0;
    background: #f8f9fa;
}

/* 控制区域 */
.vehicles-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    gap: 20px;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 16px;
}

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 16px;
    background: white;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #00bfff;
    box-shadow: 0 0 0 3px rgba(0,191,255,0.1);
}

.filter-controls {
    display: flex;
    gap: 16px;
    align-items: center;
}

.filter-controls select {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.filter-controls select:focus {
    outline: none;
    border-color: #00bfff;
    box-shadow: 0 0 0 3px rgba(0,191,255,0.1);
}

/* 统计信息 */
.vehicles-stats {
    margin-bottom: 30px;
    text-align: center;
}

.vehicles-stats span {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* 车辆网格 */
.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

/* 车辆卡片 */
.vehicle-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.05);
    cursor: pointer;
}

.vehicle-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
    border-color: rgba(0,191,255,0.2);
}

.vehicle-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.vehicle-card:hover .vehicle-image img {
    transform: scale(1.05);
}

.vehicle-placeholder {
    color: #999;
    font-size: 48px;
}

.vehicle-brand-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.vehicle-info {
    padding: 20px;
}

.vehicle-name {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vehicle-code {
    font-size: 12px;
    color: #666;
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 12px;
}

.vehicle-price {
    margin-bottom: 16px;
}

.price-amount {
    font-size: 24px;
    font-weight: 800;
    color: #00bfff;
}

.vehicle-buy-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(45deg, #00bfff, #0080ff);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vehicle-buy-btn:hover {
    background: linear-gradient(45deg, #0080ff, #00bfff);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,191,255,0.4);
}

/* 联系区域 */
.contact-section {
    padding: 100px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.qr-section {
    text-align: center;
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    background: white;
    border: 2px dashed #ddd;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: #666;
}

.qr-placeholder i {
    font-size: 48px;
    margin-bottom: 12px;
    color: #00bfff;
}

.qr-placeholder p {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.qr-placeholder small {
    font-size: 12px;
    color: #999;
}

.steps-section h4 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 24px;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step {
    display: flex;
    align-items: center;
    gap: 16px;
}

.step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #00bfff, #0080ff);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-text {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

/* 购买弹窗 */
.purchase-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.modal-close {
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 30px;
}

.vehicle-info-modal {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.vehicle-details-modal h4 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.vehicle-code {
    font-size: 12px;
    color: #666;
    font-family: 'Courier New', monospace;
    background: white;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 8px;
}

.vehicle-price-modal {
    font-size: 16px;
    color: #333;
    margin: 0;
}

.vehicle-price-modal span {
    font-weight: 700;
    color: #00bfff;
    font-size: 18px;
}

.qr-code-section {
    text-align: center;
    margin-bottom: 20px;
}

.qr-code-section .qr-placeholder {
    width: 160px;
    height: 160px;
    margin: 0 auto;
}

.purchase-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .vehicles-hero {
        padding: 80px 0 60px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .vehicles-section {
        padding: 60px 0;
    }
    
    .vehicles-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .search-box {
        max-width: none;
    }
    
    .filter-controls {
        justify-content: space-between;
    }
    
    .filter-controls select {
        min-width: 120px;
        font-size: 13px;
    }
    
    .vehicles-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .vehicle-image {
        height: 160px;
    }
    
    .vehicle-info {
        padding: 16px;
    }
    
    .vehicle-name {
        font-size: 16px;
    }
    
    .price-amount {
        font-size: 20px;
    }
    
    .contact-card {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 30px;
    }
    
    .contact-section {
        padding: 80px 0;
    }
}

@media (max-width: 576px) {
    .vehicles-hero {
        padding: 60px 0 40px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .vehicles-section {
        padding: 40px 0;
    }
    
    .filter-controls {
        flex-direction: column;
        gap: 12px;
    }
    
    .filter-controls select {
        width: 100%;
        min-width: auto;
    }
    
    .vehicles-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .vehicle-image {
        height: 140px;
    }
    
    .contact-card {
        padding: 30px 20px;
    }
    
    .qr-placeholder {
        width: 160px;
        height: 160px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
}
/* 分页样式 */
.pagination-container {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.pagination-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn {
    padding: 10px 16px;
    border: 2px solid #e9ecef;
    background: white;
    color: #666;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover {
    border-color: #00bfff;
    color: #00bfff;
    background: rgba(0,191,255,0.05);
}

.pagination-btn.active {
    background: linear-gradient(45deg, #00bfff, #0080ff);
    color: white;
    border-color: #00bfff;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-dots {
    padding: 0 8px;
    color: #999;
    font-weight: bold;
}

.pagination-info {
    font-size: 14px;
    color: #666;
    text-align: center;
}

/* 无结果状态 */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #666;
}

.no-results i {
    font-size: 64px;
    margin-bottom: 20px;
    color: #ddd;
}

.no-results h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: #999;
    font-weight: 600;
}

.no-results p {
    font-size: 16px;
    margin: 0;
    color: #999;
}

/* 响应式分页 */
@media (max-width: 768px) {
    .pagination-wrapper {
        gap: 4px;
    }
    
    .pagination-btn {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 36px;
        height: 36px;
    }
    
    .pagination-info {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .pagination-container {
        margin-top: 40px;
    }
    
    .pagination-wrapper {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination-btn {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 32px;
        height: 32px;
    }
}