/* header */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #F2F3F5;
    padding-top: 56px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.nav-item .nav-link {
    white-space: nowrap;
}

.language-selector {
    min-width: 140px;
}

.language-selector .dropdown-item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 8px 16px;
    font-size: 0.9rem;
}

.dropdown-menu {
    min-width: 12rem;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item.active {
    background-color: #0d6efd;
    color: white;
    pointer-events: none;
}

.dropdown-item.active:hover {
    background-color: #0d6efd;
    color: white;
}

@media (max-width: 1199px) {
    .navbar-brand {
        font-size: 1.3rem;
    }

    .nav-link {
        font-size: 0.9rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

@media (max-width: 767px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .navbar-brand img {
        width: 24px;
        height: 24px;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }

    .language-selector .dropdown-item {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .language-selector {
        min-width: 120px;
    }
}

@media (max-width: 991px) {
    .navbar-collapse .dropdown-menu {
        box-shadow: none;
        border: none;
        background-color: #f8f9fa;
        margin-left: 1rem;
        margin-top: 0.5rem;
    }

    .navbar-collapse .dropdown-item {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* index */
.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    text-align: center;
}

.section-title {
    position: relative;
    margin-bottom: 16px;
    padding-bottom: 8px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 40%;
    height: 3px;
    background-color: #0d6efd;
}

.section-title {
    border-left: none !important;
    padding-left: 0 !important;
}

.section-subtitle {
    margin: 0;
    font-size: 1rem;
    color: #666;
}

.car-grid-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.car-grid-wrapper > div {
    flex: 0 0 calc(25% - 7.5px);
    max-width: calc(25% - 7.5px);
    box-sizing: border-box;
}

.ev-card {
    background: #ffffff;
    padding: 24px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
}

.ev-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.ev-image-wrapper {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: transparent;
    position: relative;
    cursor: pointer;
}

.ev-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.ev-info {
    text-align: center;
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ev-brand {
    font-size: 0.85rem;
    color: #0d6efd;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.ev-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
}

.ev-meta {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.ev-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ev-meta-item i {
    color: #0d6efd;
    font-size: 0.85rem;
}

.ev-action {
    width: 100%;
    margin-top: auto;
}

.ev-btn {
    width: 100%;
    padding: 12px;
    /* 默认灰色样式 */
    background: linear-gradient(135deg, #6c757d 0%, #5c636a 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ev-btn:hover {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.3);
}

.banner-section {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.carousel {
    height: 60vh;
    overflow: hidden;
}


.default-banner {
    height: 60vh;
    background-image: url('/images/bg.jfif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.banner {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
    height: 40vh;
    display: flex;
    align-items: center;
    background-image: url('/images/bg.jfif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.banner .container {
    position: relative;
    z-index: 2;
}

@media (max-width: 1200px) {
    .car-grid-wrapper > div {
        flex: 0 0 calc(33.333% - 6.666px);
        max-width: calc(33.333% - 6.666px);
    }
}

@media (max-width: 992px) {
    .car-grid-wrapper > div {
        flex: 0 0 calc(50% - 5px);
        max-width: calc(50% - 5px);
    }

    .search-container {
        flex-direction: column;
        align-items: stretch;
    }

    .search-input {
        border-radius: 8px 8px 0 0;
    }

    .brand-select {
        border-radius: 0;
    }

    .search-btn {
        border-radius: 0 0 8px 8px;
    }
}

@media (max-width: 576px) {
    .car-grid-wrapper > div {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .ev-showcase-section {
        padding: 40px 20px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .banner {
        height: 50vh;
    }
}

.about-us-section {
    background-image: url('/images/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

.about-overlay {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 40px 0;
}

.blog-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-img-wrapper {
    flex-shrink: 0;
    height: 300px;
    overflow: hidden;
}

.blog-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.blog-summary {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.9rem; line-height: 1.6;
}

.transition-all {
    transition: all 0.3s ease;
}

.hover\:shadow-lg:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

.hover\:text-primary:hover {
    color: #0d6efd !important;
}

.hover\:underline:hover {
    text-decoration: underline !important;
}

.fs-7 {
    font-size: 0.8rem;
}

/*search*/
.search-section {
    padding: 20px 0;
    margin: 0 auto 30px;
    width: 100%;
    box-sizing: border-box;
}

.search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    gap: 0;
    align-items: stretch;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.search-input-group {
    flex: 1;
    min-width: 200px;
    box-sizing: border-box;
}

.search-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
    outline: none;
    box-sizing: border-box;
    height: 100%;
    border-right: none;
}

.search-input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.1);
    z-index: 1;
    position: relative;
}

.brand-select-group {
    min-width: 150px;
    box-sizing: border-box;
}

.brand-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 1rem;
    outline: none;
    background-color: #fff;
    box-sizing: border-box;
    height: 100%;
    border-left: none;
    border-right: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23666' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

.brand-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.1);
    z-index: 1;
    position: relative;
}

.search-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 0 8px 8px 0;
    background-color: #0d6efd;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    box-sizing: border-box;
}

.search-btn:hover {
    background-color: #0b5ed7;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

@media (max-width: 768px) {
    .search-container {
        gap: 8px;
    }

    .search-input-group {
        min-width: 100%;
    }

    .brand-select-group {
        min-width: calc(70% - 4px);
    }

    .search-btn {
        min-width: calc(30% - 4px);
        padding: 12px 8px;
    }

    .search-input {
        border-radius: 8px;
        border-right: 1px solid #ddd;
    }

    .brand-select {
        border-radius: 8px 0 0 8px;
        border-left: 1px solid #ddd;
    }

    .search-btn-text {
        display: none;
    }

    .search-btn {
        border-radius: 0 8px 8px 0;
    }
}

@media (max-width: 576px) {
    .search-container {
        flex-direction: column;
        gap: 8px;
    }

    .search-input-group,
    .brand-select-group,
    .search-btn {
        min-width: 100%;
        width: 100%;
    }

    .search-input,
    .brand-select,
    .search-btn {
        border-radius: 8px;
        border: 1px solid #ddd;
        height: 48px;
    }

    .search-btn {
        background-color: #0d6efd;
        border: none;
    }

    .search-btn-text {
        display: inline;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .search-btn {
        font-size: 0.9rem;
    }
}

/*brand*/
.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    text-align: center;
}

.section-title {
    position: relative;
    margin-bottom: 16px;
    padding-bottom: 8px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 40%;
    height: 3px;
    background-color: #0d6efd;
}

.section-title {
    border-left: none !important;
    padding-left: 0 !important;
}

.section-subtitle {
    margin: 0;
    font-size: 1rem;
    color: #666;
}

.brands-container {
    position: relative;
    padding: 0 20px;
    margin: 0 auto;
}

.brands-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 2px;
    align-items: center;
}

.brand-item {
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background-color: white;
}

.brand-logo {
    width: 127px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.brand-item:hover .brand-logo {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.brand-logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0);
    transition: all 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.brand-item:hover .brand-logo::after {
    background: rgba(255, 255, 255, 0.2);
}

.brand-name {
    font-size: 0.85rem;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* fixed */
.contact-floating {
    position: fixed;
    left: 20px;
    bottom: 40%;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    width: 50px;
    height: 50px;
    border-radius: 50px;
    background-color: #0d6efd;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-item:hover {
    width: 220px;
    background-color: #0b5ed7;
}

.contact-item i {
    color: white;
    z-index: 2;
    transition: transform 0.3s ease;
}

.contact-item:hover i {
    transform: translateX(-85px);
}

.contact-info {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1;
}

.contact-item:hover .contact-info {
    opacity: 1;
    left: 60px;
}

.scroll-mt-6{
    scroll-margin-top: 60px;
}

.carousel-overlay {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    padding: 20px;
}