/* 移动端响应式样式 */
@media (max-width: 767px) {
  body {
    padding-top: 0;
    font-size: 14px;
  }

  /* 改进导航栏样式 */
  header.navbar {
    position: relative;
    margin-bottom: 0;
  }

  header.navbar .navbar-inner {
    padding: 5px 0;
  }

  header.navbar .nav {
    margin-top: 0;
    width: 100%;
  }

  header.navbar .nav > li {
    margin-left: 0;
    display: block;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
  }

  header.navbar .nav > li:last-child {
    border-bottom: none;
  }

  header.navbar .nav > li > a {
    padding: 8px 15px;
    font-size: 14px;
    font-weight: bold;
    color: #008080 !important;
  }

  header.navbar .nav > li.active > a {
    background-color: #f9f9f9 !important;
    color: #008080 !important;
    font-weight: bold;
  }

  .dropdown-menu {
    position: static;
    float: none;
    width: 100%;
    margin-top: 0;
    background-color: #f9f9f9;
    border: 0;
    box-shadow: none;
    display: block;
    visibility: visible;
    padding-left: 15px;
  }

  .dropdown-menu > li > a {
    padding: 6px 15px;
    font-size: 13px;
  }

  .navbar .btn-navbar {
    display: block;
    margin-top: 10px;
    background-color: #008080;
    padding: 6px 10px;
  }

  .navbar .btn-navbar:hover {
    background-color: #006666;
  }

  .navbar .btn-navbar .icon-bar {
    background-color: #ffffff;
    height: 3px;
  }

  .nav-collapse.collapse {
    height: 0;
    overflow: hidden;
  }

  .nav-collapse.collapse.in {
    height: auto;
  }

  /* 修复Banner图片比例 */
  #slide-show,
  #slider {
    height: 250px !important;
    overflow: hidden;
  }

  .sl-slider-wrapper,
  .sl-slider,
  .sl-slide {
    height: auto !important;
  }

  .mobile-banner-container {
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .banner-image {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 585/211 !important; /* 设置固定比例 */
    object-fit: cover;
    float: none !important;
    margin: 0 !important;
    display: block;
  }

  #slider .sl-slide img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 585/211 !important; /* 设置固定比例 */
    object-fit: cover;
  }

  /* 轮播导航按钮调整 */
  #nav-arrows {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 100;
  }

  #nav-arrows span {
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    cursor: pointer;
  }

  #nav-arrows i {
    color: white;
    font-size: 18px;
  }

  /* Logo样式调整 */
  #logo {
    margin: 5px auto 5px 10px;
    display: block;
    float: left !important;
    background-position: center left !important;
    width: 150px !important;
    height: 50px !important;
    background-size: contain !important;
  }

  .main-info {
    padding: 10px;
  }

  .main-info img,
  .main-info table,
  .main-info iframe {
    max-width: 100% !important;
    height: auto !important;
  }

  .main-info table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* 表格行适配 */
  .main-info table tr {
    display: flex;
    flex-direction: column;
  }

  /* 大型表格保持横向滚动 */
  .main-info table.large-table tr {
    display: table-row;
  }

  .main-info table.large-table {
    display: block;
    width: 100%;
    overflow-x: auto;
  }

  /* 清除固定宽度 */
  img[width],
  video[width] {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }

  table[width] {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* 特定页面的固定宽度表格处理 */
  table[width="700"],
  table[width="900"],
  table[width="1100"],
  table[width="80%"],
  table[width="95%"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* 固定宽度单元格处理 */
  td[width] {
    width: auto !important;
  }

  /* 视频响应式 */
  video {
    width: 100% !important;
    height: auto !important;
  }

  /* 页脚响应式 */
  #footer {
    text-align: center;
    padding: 10px 0;
  }

  #footer .cp {
    margin-top: 15px;
    text-align: center;
  }

  /* 内容区域响应式 */
  .title {
    padding: 10px 0;
  }

  .box {
    padding: 15px 10px;
  }

  /* 通用元素响应式 */
  .btn {
    display: block;
    width: 100%;
    margin-bottom: 10px;
  }

  .btn:last-child {
    margin-bottom: 0;
  }

  /* 调整图片和媒体元素 */
  img {
    max-width: 100%;
    height: auto;
  }

  /* 修复表格宽度问题 */
  table {
    width: 100% !important;
  }

  table td {
    word-break: break-word;
  }

  /* 响应式排版 */
  h1 {
    font-size: 24px;
    line-height: 28px;
  }

  h2 {
    font-size: 20px;
    line-height: 24px;
  }

  h3 {
    font-size: 18px;
    line-height: 22px;
  }

  /* 响应式间距 */
  body > section {
    padding: 20px 0;
  }

  /* 隐藏某些不必要的元素 */
  .hidden-mobile {
    display: none !important;
  }

  /* 滑块和轮播组件调整 */
  #slide-show {
    height: auto !important;
  }

  .sl-slider-wrapper {
    height: auto !important;
  }
}

/* 平板响应式 */
@media (min-width: 768px) and (max-width: 979px) {
  body {
    padding-top: 0;
  }

  header.navbar {
    position: relative;
  }

  header.navbar .nav {
    margin-top: 10px;
  }

  /* 修复Banner图片比例 */
  .mobile-banner-container {
    width: 100%;
    padding: 0;
  }

  .banner-image {
    width: 100%;
    height: auto;
    aspect-ratio: 585/211;
    object-fit: cover;
    display: block;
  }

  #slider .sl-slide img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 585/211 !important; /* 设置固定比例 */
    object-fit: cover;
  }

  .main-info img,
  .main-info table {
    max-width: 100% !important;
  }

  #logo {
    background-size: contain;
  }

  /* 大型表格处理 */
  .main-info table.large-table {
    display: block;
    width: 100%;
    overflow-x: auto;
  }

  /* 清除固定宽度 */
  img[width],
  video[width] {
    max-width: 100% !important;
    height: auto !important;
  }

  table[width="700"],
  table[width="900"],
  table[width="1100"],
  table[width="80%"],
  table[width="95%"] {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media screen and (max-width: 768px) {
  .sl-slide-inner {
    height: auto !important;
    min-height: auto !important;
  }
}
