/* ========== 删掉原来main的padding‑top:100vh 全部移除 ========== */

/* ===================== 首页4分类卡片模块 ===================== */
.home-category-section {
    padding: 60px 0;
}
.home-category-wrap {
    display: grid;
    grid-template-columns: repeat(2, 640px);
    gap: 24px;
    justify-content: center;
}
.home-category-card {
    width: 640px;
    height: 278px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
/* 卡片背景图容器，hover缩放 */
.card-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.home-category-card:hover .card-bg img {
    transform: scale(1.08);
}
/* 深色遮罩 */
.card-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.45);
}
.card-content {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    z-index: 2;
}
.card-content h3 {
    font-size: 32px;
    margin-bottom: 8px;
    white-space: nowrap; /* PC标题也禁止换行 */
}
.card-content p {
    font-size: 18px;
    margin-bottom: 28px;
    opacity: 0.9;
}
.card-btn {
    display: inline-block;
    padding: 12px 32px;
    border: 1px solid #fff;
    border-radius: 8px;
    font-size:16px;
    transition: all 0.28s ease;
}
/* hover按钮切换主题背景色 */
.home-category-card:hover .card-btn {
    background-color: #0682db;
    border-color: #0682db;
}
.card-btn.disabled {
    opacity:0.55;
    pointer-events:none;
}

/* ========== 移动端样式 <=991px【修正版本】 ========== */
/* ========== 移动端样式 <=991px 最终版：一行2个、卡片拉宽、标题完整显示 ========== */
@media(max-width:991px){
    .home-category-section {
        padding: 24px 0; /* 移动端整体边距再缩小 */
    }
    .home-category-wrap {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 12px; /* 模块左右留白缩小 */
        /* 彻底关闭横向滚动 */
        overflow-x: unset;
        scroll-snap-type: unset;
    }

    .home-category-card {
        width: 100%;    /* 卡片撑满单元格，宽度最大化 */
        height: 120px;
        border-radius:12px;
    }

    /* 移动端关闭图片放大动画 */
    .home-category-card .card-bg img {
        transition:none;
    }
    /* 移动端隐藏按钮 */
    .card-btn {
        display: none !important;
    }
    /* 移动端隐藏副标题p标签 */
    .card-content p{
        display:none !important;
    }

    .card-content {
        left:14px;
        top:50%;
        transform: translateY(-50%);
    }
    .card-content h3 {
        font-size: 16px;
        margin-bottom:0;
        white-space: normal;    /* 允许换行 */
        overflow: visible;
        text-overflow: unset;   /* 取消省略号，文字完整展示 */
        line-height: 1.3;
    }
}
/*====================热销车型模块====================*/
.hot-selling-wrap {
  padding: 60px 0;
}
.hot-selling-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.hot-selling-header h2 {
  font-size: 36px;
  font-weight: 700;
  margin: 0;
  color: #000000;
}
.hot-more-btn {
  border: 1px solid #ccc;
  padding: 12px 22px;
  border-radius: 6px;
  color: #333;
  text-decoration: none;
  font-size: 15px;
}
.hot-more-btn:hover {
  border-color: #0682db;
  background-color: #0682db;
  color: #fff;
}

.hot-selling-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.hot-item {
  border-radius: 14px;
  overflow: hidden;
  background-color: #f5f5f5;
}
.hot-item-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.hot-item-pic {
  width: 100%;
  overflow: hidden; /* 关键：裁剪放大图片 */
}
.hot-item-pic img {
  width: 100%;
  display: block;
  transition: transform 0.35s ease;
}
/* hover图片内部缩放 */
.hot-item:hover .hot-item-pic img {
  transform: scale(1.05);
}
.hot-item-name {
  padding: 18px 14px;
  font-size: 16px;
  font-weight: 500;
  color: #111;
  line-height: 1.4;
}

/*手机端：一排2个，2排，关闭hover缩放*/
@media (max-width: 991px) {
  .hot-selling-wrap {
    padding: 36px 0;
  }
  .hot-selling-header h2 {
    font-size: 24px;
  }
  .hot-more-btn {
    padding: 8px 14px;
    font-size: 13px;
  }
  .hot-selling-list {
    grid-template-columns: repeat(2,1fr);
    gap: 16px;
  }
  .hot-item-name {
    padding:14px 10px;
    font-size:14px;
  }
  /*移动端取消图片放大动画*/
  .hot-item-pic img {
    transition: none;
  }
  .hot-item:hover .hot-item-pic img {
    transform: scale(1);
  }
}
/*==================== ABOUT IHKA AUTO 全屏背景模块 ====================*/
/*==================== ABOUT IHKA AUTO 全屏背景模块 ====================*/
.about-ihka-section {
    width: 100%;
    background-image: url("./about-bg.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 80px 0;
}
.about-ihka-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}
.about-text-block h2 {
    font-size: 44px;
    font-weight: 700;
    margin: 0 0 12px 0;
}
.about-text-block h3 {
    font-size: 28px;
    font-weight: 400;
    margin: 0 0 24px 0;
}
.about-text-block p {
    max-width: 560px;
    font-size: 17px;
    line-height: 1.7;
    margin: 0 0 36px 0;
}

/* 修复按钮 about-learn-btn */
.about-learn-btn {
    display: inline-block;
    background-color: #0682db;
    color: #fff;
    text-decoration: none;
    font-size: 17px;
    padding: 16px 32px;
    border-radius: 8px;
    transform: translateY(0);
    transition: all 0.3s ease;
}
.about-learn-btn:hover {
    background-color: #40a2ee;
    transform: translateY(-6px);
    color: #ffffff;
}

/* 修复统计行 about-stat-row */
.about-stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 70px;
    text-align: center;
}
.stat-item {}
.stat-num {
    font-size: 64px;
    font-weight: 700;
    color: #42a8ff;
    line-height: 1;
    margin-bottom: 12px;
}
.stat-desc {
    font-size: 18px;
    line-height: 1.4;
}

/* ========== 移动端适配 ========== */
@media (max-width: 991px) {
    .about-ihka-section {
        padding: 50px 0;
    }
    .about-text-block h2 {
        font-size: 30px;
    }
    .about-text-block h3 {
        font-size: 20px;
    }
    .about-text-block p {
        font-size: 15px;
        max-width: 100%;
    }
    .about-learn-btn {
        padding: 12px 22px;
        font-size: 15px;
    }
    .about-stat-row {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 40px;
    }
    .stat-num {
        font-size: 42px;
    }
    .stat-desc {
        font-size: 15px;
    }
}

/*==================== OUR ADVANTAGE 优势模块 ====================*/
.our-advantage-section {
    padding: 70px 0;
    background-color: #f5f5f5;
}
.advantage-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}
.advantage-head h2 {
    font-size: 38px;
    font-weight: 700;
    margin: 0;
    color: #111;
}
.advantage-online-btn {
    border: 1px solid #cccccc;
    border-radius: 6px;
    padding: 12px 22px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: 0.25s;
}
.advantage-online-btn:hover {
    border-color: #0682db;
    background-color: #0682db;
    color: #fff;
}

/* 卡片容器 PC一行4张，单卡固定320*416 */
.advantage-card-wrap {
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 50px;
}
.advantage-card {
    width: 320px;
    height: 416px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
}
.advantage-card-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
    color: #ffffff;
}
.advantage-card-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.advantage-card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
/* 底部渐变遮罩，文字可读 */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}
.advantage-card:hover .advantage-card-bg img {
    transform: scale(1.06);
}

/* 外层容器贴卡片底部 */
.advantage-card-content {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 24px;
    box-sizing: border-box;
    overflow: hidden;
}
/* 核心：整块内容容器做位移，常态向下，hover向上推 */
.content-inner {
    transition: transform 0.42s ease;
    /* 常态向下偏移，让图标标题贴底部；描述跑到卡片视口外面看不见 */
    transform: translateY(48px);
}
.advantage-card:hover .content-inner {
    /* hover整体往上推，把描述拉进卡片可视区域 */
    transform: translateY(0);
}

.adv-icon {
    margin-bottom: 14px;
}
.adv-icon img {
    width: 46px;
    height: 46px;
    display: block;
}
.adv-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 18px 0;
    line-height: 1.3;
}
.adv-desc {
    font-size: 16px;
    line-height: 1.6;
    margin:0;
    opacity: 0;
    transition: opacity 0.42s ease;
}
.advantage-card:hover .adv-desc {
    opacity: 1;
}

/* 汽车横幅图，尺寸1243*262px */
.advantage-car-banner {
    width: 100%;
    text-align: center;
    margin-bottom: 26px;
}
.advantage-car-banner img {
    max-width: 1243px;
    width: 100%;
    height: 262px;
    object-fit: contain;
}

/*底部两行文字*/
.advantage-bottom-text {
    text-align: center;
}
.advantage-bottom-text h3 {
    font-size: 34px;
    font-weight: 600;
    color: #222;
    margin: 0 0 16px 0;
    line-height: 1.3;
}
.blue-text {
    font-size: 34px;
    font-weight: 700;
    color: #0682db;
}

/* ========== 移动端适配 <=991px ========== */
@media (max-width: 991px) {
    .our-advantage-section {
        padding: 40px 0;
    }
    .advantage-head h2 {
        font-size: 26px;
    }
    .advantage-online-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
    .advantage-card-wrap {
        flex-wrap: wrap;
        justify-content: center;
        gap:16px;
    }
    .advantage-card {
        width: calc(50% - 10px);
        height: auto;
        aspect-ratio: 320 / 416;
        flex-shrink: unset;
    }
    /* 卡片内容垂直居中 */
    .advantage-card-link {
        display: flex;
        align-items: center;
    }
    .content-inner {
        transform: translateY(0);
    }
    .adv-icon img {
        width: 36px;
        height: 36px;
    }
    .adv-title {
        font-size: 20px;
        margin: 0;
    }
    /* 移动端直接隐藏描述 */
    .adv-desc {
        display: none !important;
    }
    .advantage-car-banner img {
        height: auto;
    }
    .advantage-bottom-text h3 {
        font-size: 22px;
    }
    .blue-text {
        font-size: 24px;
    }
}

.auto-distribution-section {
  padding: 60px 0;
  background: #ffffff;
}
.auto-distribution-section .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-heading h2 {
  font-size: 42px;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.2;
  color: #000000;
}
.section-sub {
  font-size: 22px;
  color: #4b5563;
  margin:0 0 40px;
}

.auto-grid-wrap {
  display: grid;
  grid-template-columns: 1fr 435px;
  gap: 0;
}
.auto-grid-left {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* 卡片通用样式 */
.auto-card {
  border: 1px solid #e5e7eb;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
}
/* 右侧大卡片：内部整体垂直居中 */
.auto-card-big {
  width: 435px;
  min-height: 526px;
  justify-content: center;
}
/* 右侧卡片内部容器，把内容包起来 */
.card-inner-wrap {
  width:100%;
}

.card-top-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
/* 图标盒子：60×60px，圆角，边框 */
.card-icon-box {
  width: 60px;
  height: 60px;
  flex-shrink: 0;

  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-icon-box img{width:58px;height:58px}
.card-text-group h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 8px;
  color: #111827;
}
.card-desc-row {
  font-size: 18px;
  color: #374151;
}
.card-desc-row span {
  margin-right:8px;
}

/* PC：链接行水平居中，距离上方73px */
.card-link-row {
  margin-top: 73px;
  text-align: center;
}
.card-link-row a {
  font-size: 17px;
  color: #374151;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap:6px;
}
.arrow-right {
  font-size: 19px;
}

/* 移动端适配 */
@media(max-width:1100px){
  .auto-grid-wrap {
    grid-template-columns: 1fr;
  }
  .auto-card-big {
    width:100%;
    min-height:auto;
    justify-content:flex-start;
  }
}
@media(max-width:768px){
  .auto-grid-left{
    grid-template-columns:1fr;
  }
  .section-heading h2{
    font-size:30px;
  }
  .section-sub{
    font-size:18px;
  }
  /*移动端缩小间距，不需要73px那么大*/
  .card-link-row{
    margin-top:40px;
  }
}
.real-time-info-section {
    padding: 70px 0;
    background-color: #f6f6f6;
}
.real-time-info-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}
.info-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}
.info-title-wrap h2 {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #000000;
}
.info-sub {
    font-size: 22px;
    color: #444444;
    margin: 0;
}
.info-seemore-btn {
    border: 1px solid #cccccc;
    border-radius: 6px;
    padding:14px 26px;
    color:#333333;
    text-decoration: none;
    font-size:16px;
    transition: 0.24s;
}
.info-seemore-btn:hover {
    border-color:#0682db;
    background:#0682db;
    color:#ffffff;
}

.info-card-wrap {
    display: flex;
    gap: 24px;
}
/* 卡片固定424*492 */
.info-card {
    width: 424px;
    height: 492px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    flex-shrink: 0;
}
.info-card-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}
/*图片容器422*288 */
.info-card-img {
    width: 422px;
    height: 288px;
    overflow: hidden;
}
.info-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.36s ease;
}
.info-card-link:hover .info-card-img img {
    transform: scale(1.07);
}

.info-card-body {
    padding: 20px 22px;
}
.info-card-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #111111;
    transition: color 0.26s;
}
/* hover标题变蓝色 */
.info-card-link:hover .info-card-title {
    color: #0682db;
}
.info-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    color: #666666;
    margin-bottom: 14px;
}
.info-card-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #444444;
    margin: 0 0 18px;
    transition: color 0.26s;
}
/* hover简介变色#0682db */
.info-card-link:hover .info-card-desc {
    color: #0682db;
}
.info-readmore {
    font-size: 16px;
    color: #0682db;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 平板 */
@media(max-width:1100px){
    .info-card-wrap{
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .info-card{
        width: calc(50% - 12px);
        height: auto;
    }
    .info-card-img{
        width:100%;
        height: auto;
        aspect-ratio: 422 / 288;
    }
}
/* 手机 */
@media(max-width:768px){
    .info-head{
        flex-direction: column;
        gap: 20px;
    }
    .info-title-wrap h2{
        font-size: 30px;
    }
    .info-sub{
        font-size: 18px;
    }
    .info-card{
        width:100%;
    }
}
.quote-banner-section {
    width: 100%;
    margin-bottom: 40px; /* 和底部留出间距，防止被footer遮挡 */
}
.quote-banner-inner {
    display: flex;
    height: 545px;
}
.quote-left {
    width: 50%;
    height: 100%;
    background: url("./quote-bg.jpg") center/cover no-repeat;
}
.quote-right {
    width: 50%;
    height: 100%;
    background-color: #0e3a5af2;
    padding: 30px 34px;
    box-sizing: border-box;
}
.quote-title {
    font-size: 56px;
    color: #ffffff;
    font-weight: bold;
    margin: 0 0 26px;
    line-height: 1.1;
}
.quote-form {
    /* 表单整体收窄，输入框、选择框变短 */
    max-width: 86%;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}
.form-grid-col {
    display: flex;
    flex-direction: column;
    gap:20px;
}
.form-item label {
    display: block;
    color: #fff;
    font-size: 20px;
    margin-bottom:8px;
}
.star {
    color:#ff4444;
}
.form-item input {
    width:100%;
    box-sizing: border-box;
    height:50px; /* 修改输入框高度50px */
    background:#e6f2fb;
    border:0;
    border-radius:12px;
    font-size:19px;
    padding:0 20px;
    color:#222;
}

.tip-error {
    color:#ff4444;
    font-size:18px;
    text-align:center;
    margin-top:6px;
    display:none;
}
.input-error + .tip-error {
    display:block;
}

.custom-select {
    position:relative;
}
.select-trigger {
    height:50px; /* 下拉选择框高度同步50px */
    background:#e6f2fb;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 20px;
    box-sizing:border-box;
    cursor:pointer;
}
.select-value {
    display:flex;
    align-items:center;
    gap:12px;
    font-size:19px;
    color:#222;
}
.select-trigger .arrow {
    /* 清除文本字符，改用边框三角形 */
    position: relative;
    width: 12px;
    height: 12px;
    border: none;
    background: transparent;
}
/* 向右箭头（关闭状态），调大张开角度，修改border数值控制角度 */
.select-trigger .arrow::after{
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    /* 增大上下边框，箭头张开角度就更大 */
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 10px solid #888;
}
/* 展开后向下箭头 */
.custom-select.open .select-trigger .arrow::after {
    border-left:7px solid transparent;
    border-right:7px solid transparent;
    border-top:10px solid #888;
}


.select-dropdown {
    position:absolute;
    left:0;
    top:calc(100% +6px);
    width:100%;
    background:#fff;
    border-radius:12px;
    box-shadow:0 4px 16px rgba(0,0,0,0.15);
    z-index:99;
    display:none;
    max-height:260px;
    overflow-y:auto;
}
.custom-select.open .select-dropdown {
    display:block;
}
.select-search-wrap {
    padding:12px 14px;
    position:relative;
}
.select-search-wrap input {
    height:42px !important;
    padding:0 42px 0 14px !important;
}
.search-icon {
    position:absolute;
    right:22px;
    top:50%;
    transform:translateY(-50%);
    font-size:18px;
    color:#666;
}
.select-options {
    max-height:200px;
    overflow-y:auto;
}
.option-item {
    padding:14px 16px;
    cursor:pointer;
    display:flex;
    align-items:center;
    gap:10px;
    font-size:18px;
}
.option-item:hover {
    background:#e8f3fc;
}
.option-item.selected {
    background:#d1e7f7;
}

.form-submit-wrap {
    margin-top:26px;
}
.btn-submit {
    background:#ff7817;
    color:#fff;
    border:none;
    border-radius:12px;
    font-size:24px;
    font-weight:bold;
    padding:18px 54px;
    cursor:pointer;
}
.btn-submit:hover {
    background:#ff6600;
}

/* 移动端适配 */
@media (max-width:768px) {
    .quote-banner-section{
        margin-bottom:30px;
    }
    .quote-banner-inner {
        flex-direction:column;
        height:auto;
    }
    .quote-left,.quote-right {
        width:100%;
    }
    .quote-left {
        height:280px;
    }
    .quote-right {
        height:auto;
        padding:24px 20px;
    }
    .quote-title {
        font-size:36px;
    }
    .quote-form{
        max-width:100%; /*移动端恢复100%宽度*/
    }
    .form-grid {
        grid-template-columns:1fr;
    }
    .form-grid-col {
        gap:16px;
    }
    .form-item label {
        font-size:17px;
    }
    .form-item input,.select-trigger {
        height:50px;
        font-size:17px;
    }
    .btn-submit {
        width:100%;
        padding:14px;
        font-size:20px;
    }
}
