/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

img {
    max-width: 100%;
    height: auto;
    image-rendering: optimizeSpeed;
    transition: opacity 0.3s ease-in-out;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #0066cc;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #0066cc;
}

.nav-links a.active {
    color: #0066cc;
    font-weight: bold;
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0066cc;
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: transparent;
    color: #333;
    font-weight: 500;
    text-decoration: none;
    padding: 0;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s ease;
}

.dropbtn:hover {
    color: #0066cc;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 4px;
    overflow: hidden;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #f9f9f9;
    color: #0066cc;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* 按钮样式 */
.btn-primary {
    background-color: #0066cc;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0052a3;
}

/* Banner区域 */
.banner {
    background: url('../image/1.webp');
    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;
    color: #fff;
    margin-top: 70px;
    position: relative;
    width: 100%;
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
    height: 575px;
}

.banner-content {
    position: absolute;
    bottom: 50px;
    right: 100px;
    max-width: 600px;
    text-align: left;
}

.banner h1 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: bold;
}

.banner h2 {
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 500;
}

.banner p {
    font-size: 16px;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* 充电技术区域 */
.charging-tech {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.charging-tech h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
}

.section-description {
    text-align: center;
    font-size: 16px;
    margin-bottom: 40px;
    color: #666;
}

.tech-features {
    display: flex;
    justify-content: center;
}

.feature-video {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 产品展示区域 */
.product-showcase {
    padding: 80px 0;
}

.product-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-image img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 技术认证区域 */
.certification {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.certification h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
}

.certification .section-description {
    text-align: center;
    font-size: 16px;
    margin-bottom: 40px;
    color: #666;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.cert-item {
    text-align: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.cert-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.cert-item p {
    font-size: 16px;
    color: #333;
    margin: 0;
}

/* 设计理念区域 */
.design-philosophy {
    padding: 80px 0;
}

.design-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.design-image img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 场景展示区域 */
.scene-showcase {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.scene-showcase h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: #333;
}

.scene-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.scene-item {
    text-align: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scene-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.scene-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.scene-item p {
    font-size: 16px;
    color: #333;
    margin: 0;
}

/* 车型展示区域 */
.vehicle-showcase {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.vehicle-showcase h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: #333;
}

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.vehicle-item {
    text-align: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.vehicle-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 15px;
}

.vehicle-item h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.vehicle-item p {
    font-size: 14px;
    color: #666;
}

/* 预约试车区域 */
.contact {
    padding: 80px 0;
    text-align: center;
    background-color: #f9f9f9;
}

.contact h2 {
    font-size: 28px;
    margin-bottom: 70px;
    color: #333;
    text-align: left;
}

.test-drive-form {
    margin: 0 auto;
    text-align: left;
    padding-left: 0;
}

.form-row {
    display: flex;
    gap: 20px;
    margin: 0 auto 60px;
}

.form-group {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.form-group.full-width {
    flex: 100%;
}

.form-group label {
    display: inline-block;
    width: 60px;
    margin-right: 10px;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    text-align: left;
}

.form-group input {
    flex: 1;
    padding: 5px 0;
    border: none;
    border-bottom: 1px solid #333;
    font-size: 16px;
    background: transparent;
}

.form-group input:focus {
    outline: none;
    border-bottom-color: #0066cc;
}

.test-drive-form button {
    display: block;
    width: 200px;
    margin: 30px auto 0;
    padding: 15px;
    font-size: 16px;
}



.success-message {
    display: none;
    margin-top: 20px;
    padding: 15px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    text-align: center;
}

.success-message.show {
    display: block;
}

/* 页脚 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    text-align: center;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #fff;
}

.footer-section a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #0066cc;
}

.footer-section p {
    color: #999;
    margin: 0;
}

.footer-section img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.qr-code img:hover {
    transform: scale(2);
}

.copyright {
    font-size: 14px;
    color: #999;
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
}

.copyright a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.copyright a:hover {
    color: #0066cc;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .tech-features {
        flex-direction: column;
    }

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

    .design-showcase {
        grid-template-columns: 1fr;
    }

    .vehicle-grid {
        grid-template-columns: 1fr;
    }
    
    /* 技术认证区域调整 */
    .cert-grid {
        grid-template-columns: 1fr;
    }
    
    /* 场景展示区域调整 */
    .scene-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        flex-direction: column;
        gap: 30px;
    }

    .footer-links {
        flex-wrap: wrap;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    /* Banner区域移动端调整 */
    .banner {
        height: auto;
        min-height: 400px;
        background-size: cover;
    }
    
    .banner-content {
        position: static;
        padding: 40px 20px;
        max-width: 100%;
        text-align: center;
    }
    
    h1 {
        font-size: 20px;
    }
    
    h2 {
        font-size: 16px;
    }
    
    p {
        font-size: 12px;
    }
    
    .section-description {
        font-size: 14px;
    }
    
    .banner h1 {
        font-size: 24px;
    }
    
    .banner h2 {
        font-size: 16px;
    }
    
    .banner p {
        font-size: 12px;
    }
    
    /* 容器移动端调整 */
    .container {
        padding: 0 15px;
    }
    
    /* 充电技术区域调整 */
    .charging-tech {
        padding: 40px 0;
    }
    
    /* 视频播放窗口调整 */
    .feature-video iframe {
        height: 300px;
    }
    
    /* 产品展示区域调整 */
    .product-showcase {
        padding: 40px 0;
    }
    
    /* 技术认证区域调整 */
    .certification {
        padding: 40px 0;
    }
    
    /* 设计理念区域调整 */
    .design-philosophy {
        padding: 40px 0;
    }
    
    /* 场景展示区域调整 */
    .scene-showcase {
        padding: 40px 0;
    }
    
    /* 车型展示区域调整 */
    .vehicle-showcase {
        padding: 40px 0;
    }
    
    /* 预约试车区域调整 */
    .contact {
        padding: 40px 0;
    }
    
    /* 表单调整 */
    .form-row {
        flex-direction: column;
        gap: 15px;
        margin: 0 auto 20px;
    }
    
    .form-group {
        width: 100%;
        gap: 10px;
    }
    
    .form-group label {
        width: 50px;
        font-size: 14px;
    }
    
    .form-group input {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .banner h1 {
        font-size: 22px;
    }

    .banner h2 {
        font-size: 18px;
    }

    .banner p {
        font-size: 14px;
    }

    .vehicle-grid {
        grid-template-columns: 1fr;
    }
    
    /* 进一步调整小屏幕显示 */
    .banner {
        min-height: 350px;
    }
    
    .banner-content {
        padding: 30px 15px;
    }
    
    .charging-tech,
    .product-showcase,
    .certification,
    .design-philosophy,
    .scene-showcase,
    .vehicle-showcase,
    .contact {
        padding: 30px 0;
    }
    
    h1 {
        font-size: 16px;
    }
    
    h2 {
        font-size: 14px;
    }
    
    p {
        font-size: 12px;
    }
    
    .section-description {
        font-size: 14px;
    }
}