:root {
    --maroon: #800000;
    --dark-red: #4d0000;
    --black: #000000;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --text-gray: #cccccc;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* 确保 padding 不会撑开容器宽度 */
}

body, html {
    width: 100%;
    overflow-x: hidden; /* 彻底禁止横向滚动 */
}
body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: var(--light-gray);
    color: var(--black);
    line-height: 1.6;
}
.navbar {
    display: flex;
    align-items: center;
    justify-content: center; 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
    padding: 0 5%;
    height: 70px;
    box-sizing: border-box;
}
/* 左边盒子占 1 份空间 */
.nav-brand {
    flex: 1; 
    display: flex;
    align-items: center;
    padding-left: 4%;
}
/* 右边空盒子也占 1 份空间 */
.nav-auth-placeholder {
    flex: 1; 
}
/* 别忘了把标题文字颜色改回白色 */
.nav-brand span {
    color: white;
    font-weight: bold;
}
/* 3. 右侧按钮区：分 1 份宽度，并靠右对齐 */
.nav-auth {
    flex: 1;
    display: flex;
    justify-content: flex-end; /* 关键：把按钮推到最右边 */
    gap: 15px;
}
/* 中间菜单占 2 份空间，并强制内部文字居中 */
.nav-links {
    flex: 2;
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 30px;
}
/* 链接基础样式 */
.nav-links li a {
    position: relative;
    color: var(--white);
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.nav-links li a:hover {
    color: #800000;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #800000;
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}
.logo-img {
    height: 45px;        
    width: auto;         
    display: block;      /* Remove tiny gaps at the bottom of the image. */
    object-fit: contain; /* Ensure the image is fully displayed within the container. */
}
.hero {
    position: relative;
    height: 90vh; /* 你设定的高度 */
    width: 100%;
    overflow: hidden; /* 关键：强制切掉任何超出这个区域的内容 */
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* 核心修复：确保视频覆盖容器但不撑开 */
    width: 100%;
    height: 100%;
    object-fit: cover; /* 关键：视频会像背景图一样裁剪，而不会导致横向溢出 */
    
    z-index: 1;
    pointer-events: none; /* 防止用户右键点击视频弹出菜单 */
}

/* 黑色遮罩：让视频暗一点，文字才明显 */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* 0.4 是透明度，可以自己调 */
    z-index: 2;
}

/* 文字内容 */
.hero-content {
    position: relative;
    z-index: 3; /* 确保在视频和遮罩上方 */
    text-align: left; /* 根据你截图，文字是靠左的 */
    width: 100%;
    max-width: 1200px; /* 和你页面的 container 对齐 */
    padding: 0 50px;
}

/* 主标题调整 */
.hero-content h1 {
    font-size: 4.5rem;          /* 略微加大 */
    font-weight: 800;           /* 加粗 */
    text-transform: uppercase;  /* 如果你想让它更霸气，可以全大写 */
    letter-spacing: -1px;       /* 紧凑一点更有现代感 */
    margin-bottom: 5px;         /* 缩短与下方的距离 */
    text-shadow: 0 5px 15px rgba(0,0,0,0.3); /* 增加深度感 */
}

/* 副标题调整 */
.hero-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85); /* 稍微降低亮度，突出主标题 */
    letter-spacing: 1.5px;      /* 舒展一点 */
    margin-bottom: 30px;        /* 增加到按钮的距离 */
    max-width: 600px;           /* 限制宽度，防止文字排太长一行 */
}

/* 按钮微调 */
.hero-buttons .browse-btn {
    padding: 12px 35px;         /* 加宽一点 */
    font-weight: 600;
    transition: 0.4s;
    background-color: var(--maroon);
}

.hero-buttons .contact-btn {
    padding: 12px 35px;
    border: 2px solid white;    /* 边框稍微加粗 */
    backdrop-filter: blur(5px); /* 按钮背景微磨砂（非常高级的效果） */
}
.why-choose-us {
    position: relative;
    width: 100%;
    /* 保持原有的背景设置 */
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/whyChooseUsWallpaper.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    
    /* --- 核心修改 --- */
    /* 增加顶部 padding (120px = 70px 导航栏 + 50px 留白) */
    /* 底部保持 60px 或你喜欢的间距 */
    padding: 120px 0 60px 0; 
    /* ---------------- */
    
    overflow: hidden;
}
.main-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    /* 1. 增加最大宽度，或者直接用百分比 */
    width: 90%;            /* 占据屏幕 90% 的宽度 */
    max-width: 1400px;     /* 调大最大限制，原先可能是 1000px 或 1200px */
    
    margin: 0 auto;
    padding: 60px 0;       /* 缩小上下间距，让它不那么高 */
    gap: 30px;             /* 缩小标题和卡片之间的空隙 */
}
/* 左侧标题控制 */
.title-side {
    flex: 0 0 30%;             /* 固定占据 35% 宽度，不许被挤压 */
    text-align: left;
    padding-left: 10px;          /* 文字左对齐 */
}
/* 3. 标题和文字颜色（必须是白色，否则看不清） */
.title-side h2 {
    color: #ffffff;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5); /* 增加阴影，防止被背景干扰 */
    font-size: 2.5rem;
}
.title-line {
    width: 60px;
    height: 5px;
    background: #800000;       /* 你的酒红色 */
    margin-top: 20px;
}
.cards-side {
    flex: 0 0 65%;         /* 增加卡片区域的比例，原先可能是 50% 或更小 */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.reason-item {
    background: transparent; /* 黑色半透明 */
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: white;
    text-align: center;
    padding: 80px 0;
    border-radius: 10px;
}

.reason-item img {
    width: 50px;         /* 图标不要太大 */
    margin-bottom: 15px;
}

/* 手机端适配：如果不加这个，手机上会挤死 */
@media (max-width: 992px) {
    .main-layout {
        flex-direction: column; /* 手机上变回上下排列 */
        text-align: center;
    }
    .title-side {
        text-align: center;
        margin-bottom: 30px;
    }
    .title-line {
        margin: 20px auto 0;
    }
}
/* 针对平板的适配 */
@media (max-width: 1024px) {
    .reasons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.reason-icon {
    width: 45px;            /* 图标本身的大小，根据你的 PNG 实际感官调整 */
    height: 45px;
    object-fit: contain;    /* 确保图标比例不失真 */
    /* 如果你的 PNG 是纯黑色的，想让它变色，可以尝试这个黑科技 filter */
    /* filter: brightness(0) saturate(100%) invert(11%) sepia(94%) saturate(4520%) hue-rotate(354deg) brightness(88%) contrast(116%); */
}
.customer-reviews {
    padding: 80px 0;
    background-color: #fcfcfc;
}

/* 容器 */
.reviews-layout {
    display: flex;
    flex-direction: row-reverse; /* 标题在右，卡片在左 */
    align-items: flex-start;
    width: 95%;
    max-width: 1600px;
    margin: 0 auto;
    gap: 60px;
    padding: 80px 0;
}

/* 标题区域 */
.reviews-header {
    flex: 0 0 300px;
    text-align: right;
}

/* 2. 标题 H2 样式 */
.reviews-header h2 {
    position: relative;
    display: inline-block; /* 关键：让容器宽度等于文字宽度 */
    padding-bottom: 15px;  /* 给下划线留出空间 */
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: black;
}
/* 3. 制作红线 */
.reviews-header h2::after {
    content: ""; /* 必须有这一行，否则不显示 */
    position: absolute;
    bottom: 0;
    right: 0; /* 关键：让红线从右边开始对齐 */
    
    width: 60px;  /* 红线的长度 */
    height: 4px;  /* 红线的粗细 */
    background-color: #800000; /* 酒红色 */
    border-radius: 2px;
}
/* 4. 副标题也设置右对齐 */
.reviews-header p {
    text-align: right;
    line-height: 1.8;
    color: #666;
}
.reviews-grid {
    display: flex !important;       /* 强制开启 Flex */
    flex-wrap: nowrap !important;   /* 强制禁止换行（这是解决问题的核心） */
    overflow-x: auto !important;    /* 强制允许横向滚动 */
    
    /* 基础排版 */
    gap: 30px;
    padding: 20px 0 15px 0;
    width: 100%;
    
    /* 隐藏滚动条 */
    scrollbar-width: auto; 
    scroll-snap-type: x mandatory;
}

.reviews-grid::-webkit-scrollbar {
    height: 6px !important;          /* 🌟把原来的 display: none 改掉，设定 6px 精致高度 */
    display: block !important;       /* 确保强制显示 */
}
/* 🌟【新增】定义滚动条底部的灰色滑轨 */
.reviews-grid::-webkit-scrollbar-track {
    background: #f1f1f13e !important;  /* 浅灰色底色 */
    border-radius: 10px !important;  /* 轨道圆角 */
}
/* 🌟【新增】定义滑块（可以拖拽的那根灰色小条） */
.reviews-grid::-webkit-scrollbar-thumb {
    background: #cccccc43 !important;  /* 低调的高级灰滑块 */
    border-radius: 10px !important;  /* 滑块圆角 */
    transition: background 0.3s ease;
}

/* 🌟【新增】鼠标移到滚动条上时亮起你的品牌红 */
.reviews-grid::-webkit-scrollbar-thumb:hover {
    background: #b10a0a !important;  /* 鼠标悬停时变成品牌酒红色反馈 */
}

/* 确保卡片不会被挤扁 (保持你原本优美的参数不变) */
.reviews-card {
    flex: 0 0 380px !important;    /* 强制固定宽度 380px */
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    scroll-snap-align: start;
    
    /* 内部对齐 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 350px;
    transition: transform 0.3s ease; /* 🌟优化：让你的 hover 悬浮动画变得更顺滑 */
}
/* 鼠标悬停时的小动画（可选） */
.review-card:hover {
    transform: translateY(-5px);
}
/* 📱 移动端适配：如果屏幕太窄，自动变回上下排版 */
@media (max-width: 992px) {
    .reviews-layout {
        flex-direction: column;
    }
    .reviews-header {
        flex: 0 0 auto;
        width: 100%;
        margin-bottom: 40px;
    }
}

.stars {
    color: #f1c40f; /* 金色星星 */
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-align: center;
}

.comment {
    font-style: italic;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: center;
}

.client-info {
    display: flex;
    /* 1. 核心修改：让 flex 容器的内容水平居中 */
    justify-content: center; 
    align-items: center;
    
    /* 2. 如果你没有头像图片，建议改为 column 模式，这样文字上下排列更稳 */
    flex-direction: column; 
    
    gap: 10px; /* 缩小间距 */
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: auto; /* 让这部分始终贴在卡片底部 */
}

.client-detail {
    /* 3. 确保容器本身占满宽度，方便文字居中 */
    width: 100%; 
    text-align: center;
}

.client-detail h4 {
    font-size: 1.1rem; /* 名字可以稍微大一点点 */
    font-weight: 700;
    color: #222;
    margin-bottom: 0; /* 因为下面没有 span 了，间距设为 0 */
    text-align: center;
}

/* 可以加一个极细的装饰点缀，比如一个红色的点或者小横线 */
.client-info::after {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--maroon);
    margin: 10px auto 0;
}

/* 左侧品牌名样式 */
.nav-brand {
    display: flex;       /* Necessary for the image and text to be displayed side-by-side.  */
    align-items: center; /* Ensure they are vertically centered.  */
    gap: 10px;           
}

/* 中间链接居中  */
.nav-links {
    flex: 2; /* Space in the middle */
    display: flex;
    justify-content: center; /* Ensure the link is centered in the middle area. */
    gap: 30px; 
}

/* 右侧按钮对齐 */
.nav-right {
    display: flex;
    gap: 15px;           
    align-items: center; 
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.nav-right button {
    padding: 12px 28px;  
    font-size: 1.1rem;   
    font-weight: bold;
    border-radius: 8px;  
    cursor: pointer;
    border: none;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--text-gray);
    border-bottom: 2px solid white;
}
.signup { 
    background: var(--black); 
    color: var(--white);
    width:100%;
    padding: 15px; 
}

/* =========================================
   Homepage Carousel Section (首页轮播图对齐优化)
   ========================================= */

/* 1. 标题居中 */
.featured-section .section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--black);
}
/* 在标题下方加一条短红线，增加设计感 */
.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--maroon);
    margin: 15px auto 0;      /* 居中显示 */
}

/* =========================================
   修正后的 Featured Vehicles 轮播图 CSS
   ========================================= */

/* 2. 轮播图外壳：保持左右大气的留白 */
.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 8%; /* 保持 8% 的左右 padding，防止吃边 */
    margin: 40px 0;
    width: 100%;
    box-sizing: border-box;
}

/* 3. 视口：隐藏超出屏幕的卡片 */
.carousel-viewport {
    overflow: hidden; /* 核心：必须是 hidden，隐藏第 4, 5, 6 张车 */
    width: 100%;
    position: relative; 
}

/* 4. 内部滑条 */
.vehicle-slider {
    display: flex;
    gap: 20px; /* 保持适中的卡片间距 */
    transition: transform 0.5s ease-in-out;
    padding: 15px 5px; /* 留出一点空间给卡片阴影 */
    
    /* 🌟核心修正：强制让所有卡片横着排成一排，绝不换行，宽度由内容无限撑开 */
    width: max-content; 
}

/* 5. 轮播图卡片基础：开启 Flex 布局 */
.vehicle-slider .car-card {
    /* 🌟核心修正：精准计算一排 3 个卡片的宽度（扣除 gap 间距）
       100% 缩放或任何屏幕下都不会变形或错位 */
    flex: 0 0 calc((100vw * 0.84 / 3) - 20px); 
    min-width: 290px; /* 设定最小宽度，防止在小屏幕上缩得太丑 */
    
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08); /* 简约的阴影 */
    transition: 0.3s;
    
    display: flex;
    flex-direction: column; /* 内部元素上下排列 */
    padding: 15px;
    box-sizing: border-box;
}

/* 6. 缩小图片高度，与卡片瘦身配套 */
.vehicle-slider .car-card img {
    width: 100%;
    height: 160px; /* 统一图片高度 */
    object-fit: cover; /* 确保图片不变形地铺满 */
    border-radius: 8px;
    margin-bottom: 15px; /* 图片下方留白 */
}

/* 7. 核心对齐部分：文字信息区 */
.car-info {
    flex-grow: 1; /* 魔法属性：让这个区域自动增长，占据所有多余空间 */
    display: flex;
    flex-direction: column;
    justify-content: center; /* 上下居中 */
    align-items: center;    /* 左右居中 */
    text-align: center;
    width: 100%;
}

/* 7.3 限制车名行数：防止名字超长撑破卡片 */
.car-card h4 {
    margin: 0 0 8px; 
    font-size: 1rem;
    line-height: 1.3;
    color: #000;
    
    /* 限制为最多两行，超出显示省略号 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    
    /* 给个最小高度，即使是一行名字也占两行空间，视觉更统一 */
    min-height: 2.6em; 
}

/* 7.4 specs */
.car-card p {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 5px;
}

/* 8. 按钮样式：强制靠底 */
.car-card button {
    margin-top: auto; /* 🌟核心：即使上方文字再少，按钮也绝对强行靠底对齐 */
    width: 100%;
    padding: 12px;
    background-color: #000; /* 对应你的 var(--black) */
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.car-card button:hover {
    background-color: #b10a0a; /* 悬停时变成你的品牌红，增加手感反馈 */
}

/* =========================================
   导航按钮 (保持原样，微调位置)
   ========================================= */
.nav-btn {
    position: absolute;
    background: var(--maroon);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
}

/* 按钮居中于左右 padding 之间 */
.left-btn { left: calc(4% - 20px); }
.right-btn { right: calc(4% - 20px); }

.nav-btn:hover { background: var(--black); }
/* Hero Section [cite: 5-7] */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 5%;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/hero-bg.jpg'); /* 建议放一张深色车图 */
    background-size: cover;
    color: var(--white);
    min-height: 400px;
}

.hero-text h1 { font-size: 3rem; margin-bottom: 10px; }
.hero-buttons button {
    padding: 12px 25px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    margin-right: 15px;
    font-size: 1rem;
}

.browse-btn { background: var(--maroon); color: white; }
.contact-btn { background: transparent; border: 2px solid white !important; color: white; }

/* =========================================
   Vehicle Page
   ========================================= */
.section-title { text-align: center; padding-top: 40px; }
.vehicles {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 40px 5%;
}
/* 4. 车辆网格：因为设置了 repeat(3, 1fr)，容器变宽时，3个格子会自动平分并变宽 */
.vehicle-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; 
    gap: 25px !important; /* 稍微加大一点卡片之间的间距，排版会更大气 */
    width: 100%;
}

/* 2. 优化列表页里的卡片自适应 */
.vehicle-grid .car-card {
    background: white;
    width:"100%";
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    padding: 15px;
    box-sizing: border-box;
    width: 100%; /* 充满网格格子 */
}

.car-info {
    flex-grow: 1;           /* Occupy remaining space */
    display: flex;
    flex-direction: column;
    align-items: center;   
    justify-content: center;
    width: 100%;           
}

.car-card h4 {
    margin: 5px 0;
    font-size: 1.1rem;
    line-height: 1.3;
}

.car-card button {
    width: 100%;          
    padding: 12px;
    margin-top: 15px;
    background-color: var(--black);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.car-card:hover {
    transform: translateY(-5px); /* Float up slightly when hovering */
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.car-card img {
    width: 100%;
    height: 180px;     
    object-fit: cover;  /* Image will be automatically cropped and filled without distortion. */
    border-radius: 5px;
    background: #eee;
}
.container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    width: 100% !important;
    max-width: 1400px !important; /* 🌟关键：放大最大宽度限制，直接解决你画绿色箭头处的空白 */
    margin: 0 auto !important;    /* 依然保持整体居中 */
    padding: 0 4% !important;     /* 🌟关键：把原本可能很大的左右内边距缩小到 4% */
    box-sizing: border-box;
}

.sidebar {
    flex: 0 0 280px; 
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.content {
    flex: 3;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}
/* 1. 让 Label 和 Select 水平并排 */
.filter-item { 
    display: flex;
    align-items: center;    /* 垂直居中对齐 */
    justify-content: space-between; /* 一个在左，一个在右 */
    margin-bottom: 15px;    /* 每个项目之间的间距 */
    gap: 10px;              /* 标签和框之间的微小间距 */
}

/* 2. 微调 Label 的宽度，确保对齐 */
.filter-item label {
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 80px;        /* 固定宽度让冒号对齐 */
    text-align: left;
}

/* 3. 让 Select 框占满剩余空间或固定宽度 */
.filter-item select {
    flex: 1;                /* 占据右边所有剩余空间 */
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.filter-group div[style*="display: flex"] {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

#priceInput {
    width: 80px !important;
    flex-shrink: 0; /* To prevent the number box from being crushed */
}

.search-bar {
    position:relative;
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 30px;
}

.search-bar input {
    flex: 1;
    padding-right: 45px;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
    outline: none;
}

.search-bar button {
    height: 46px; /* 确保高度和 input 一致，防止错位 */
    padding: 0 25px;
    background: #000;
    color: #fff;
    border: 1px solid #000;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
}
.clear-icon {
    position: absolute;
    /* 1. 调整位置：稍微往左移一点，不要贴着按钮 */
    right: 95px; 
    top: 50%;
    transform: translateY(-50%);
    
    /* 2. 放大视觉尺寸 */
    font-size: 24px; /* 之前是20px/22px，建议加大到24-26px */
    
    /* 3. 核心：增加点击热区 (Hit Area) */
    /* 即使图标看起来没那么大，加上 padding 让鼠标靠近就能点到 */
    padding: 10px; 
    
    color: #999;
    cursor: pointer;
    z-index: 10;
    display: none;
    line-height: 1; /* 确保叉叉上下不被撑开 */
    user-select: none;
}

.clear-icon:hover {
    color: #b10a0a; /* 变红会让用户更明确知道自己指对了 */
}
/* 容器内的按钮通用间距 */
.filter-container button {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    margin-top: 15px;
}

/* Apply Filter 按钮：主色调，厚重感 */
/* 统一按钮基础样式 */
.apply-btn, .clear-btn {
    width: 100%;             /* 必须是 100% */
    padding: 12px 0;         /* 统一上下内边距 */
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    box-sizing: border-box;  /* 重要：确保边框不撑开宽度 */
    display: block;
    text-align: center;
    transition: 0.3s;
}

/* Apply 按钮（黑色背景） */
.apply-btn {
    background-color: #000;
    color: #fff;
    border: 1px solid #ccc;
    margin-top: 10px;
}

/* Clear 按钮（白底黑边） */
.clear-btn {
    background-color: transparent;
    color: #555;
    border: 1px solid #ccc;
    margin-top: 10px;
}

.clear-btn:hover {
    background-color: #f9f9f9;
    border-color: #999;
}
/* 3. 分页按钮居中外壳 */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    margin-bottom: 20px;
}

/* 4. 分页数字按钮样式 */
.page-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background-color: white;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

/* 5. 当选中当前页或者鼠标悬停时，变成你的品牌红 */
.page-btn:hover, .page-btn.active {
    background-color: #b10a0a; /* 对应你的酒红/玛瑙红 */
    border-color: #b10a0a;
    color: white;
}
/* details page */
.gallery-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 450px;
    background: transparent;
    border-radius: 15px;
    overflow: hidden;
}
.main-content {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 左侧栏：固定宽度或比例 */
.left-column {
    flex: 2; /* 占据较大空间 */
    display: flex;
    flex-direction: column;
    gap: 25px; /* 图片和评论之间的距离 */
}
.info-panel h1 {
    margin-top: 0;      /* 关键：消除标题上方的默认间距，让文字贴着顶部开始 */
    line-height: 1.2;   /* 微调行高，让排版更紧致 */
    margin-bottom: 15px;
    font-size: 2rem;
}

/* 让 Details 的评论卡片与 Home Page 的卡片风格共用 */
.review-card {
    background-color: #fcfcfc;
    padding: 12px 15px;
    margin-bottom: 12px;
    border-left: 3px solid #800000;
    
    /* 核心修改：禁用拉伸，让高度由内容绝对决定 */
    display: block; 
    width: fit-content;
    height: auto !important; /* 强制覆盖可能存在的固定高度 */
    min-height: 0 !important; /* 强制覆盖可能存在的最小高度 */
    flex: none !important;    /* 强制阻止 Flexbox 的拉伸 */
}
/* 移除所有可能导致空隙的属性 */
.review-grid {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* 关键：这会让所有卡片向左靠拢，不再强制占满全宽 */
    gap: 15px;
}
.review-card p {
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

.review-author {
    margin-top: 5px; /* 只需要一点点顶部间距 */
    display: block;
    font-weight: 700;
    color: #800000;
    font-size: 0.75rem;
    text-align: right;
}
/* 评论区样式保持紧凑 */
.reviews-section {
    width: 100%; 
    border-top: 1px solid #eee;
    padding-top: 20px;
}
.reviews-section h4 {
    font-size: 1rem;
    color: #666;
    margin-bottom: 25px; /* 👈 将这里的值从之前的 8px-10px 改为 25px */
    text-transform: uppercase;
    letter-spacing: 1px;
}
.gallery-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    /* 关键属性：contain 会缩放图片以适配容器，保证图片不被裁剪且完整显示 */
    object-fit: contain; 
    /* 可选：设置背景色，让不同比例照片留下的空白处看起来更统一 */
    background-color: #f4f4f4; 
    border-radius: 10px;
}

.info-panel {
    flex: 1; /* 占据较小空间，显得更紧凑 */
    position: sticky; /* 让配置信息在滚动时保持在上方，很专业 */
    top: 100px; 
}
/* 适配手机端 */
@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }
    .left-column, .info-panel {
        width: 100%;
    }
}
/* 酒红色圆形按钮样式 */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--maroon); /* 使用你的酒红色 */
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%; /* 圆形 */
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    z-index: 10;
    opacity: 0.9; /* 默认半透明，看起来更高端 */
}

.gallery-nav:hover {
    opacity: 1;
    background: #000; /* 悬停变黑 */
}

.gallery-nav.prev { left: 15px; }
.gallery-nav.next { right: 15px; }

/* 修复 Premium Features 的列表样式 */
.info-panel h3 {
    margin-top: 20px;    /* 上方保持一点呼吸感 */
    margin-bottom: 8px;  /* 关键：把原本很大的下边距改小，让标题贴近内容 */
    font-size: 1.1rem;
    color: #333;
}

#featureList {
    margin-top: 0;
    padding: 0; 
    display: flex;
    flex-direction: column;
}

.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.feature-list li {
    background: #f9f9f9;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.9rem;
    border-left: 3px solid var(--maroon); /* 加个小装饰 */
}
/* 分类标题样式 */
.feature-group-title {
    width: 100%;
    color: var(--maroon);
    font-size: 1.1rem;
    font-weight: bold;
    margin: 30px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0; /* 浅灰色底线 */
    position: relative;
    display: block;
}

.feature-group-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--maroon);
}

/* 强制两列显示 */
.feature-group-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 完美的 50/50 比例 */
    gap: 10px 15px;
    margin-top: 5px;
}

.feature-item {
    font-size: 0.85rem;
    color: #333;
    background: #f8f9fa; /* 极浅的背景色 */
    padding: 10px 15px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    border: 1px solid transparent;
    transition: 0.2s;
}

.feature-item:hover {
    border-color: #e0e0e0;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.feature-item::before {
    content: '✓';
    color: var(--maroon);
    font-weight: bold;
    margin-right: 10px;
}
/* 面包屑容器样式 */
.breadcrumb {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 20px;
}
/* 1. 调整顶部的面包屑外壳，让它和下面同步变宽 */
.breadcrumb-wrapper {
    width: 100% !important;
    max-width: 1400px !important;
    /* 核心修改：将第一个参数（顶部间距）从 20px 改为 100px */
    margin: 100px auto 10px auto !important; 
    padding: 0 4% !important;
    box-sizing: border-box;
}
/* 链接的基础样式 */
.breadcrumb a {
    color: #888; /* 默认灰色 */
    text-decoration: none; /* 去掉下划线 */
    transition: 0.3s;
}

/* 鼠标移上去时的效果 */
.breadcrumb a:hover {
    color: var(--maroon); /* 变成你网页的酒红色 */
    text-decoration: underline; /* 加上下划线 */
}

/* 最后一级（当前页面）的颜色 */
.breadcrumb span {
    color: #333;
    font-weight: 500;
}
/* 1. 调整衔接处的板块样式 */
.similar-vehicles {
    background-color: #f9f9f9; /* 极浅的灰色，区分板块 */
    padding: 60px 5%;          /* 增加内边距，让内容更有呼吸感 */
    margin-top: 40px;          /* 减小与上方详情区的外部间距 */
    border-top: 1px solid #eee; /* 保留细线，但颜色变浅一点 */
}

/* 2. 标题微调 */
.similar-vehicles h2 {
    text-align: center;        /* 标题居中通常在底部推荐区更好看 */
    margin-bottom: 40px;       /* 标题和下方卡片的间距 */
    font-size: 1.8rem;
    position: relative;
}

/* 在标题下方加一条短红线，增加设计感 */
.similar-vehicles h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--maroon);
    margin: 15px auto 0;      /* 居中显示 */
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* 1. 确保卡片是垂直弹性容器 */
.car-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: 0.3s;
    
    /* 核心修改：开启 Flex 纵向排列 */
    display: flex;
    flex-direction: column;
    height: 100%; /* 让卡片高度填满整个网格格子的空间 */
}

.car-card:hover {
    transform: translateY(-5px);
}

.car-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* 2. 核心修改：让 car-info 自动占据中间所有可用空间 */
.car-info {
    padding: 15px;
    flex-grow: 1; /* 关键：自动伸缩，填补剩余高度 */
    display: flex;
    flex-direction: column;
}

.car-info h4 {
    font-size: 0.95rem;
    line-height: 1.3;
    
    /* 核心：强制限制显示 2 行，多出来的显示省略号 */
    display: -webkit-box;
    line-clamp: 2; /* 限制标题最多显示 2 行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    
    /* 关键：增加悬浮效果，当鼠标放上去，显示完整标题 */
    transition: all 0.2s;
    cursor: help; /* 鼠标变成问号/提示图标 */
}
/* 悬停时：去除限制，让标题变回原来的高度显示完整内容 */
.car-card:hover .car-info h4 {
    line-clamp: unset; 
    background-color: #fff;
    position: relative;
    z-index: 10;
}
/* 4. 按钮此时会自动被“挤”到最下方对齐 */
.view-btn {
    width: 100%;
    padding: 10px;
    background: var(--maroon);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    /* 移除了 margin-top: 10px; 按钮现在会由 flex 布局自动对齐 */
    margin-top: auto; /* 关键：margin-top: auto 会把按钮推到容器的最底部 */
}

.about-hero {
    position: relative;
    width: 100%;
    height: 40vh; /* 你目前的高度看起来在 40vh 左右 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white; /* 确保文字变白 */

    /* --- 背景图核心设置 --- */
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                      url('images/about.jpeg'); /* 替换为你的图片路径 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* background-attachment: fixed; */ /* 如果想要视差滚动效果可以开启这行 */
}

/* 装饰：给标题加点阴影，防止被背景干扰 */
.about-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.5);
}
/* =========================================
   Footer (保持原样，微调位置)
   ========================================= */
footer {
    background-color: #000000;
    color: #ffffff;
    padding: 60px 8% 30px;
    font-family: Arial, sans-serif;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}
/* 1. 针对该描述的特殊排版 */
.footer-description {
    max-width: 280px;      /* 限制宽度，防止文字拉得太长导致视觉疲劳 */
    line-height: 1.6;      /* 增加行高，显得优雅 */
    font-size: 0.9rem;     /* 稍微调小，与 h3 标题形成层级 */
    color: #b0b0b0 !important; /* 调灰，去掉刺眼的纯白，提升质感 */
    margin-bottom: 20px;   /* 留出与下方内容的呼吸空间 */
}

/* 2. 微调基础段落样式 (防止全局 p 标签受影响) */
.footer-column p:not(.footer-description) {
    color: #ffffff;
    margin-bottom: 12px;
}

.footer-column {
    flex: 1;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column p, .footer-column a {
    color: #ffffff;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.footer-column a:hover {
    color: #800000; 
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
/* 给电话链接添加悬停效果 */
.contact-item a {
    transition: all 0.3s ease; /* 让变化过程平滑过渡 */
}

.contact-item a:hover {
    color: #25D366;           /* 悬停时变为 WhatsApp 的标志性绿色 */
    text-decoration: underline; /* 增加下划线，进一步提示可点击 */
    cursor: pointer;          /* 确保鼠标变小手图标 */
    transform: scale(1.05);    /* 微小的放大效果，增加点击欲望 */
}

hr.footer-divider {
    border: 0;
    border-top: 1px solid #ffffff;
    margin-bottom: 20px;
}

.footer-bottom {
    display: flex;
    justify-content: center; 
    align-items: center;
    font-size: 0.85rem;
}
/* =========================================
   Vehicle Details Section (首页轮播图对齐优化)
   ========================================= */
.details-container { 
    padding: 40px 10%; 
    background: white; 
    color: black; 
    padding-top: 100px !important;
    margin-top: 0 !important;
}
.breadcrumb { 
    margin-bottom: 20px; 
    font-size: 0.9rem; 
    color: #666; 
}
.main-content { 
    display: flex; 
    gap: 40px; 
    margin-bottom: 50px; 
}
.image-gallery { 
    flex: 1.5; 
}
.main-img { 
    width: 100%; 
    height: 400px; 
    background: #ddd; 
    border-radius: 10px; 
}
.info-panel { 
    flex: 1; 
}
.price-tag { 
    font-size: 1.8rem; 
    color: var(--maroon); 
    font-weight: bold; 
    margin-top: 0; 
    margin-bottom: 20px; 
}
.spec-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 15px; 
    margin: 20px 0; 
    border-top: 1px solid #eee; 
    padding-top: 20px; 
}
.spec-item b { 
    color: var(--maroon); 
}
.whatsapp-btn { 
    background-color: #25D366; 
    color: white; 
    border: none; 
    padding: 15px; 
    width: 100%; 
    border-radius: 8px; 
    font-size: 1.1rem; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px;
}
/* =========================================
   🌟 详情页缩略图完美修复样式
   ========================================= */

/* 1. 缩略图外壳容器：确保它们横着一排排开，绝不往下掉 */
.thumbnail-container {
    display: flex;
    gap: 10px;
    margin: 15px auto 0 auto; /* 🌟关键修正：用 auto 让缩略图区域整体水平居中，和大图完全对齐 */
    width: 100%;
    /* 🌟关键修正：把 max-width 设定为和你原本大图的宽度一模一样（通常是 100% 或具体像素，这里设为 480px-500px 左右看下效果） */
    max-width: 480px; 
    overflow-x: auto;
    padding: 5px 2px;
    box-sizing: border-box;
    justify-content: flex-start; /* 保持内部图片靠左排，超出时可以往右滚 */
}

/* 2. 隐藏缩略图原生滚动条（选填，为了更美观高级） */
.thumbnail-container::-webkit-scrollbar {
    height: 6px;        /* 滚动条高度 */
}
.thumbnail-container::-webkit-scrollbar-thumb {
    background: #ccc;   /* 滚动条滑块颜色 */
    border-radius: 4px;
}

/* 3. 缩略图单个小格子：强制缩小尺寸，整齐一致 */
.thumbnail-container .thumb-img {
    width: 80px !important;   /* 🌟强制设定小格子宽度 */
    height: 60px !important;  /* 🌟强制设定小格子高度 */
    object-fit: cover;        /* 确保裁剪后不变形 */
    border-radius: 6px;       /* 柔和的圆角 */
    cursor: pointer;
    border: 2px solid transparent; /* 预留边框位置，防止点击时卡片抖动 */
    transition: all 0.2s ease;
    opacity: 0.5;             /* 默认半透明，突出当前大图 */
    flex: 0 0 80px;           /* 🌟核心：防止小格子被 flex 弹性压缩变窄 */
}

/* 4. 鼠标移上去，或者当前被选中的那张小格子的亮起状态 */
.thumbnail-container .thumb-img:hover,
.thumbnail-container .thumb-img.active {
    border-color: #b10a0a;    /* 亮起你的品牌红边框 */
    opacity: 1;               /* 恢复完全不透明 */
}

/* =========================================
   About Us Section (首页轮播图对齐优化)
   ========================================= */
.about-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.586), rgba(0, 0, 0, 0.586)), url('images/about.jpeg');
    background-size: cover;
    background-position: center; /* 让图片上下左右都居中 */        
    color: white;
    padding: 80px 5%;
    text-align: center;
}
.about-content { padding: 60px 15%; background: white; color: #333; }
.vision-mission { 
    display: flex; 
    gap: 40px; 
    margin: 50px 0; 
    padding: 30px; 
    background: var(--light-gray); 
    border-radius: 15px;
}
.vm-box { flex: 1; }
.vm-box h3 { color: var(--maroon); border-bottom: 2px solid var(--maroon); display: inline-block; margin-bottom: 15px; }
        
.stats-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; 
    text-align: center; 
    margin-top: 50px; 
}
.stat-item h2 { color: var(--maroon); font-size: 2.5rem; margin-bottom: 5px; }
.video-container {
    width: 100%; /* 或者你设定的宽度，如 900px */
    max-width: 900px;
    margin: 0 auto;
    
    /* 核心代码：锁定 16:9 的黄金比例 */
    /* 这样即使视频没加载出来，容器也会占好那个位子 */
    aspect-ratio: 16 / 9; 
    
    /* 确保里面的视频填满容器 */
    background-color: #000; /* 加载前的黑色背景，防止闪白 */
    border-radius: 15px;
    overflow: hidden;
}
.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 确保视频铺满，不留黑边 */
}

/* =========================================
   Contact Us Section 
   ========================================= */
.contact-container { 
    display: flex; 
    padding: 50px 10%; 
    gap: 50px; 
    background: white; 
    padding-top: 100px !important;
    margin-top: 0 !important;

}
.contact-info { 
    flex: 1; 
}
.contact-form { 
    flex: 1.5; 
    background: #f9f9f9; 
    padding: 30px; 
    border-radius: 15px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
}        
.form-group { 
    margin-bottom: 20px; 
}
.form-group label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: bold; 
    color: var(--maroon); 
}
.form-group input, .form-group textarea { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid #ddd;
     border-radius: 8px; 
     box-sizing: border-box; 
     font-family: inherit;
}
.form-group textarea { 
    height: 120px; 
    resize: none; 
}       
.info-box { margin-bottom: 30px; }
.info-box h3 { 
    color: var(--maroon); 
    margin-bottom: 10px; 
}

/* =========================================
   Thanks for submission Section 
   ========================================= */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #ffffff !important; /* 强制背景为白色 */
}
/* 2. 让容器占满全屏并居中内容 */
.thanks-container {
    min-height: 100vh;      /* 占据至少 100% 的屏幕高度 */
    display: flex;
    flex-direction: column;
    justify-content: center; /* 垂直居中 */
    align-items: center;     /* 水平居中 */
    background-color: #ffffff;
    text-align: center;
    padding: 20px;
}
/* 3. 增加行间距和文字间距 */
.thanks-container h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    letter-spacing: 1px;    /* 字间距稍微宽一点 */
}
.thanks-container p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;       /* 核心：增加行间距，1.8 会让文字看起来很舒展 */
    max-width: 600px;       /* 限制宽度，防止长句子在大屏幕上拉得太开 */
    margin: 10px auto 30px; /* 增加上下外边距 */
}
.thanks-box { 
    text-align: center; 
    padding: 150px 5%; 
    background: white; 
    min-height: 400px; 
}
.success-icon { 
    width: 100px; height: 100px; background: #25D366; color: white; 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    font-size: 50px; margin: 0 auto 30px; 
}
/* 4. 美化那个 Back to Home 按钮 */
.back-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #800000; /* 你的酒红色 */
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}
.back-btn:hover {
    background-color: #4d0000;
    transform: translateY(-2px);
}