@charset "utf-8";
/* ============================================================
   宝燕租车 · 自适应样式（手机 / 平板 / 电脑）
   加载顺序：skin 老样式 → site.css → 本文件，故此处规则优先
   断点：1240 桌面收窄 / 1080 平板横 / 860 平板竖 / 560 手机
   ============================================================ */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* ---------- 首要修正：解掉老皮肤写死的 body 宽度 ---------- */
/* base.css 里是 body{min-width:1004px;width:1004px}，这是整站无法自适应的根因 */
html,
body {
  min-width: 0 !important;
  width: auto !important;
  max-width: 100%;
  overflow-x: hidden;
}

/* ---------- 容器：固定宽 → 流式 ---------- */
@media (max-width: 1240px) {
  .bs-wrap,
  .headbj_mid,
  .nybanner_mid,
  .ny_mid {
    width: 100% !important;
    max-width: 1200px;
    box-sizing: border-box;
    padding-left: 20px;
    padding-right: 20px;
  }
  .ny_mid { padding-top: 22px !important; }
  .foot_top {
    width: 100% !important;
    max-width: 1200px;
    box-sizing: border-box;
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* 内容区跟随左栏宽度收缩，避免 254+700 在窄屏挤出 */
@media (max-width: 1240px) {
  .contentright { width: calc(100% - 254px) !important; }
  .contentright_head { width: 100% !important; }
}

/* ============================================================
   一、顶部导航
   ============================================================ */
.bs-nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.bs-nav-toggle i {
  display: block;
  position: relative;
  width: 24px;
  height: 2px;
  background: #1a1a1a;
  transition: background .2s;
}
.bs-nav-toggle i::before,
.bs-nav-toggle i::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: #1a1a1a;
  transition: transform .25s;
}
.bs-nav-toggle i::before { top: -7px; }
.bs-nav-toggle i::after { top: 7px; }
.bs-nav-open .bs-nav-toggle i { background: transparent; }
.bs-nav-open .bs-nav-toggle i::before { transform: translateY(7px) rotate(45deg); }
.bs-nav-open .bs-nav-toggle i::after { transform: translateY(-7px) rotate(-45deg); }

/* 手机底部快捷条（仅小屏显示） */
.bs-mobile-bar { display: none; }

/* ---------- 电脑端导航：强制与 logo 同行（修复导航掉到横幅图片上） ----------
   老皮肤是 float:left 的 logo + float:right 的导航。7 个栏目 × (89 宽 + 18 间距)
   = 749px，而 1000px 头部留给导航的只有 717px，于是整条导航被挤到 logo 下方，
   溢出到内页横幅的高清车图上，灰色文字直接看不见。
   这里改成 flex + 文字自适应的 tab，宽度不再依赖固定像素。 */
@media (min-width: 1081px) {
  .headbj { background: #fff; }
  .headbj_mid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
  .logo,
  .menu,
  .glable_nav {
    float: none !important;
  }
  .logo {
    flex: none;
    margin: 0 !important;
    height: auto;
  }
  .menu {
    flex: 1 1 auto;
    min-width: 0;
    height: 91px;
  }
  .glable_nav {
    width: 100% !important;
    height: 91px;
  }
  #nav-menu {
    height: 91px;
  }
  #nav-menu .container,
  #nav-menu .outerbox,
  #nav-menu .innerbox {
    width: 100% !important;
    height: 91px;
  }
  #nav-menu .menu {
    float: none !important;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    width: 100% !important;
    height: 91px;
  }
  #nav-menu .menu > li {
    float: none !important;
    width: auto !important;
    height: 91px;
    margin: 0 0 0 4px !important;
  }
  #nav-menu .menu li a.xialaguang,
  #nav-menu .menu li a.xialaguang span,
  #nav-menu .menu li a.navhover span,
  #nav-menu .menu li a.xialaguang:hover span {
    width: auto !important;
    height: 91px;
    line-height: 91px;
    padding: 0 16px;
    box-sizing: border-box;
    white-space: nowrap;
  }
  #nav-menu .menu li a.xialaguang {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #nav-menu .menu li a.xialaguang span {
    display: inline-block;
    padding: 0;
  }
  #nav-menu .menu ul.children {
    top: 91px;
    z-index: 200;
  }
  /* 下拉菜单：纯 CSS 悬停展开（原先依赖 jQuery，现已移除该依赖） */
  #nav-menu .menu > li:hover > ul.children,
  #nav-menu .menu > li:focus-within > ul.children {
    display: block;
  }
  #nav-menu .menu > li:hover > .nav01 > a.xialaguang,
  #nav-menu .menu > li:focus-within > .nav01 > a.xialaguang {
    background: #c3ab51;
    color: #fff;
  }
  /* 下拉面板：老皮肤用的是半透明贴图，压在横幅车图上会看不清，改为实色 + 阴影 */
  #nav-menu .menu > li > ul.children {
    background: #3a332a;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
  }
  #nav-menu .menu > li > ul.children li {
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    width: auto;
    margin: 0 12px;
    padding: 0 8px;
  }
  #nav-menu .menu > li > ul.children li a {
    color: #ded6c4;
  }
  #nav-menu .menu > li > ul.children li a:hover {
    color: #f4da77;
  }
  /* 当前栏目：不用悬停也能看出在哪一页 */
  #nav-menu .menu li a.xialaguang.navhover {
    background: #c3ab51;
    color: #fff;
  }
}

@media (max-width: 1080px) {
  .headbj {
    height: auto !important;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 900;
  }
  .headbj_mid {
    height: auto !important;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 8px;
    padding-bottom: 8px;
    position: relative;
  }
  .bs-nav-toggle { margin-left: auto; }
  .logo {
    float: none !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
  }
  .logo img {
    width: auto;
    max-width: 200px;
    height: 44px;
    object-fit: contain;
  }
  .menu {
    float: none !important;
    width: auto !important;
    height: auto !important;
    position: static;
  }
  .glable_nav {
    float: none !important;
    width: auto !important;
  }
  .bs-nav-toggle { display: flex; }

  #nav-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: auto !important;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .12);
    max-height: 72vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 950;
  }
  #nav-menu.bs-nav-show { display: block; }
  #nav-menu .container { width: auto !important; padding: 0; }
  #nav-menu .outerbox,
  #nav-menu .innerbox { width: auto !important; }
  #nav-menu .menu {
    display: block !important;
    width: auto !important;
  }
  #nav-menu .menu > li {
    float: none !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    border-bottom: 1px solid #f2f2f2;
    position: relative;
  }
  #nav-menu .menu > li:last-child { border-bottom: 0; }
  #nav-menu .menu > li > .nav01 { width: 100%; }
  #nav-menu .menu > li > .nav01 > a.xialaguang,
  #nav-menu .menu > li > a.xialaguang {
    display: block;
    width: 100% !important;
    line-height: 50px !important;
    height: 50px;
    text-align: left;
    padding: 0 52px 0 20px;
    background: none !important;
    color: #1a1a1a !important;
    font-size: 15px;
    box-sizing: border-box;
  }
  #nav-menu .menu > li > .nav01 > a.xialaguang span {
    line-height: 50px !important;
    width: auto !important;
    display: inline;
  }
  /* 有子菜单的项加一个箭头，点击展开 */
  #nav-menu .menu > li.bs-has-kids > .nav01 > a.xialaguang::after {
    content: "";
    position: absolute;
    right: 22px;
    top: 23px;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid #999;
    border-bottom: 1.5px solid #999;
    transform: rotate(45deg);
    transition: transform .2s;
  }
  #nav-menu .menu > li.bs-has-kids.bs-sub-open > .nav01 > a.xialaguang::after {
    transform: rotate(-135deg);
    top: 26px;
  }
  #nav-menu .menu ul.children {
    position: static !important;
    display: none;
    width: auto !important;
    background: #fafafa !important;
    padding: 4px 0 !important;
    border: 0;
    line-height: normal;
  }
  #nav-menu .menu > li.bs-sub-open > ul.children { display: block; }
  #nav-menu .menu ul.children li {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    float: none !important;
    display: block !important;
    text-align: left;
    clear: both;
  }
  #nav-menu .menu ul.children li a {
    display: block;
    padding: 11px 20px 11px 38px;
    font-size: 14px;
    color: #666;
  }
  #nav-menu .menu ul.children li a:hover { color: #b59a44; }
}

/* ============================================================
   二、首页轮播
   ============================================================ */
.bs-hero { height: 576px; }
.bs-hero-track { height: 100%; }
.bs-hero-inner { height: 100%; }

@media (max-width: 1240px) {
  .bs-hero,
  .bs-hero-track { height: 46vw; min-height: 320px; max-height: 520px; }
  .bs-hero-txt { bottom: 70px; }
  .bs-hero-txt h2 { font-size: 34px; }
  .bs-hero-dots { bottom: 30px; }
}
@media (max-width: 720px) {
  .bs-hero,
  .bs-hero-track { height: 52vw; min-height: 210px; max-height: 340px; }
  .bs-hero-inner { padding-left: 18px; padding-right: 18px; }
  .bs-hero-txt { bottom: 38px; right: 18px; }
  .bs-hero-txt h2 { font-size: 21px; letter-spacing: 1px; line-height: 1.4; }
  .bs-hero-txt p { font-size: 12px; margin-top: 8px; letter-spacing: 1px; }
  .bs-hero-dots { bottom: 14px; gap: 7px; }
  .bs-hero-dots a { width: 22px; height: 3px; }
}

/* ============================================================
   三、区块与栅格
   ============================================================ */
@media (max-width: 1240px) {
  .bs-sec { padding: 48px 0; }
  .bs-sec-head { margin-bottom: 32px; }
  .bs-sec-head h3 { font-size: 26px; }
}
@media (max-width: 1080px) {
  .bs-cars { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .bs-cars-4 { grid-template-columns: repeat(3, 1fr); }
  .bs-cats { gap: 16px; }
  .bs-serv { gap: 16px; }
  .bs-news { grid-template-columns: 1fr; gap: 34px; }
  .bs-contact { grid-template-columns: 1fr; gap: 28px; }
  .bs-form .grid2 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .bs-cats { grid-template-columns: repeat(2, 1fr); }
  .bs-cars, .bs-cars-3, .bs-cars-4 { grid-template-columns: repeat(2, 1fr); }
  .bs-serv { grid-template-columns: repeat(2, 1fr); }
  .bs-cat { height: 200px; }
}
@media (max-width: 720px) {
  .bs-sec { padding: 34px 0; }
  .bs-sec-head { margin-bottom: 22px; }
  .bs-sec-head h3 { font-size: 21px; letter-spacing: 1px; }
  .bs-sec-head span { font-size: 11px; letter-spacing: 3px; margin-top: 5px; }
  .bs-sec-head i { margin-top: 12px; }
  .bs-cats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .bs-cat { height: 132px; }
  .bs-cat b { left: 12px; bottom: 26px; font-size: 15px; letter-spacing: 0; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
  .bs-cat em { left: 12px; bottom: 9px; font-size: 10px; letter-spacing: 0; white-space: nowrap; overflow: hidden; max-width: calc(100% - 20px); }
  .bs-cat::after { background: linear-gradient(180deg, rgba(0,0,0,.10) 10%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.88) 100%); }
  .bs-serv { grid-template-columns: 1fr; gap: 10px; }
  .bs-serv-item { padding: 18px 16px; text-align: left; }
  .bs-serv-item h4 { font-size: 16px; }
  .bs-serv-item p { font-size: 13px; line-height: 22px; margin-top: 6px; }
  .bs-serv-item a { margin-top: 8px; font-size: 12px; }
  .bs-news { gap: 28px; }
  .bs-news-list li { gap: 12px; }
  .bs-news-list li a { font-size: 14px; }
  .bs-form .grid2 { grid-template-columns: 1fr; gap: 0; }
  .bs-form { padding: 18px 16px; }
  .bs-pager a, .bs-pager span { min-width: 32px; height: 32px; line-height: 32px; margin: 0 2px; }
}

/* 首页底部行动条 / 单页 CTA（由 inline flex 改为类） */
.bs-cta-dark { padding: 44px 0; background: #1a1a1a; color: #fff; }
.bs-cta-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
@media (max-width: 860px) {
  .bs-cta-in { flex-direction: column; align-items: flex-start; }
  .bs-cta-in > div:last-child { width: 100%; display: flex; flex-wrap: wrap; gap: 10px; }
  .bs-cta-in > div:last-child .bs-btn { margin-left: 0 !important; flex: 1; text-align: center; padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 720px) {
  .bs-cta-dark { padding: 30px 0; }
  .bs-cta-title { font-size: 19px !important; letter-spacing: 1px !important; }
  .bs-cta-dark .bs-cta-in > div:first-child div:first-child { font-size: 19px; }
}

/* ============================================================
   四、车型卡片
   ============================================================ */
@media (max-width: 860px) {
  .bs-car-img { height: 140px; }
}
@media (max-width: 720px) {
  .bs-car { border-color: #eee; }
  .bs-car-img { height: 118px; }
  .bs-car-body { padding: 10px 10px 12px; }
  .bs-car-body h4 { font-size: 13px; line-height: 19px; height: 38px; }
  .bs-car-price { font-size: 16px; margin-top: 4px; }
  .bs-car-price small { font-size: 11px; }
  .bs-car-meta { font-size: 11px; margin-top: 5px; line-height: 16px; }
  .bs-car:hover { transform: none; box-shadow: none; }
}

/* ============================================================
   五、内页：侧栏 + 内容区
   ============================================================ */
@media (max-width: 1240px) {
  .nybanner { height: 110px; background-size: cover; background-position: center; }
  .nybanner_mid { height: 110px; }
  .nybanner_mid h4 { padding-left: 0; padding-top: 34px; }
  .nybanner_mid p { padding-left: 0; }
}
@media (max-width: 1080px) {
  .nyleft { width: 210px; }
  .contentright { width: calc(100% - 210px) !important; }
  .lefta, .leftb { width: 100% !important; box-sizing: border-box; }
  .leftb li a { font-size: 13px; }
  .contactbt img { max-width: 100%; height: auto; }
}
@media (max-width: 860px) {
  /* 侧栏改为顶部横向筛选条 */
  .ny_mid { display: block; }
  .nyleft {
    float: none !important;
    width: 100% !important;
    margin-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
  }
  .nyleft .lefta {
    width: auto !important;
    height: auto;
    padding: 0 0 8px 0 !important;
    background: none !important;
    font-size: 14px;
    color: #b59a44;
  }
  .leftb { width: 100% !important; padding-top: 0 !important; margin-bottom: 0 !important; }
  .leftb ul {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .leftb ul::-webkit-scrollbar { display: none; }
  .leftb li { margin: 0 !important; flex: none; }
  .leftb li a {
    display: block;
    padding: 7px 14px;
    border: 1px solid #e6e6e6;
    border-radius: 2px;
    white-space: nowrap;
    font-size: 13px;
    color: #555;
  }
  .leftb li a.cu { border-color: #c3ab51; background: #faf8f3; color: #a8893a; font-weight: normal; }
  .nyleft .contact { display: none; }
  .contentright { width: 100% !important; float: none !important; }
  .contentright_head { width: 100% !important; height: auto !important; background: none !important; border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 14px; }
  .contentright_head_left { float: none !important; display: block; font-size: 16px !important; }
  .contentright_head_right { float: none !important; display: block; clear: both; font-size: 12px; color: #999; margin-top: 5px; line-height: 20px; }
  .contentright_head_right a { color: #999; }
}
@media (max-width: 720px) {
  .nybanner { height: 92px; }
  .nybanner_mid { height: 92px; }
  .nybanner_mid h4 { font-size: 17px; padding-top: 28px; }
  .nybanner_mid p { font-size: 11px; }
  .ny_mid { padding-top: 16px !important; }
  .bs-article { font-size: 14px; line-height: 27px; }
  .bs-article table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ============================================================
   六、车型详情
   ============================================================ */
@media (max-width: 1240px) {
  .bs-gallery-main { width: 100% !important; height: auto; aspect-ratio: 700 / 430; box-sizing: border-box; }
}
@media (max-width: 720px) {
  .bs-gallery-main { aspect-ratio: 4 / 3; }
  .bs-gallery-thumb { gap: 6px; }
  .bs-gallery-thumb a { width: 68px; height: 48px; }
  .bs-info { margin-top: 16px; }
  .bs-info h1 { font-size: 19px; line-height: 1.45; }
  .bs-info .sub { font-size: 12px; margin-top: 6px; }
  .bs-price-box { padding: 14px 15px; margin: 14px 0; }
  .bs-price-box .big { font-size: 25px; }
  .bs-price-box .rows { gap: 0; flex-wrap: wrap; font-size: 12px; }
  .bs-price-box .rows span { width: 50%; padding: 3px 0; }
  .bs-spec th, .bs-spec td { padding: 8px 9px; font-size: 12.5px; }
  .bs-spec th { width: 88px; }
  .bs-detail .bs-btn { padding: 11px 20px; font-size: 14px; }
  .bs-detail > .bs-info > div:last-child { display: flex; flex-wrap: wrap; gap: 10px; }
  .bs-detail > .bs-info > div:last-child .bs-btn { margin-left: 0 !important; flex: 1; text-align: center; }
}

/* ============================================================
   七、表单与留言
   ============================================================ */
@media (max-width: 720px) {
  .bs-form h4 { font-size: 16px; }
  .bs-form input[type=text], .bs-form input[type=date], .bs-form input[type=email],
  .bs-form select, .bs-form textarea { font-size: 16px; } /* 16px 防止 iOS 聚焦自动放大 */
  .bs-btn { padding: 12px 24px; font-size: 15px; }
  .bs-contact-info dl { font-size: 13px; padding: 12px 0; }
  .bs-contact-info dt { width: 74px; flex: none; }
  .bs-contact-info dd { font-size: 13px; flex: 1; min-width: 0; word-break: break-word; }
  .bs-contact-info .bs-btn { display: block; text-align: center; }
  .bs-alert { font-size: 13px; padding: 10px 13px; }
}

/* ============================================================
   八、页脚
   ============================================================ */
@media (max-width: 1080px) {
  .foot { height: auto !important; padding-bottom: 30px; background-size: cover; }
  .foot_top {
    height: auto !important;
    padding-top: 40px;
    padding-bottom: 10px;
  }
  .foot_top ul {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px 10px;
  }
  .foot_top li { width: auto !important; float: none !important; margin: 0 !important; }
  .foot_top li h6 { width: auto; }
  .foot_top li p { width: auto !important; padding-top: 10px; }
  .foot_top li p a { width: auto !important; padding-left: 0; line-height: 24px; }
}
@media (max-width: 860px) {
  .foot_top ul { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .foot_top { padding-top: 30px; }
  .foot_top ul { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .foot_top li h6 { font-size: 13px; }
  .foot_top li p a { font-size: 12.5px; line-height: 22px; }
  .foot_bt { padding-top: 18px; font-size: 12px; line-height: 24px; }
  .foot_bt p { padding: 0 16px; }
}

/* ============================================================
   九、移动端底部固定操作条
   ============================================================ */
@media (max-width: 860px) {
  .bs-mobile-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 880;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    box-shadow: 0 -2px 14px rgba(0, 0, 0, .07);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .bs-mobile-bar a {
    flex: 1;
    text-align: center;
    line-height: 50px;
    height: 50px;
    font-size: 15px;
    color: #1a1a1a;
    text-decoration: none;
  }
  .bs-mobile-bar a + a { border-left: 1px solid #f0f0f0; }
  .bs-mobile-bar a.tel { color: #b8232f; font-weight: bold; }
  .bs-mobile-bar a.gold { background: #c3ab51; color: #fff; font-weight: bold; }
  body { padding-bottom: calc(50px + env(safe-area-inset-bottom)); }
  .foot { padding-bottom: calc(30px + 50px); }
}

/* ============================================================
   十、杂项修正
   ============================================================ */
img, iframe, video { max-width: 100%; }
.bs-article img { max-width: 100%; height: auto; }
.bs-article iframe { max-width: 100%; }
.bs-empty { padding: 40px 16px; font-size: 14px; }

@media (max-width: 720px) {
  /* 内联写死的 4 列/3 列同系列车型，统一回落为 2 列 */
  .bs-cars[style*="grid-template-columns"] { grid-template-columns: repeat(2, 1fr) !important; }
  /* 顶部 hero 内边距与页面其它区块对齐 */
  .bs-hero-inner.bs-wrap { padding-left: 16px; padding-right: 16px; }
}
