:root {
    --primary-color: #FF4300;
    --primary-dark: #d05814;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --text-color: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: #fff;
    line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
    font-family: "Arial Black", "Arial Bold", Gadget, sans-serif;
}

.nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    margin-left: 1rem;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* 搜索板块 */
.search-section {
    background-color: var(--light-gray);
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.search-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.search-btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

/* 品牌选择框样式优化 - 新增 */
.brand-select, .model-select {
    position: relative;
}

.brand-select option, .model-select option {
    padding: 8px 12px;
}

/* 图标样式 - 新增 */
.brand-icon-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.brand-icon-item i {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 16px;
}

/* 品牌板块 */
.brand-section {
    margin-bottom: 4rem;
}

.brand-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-color);
    text-align: center;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    max-height: 300px;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.brand-grid.expanded {
    max-height: none;
}

.brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
}

.brand-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.brand-name {
    font-weight: 500;
    font-size: 0.9rem;
    text-align: center;
}

.toggle-btn {
    display: block;
    margin: 0 auto;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 2rem;
    border-radius: 4px;
    transition: all 0.3s;
}

.toggle-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* 热销车辆板块 */
.hot-cars-section {
    margin-bottom: 4rem;
}

.car-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.car-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.car-card-body {
    padding: 1rem;
}

.car-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.2rem;
    max-height: 3.6rem; 
    height: 3.6rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.car-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.car-id {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.car-more-btn {
    display: block;
    width: 100%;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.car-more-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* ========== 新增产品详情板块样式 (与原有命名隔离) ========== */
.detail-section {
    margin: 3rem 0;
}
.detail-breadcrumb .breadcrumb {
    background-color: transparent;
    padding: 0.75rem 0;
}
.detail-breadcrumb .breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}
.detail-breadcrumb .breadcrumb-item.active {
    color: #6c757d;
}
.detail-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}
.detail-title span{ font-weight: bold; color: #ed6517;}
/* 图册部分 */
.detail-gallery .main-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 1rem;
}
.detail-gallery .thumbnail-list {
    display: flex;
    flex-wrap: wrap;
    gap: 19px;
}

@media (max-width:640px) {
.detail-gallery .thumbnail-list {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
}

.detail-gallery .thumbnail {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}
.detail-gallery .thumbnail:hover {
    border-color: var(--primary-color);
    opacity: 0.9;
}
.detail-gallery .thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(237, 101, 23, 0.3);
}
/* 右侧信息卡片 */
.detail-info-card {
    background-color: #fff;
    border-radius: 16px;
    padding: 1.8rem 1.5rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}
.detail-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333333;
    line-height: 1.2;
}
.detail-id {
    font-size: 1.5rem;
    font-weight: 600;
    color: #FF4300;
    border-bottom: 1px dashed #dee2e6;
    border-top: 1px dashed #dee2e6;
    padding-top:0.6rem;
    padding-bottom: 0.6rem;
    text-transform: uppercase;
    
}
.detail-id span{ font-weight: normal; font-size: 1.2rem;}

.spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem 1rem;
    margin: 1.5rem 0;
}
.spec-item {
    font-size: 0.95rem;
}
.spec-label {
    color: #6c757d;
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.spec-value {
    font-weight: 600;
    color: var(--text-color);
}
.contact-btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 1.8rem;
    text-align: center;
}
.btn-whatsapp {
    background-color: #25D366;
    color: white;
    font-weight: 600;
    border: none;
    padding: 12px;
    border-radius: 50px;
    transition: background-color 0.2s;
}
.btn-whatsapp:hover {
    background-color: #FF4300;
    color: white;
}
.btn-outline-primary-custom {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    padding: 12px;
    border-radius: 50px;
    background: transparent;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
}
.btn-outline-primary-custom:hover {
    background-color: var(--primary-color);
    color: white;
}
.detail-extra {
    max-width: 1200px;
    overflow: hidden;
    margin-top: 2.5rem;
    background-color: var(--light-gray);
    border-radius: 20px;
    padding: 0.6rem;
    border: 1px solid #e9ecef;
}
.detail-extra img{ max-width: 100%; }
.extra-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--text-color);
}
.feature-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
}
.feature-list li {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.feature-list i {
    color: var(--primary-color);
    width: 20px;
    font-size: 1.2rem;
}
/* 移动端微调 */
@media (max-width: 768px) {
    .detail-title {
        font-size: 1.8rem;
    }
    .detail-gallery .thumbnail {
        width: 70px;
        height: 55px;
    }
    .spec-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .detail-info-card {
        padding: 1.5rem 1rem;
    }
}
/* 底部样式 */
footer {
    background-color: var(--dark-gray);
    color: #fff;
    padding: 3rem 0 1rem;
}

.footer-text {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #adb5bd;
}

.copyright {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: #adb5bd;
    text-align: center;
}

/* 响应式适配 (原有) */
@media (max-width: 1200px) {
    .brand-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 992px) {
    .brand-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .car-img {
        height: 150px;
    }
}

@media (max-width: 768px) {
    .brand-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .search-section {
        padding: 2rem 0;
    }
    .search-card {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .brand-title {
        font-size: 1.5rem;
    }
    .car-img {
        height: 120px;
    }
}


/* 产品视频 */
.detail-extra .note-video-clip {
    width: 100%;
    max-width: 1000px;
    border-radius: 5px;
    height: auto;
    display: block;
    margin: 1rem auto; /* 上下间距 1rem，左右自动居中 */
}
.shipin{ width: 100%; margin: 0 auto; margin-top: 1rem; overflow: hidden;}
.shipin .shpinn{width: 100%; max-width: 745px;border-radius: 5px;height: auto; }
/* 可选：如果多个视频需要垂直堆叠且间距一致，可额外加 */
.detail-extra .note-video-clip:first-child {
    margin-top: 0;
}

/* 产品售出 */
.main-image {
    position: relative; /* 设置为相对定位，以便子元素可以相对于它进行绝对定位 */
    display: inline-block; /* 确保 .main-image 根据内容调整大小 */
    width: 100%; /* 确保容器宽度占满父级容器 */
    max-height: 500px; /* 设置最大高度 */
    overflow: hidden; /* 防止内容溢出 */
}

.shch2 {
    position: absolute; /* 绝对定位，使其位于 mainCarImage 上方 */
    top: 0;
    left: 0;
    width: 100%; /* 撑满整个容器 */
    height: 100%; /* 撑满整个容器 */
    object-fit: cover; /* 保证图片不会变形，同时完全覆盖容器 */
    z-index: 10; /* 确保 shch2 在 mainCarImage 之上 */
}

#mainCarImage {
    width: 100%; /* 确保图片宽度占满容器 */
    height: auto; /* 保持图片的原始宽高比 */
    object-fit: cover; /* 确保图片不会变形，同时完全覆盖容器 */
}


/* 售出状态 */
.card-img-top{height:180px;object-fit:cover;}
.shch1{ display: none;}
.shoutu {
    position: relative;      /* 为内部绝对定位元素（如售出标志）提供参考 */
    display: block;          /* 块级显示，避免内联元素间隙问题（也可以保留 inline-block） */
    height: 226px;           /* 固定高度 */
    overflow: hidden;        /* 隐藏超出部分 */
}

.shoutu img {
    display: block;          /* 去掉图片底部的间隙 */
    width: 100%;             /* 宽度填满容器 */
    height: 100%;            /* 高度填满容器 */
    object-fit: cover;       /* 图片按比例缩放，完全覆盖容器，多余部分裁剪，默认居中裁剪 */
}
/* 增加的轮播图切换 */
.detail-gallery .thumbnail {
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.detail-gallery .thumbnail.active {
    border-color: #0d6efd;
}


.canshu {
    background-color: #f8f9fa;
    border-radius: 8px;
}

/* 每个参数项样式 */
.canshu p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    margin: 0;
    border-bottom: 1px dashed #dee2e6;
    font-size: 16px;
}

.canshu p:last-child {
    border-bottom: none;
}

.canshu p span {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #2c3e50;
    margin-right: 10px;
}

.canshu p span.year::before {
    content: "\f073"; /* 日历图标 */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #ff6600;
    margin-right: 8px;
    font-size: 16px;
}

.canshu p span.engine-type::before {
    content: "\f0e4"; /* 发动机/齿轮图标 */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #ff6600;
    margin-right: 8px;
    font-size: 16px;
}

.canshu p span.transmission::before {
    content: "\f0cb"; /* 变速箱/交换图标 */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #ff6600;
    margin-right: 8px;
    font-size: 16px;
}

.canshu p span.color::before {
    content: "\f53f"; /* 调色板图标 */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #ff6600;
    margin-right: 8px;
    font-size: 16px;
}

.canshu p span.mileage::before {
    content: "\f63c"; /* 里程表/速度计图标 */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #ff6600;
    margin-right: 8px;
    font-size: 16px;
}

.canshu p span.location::before {
    content: "\f3c5"; /* 位置/地图标记图标 */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #ff6600;
    margin-right: 8px;
    font-size: 16px;
}

.canshu p span.engine-capacity::before {
    content: "\f527"; /* 烧瓶/发动机排量图标 */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #ff6600;
    margin-right: 8px;
    font-size: 16px;
}

.canshu p span.power::before {
    content: "\f0e7"; /* 闪电/动力图标 */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #ff6600;
    margin-right: 8px;
    font-size: 16px;
}

.canshu p span.volume::before {
    content: "\f0c2"; /* 立方体/容积图标 */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #ff6600;
    margin-right: 8px;
    font-size: 16px;
}

.canshu p span.power-ps::before {
    content: "\f72e";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #ff6600;
    margin-right: 8px;
    font-size: 16px;
}

.canshu p span.vin::before {
    content: "\f023"; 
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #ff6600;
    margin-right: 8px;
    font-size: 16px;
}

/* 参数值样式 */
.canshu p {
    position: relative;
}
.canshu p .param-value {
    color: #6c757d;
    text-align: right;
    flex: 1;
}

/* 适配移动端 */
@media (max-width: 768px) {
    .canshu p {
        font-size: 16px;
        padding: 10px 0;
    }
    .canshu p span {
        font-size: 18px;
    }
}

/* 价格模块整体样式 */
.price-section {
    margin-top: 0px; /* 和参数模块统一间距 */
}

/* 每个价格项样式 - 核心调整：flex 布局拆分左右两部分 */
.price-item {
    display: flex;
    justify-content: space-between; /* 左右分开 */
    align-items: flex-start; /* 顶部对齐 */
    padding: 6px 0;
    margin: 0;
    border-bottom: 1px dashed #dee2e6;
    font-size: 18px;
}

/* 最后一个价格项去掉分割线 */
.price-item:last-child {
    border-bottom: none;
}

/* 左侧区域（label + jpy）- 上下排列 */
.price-item-left {
    display: flex;
    flex-direction: column; /* 垂直排列 */
    gap: 4px; /* label和jpy之间的间距 */
}

/* 价格名称（左侧文本）样式 */
.price-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 18px;
}

/* 日元价格样式（橙色大号字体） */
.price-jpy {
    font-size: 28px;
    font-weight: 700;
    color: #ff6600;
}

/* 价格数值（右侧）样式 */
.price-value {
    display: flex;
    align-items: center;
    gap: 8px; /* rub和图标之间的间距 */
}

/* 卢布价格样式（灰色小号字体） */
.price-rub {
    font-size: 18px;
    color: #6c757d;
}

/* 信息图标样式 */
.price-info-icon {
    width: 18px;
    height: 18px;
    border: 1px solid #6c757d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #6c757d;
    cursor: pointer;
}

/* 适配移动端 */
@media (max-width: 768px) {
    .price-item {
        font-size: 16px;
        padding: 10px 0;
    }
    .price-jpy {
        font-size: 22px;
    }
    .price-rub {
        font-size: 16px;
    }
    .price-label {
        font-size: 16px;
    }
}

.sharethis-inline-share-buttons{margin-top:0.5rem}