:root {
    /* * 在这里修改主题色 
     * 橙色: #ff6600 | 蓝色: #0066cc | 红色: #e60012 
     */
    --theme-color: #ff6600; 
    --text-color: #333;
    --bg-light: #f9f9f9;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", Arial, sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
    padding-bottom: 60px; /* 留出底部悬浮栏高度 */
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* 容器通用样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 顶部导航 */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo h1 {
    color: var(--theme-color);
    font-size: 24px;
    margin-bottom: 0;
}
.logo p { font-size: 12px; color: #666; }

.nav-links a {
    margin: 0 15px;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--theme-color);
}

.hotline {
    font-weight: bold;
    color: var(--theme-color);
    font-size: 18px;
}

/* Banner 与 表单 */
.hero {
    position: relative;
    height: 500px;
    /* 这里用了一个网络图片作为背景，你可以替换成你的本地图片 */
    background: url('https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hero-text {
    color: var(--white);
    flex: 1;
}

.hero-text h2 { font-size: 48px; margin-bottom: 10px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.hero-text p { font-size: 20px; opacity: 0.9; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }

/* 询价表单卡片 */
.quote-form-card {
    width: 380px;
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-top: 5px solid var(--theme-color);
}

.form-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}
.form-header .arrow { color: var(--theme-color); }

.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; font-size: 14px; }
.form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}
.form-group input:focus, .form-group select:focus {
    border-color: var(--theme-color);
    outline: none;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--theme-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}
.submit-btn:hover { filter: brightness(0.9); }
.submit-btn:disabled { background: #ccc; cursor: not-allowed; }

.form-note { font-size: 12px; color: var(--theme-color); text-align: center; margin-top: 10px; }

/* 通用板块样式 */
.section { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 32px; margin-bottom: 10px; }
.section-title p { color: #666; }

/* 车型展示 */
.tabs { text-align: center; margin-bottom: 30px; }
.tab-btn {
    padding: 10px 18px;
    background: #eee;
    border: none;
    margin: 5px;
    cursor: pointer;
    border-radius: 30px;
    font-size: 15px;
    transition: 0.3s;
}
.tab-btn:hover { background: #ddd; }
.tab-btn.active { background: var(--theme-color); color: var(--white); }

/* 车型网格布局 */
.car-grid {
    display: none; /* 默认隐藏 */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    animation: fadeIn 0.5s ease;
}
.car-grid.active { display: grid; } /* 激活时显示 */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.car-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.car-card:hover { transform: translateY(-5px); }

.car-img-placeholder {
    height: 180px;
    background: #eef2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 60px;
    color: #ccc;
}

.car-info { padding: 20px; text-align: center;}
.car-info h3 { margin-bottom: 5px; font-size: 18px; }
.car-info .desc { color: #888; font-size: 13px; margin-bottom: 15px; height: 20px; overflow: hidden; }
.specs { margin-bottom: 15px; }
.specs li { display: inline-block; margin-right: 15px; font-size: 13px; color: #555; }
.specs li i { color: var(--theme-color); margin-right: 5px; }

.book-btn {
    display: block;
    width: 100%;
    padding: 8px;
    border: 1px solid var(--theme-color);
    color: var(--theme-color);
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}
.book-btn:hover { background: var(--theme-color); color: var(--white); }

/* 优势对比 */
.advantage-section { background: var(--white); }
.pk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
.pk-item { padding: 20px; }
.pk-icon {
    width: 70px; height: 70px;
    background: rgba(0,0,0,0.03);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    color: var(--theme-color);
}

/* 服务保障 */
.guarantee-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}
.g-item {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: 0.3s;
}
.g-item:hover { box-shadow: 0 10px 20px rgba(0,0,0,0.05); border-color: transparent; }
.g-item i { font-size: 36px; color: var(--theme-color); margin-bottom: 15px; display: block;}
.g-item h4 { margin-bottom: 8px; }
.g-item p { font-size: 13px; color: #777; }

/* 底部 */
.footer { background: #333; color: #aaa; padding: 50px 0 20px; }
.footer-content { display: flex; justify-content: space-between; margin-bottom: 30px; flex-wrap: wrap; }
.footer h3 { color: var(--white); margin-bottom: 15px; }
.footer-links a { display: block; margin-bottom: 8px; font-size: 14px; }
.footer-links a:hover { color: var(--theme-color); }
.copyright { text-align: center; border-top: 1px solid #444; padding-top: 20px; font-size: 12px; }

/* 底部悬浮栏 (移动端) */
/* 默认隐藏 fixed-bar (针对PC端和大部分浏览器默认设置) */
.fixed-bar, .more-bar {
    display: none;
}
.bar-btn {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 14px;
}
.bar-btn i { margin-right: 8px; font-size: 18px; }
.bar-btn.highlight {
    background: var(--theme-color);
    color: var(--white);
}

/* Toast 提示框 */
.toast-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 20px 40px;
    border-radius: 8px;
    z-index: 2000;
    display: none;
    text-align: center;
    min-width: 200px;
}
.toast-message i {
    font-size: 32px;
    display: block;
    margin-bottom: 15px;
    color: var(--theme-color);
}

/* 响应式适配 */
@media (max-width: 768px) {
    .fixed-bar {
        position: fixed;
        bottom: 0; left: 0; right: 0;
        height: 50px;
        background: var(--white);
        display: flex;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 999;
    }
    .header-inner { flex-direction: column; height: auto; padding: 15px; }
    .nav-links { display: none; } /* 移动端暂时隐藏菜单 */
    .hero { height: auto; padding: 60px 0; background-position: center; }
    .hero-content { flex-direction: column; }
    .hero-text { margin-bottom: 40px; text-align: center; }
    .hero-text h2 { font-size: 32px; }
    .quote-form-card { width: 100%; }
    
    .pk-grid, .guarantee-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .car-grid { grid-template-columns: 1fr; }
    
    .footer-content { flex-direction: column; text-align: center; }
    .footer-links { margin-top: 20px; }

    .more-bar {
        height: 50px;
        background: var(--white);
        display: flex;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        margin-bottom: 50px;
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    .more-bar i{
        transform: rotate(90deg);
    }
}



/* --- 左下角悬浮客服框样式 (更新轮播结构) --- */
.fixed-contact-card {
    position: fixed;
    bottom: 150px; 
    left: 10px;
    width: 300px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 900;
    overflow: hidden;
    transition: all 0.3s ease;
    border-top: 3px solid var(--theme-color);
}

.card-controls {
    background: var(--theme-color);
    color: var(--white);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 14px;
}

.arrow-btn {
    cursor: pointer;
    padding: 5px;
    transition: opacity 0.3s;
}
.arrow-btn:hover {
    opacity: 0.8;
}

/* 调度员轮播容器 */
.dispatcher-list-container {
    height: 180px; /* 两个调度员卡片的高度 */
    overflow: hidden;
    position: relative;
}

.dispatcher-list {
    display: flex;
    flex-direction: column;
    transition: transform 0.5s ease-in-out; /* 实现平滑滚动效果 */
}

/* 单个调度员卡片样式 */
.dispatcher-card {
    flex-shrink: 0; /* 防止卡片被挤压 */
    height: 190px; /* 单个卡片高度 */
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}
.dispatcher-card:last-child {
    border-bottom: none;
}

.card-info-top {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.card-photo i {
    font-size: 30px;
    color: var(--theme-color);
    margin-right: 10px;
}

.card-name-phone h4 {
    margin: 0;
    font-size: 15px;
    color: var(--theme-color);
}
.card-name-phone p {
    font-size: 12px;
    color: #999;
}

.card-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.wechat-qr-placeholder {
    width: 80px;
    height: 80px;
    background: #f0f0f0;
    border: 1px dashed #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    line-height: 1.2;
    text-align: center;
    color: #666;
    overflow: hidden;
}

/* 响应式调整：移动端隐藏左下角悬浮框 */
@media (max-width: 768px) {
    .fixed-contact-card {
        display: none; 
    } 
    .hidden {        
        display: none; 
    }
    .auto-table{
        min-width: 0px !important;
    }
}








/* --- 车型卡片图片区域改为轮播图样式 --- */

.car-carousel {
    position: relative;
    width: 100%;
    height: 180px; /* 与原 placeholder 高度一致 */
    overflow: hidden;
    background: #eef2f5; /* 占位背景色 */
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-image {
    width: 100%;
    height: 100%;
    flex-shrink: 0; /* 确保图片不被挤压 */
    object-fit: fill; /* 保持图片比例 */
    /* 仅为演示：如果无图，使用颜色占位 */
    background-color: #ccc; 
    border-right: 1px solid #eef2f5; 
}

/* 轮播控制按钮 (左右箭头) */
.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
    line-height: 1;
    transition: background 0.3s;
}

.carousel-prev:hover, .carousel-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-prev { left: 0; border-radius: 0 5px 5px 0; }
.carousel-next { right: 0; border-radius: 5px 0 0 5px; }


/* 轮播指示点 (Dots) */
.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 15;
}

.dot {
    display: inline-block;
    height: 8px;
    width: 8px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: var(--theme-color);
}






/* --- 优势区块样式增强 (id="advantages") --- */

/* 优势列表布局 */
.advantage-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.advantage-item {
    flex-basis: 22%; /* 默认四列布局 */
    text-align: center;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.advantage-item i {
    font-size: 36px;
    color: var(--theme-color);
    margin-bottom: 10px;
}

.advantage-item h3 {
    font-size: 18px;
    margin-top: 10px;
    color: #333;
}

.advantage-item p {
    font-size: 14px;
    color: #666;
    margin-top: 18px;
}

/* 优势对比表格样式 */
.table-responsive {
    overflow-x: auto; /* 保证表格在小屏幕上可水平滚动 */
    margin-top: 20px;
}

#advantages table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
    min-width: 600px; /* 最小宽度，防止内容太挤 */
}

#advantages th, #advantages td {
    border: 1px solid #ddd;
    padding: 12px 15px;
    text-align: left;
}

#advantages thead th {
    background-color: var(--theme-color);
    color: white;
    font-weight: bold;
}

#advantages tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

#advantages .section-subtitle{
    text-align: center;
}
/* 响应式调整 */
@media (max-width: 992px) {
    .advantage-item {
        flex-basis: 48%; /* 中等屏幕两列 */
    }
}
@media (max-width: 576px) {
    .advantage-item {
        flex-basis: 100%; /* 移动端单列 */
    }
}




/* 关于我们容器 */
.about-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 32px;
    position: relative;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--theme-color);
    border-radius: 2px;
}
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--theme-color);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-gray);
    text-align: justify;
}

.about-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    display: block;
    transition: transform 0.5s;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* 核心优势卡片 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-item {
    background: var(--bg-light);
    padding: 40px 30px;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.feature-item:hover {
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-bottom-color: var(--theme-color);
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 40px;
    color: var(--theme-color);
    margin-bottom: 20px;
}

.feature-item h4 {
    font-size: 20px;
    margin-bottom: 15px;
}

/* 手机端适配 */
@media (max-width: 768px) {
    .about-section { padding: 50px 15px; }
    .section-header h2 { font-size: 26px; }
    .about-content { flex-direction: column-reverse; }
}

.cars-section, .advantages-section, .guarantee-section{
    padding-top: 70px;
}