/* 车辆详情页样式 */
.detail-container {
    padding: 2rem 0;
    min-height: calc(100vh - 300px);
}

.image-gallery {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.main-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-list {
    display: flex;
    gap: 10px;
    padding: 15px;
    overflow-x: auto;
}

.thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s, border 0.3s;
    border: 2px solid transparent;
}

.thumbnail:hover {
    transform: scale(1.05);
    border-color: #667eea;
}

.car-detail-info {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.car-detail-info h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.detail-year {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.detail-price {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    text-align: center;
}

.price-amount {
    font-size: 3rem;
    font-weight: bold;
}

.price-unit {
    font-size: 1.2rem;
    opacity: 0.9;
}

.detail-description {
    margin-bottom: 2rem;
}

.detail-description h3,
.detail-specs h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
}

.detail-description p {
    color: #666;
    line-height: 1.8;
    font-size: 1rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.spec-label {
    color: #666;
    font-weight: 500;
}

.spec-value {
    color: #333;
    font-weight: 600;
}

.detail-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

.btn-rent,
.btn-contact {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s;
}

.btn-rent {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-contact {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-rent:hover,
.btn-contact:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* 响应式 */
@media (max-width: 768px) {
    .main-image {
        height: 250px;
    }

    .car-detail-info {
        padding: 1.5rem;
    }

    .car-detail-info h1 {
        font-size: 1.5rem;
    }

    .price-amount {
        font-size: 2.5rem;
    }

    .detail-actions {
        flex-direction: column;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .detail-container {
        padding: 1rem 0;
    }

    .main-image {
        height: 200px;
    }

    .thumbnail {
        width: 60px;
        height: 45px;
    }

    .car-detail-info h1 {
        font-size: 1.3rem;
    }

    .price-amount {
        font-size: 2rem;
    }
}
