/* ========================================
   用友汽车官网 - 响应式增强样式
   基于 Bootstrap 3，移动优先
======================================== */

/* 通用：防止图片超出容器 */
img {
  max-width: 100%;
  height: auto;
}

/* 通用：避免长单词撑破容器 */
body {
  word-wrap: break-word;
  overflow-x: hidden;
}

/* 资质荣誉页：移动端专用荣誉展示，Web 模式下隐藏 */
.honor-mobile {
  display: none;
}

/* 移动端基础调整（xs） */
@media (max-width: 767px) {
  /* 减小全局字号和间距 */
  body {
    font-size: 14px;
  }
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
  h3 { font-size: 18px; }

  /* 容器全宽，内边距适当 */
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 触控友好的按钮/链接 */
  a, button {
    min-height: 44px;
    line-height: 1.5;
  }

  /* 页脚单列堆叠 */
  .footer ul li {
    width: 100%;
    float: none;
    text-align: center;
    margin-bottom: 20px;
  }

  .footerMenu span {
    width: 100%;
    float: none;
    text-align: center;
    display: block;
  }
}

/* ===== 顶部导航移动端 ===== */
@media (max-width: 767px) {
  /* Logo 尺寸适配 */
  .navbar-brand img.logo {
    height: 40px;
    width: auto;
  }

  /* 折叠菜单全宽、无默认边框，左右留出 12px */
  .navbar-collapse {
    border: none;
    box-shadow: none;
    background: #fff;
    padding-left: 32px;
    padding-right: 12px;
  }

  .navbar-nav {
    margin: 0;
    padding: 0;
    float: none !important;
    padding-left: 0 !important;
  }

  .navbar-nav li {
    border-bottom: 1px solid #eee;
    float: none;
  }

  .navbar-nav li a {
    padding: 12px 15px;
    font-size: 16px;
    color: #333;
    display: block;
  }

  /* 汉堡按钮 */
  .navbar-toggle {
    margin-top: 12px;
    border: 1px solid #ddd;
    display: block;
  }

  .navbar-toggle .icon-bar {
    background-color: #333;
  }

  /* 隐藏桌面端电话条 */
  .lgMode {
    display: none !important;
  }
}

/* ===== 首页 Banner ===== */
@media (max-width: 767px) {
  .call-to-action-section {
    position: relative;
    height: auto !important;
    min-height: auto;
    padding: 0 0 148.15%;
    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;
  }

  .call-to-action-section.banner1 {
    background-image: url("../../images/home/app_001.jpg") !important;
  }

  .call-to-action-section.banner2 {
    background-image: url("../../images/home/app_002.jpg") !important;
  }

  .call-to-action-section.banner3 {
    background-image: url("../../images/home/app_003.jpg") !important;
  }

  .call-to-action-section .container {
    position: absolute;
    top: 25%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
  }

  .call-to-action-section h1 {
    font-size: 18px !important;
    line-height: 1.4;
    margin: 0 !important;
    padding: 0 15px;
    height: auto !important;
  }

  /* 首页轮播 PC 标题在 APP 模式下隐藏 */
  .call-to-action-section h1:not(.mobile-banner-title) {
    display: none;
  }

  .mobile-banner-title {
    display: block;
    color: #D32D26;
    font-size: 22px !important;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    margin: 0;
    padding: 0 15px;
    transform: translateY(-110px);
  }

  .banner1 .mobile-banner-title {
    color: #363636;
  }

  .banner2 .mobile-banner-title,
  .banner3 .mobile-banner-title {
    color: #D32D26;
  }

  .carousel-indicators {
    bottom: 5px;
  }

  .carousel-indicators li,
  .carousel-indicators .active {
    width: 20px;
    height: 4px;
  }
}

/* ===== 首页新闻模块 ===== */
@media (max-width: 767px) {
  .g_news {
    height: auto;
    padding-bottom: 30px;
    background-size: cover;
  }

  .g_news-container {
    width: 100% !important;
    max-width: 100%;
    padding: 20px 15px 60px;
    position: relative;
    left: auto;
    top: auto;
    box-sizing: border-box;
  }

  .g_news-fl,
  .g_news-fr {
    position: static;
    width: 100%;
    float: none;
    height: auto;
  }

  .g_news-fl a,
  .g_news-fl img {
    width: 100%;
    height: auto;
    display: block;
  }

  .g_news-title {
    padding: 40px 15px 12px;
    font-size: 16px;
  }

  .g_news-fr {
    margin-top: 20px;
  }

  .g_news-fr ul li {
    padding-bottom: 12px;
    margin-bottom: 12px;
  }

  .g_news-fr ul li a p {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 6px;
  }

  .g_news-fr ul li a span {
    font-size: 13px;
    line-height: 1.6;
    -webkit-line-clamp: 2;
  }

  .g_btn-more {
    position: static;
    margin-top: 20px;
    justify-content: center;
  }
}

/* ===== 关于我们 - 公司介绍 ===== */
@media (max-width: 767px) {
  .conmpanyBanner {
    background-image: url("../../images/banner/app_company.png") !important;
    height: auto !important;
    padding-bottom: 117.19%;
    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;
  }

  .companyCon {
    padding-top: 30px;
    min-height: auto;
  }

  .companyTitle {
    font-size: 20px;
  }

  .companyCon p {
    font-size: 14px;
    line-height: 1.8;
  }

  .companyR img {
    margin-top: 20px;
    margin-bottom: 30px;
  }

  /* 隐藏 SINCE2003 大字 */
  .companyCon div[style*="font-size: 100px"] {
    display: none;
  }
}

/* ===== 关于我们 - 联系我们 ===== */
@media (max-width: 767px) {
  #container {
    height: 250px !important;
    background-size: cover !important;
  }

  .aboutRow {
    width: 100%;
  }

  .aboutInfo span {
    display: block;
    margin-bottom: 6px;
    line-height: 1.6;
  }

  .aboutInfoText8 {
    margin-top: 20px;
    font-weight: bold;
  }

  .aboutInfoRight {
    text-align: center;
    margin: 20px 0;
  }

  .aboutInfoRight img {
    max-width: 180px;
    margin: 0 auto;
  }
}

/* ===== 关于我们 - 二级菜单 ===== */
@media (max-width: 767px) {
  .caseNav {
    width: 100%;
  }

  .caseNav .navbar-collapse {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
    padding-left: 0;
    padding-right: 0;
    border: none;
  }

  .anliNav {
    width: 100%;
    margin: 0;
  }

  .anliNav li {
    width: 25% !important;
    float: left;
    text-align: center;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
    box-sizing: border-box;
  }

  .anliNav li:last-child {
    border-right: none;
  }

  .anliNav li a {
    display: block;
    padding: 12px 3px;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .anliNav li.active {
    border-bottom: 1px solid #eee;
  }

  .anliNav li.active a {
    background: #fafafa !important;
  }
}

/* ===== 关于我们 - 资质荣誉 ===== */
/* Web 模式下红背景图平铺全屏，避免宽屏两侧留白 */
.m_ranks {
  position: relative;
  overflow: hidden;
  background-color: #ab221d;
  background-image: url("../../about/ronyu/l_01(1).png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
}

.m_ranks-big {
  display: none;
}

@media (max-width: 767px) {
  .conmpanyBanner3 {
    background-image: url("../../images/banner/app_company3.jpg") !important;
    height: auto !important;
    padding-bottom: 117.19%;
    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;
  }

  /* 资质荣誉：APP 模式隐藏原 Web 荣誉轮播，显示移动端专用展示 */
  .g_ranks-swiper {
    display: none !important;
  }

  .g_ranks-container {
    width: 100% !important;
    padding: 20px 15px;
    box-sizing: border-box;
  }

  .honor-mobile {
    display: block;
    padding: 0 0 30px;
  }

  .honor-ry-img {
    width: 85%;
    height: auto;
    display: block;
    margin: 0 auto 20px;
  }

  .honor-mobile .carousel {
    width: 100%;
  }

  .honor-mobile .carousel-inner {
    width: 100%;
  }

  .honor-mobile .carousel-inner .item {
    width: 100%;
    text-align: center;
  }

  .honor-mobile .carousel-inner .item img {
    width: 100%;
    height: auto;
    display: block;
  }

  .honor-indicators {
    bottom: -20px;
  }

  .honor-indicators li {
    width: 20px;
    height: 3px;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 4px;
  }

  .honor-indicators li.active {
    background-color: #fff;
  }

  .m_ranks-big {
    display: none;
  }

  .m_ranks-bigm {
    display: none !important;
  }
}

/* ===== 产品服务页 ===== */
.cpfw-mobile,
.services-mobile-title {
  display: none;
}

@media (max-width: 767px) {
  .successCaseBanner {
    background-image: url("../../images/banner/app_successBanner.jpg.jpg") !important;
    height: auto !important;
    padding-bottom: 75%;
    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;
    position: relative;
  }

  .successCaseBanner .container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 33.33%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .services-mobile-title {
    display: block;
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    margin: 0;
    padding: 0 15px;
  }

  .case1 {
    padding: 0 0px;
  }

  .case1 .cpfw-pc {
    display: none;
  }

  .case1 .cpfw-mobile {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
  }
}

/* 首页轮播 PC 标题，Web 模式下显示 */
.mobile-banner-title {
  display: none;
}

/* ===== 新闻列表页 ===== */
@media (max-width: 767px) {
  .newsListBanner {
    background-image: url("../../images/banner/app_newsList.jpg") !important;
    height: auto !important;
    padding-bottom: 75%;
    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;
  }

  .listNews {
    width: 100%;
    margin: 20px auto;
  }

  .listNews .news {
    padding: 15px;
    height: auto;
    margin-bottom: 0;
    border-bottom: 1px solid #f2f2f2;
  }

  .newsDate {
    font-size: 13px;
    color: #999;
  }

  .newsContern {
    font-size: 15px;
    line-height: 1.5;
    margin: 8px 0;
    max-height: none;
    height: auto;
    white-space: normal;
  }

  .newsType {
    font-size: 13px;
  }

  .newsType img {
    width: 18px;
    height: auto;
  }
}

/* ===== 页脚 ===== */
@media (max-width: 767px) {
  .footer {
    padding: 30px 0 20px;
  }

  .footer .container {
    padding: 0 15px;
  }

  .footer .container > li {
    width: 100%;
    float: none;
    text-align: center;
    margin-bottom: 25px;
    padding: 0;
  }

  .footer .container > li:last-child {
    margin-bottom: 0;
  }

  .footer .container > li > p {
    font-size: 16px;
  }

  .footer .container > li .smjby {
    margin: 0 auto;
  }

  .footer .container > li > span {
    font-size: 13px;
    padding: 4px 0;
  }

  .footerCode {
    text-align: center;
  }

  .footerCode img {
    max-width: 120px;
  }

  .footerMenu {
    padding: 15px 0;
  }

  .footerMenu span {
    width: 100%;
    float: none;
    text-align: center;
    display: block;
    padding: 8px 15px;
    font-size: 12px;
    line-height: 1.6;
  }

  .footCompany {
    text-align: center;
  }

  .footCompany a {
    display: inline !important;
    height: auto !important;
    line-height: 1.6 !important;
  }

  .footCompany img {
    width: 16px;
    height: auto;
    vertical-align: middle;
  }
}

/* 平板微调（sm） */
@media (min-width: 768px) and (max-width: 991px) {
  h1 { font-size: 30px; }
  .footer ul li {
    width: 50%;
  }
}
