/* ===================== 移动端适配样式（信用交通栏目列表页） ===================== */

@media (max-width: 1200px) {
  .container {
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 768px) {
  /* 基础容器 */
  html,
  body {
    overflow-x: hidden;
  }

  .container {
    width: 100% !important;
    padding-left: 10px;
    padding-right: 10px;
  }

  /* 无障碍按钮 */
  .header > div[style*="float: right"] {
    float: none !important;
    margin-right: 0 !important;
    padding-top: 10px;
    text-align: right;
    padding-right: 10px;
  }

  /* 头部区域 */
  .header{
    height:auto;
  }
  .header .head-box {
    padding: 30px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .header .head-title {
    font-size: 30px;
  }

  .header .search-cont {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-top: 15px;
  }

  .header .search-cont .nav-tabs > li a {
    padding: 8px 10px;
    font-size: 13px;
  }

  /* 导航栏：单行横向滚动，不换行 */
  .bl-navbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background-size: cover;
    padding: 0;
  }

  .bl-navbar::-webkit-scrollbar {
    display: none;
  }

  .bl-navbar .bl-navbar-item {
    flex: 0 0 auto;
    padding: 8px 12px;
  }

  .bl-navbar .bl-navbar-item a {
    font-size: 15px !important;
    white-space: nowrap;
  }

  .bl-navbar .bl-navbar-item a:hover::after,
  .bl-navbar .bl-navbar-item.active::after {
    width: 40px;
    height: 2px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  /* 主内容区：左右两栏堆叠 */
  .main-cont {
    margin-top: 15px;
  }

  .main-cont .row > div[class^="col-"] {
    float: none;
    width: 100%;
  }

  /* 左侧标签栏：改为横向滚动 */
  .list-tab-cont {
    margin-bottom: 15px;
    overflow: hidden;
  }

  .list-tab-cont .tab-title {
    font-size: 15px;
    padding: 8px 12px;
  }

  .list-tab-cont .tab-ul {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

  .list-tab-cont .tab-ul::-webkit-scrollbar {
    display: none;
  }

  .list-tab-cont .tab-ul > li {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 8px 14px;
  }

  .list-tab-cont .tab-ul > li .fas {
    display: none;
  }

  /* 文章列表 */
  .article-cont {
    padding: 10px 15px;
  }

  .article-cont .article-list .article-list-item {
    padding-right: 0;
    padding-bottom: 10px;
  }

  .article-cont .article-list .article-list-item h3 {
    font-size: 15px;
    line-height: 1.5;
    white-space: normal;
    word-break: break-all;
  }

  .article-cont .article-list .article-list-item p {
    white-space: normal;
    word-break: break-all;
    margin-bottom: 4px;
  }

  .article-cont .article-list .article-list-item .article-time {
    position: static;
    display: block;
    text-align: right;
    margin-top: 4px;
  }

  /* 分页 */
  .article-cont .article-page .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 15px;
  }

  .article-cont .article-page .pagination > li {
    margin-bottom: 6px;
  }

  .pagerHtmlWrap {
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }

  /* 底部 */
  .footer p {
    font-size: 13px;
    letter-spacing: 0.05em;
    line-height: 1.6;
  }

  .footer .footer-link a {
    display: inline-block;
    padding: 0 10px;
    font-size: 14px;
  }

  .footer .footer-body {
    padding: 15px 0;
  }

  /* 固定悬浮窗口在移动端隐藏 */
  .zf-icon-fixed {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .header .head-box {
    padding: 20px 0;
  }

  .header .head-title {
    font-size: 24px;
  }

  .bl-navbar .bl-navbar-item {
    padding: 6px 8px;
  }

  .bl-navbar .bl-navbar-item a {
    font-size: 13px !important;
  }

  .list-tab-cont .tab-ul > li {
    padding: 8px 12px;
    font-size: 13px;
  }

  .footer p {
    font-size: 12px;
  }
}

.mobile-footer { text-align: center; padding: 10px; background-color: #0068b8; color: #fff;}
  .mobile-footer .link-group { font-size: 12px; color: #eee; margin-bottom: 20px; }
  .mobile-footer .link-group a { color: #c0e1fd; padding: 0 5px; word-break: keep-all; }
  .mobile-footer p { font-size: 14px; }
  #myPhoneHeader .logo { height: auto; margin: 60px auto 20px; width: 200px; }
  #myPhoneHeader .logo img { width: 100%; height: auto; }
  #myPhoneHeader .search-cont { width: 330px; margin: 0 auto; }
  #myNavMobile.bl-nav { color: #fff; margin-top: 30px; background-color: #005eae; }
  .mobile-navbar { margin-bottom: 0; min-height: 44px; background-color: #005eae; border: none; border-radius: 0; z-index: 10; }
  .mobile-navbar .navbar-brand { height: 44px; line-height: 44px; padding: 0 15px; color: #fff; font-size: 15px; }
  .mobile-navbar .navbar-toggle { margin-top: 6px; margin-bottom: 6px; border-color: rgba(255, 255, 255, 0.5); }
  .mobile-navbar .navbar-toggle .icon-bar { background-color: #fff; }
  .mobile-navbar .navbar-toggle:hover, .mobile-navbar .navbar-toggle:focus { background-color: rgba(255, 255, 255, 0.15); }
  .mobile-navbar .navbar-collapse { border-color: rgba(255, 255, 255, 0.2); box-shadow: none; }
  .mobile-navbar .navbar-nav { margin: 0; }
  .mobile-navbar .navbar-nav > li { border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
  .mobile-navbar .navbar-nav > li > a { padding: 12px 15px; color: #fff; font-size: 14px; }
  .mobile-navbar .navbar-nav > li.active > a, .mobile-navbar .navbar-nav > li > a:hover, .mobile-navbar .navbar-nav > li > a:focus { background-color: rgba(255, 255, 255, 0.18); color: #fff; }

/* ===================== 文章页正文移动端适配（仅文章页使用） ===================== */
@media (max-width: 768px) {
  #article .main-cont {
    margin-top: 10px;
  }

  /* 面包屑 */
  #article .breadcrumb {
    font-size: 13px;
    padding: 8px 0;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* 文章内容容器 */
  #article .article-cont {
    padding: 15px 12px;
  }

  /* 正文通用元素 */
  #article .article-cont h1,
  #article .article-cont h2,
  #article .article-cont h3,
  #article .article-cont h4,
  #article .article-cont h5 {
    word-break: break-all;
  }

  #article .article-cont p {
    word-break: break-all;
  }

  /* 图片 / 视频 / 音频 自适应 */
  #article .article-cont img {
    max-width: 100% !important;
    height: auto !important;
  }

  #article .article-cont video,
  #article .article-cont audio,
  #article .article-cont iframe {
    max-width: 100% !important;
  }

  /* 表格：宽表横向滚动，防止撑破页面 */
  #article .article-cont table {
    display: block;
    width: 100% !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  #article .article-cont .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* 附件列表等 */
  #article .article-cont .attachments a {
    word-break: break-all;
  }
}