@charset "utf-8";
/* Mobile / tablet — load after index.css or page.css */

@media screen and (max-width: 991px) {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html {
    -webkit-text-size-adjust: 100%;
  }

  body {
    min-width: 0;
    max-width: none;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  .siteWidth {
    width: 100%;
    max-width: 1200px;
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Fixed header — shorter on small screens */
  .header {
    height: auto;
    min-height: 120px;
    background-size: auto 120px;
  }

  .shadow .header {
    min-height: 64px;
    height: auto;
  }

  .top {
    height: auto;
    min-height: 36px;
    line-height: 1.4;
    padding-top: 8px;
    padding-bottom: 8px;
    overflow: hidden;
    display: none;
  }

  .top .left {
    float: none;
    padding-left: 16px;
    margin-bottom: 4px;
  }

  .top .right {
    float: none;
    padding-right: 16px;
    padding-left: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
  }

  .top .right a,
  .top .right span {
    float: none;
    padding-left: 0;
  }

  .main_search #keyword {
    width: 120px !important;
    padding-left: 8px !important;
  }

  span.on .main_search #keyword {
    width: 140px !important;
  }

  .logoBar {
    height: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px 12px;
   
  }

  .logo {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: min(260px, 70vw) !important;
    height: 48px !important;
    flex: 0 0 auto;
    margin-top: 15px;
  }

  .shadow .logo {
    float: none;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: min(220px, 65vw) !important;
    height: 44px !important;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
    z-index: 1001;
  }

  .shadow .nav-toggle {
    background: rgba(34, 75, 142, 0.12);
  }

  .nav-toggle__bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition:
      transform 0.2s,
      opacity 0.2s;
  }

  .shadow .nav-toggle__bar {
    background: #224b8e;
  }

  body.nav-open .nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.nav-open .nav-toggle__bar:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* default.css 中 .nav { height:30px } 会压死展开，必须覆盖 */
  .nav {
    float: none;
    margin: 0;
    padding: 0;
    width: 100%;
    order: 3;
    flex-basis: 100%;
    height: auto !important;
    line-height: normal !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  body.nav-open .nav {
    position: relative;
    z-index: 999;
    max-height: min(85vh, 640px);
    height: auto !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* 展开为独立浮层卡片，避免透明叠在遮罩上 */
    margin-top: 8px;
    padding: 4px 0 12px;
    background: #fff;
    color: #333;
    border-radius: 0 0 12px 12px;
    border: 1px solid #e2e8f0;
    box-shadow:
      0 12px 40px rgba(15, 23, 42, 0.18),
      0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  }

  body.nav-open .mainNav .a1 {
    color: #1e293b !important;
  }

  body.nav-open .mainNav .a1:hover {
    background: #f1f5f9 !important;
    color: #224b8e !important;
    text-decoration: none;
  }

  body.nav-open .mainNav .on1 .a1 {
    background: #224b8e !important;
    color: #fff !important;
  }

  body.nav-open .mainNav .a2 {
    color: #334155 !important;
    background: #f1f5f9 !important;
  }

  body.nav-open .mainNav .a2:hover {
    background: #e2e8f0 !important;
    color: #224b8e !important;
  }

  /* 内页 #content 负 margin + z-index 易盖住下拉层，打开菜单时抬高顶栏 */
  body.nav-open .header {
    z-index: 1002;
  }

  body.nav-open.shadow .header {
    z-index: 1002;
  }

  .nav-mask {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    /* 低于展开 .nav(999) 与按钮(1001)，高于正文区域 */
    z-index: 997;
  }

  body.nav-open .nav-mask {
    display: block;
  }

  body.nav-open {
    overflow: hidden;
  }

  .logoBar .logo {
    order: 1;
  }

  .logoBar .nav-toggle {
    order: 2;
    margin-left: auto;
  }

  .logoBar .nav {
    order: 3;
  }

  .mainNav {
    font-size: 15px;
    padding: 8px 0 16px;
  }

  .mainNav .li1 {
    float: none;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  body.nav-open .mainNav .li1 {
    border-bottom-color: #e8edf5;
  }

  .shadow .mainNav .li1 {
    border-bottom-color: rgba(0, 0, 0, 0.08);
  }

  body.nav-open.shadow .mainNav .li1 {
    border-bottom-color: #e8edf5;
  }

  .mainNav .a1 {
    float: none;
    width: 100%;
    padding: 14px 16px;
    box-sizing: border-box;
  }

  .shadow .nav ul li a {
    color: #333;
  }

  .mainNav .ul1 {
    position: static;
    display: none;
    box-shadow: none;
    width: 100%;
    background: rgba(0, 0, 0, 0.15);
  }

  body.nav-open .mainNav .ul1 {
    background: #f4f7fc;
    border-radius: 0 0 8px 8px;
    margin: 0 8px 8px;
    width: auto;
    border: 1px solid #e2e8f0;
  }

  .shadow .mainNav .ul1 {
    background: #f0f4fa;
  }

  body.nav-open.shadow .mainNav .ul1 {
    background: #eef2f8;
  }

  .mainNav .li1.sub-open > .ul1 {
    display: block;
  }

  .mainNav .a2 {
    padding: 12px 16px 12px 28px;
  }

  /* Banner */
  .banner,
  .banner .bd li,
  .banner .hd {
    min-width: 0 !important;
  }

  .banner .bd li .pic img {
    width: 100%;
    display: block;
  }

  /* Home: news + notice stack */
  .columnA .siteWidth {
    padding-bottom: 24px;
  }

  .news {
    float: none;
    margin-right: 0 !important;
    margin-bottom: 24px;
  }

  .notice {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    width: 100% !important;
    height: auto !important;
    max-height: none;
    padding: 16px 16px 24px !important;
  }

  .news .hd h3,
  .notice .hd h3 {
    font-size: clamp(22px, 5vw, 32px);
  }

  .news .hd h3 span,
  .notice .hd h3 span {
    font-size: clamp(20px, 4.5vw, 28px);
  }

  .tpList .pic {
    position: relative !important;
    width: 100% !important;
    max-width: 360px;
    height: auto !important;
    margin: 0 auto 16px !important;
    left: auto !important;
    top: auto !important;
  }

  .tpList .pic img {
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .tpList .pic a {
    width: 100% !important;
    height: auto !important;
  }

  .tpList li.hasPic .con {
    margin-left: 0 !important;
    min-height: 0 !important;
  }

  .tpList .con .title {
    font-size: clamp(17px, 4vw, 22px);
  }

  .tpList .pic .time {
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 64px;
    height: 64px;
  }

  .tpList .pic .time .dateRight {
    font-size: 28px;
    line-height: 1.2;
  }

  .dateList .con {
    height: auto;
    min-height: 56px;
  }

  .dateList .con .title {
    font-size: 15px;
  }

  /* Column B icons */
  .columnB .thd h3 b,
  .columnB .thd h3 span {
    font-size: clamp(22px, 5vw, 30px);
  }

  .nodeList {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }

  .nodeList li {
    float: none;
    width: calc(50% - 12px) !important;
    max-width: 100%;
    margin: 0 !important;
    line-height: 1.3;
    padding: 12px 8px;
  }

  .nodeList li a.pic img {
    max-height: 48px;
    width: auto;
  }

  /* Column C education */
  .columnC {
    padding: 40px 0 48px;
  }

  .columnC .siteWidth {
    display: flex;
    flex-direction: column;
  }

  .columnC .thd {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    margin-bottom: 20px;
    text-align: center;
  }

  .columnC .thd h3 b,
  .columnC .thd h3 span {
    font-size: clamp(22px, 5vw, 30px);
  }

  .columnC .thd h3 span:after {
    margin: 12px auto 0;
  }

  .columnC .more {
    margin: 16px auto 0;
    align-self: center;
  }

  .columnC .bd {
    margin-left: 0 !important;
  }

  .columnC .nodeListpx {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }

  .columnC .nodeListpx li {
    float: none;
    width: calc(50% - 8px) !important;
    max-width: 280px;
    margin: 0 !important;
  }

  .columnC .nodeListpx li.k1,
  .columnC .nodeListpx li.k2 {
    width: 100% !important;
    max-width: 100%;
    min-height: 120px;
    margin-bottom: 4px !important;
  }

  .columnC .nodeListpx .li3 {
    margin-right: 0 !important;
  }

  /* Friend links carousel — horizontal scroll */
  .columnD #friendLinks .Arrow {
    display: none;
  }

  .columnD #friendLinks .tempWrap {
    width: 100% !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .columnD #friendLinks .bd ul {
    display: flex;
    flex-wrap: nowrap;
  }

  .columnD #friendLinks .bd ul li {
    flex: 0 0 auto;
    margin-right: 10px;
  }

  .columnD #friendLinks .bd ul li .pe_u_thumb img {
    max-width: 160px;
    width: auto;
    height: auto;
  }

  /* Footer */
  #footer .siteWidth {
    height: auto !important;
    min-height: 0;
    padding-bottom: 24px;
  }

  #footer .footlogo {
    margin: 16px 0;
    max-width: 200px;
    height: auto;
  }

  #footer .copyRight {
    padding-right: 0;
    max-width: 100%;
  }

  #footer .weixin {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    margin-top: 20px;
    width: auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  #footer .weixin img {
    display: block;
    margin-bottom: 8px;
  }

  #goTop {
    right: 12px;
    bottom: 80px !important;
  }

  /* Inner pages */
  #content {
    width: 100% !important;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 !important;
    margin-top: -40px;
  }

  .pageBanner {
    height: min(42vw, 220px);
    background-size: cover;
  }

  .side {
    float: none;
    width: 100% !important;
    margin-right: 0 !important;
    margin-bottom: 16px;
    display: none;
  }

  .mainContent {
    float: none;
    width: 100% !important;
    overflow: visible;
  }

  #sideMenu .hd {
    height: auto;
    min-height: 64px;
    padding: 16px 20px;
  }

  #sideMenu .hd h3 {
    font-size: 20px;
  }

  #sideMenu .hd h3 a {
    line-height: 1.4;
  }

  #sideMenu .menuList a {
    margin: 0 16px;
    padding: 12px 8px;
  }

  .mainBox .mHd {
    height: auto;
    min-height: 0;
    padding-top: 12px;
    line-height: 1.5;
    display: none;
  }

  .mainBox .mHd .path {
    float: none;
    width: 100%;
    font-size: 12px;
    padding: 0 0 12px 24px;
    line-height: 1.6;
    background-position: 0 4px;
  }

  .mainBox .mHd h3 {
    float: none;
    width: 100%;
    height: auto;
    line-height: 1.4;
    padding: 12px 16px 12px 20px;
    font-size: 18px;
  }

  .mainBox .mHd h3:after {
    top: 16px;
  }

  .mainBox .mBd {
    padding-top: 16px;
  }

  .printArea .title {
    font-size: 22px;
    text-align: left;
  }

  .printArea .conTxt {
    min-height: 0;
  }

  .printArea .conTxt img {
    max-width: 100% !important;
  }

  .articleCon .userControl .bdsharebuttonbox {
    float: none;
    margin-top: 12px;
  }
}

/* Desktop: hide menu button */
@media screen and (min-width: 992px) {
  .nav-toggle {
    display: none;
  }

  .nav-mask {
    display: none !important;
  }
}

@media screen and (max-width: 576px) {
  .nodeList li {
    width: 100% !important;
  }

  .columnC .nodeListpx li:not(.k1):not(.k2) {
    width: 100% !important;
    max-width: 100%;
  }

  .goToPhone {
    width: 120px;
    height: 48px;
    line-height: 48px;
    font-size: 14px;
    border-radius: 8px;
  }
}
