/* ========================================
   中国搜索-关于我们 移动端适配样式
   兼容页面: aboutus.html
   引入位置: 在原 CSS (base.css / component.css / aboutus_common.css / chinasonew_index.css) 之后
   ======================================== */

/* ========================================
   1. 全局重置 —— 解除 PC 端 min-width 约束
   ======================================== */
@media screen and (max-width: 768px) {
  * {
    box-sizing: border-box;
  }

  body {
    background: #f5f8fd;
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
  }

  body,
  .top,
  .footer {
    min-width: 0;
  }

  /* 移除所有 PC 固定宽度 */
  .top_con,
  .aboutus_top,
  .main_top,
  .commonNavFixed,
  .commonNavFixed .sub-nav,
  .box-mk,
  .box_cp,
  #banner,
  .common_footer,
  .common_titbg,
  .box {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  /* ========================================
     2. 顶部导航 —— 汉堡菜单
     ======================================== */
  .main_top {
    height: auto;
    padding: 0;
    position: relative;
    z-index: 100;
  }

  .aboutus_top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0;
    position: relative;
  }

  .chinaso_logo {
    width: 80px;
    margin: 8px 0 8px 12px;
    float: none;
    flex-shrink: 0;
  }

  .chinaso_logo img {
    width: 80px;
    height: auto;
  }

  /* 汉堡按钮 */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    margin-right: 8px;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    position: relative;
    z-index: 160;
  }

  .nav-toggle::before,
  .nav-toggle::after {
    content: '';
    display: block;
    width: 22px;
    height: 2px;
    background: #333;
    border-radius: 1px;
    transition: transform 0.25s, opacity 0.25s;
  }

  .nav-toggle::before {
    box-shadow: 0 -7px 0 #333, 0 7px 0 #333;
  }

  .nav-toggle::after {
    display: none;
  }

  /* 展开状态动画 */
  .aboutus_top.nav-open .nav-toggle::before {
    box-shadow: none;
    transform: rotate(45deg);
  }

  .aboutus_top.nav-open .nav-toggle::after {
    display: block;
    transform: rotate(-45deg);
    margin-top: -2px;
  }

  /* 导航菜单 —— 默认隐藏，右浮动下拉面板 */
  .nav-main-item {
    display: none;
    float: none;
    width: 75%;
    height: auto !important;
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    flex-direction: column;
    overflow: visible;
    white-space: normal;
    margin: 0;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 200;
  }

  /* 展开状态 */
  .aboutus_top.nav-open .nav-main-item {
    display: flex;
  }

  /* 菜单打开时背景遮罩 */
  .aboutus_top.nav-open::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.35);
    z-index: 150;
    pointer-events: auto;
  }

  .nav-main-item li {
    float: none;
    flex-shrink: 0;
    width: 100%;
    height: 44px;
    line-height: 44px;
    font-size: 15px;
    padding: 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    box-sizing: border-box;
  }

  .nav-main-item #listnav {
    position: relative;
    overflow: visible;
    height:200px;

  }

  .nav-main-item .nav-main-items {
    display: block;
    width: 100%;
    padding: 0 16px;
    text-align: left;
    color: #333;
  }

  .caret {
    display: block;
    position: absolute;
    right: 16px;
    top: 50px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-right: 2px solid #999;
    border-bottom: 2px solid #999;
    border-top: none;
    border-left: none;
    margin: 0;
    transition: transform 0.2s;
  }

  #listnav.open .caret {
    transform: translateY(-50%) rotate(-135deg);
  }

  /* 二级菜单 —— 绝对定位覆盖在下方 */
  .secondnav {
    position: absolute;
    top: 57px;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0 !important;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 10;
    background: #f0f3f8;
    border-top: 1px solid #e0e0e0;
    display: block !important;
  }

  .secondnav li {
    width: 100%;
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    text-align: left;
    padding: 0 16px 0 32px;
    border-bottom: 1px solid #f0f0f0;
    box-sizing: border-box;
    background: #f8f9fa;
  }

  .secondnav li a {
    display: block;
    width: 100%;
    color: #666;
  }

  .secondnav li:last-child {
    border-bottom: none;
  }

  /* 移除 overlay */
  .secondnav::before {
    display: none;
  }

  /* 子导航栏（产品中心等二级页面用） */
  .sub-nav {
    position: static;
    padding: 8px 12px;
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
  }

  .sub-nav-item {
    float: none;
    flex-shrink: 0;
    width: auto;
    padding: 0 4px;
  }

  .sub-nav-items {
    font-size: 13px;
    line-height: 32px;
    padding: 0 8px;
    white-space: nowrap;
  }

  .sub-nav-box {
    float: none;
    width: 100%;
  }

  .sub-nav-bg {
    display: none;
  }

  /* ========================================
     3. Banner 轮播
     ======================================== */
  #banner {
    height: auto;
    min-height: 0;
    overflow: hidden;
    position: relative;
  }

  #banner_img {
    position: relative;
    width: 100%;
  }

  #banner_img li {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    background-size: cover;
    background-position: center;
    display: none;
  }

  #banner_img li.item1 {
    display: block;
    position: relative;
    height: 0;
    padding-bottom: 56.25%;  /* 16:9 比例，保证内容可见 */
    min-height: 240px;
  }

  /* item3/item4 显示时同样处理 */
  #banner_img li.item3,
  #banner_img li.item4 {
    padding-bottom: 56.25%;
    min-height: 240px;
  }

  #banner .wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #banner_img .ad_txt {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    text-align: center;
    padding: 0 20px;
  }

  #banner_img .ad_txt img {
    max-width: 200px;
  }

  #banner_img .ad_txt h2 {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 12px;
  }

  #banner_img .ad_txt a {
    display: inline-block;
    width: auto;
    padding: 8px 20px;
    height: auto;
    line-height: 1.4;
    font-size: 13px;
    margin: 10px auto 0;
    border-radius: 4px;
    background: #fff;
    color: #666;
  }

  #banner_img .ad_img {
    display: none;
  }

  /* banner 控制点 */
  #banner_ctr {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    height: auto;
    z-index: 2;
  }

  #banner_ctr ul {
    height: auto;
    display: flex;
    gap: 6px;
  }

  #banner_ctr li {
    width: auto;
    height: auto;
    padding: 0;
  }

  #banner_ctr img {
    width: 60px;
    height: 28px;
    border: 1px solid rgba(255,255,255,0.6);
    object-fit: cover;
    border-radius: 2px;
  }

  /* ========================================
     4. 内容主体 —— 国搜简介 + 公司动态
     ======================================== */
  .box-mk {
    padding: 0;
    background: #f5f8fd;
  }

  .main {
    width: 100%;
    height: auto;
    padding: 20px 16px;
    margin: 0;
  }

  .gsjj,
  .gsdt {
    float: none;
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }

  .gsjj {
    margin-bottom: 24px;
  }

  .main h3 {
    font-size: 1.4em;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #2890e1;
  }

  .main h3 em {
    font-size: 13px;
    color: #999;
    display: block;
    margin-top: 2px;
  }

  .gsjj p {
    font-size: 14px;
    line-height: 1.8;
    text-indent: 0;
    margin-bottom: 10px;
    color: #333;
  }

  .main span {
    float: none;
    height: auto;
    display: inline-block;
    margin-right: 10px;
  }

  /* 公司动态列表 */
  .gsdt ul li {
    font-size: 14px;
    height: auto;
    line-height: 1.6;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
  }

  .gsdt ul li span {
    color: #999;
    font-size: 12px;
    min-width: 80px;
    flex-shrink: 0;
  }

  .gsdt ul li a {
    flex: 1;
    min-width: 0;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .more {
    margin-top: 16px;
  }

  .more h4 a {
    display: block;
    text-align: center;
    padding: 10px 16px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #579ff5;
  }

  .more h4 a:active {
    background: #579ff5;
    color: #fff;
  }

  /* ========================================
     5. 核心产品
     ======================================== */
  .box_cp {
    padding: 30px 0;
    background: #f5f5f5;
  }

  .box_cp h3 {
    font-size: 1.4em;
    text-align: center;
    padding: 0 16px;
    margin-bottom: 16px;
  }

  .box_cp h3 em {
    font-size: 13px;
    color: #999;
    display: block;
    margin-top: 4px;
  }

  .cp_con {
    width: 100%;
    padding: 0 12px;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
  }

  /* 清除原有浮动 */
  .cp_con ul {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
  }

  .cp_con li {
    float: none;
    width: calc(50% - 6px);
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border-right: none;
  }

  .cp_con li a {
    display: block;
    padding: 14px 10px;
    text-align: center;
  }

  .cp_con h4 {
    width: 100%;
    height: auto;
    line-height: 1.4;
    font-size: 14px;
    margin: 0 0 8px 0;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .cp_con h4 img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin: 0;
    flex-shrink: 0;
  }

  .cp_con li p {
    font-size: 12px;
    padding: 0;
    height: auto;
    line-height: 1.6;
    color: #666;
  }

  /* ========================================
     6. 底部
     ======================================== */
  .common_footer {
    padding: 0;
    background: #fff;
    border-top: none;
    min-width: 0 !important;
  }

  .common_footer .g-o {
    min-width: 0;
    max-width: 100%;
    border-bottom: none;
    padding: 0;
  }

  .common_footer ul {
    display: flex;
    flex-wrap: wrap;
    overflow: visible;
  }

  /* 链接列（网站相关、帮助中心、合作）横排均分 */
  .common_footer ul li.wzxg,
  .common_footer ul li.bzzx,
  .common_footer ul li.hzzp {
    width: 100%;
    float: none;
    padding: 10px 12px;
    background: none;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
  }

  .common_footer ul li .til {
    font-size: 13px;
    padding: 0 10px 0 0;
    margin: 0;
    color: #999;
    font-weight: normal;
    text-align: left;
    border-bottom: none;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .common_footer ul li .til::after {
    content: '|';
    padding-left: 10px;
    color: #ddd;
  }

  .common_footer ul li a {
    font-size: 12px;
    height: auto;
    line-height: 1.9;
    color: #579ff5;
    display: inline;
    white-space: nowrap;
  }

  .common_footer ul li a::after {
    content: '|';
    padding: 0 6px;
    color: #ddd;
    font-size: 11px;
  }

  .common_footer ul li a:last-child::after {
    content: none;
  }

  .common_footer ul li a:active {
    color: #333;
  }

  /* 联系电话 —— 横排 */
  .common_footer ul li.last {
    width: 100%;
    margin-left: 0;
    padding: 10px 12px;
    text-align: left;
    background: #fafbfc;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .common_footer ul li.last .til-ic {
    font-size: 13px;
    padding: 0 10px 0 0;
    margin: 0;
    color: #999;
    font-weight: normal;
    text-align: left;
    white-space: nowrap;
    flex-shrink: 0;
    background: none;
  }

  .common_footer ul li.last .til-ic::after {
    content: '|';
    padding-left: 10px;
    color: #ddd;
  }

  .common_footer li.last p {
    height: auto;
    line-height: 1.9;
    font-size: 12px;
    color: #888;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .common_footer li.last p.bd {
    font-size: 15px;
    height: auto;
    line-height: 1.9;
    color: #579ff5;
    font-weight: bold;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .common_footer li.last p.bd::after {
    content: '|';
    padding: 0 6px;
    color: #ddd;
    font-weight: normal;
    font-size: 11px;
  }

  /* 官方微信 */
  .common_footer ul li.ft-wm {
    width: 100%;
    min-width: 0;
    padding: 18px 12px;
    text-align: center;
    background: none;
    display: flex;
    justify-content: center;
    gap: 24px;
  }

  .common_footer ul li span.wx,
  .common_footer ul li span.app {
    width: 90px;
    padding-top: 100px;
    font-size: 12px;
    color: #888;
    background-size: 80px auto;
    background-repeat: no-repeat;
    background-position: top center;
    display: inline-block;
    text-align: center;
    line-height: 1.5;
  }

  /* 保证 wx/app 背景图正常显示（不被 PC 端 background 覆盖） */
  .common_footer ul li span.wx {
    background-image: url(https://www.chinaso.com/static/image/gfwx.png);
  }

  .common_footer ul li span.app {
    background-image: url(../image/footergsapp.png);
  }

  /* ========================================
     7. 交互增强
     ======================================== */
  a {
    -webkit-tap-highlight-color: rgba(0,0,0,0.05);
  }

  .gsdt ul li a:active,
  .cp_con li a:active {
    opacity: 0.7;
  }

  /* 隐藏弹窗、固定侧边栏等 PC 专属元素 */
  .goTop,
  .shortcur_nav,
  .securedEyeBox,
  .headAD,
  .newNav_ad,
  .top,
  .top_weather,
  .chinaso_all_top_nav {
    display: none;
  }

  /* 清除浮动 */
  .clearb::after,
  .gsjj::after,
  .gsdt::after,
  .cp_con::after,
  .common_footer .g-o::after {
    content: '';
    display: table;
    clear: both;
  }
}

/* ========================================
   8. 极小屏（<= 375px）进一步优化
   ======================================== */
@media screen and (max-width: 375px) {
  .main {
    padding: 16px 12px;
  }

  .cp_con li {
    width: 100%;
  }

  .common_footer ul li.wzxg,
  .common_footer ul li.bzzx,
  .common_footer ul li.hzzp {
    padding: 10px 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .common_footer ul li a {
    font-size: 11px;
  }

  #banner_img .ad_txt img {
    max-width: 140px;
  }

  #banner_img .ad_txt h2 {
    font-size: 16px;
  }

  #banner_img li.item1,
  #banner_img li.item3,
  #banner_img li.item4 {
    min-height: 200px;
  }
}
