/* Mobile styles */
@media screen and (max-width: 768px) {
    body {
        min-width: 0 !important; /* 移除最小宽度限制，避免桌面样式影响移动端 */
        width: 100%;
    }
    .header {
        padding: 10px;
        width: 100%;
    }
    .contain #app {
        margin-left: 5px;
    }
    .center {
        width: 100%;
    }

    #index-style .login-home .main-list .list-title {
        width:100%;
    }
    #index-style .advertisement-box .advertisement-box-url {
        width:auto;
    }

    #courseresource-style .center-head {
        width: auto;

    }

    #courseresource-style .center-head p {
        width: auto;
    }

    #courseresource-style .resources-totalNumber {
        width: auto;
    }

    #courseresource-style .navigation-bar {
        width: 100%;
    }
    #courseresource-style .resources-video .block-box {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        flex-direction: column;
    }
    /* Hide numeric page buttons on course resource page (mobile) */
    #courseresource-style .page .pages-num {
        display: none;
    }

    #courseresource-style .resources-video .page {
        margin: 10px;
        float: left;
        height: 40px;
    }
    #nolearnbase-style .resource {
        width:auto;
    }
    #nolearnbase-style .center-head p {
        width: auto;
    }

    #nolearnbase-style .resource .main-content .content-ul .air-classroom {
        width: 100%;
        height:auto;
    }
    #nolearnbase-style .resource .main-content .content-ul .air-classroom a img{
        width: 100%;
        height:auto;
    }
    #nolearnbase-style .resource .main-content .page {
        display: flex;
        justify-content: center;
        float: none;
    }


    #nolearnbase-style .resource .main-content .content-ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        flex-direction: column;
        padding: 10px;
    }


    #learnbase-style #learnbase-contain .resource .main-list .main-active{
        width:auto;
    }

    #learnbase-style #learnbase-contain .center-head p {
        width:auto;
    }

    #learnbase-style #learnbase-contain .main-content .page {
        float: none;
    }


    #learnbase-style #learnbase-contain .main-content .content-ul .air-classroom {
        width: 100%;
        height:auto;
    }


    #learnbase-style #learnbase-contain .main-content .content-ul .air-classroom a img{
        width: 100%;
        height:auto;
    }
    #learnbase-style #learnbase-contain .main-content .content-ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        margin: 0;
        padding: 10px;
    }
    #courseresource-style .navigation-bar ul li {
        height: 25px;
    }

    #learnbase-style #learnbase-contain .resource {
        width: 100%;
    }
    #aboutUs-style .text-box .text-body p {
        width: 250px;
    }
    #aboutUs-style .text-box {
      margin:0;
      width:auto;

    }
    #aboutUs-style .text-box .text-body {
        width: auto;
        height: auto;
    }

    #learnbasepro-style .center-head p {
        width:auto;
    }


    #learnbasepro-style .resour {
        width: 100%;
        min-height: 1000px;
      
        background-color: #ffffff;
        display: flex;
        justify-content: space-between;
    }

    #learnbasepro-style .resour .main-list {
        display:none;
    }

    #learnbasepro-style .resour .main-content {
        width: auto;
        padding: 0 10px;
    }
    #learnbasepro-style .resour .main-content h2 {
        margin-top:10px;
        width: auto;
        font-size:20px;
        line-height: 20px;
    }
    #learnbasepro-style .resour .main-content .body-box {
        width: auto;
    }

   #learnbasepro-style .resour .main-content .body-box p img {
        width: 100%;
    }

    #classInfo-style .main .main-classInfo {
      
        width: 100%;
        height: auto;
    }

    #classInfo-style .main .main-header p{
        margin: 0;
        width: auto;
    }

    #classInfo-style .main .main-classInfo .main-classInfo-body {
      margin: 0;
      height:auto;
    }


    #classInfo-style .main .main-classInfo .main-classInfo-body .classInfo-body-left {
        float:none;
        width: auto;
        height:235px;
    }
    #classInfo-style .main {
        width: auto;
        height: auto;
    }
    #classInfo-style .main .main-classInfo .main-classInfo-footer {
        width: 100%;
    }

    #classInfo-style .main .main-classInfo .main-classInfo-body .classInfo-body-right {
        float: none;
        width: auto;
        height: auto;  
    }

    #classInfo-style .main .main-classInfo .main-classInfo-body .classInfo-body-right .right-body{
        margin: 0;
        padding: 0;
        width:100%;
        height:auto;
    }
#classInfo-style .main .main-classInfo .main-classInfo-body .classInfo-body-right .right-body .course-introduction{
  width:auto;
  height:auto;
}




    #classInfo-style .main .main-classInfo .main-classInfo-body .classInfo-body-right .right-body ul {
        width: 100%;
        padding: 0
    }

    #classInfo-style .main .main-classInfo .main-classInfo-body .classInfo-body-right .right-body ul li{
        width:100%;
    }

    #classInfo-style .main .main-classInfo .main-classInfo-footer .classInfo-footer-left {
        float:none;
        margin:10px;
    }

    #trainingProject-style .main-header {
        width: auto;
    }
    #trainingProject-style .main-header p {
        width: auto;

    }

    #trainingProject-style .main-trainInfo .main-tabs {
        width:auto;
    }

    #trainingProject-style .main-trainInfo .ordering-rule {
        width: auto;
    }

    #trainingProject-style .main-trainInfo .info-lists .info-lists-ul .info-lists-liOne {
      width: auto;
      height: 100%;
      margin:10px ;
    }

    #trainingProject-style .main-trainInfo .info-lists .info-lists-ul .info-lists-liOne .img-box {
        float:none;
        width: 100%;
        height: auto;
    }
    #trainingProject-style .main-trainInfo .info-lists .info-lists-ul .info-lists-liOne .info-left {
        float:none;
        width: 100%;
        padding: 0;
        border:0;
        margin: 0;
        height: auto;
    }


    #trainingProject-style .main-trainInfo .info-lists .info-lists-ul .info-lists-liOne .info-right {
       display: none;
    }

    #trainingProject-style .main-trainInfo .info-lists .info-lists-ul .info-lists-liOne .info-left dl {
        display: none;
    }

    #trainingProject-style .main-trainInfo .info-lists .info-lists-ul .info-lists-liOne .info-left .progress-bar {
        display: none;
    }

    #trainingProject-style .main-trainInfo .info-lists .info-lists-ul .info-lists-liOne .info-left .progress-bar {
        display: none;
    }
    #trainingProject-style .main-trainInfo .info-lists .info-lists-ul .info-lists-liOne .info-left .had-learned {
        display: none;
    }
    #trainingProject-style .main-trainInfo .info-lists .info-lists-ul .info-lists-liOne .info-left .had-learned-proportion {
        display: none;
    }

    #trainingProject-style .main-trainInfo .info-lists .info-lists-ul .info-lists-liOne .info-left .info-time {
        margin: 0;
    }

    #trainingProject-style .main-trainInfo .info-lists .fix-box {
        width:auto;
        justify-content: center;
    }


    #trainingProject-style .main-trainInfo .info-lists .info-lists-ul .info-lists-liOne .info-right .title-box .presentations {
        width: 50%;
    }
    #trainingProject-style .main-trainInfo .info-lists .info-lists-ul hr {
        color: #e6e6e6;
        width: 100%;
    }
    #lifelongLearing-style #app .resources-video .block-box {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        margin-left: 20px;
    }

    #trainProjectInfo-style .main-special-training .main-header p{
        width:auto;
    }

    #trainProjectInfo-style .main-special-training .main-body {
        float:none;
        width: auto;
        margin: 0;
        height: auto;
        border:0;
    }

    #trainProjectInfo-style .main-special-training .main-body .img-box {
        width: auto;
        height: auto;
        float:none;
        margin:0;
   }
    #trainProjectInfo-style .main-special-training .main-body .main-body-right {
        width: auto;
        margin-top: 30px;
        float:none;
    }


#trainProjectInfo-style .main-special-training .main-body .main-body-right .info-title{
    width: auto;
}

#trainProjectInfo-style .main-special-training .main-body .main-body-right .key-value {
    width: auto
}



    #trainProjectInfo-style .main-special-training .main-footer {
        width: 100%;
        height: 2000px;
    }

    #trainProjectInfo-style .main-special-training .main-footer .footer-left {
        width: auto;
        float:none;
        margin:0;
    }
    #trainProjectInfo-style .main-special-training .main-footer .footer-right {
      float:none;
        width: auto;
        margin:0;
        border:0;
    }
    #trainProjectInfo-style .main-special-training .main-footer .footer-right .footer-right-header{
        width: auto;
        margin: 0;
        padding: 10px;
    }


    #trainProjectInfo-style .main-special-training .main-footer .footer-right .footer-right-body {
        margin: 10px;
    }

    #trainProjectInfo-style .main-special-training .main-footer .footer-right .footer-right-body .block-box .box-item a img {
        width: 100%;
        height:auto;

        margin: 5px;
    }


    #trainProjectInfo-style .main-special-training .main-footer .footer-left .footer-left-headers {
        width: auto;
        margin:0;
        padding:6px;
    }

    #trainProjectInfo-style .link-pop-background .link-pop-login {
        left: 15%;
        top: 20%;
    }


    #index-style .login-home {
        width: 100%;
    }
    #index-style .login-home .main-login {
        width: 300px;
        margin:50px;
        display:none;
    }
    #index-style .login-home .main-login .login-put .account span {
        width: 20px;
    }
    #index-style .login-home .main-login .login-put .password span {
        width: 20px;
    }


    .personal-center-style .main-body .main-right .div-content .content-div {
        width:100%;
    }

    .personal-center-style .main-header p {
        width: auto;
    }

    .personal-center-style .main-body .main-right .div-content .page-personal {
    float:none;
    }

    .personal-center-style .main-body {
        width: auto;
        margin: 20px auto 40px;
        display: flex;
        justify-content: space-between;
        flex-direction: column;
    }
    .personal-center-style .main-body .main-left {
        width: 100%;
    }
    .personal-center-style .main-body .main-right {
        width: 100%;
        margin-left: 0px;
    }
    .personal-center-style .main-body .main-right .div-content {
        width: 100%;
    }
    .personal-center-style .main-body .main-right .div-content .content-div .input-box {
        width: 200px;
    }
    .personal-center-style .main-body .main-right .div-content .content-div .select-boxs {
        width: 60px;
    }
    .personal-center-style .main-body .main-right .div-content .submit-button .preservation {
        margin-left: 100px;
    }

    .personal-center-style .main-body .main-right .info-lists-ul .info-lists-li {
        width: 100%;
    }
    .personal-center-style .main-body .main-right .info-lists-ul .info-lists-li .info-right {
        display: none;
    }

    .header-top {
        flex-direction: column;
        align-items: center;
    }

    .logo {
        max-width: 300px;
        margin: 6px;
    }

    .search-box {
        display: none;  /* Hide search box on mobile */
    }
    
    /* Hide swiper one box on mobile */
    #swiper-one-box {
        display: none !important;
    }

    .main-login {

    }
    #index-style .advertisement-box {
        width: 100%;
        height: auto;
    }
    #index-style .learning-base-block .block-title {
        overflow-x: auto;
        white-space: nowrap;
    }
    #index-style .learning-base-block .block-box {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        flex-direction: column;
    }
    #index-style .learning-base-block {
        margin-top: 20px;
    }
    #index-style .learning-base-block {
        height: auto;
    }

    #index-style .other-net-page {
        width: 100%;
        height: 250px;
        margin-top: 20px;

    }

    .header-nav {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
        margin: 0 -10px;
        padding: 0 10px;
        white-space: nowrap;
    }

    .header-nav::-webkit-scrollbar {
        display: none;  /* Chrome, Safari and Opera */
    }

    .header-nav ul.center {
        display: inline-flex;
        flex-wrap: nowrap;
        width: auto;
        min-width: 100%;
    }

    .header-nav .nav-item {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .nav-list {
        display: flex;
        flex-wrap: nowrap;
        white-space: nowrap;
        padding: 10px 0;
        margin: 0;
    }

    .nav-list li {
        flex: 0 0 auto;
        margin: 0 5px;
    }

    .nav-list li:first-child {
        margin-left: 0;
    }

    .nav-list li:last-child {
        margin-right: 0;
    }

    .nav-list li a {
        display: inline-block;
        padding: 8px 15px;
        font-size: 14px;
        white-space: nowrap;
    }

    .user-info {
        margin-top: 10px;
        justify-content: center;
    }
}
/* ==== Appended mobile overrides ==== */
@media screen and (max-width: 768px) {
  .header-desktop { display: none; }
  .header-mobile { display: block; }
  /* Hide big image navigation buttons on mobile */
  #index-style .index-big-img .big-img-left-btn,
  #index-style .index-big-img .big-img-right-btn {
    display: none;
  }
  .header-mobile-row1 { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 4px;
    padding: 6px 10px;
    box-sizing: border-box;
  }
  .header-mobile-row1 .logo {
    height: 34px;
    width: auto;
  }
  .header-mobile-row1 .search-box { 
    display: block; 
    max-width: 280px;
  }
  .header-mobile-row1 .search-box .box-area { display: block;margin-bottom: 5px;}
  .header-mobile-row1 .search-box .box-area  li { display: inline-block;}
  

  /* 兜底隐藏联动标签区域，防止结构差异导致露出 */

  .header-mobile-row1 .search-box .box-btn { 
    display: flex; 
    align-items: center; 
    gap: 4px; 
    position: static; 
    height: 34px; 
    margin-top: 0; 
  }
  .header-mobile-row1 .search-box .box-btn input { 
    flex: 1; 
    width: auto; 
    height: 34px; 
    padding-left: 28px; 
    font-size: 13px;
  }
  .header-mobile-row1 .search-box .box-btn .search-icon { 
    left: 8px; 
    top:8px;
  }
  .header-mobile-row1 .search-box .box-btn .btn { 
    position: static; 
    width: auto; 
    padding: 0 8px; 
    height: 34px; 
    line-height: 34px; 
    font-size: 13px;
    box-sizing: border-box;
  }
  .header-mobile-row2 { 
    display: flex; 
    align-items: center; 
    padding: 0 10px 8px; 
    box-sizing: border-box;
    background-color: #2390FF;
  }
  .mobile-nav-list { display: flex; gap: 8px; flex: 1; overflow-x: auto; }
  .mobile-nav-list .nav-more { margin-left: auto; }
  .mobile-nav-list .nav-item a { 
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 10px; 
    background: transparent; 
    color: #fff; 
    border-radius: 4px; 
    font-size: 13px;
  }
  .header-mobile-row2 .nav-more button { 
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 10px; 
    border: 1px solid #fff; 
    background: transparent; 
    color: #fff; 
    border-radius: 4px; 
    font-size: 13px;
  }
  .mobile-nav-dropdown { display: none; }
  .mobile-nav-dropdown.open { display: block; }
  .header-top {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Ensure mobile header search is visible */
  .header-mobile .search-box { display: block; padding-right: 5px; }

  /* 下拉菜单增强样式 */
  .mobile-nav-dropdown { 
    background: #fff; 
    border-top: 1px solid #2390FF; 
    padding: 8px 10px; 
    box-sizing: border-box; 
  }
  .mobile-nav-more-list { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px; 
  }
  .mobile-nav-more-list .nav-item a { 
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 10px; 
    border: 1px solid #2390FF; 
    color: #2390FF; 
    border-radius: 4px; 
    background: #fff; 
    font-size: 13px;
  }

  #index-style .learning-base-block .block-box {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0 10px;
  }

  #localIndex-style #localIndex-app .learning-base-block .block-box {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0 10px;
  }

  .header .header-nav {
    overflow-x: auto;
  }

  #courseresource-style .resources-video {
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }
}

/* Additional mobile optimizations */
@media screen and (max-width: 480px) {
    .logo {
        max-width: 300px;
    }

    .nav-list li a {
        padding: 8px 12px;
        font-size: 14px;
    }

    /* Footer Mobile Styles */
    .footer {
        padding: 15px 10px;
        margin-top: 60px;
    }

    .footer .text {
        text-align: center;
    }

    .footer .text p {
        margin: 8px 0;
        font-size: 12px;
        line-height: 1.4;
    }

    .footer .text p:first-child {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .footer .text p:first-child span {
        display: block;
    }
}
