/* 学院站手机端适配：所有版式覆盖都放在窄屏媒体查询里，桌面保持旧站 1200px 原样 */

/* ── 抽屉导航（portal 到 body，不继承 .sxy-site 的旧站盒模型）── */
.webcms-mnav-toggle {
  display: none;
}

.webcms-mnav {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  color: #1f2328;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.webcms-mnav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  animation: webcms-mnav-fade 0.2s ease;
}

.webcms-mnav-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(84vw, 340px);
  height: 100%;
  margin-left: auto;
  background: #ffffff;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.18);
  animation: webcms-mnav-slide 0.22s ease;
}

@keyframes webcms-mnav-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes webcms-mnav-slide {
  from { transform: translateX(24px); opacity: 0.6; }
  to { transform: translateX(0); opacity: 1; }
}

.webcms-mnav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 0 8px 0 16px;
  background: #1886d2;
  color: #ffffff;
}

.webcms-mnav-title {
  overflow: hidden;
  font-size: 16px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.webcms-mnav-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.webcms-mnav-list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.webcms-mnav-list > ul,
.webcms-mnav-sub {
  margin: 0;
  padding: 0;
  list-style: none;
}

.webcms-mnav-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #eef1f4;
}

.webcms-mnav-row > a {
  display: flex;
  flex: 1;
  align-items: center;
  min-height: 50px;
  padding: 0 16px;
  color: #1f2328;
  font-size: 16px;
  text-decoration: none;
}

.webcms-mnav-row > a:active {
  background: #eef6fc;
}

.webcms-mnav-expand {
  display: flex;
  flex: 0 0 52px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid #eef1f4;
  background: #fafbfc;
  cursor: pointer;
}

.webcms-mnav-chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.webcms-mnav-list li.is-open > .webcms-mnav-row .webcms-mnav-chevron {
  transform: rotate(-135deg);
}

.webcms-mnav-sub {
  padding: 4px 0;
  background: #f6f9fc;
}

.webcms-mnav-sub a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px 0 30px;
  color: #374151;
  font-size: 15px;
  text-decoration: none;
}

.webcms-mnav-sub a:active {
  background: #e8f2fa;
}

@media (prefers-reduced-motion: reduce) {
  .webcms-mnav-backdrop,
  .webcms-mnav-panel {
    animation: none;
  }
}

/* ── 版式切换：旧站桌面版是 1200px 定宽，1239px 以下整体改为单列 ── */
@media (max-width: 1239px) {
  .sxy-site {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  .sxy-site .headBox {
    position: relative;
    height: clamp(140px, 38vw, 240px);
    overflow: hidden;
    background: #429ddc;
  }

  .sxy-site .header {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: visible;
    background: url(skin/school707/core/header/header.gif) left top / auto 100% no-repeat;
  }

  .sxy-site .header .logo {
    position: absolute;
    inset: 0;
  }

  .sxy-site .header .logo a {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
  }

  .sxy-site .top_right {
    display: none;
  }

  /* 顶级导航：窄屏改为横向可滚动条，二级菜单交给抽屉 */
  .sxy-site .nav_menu_box {
    display: block;
    height: 42px;
    overflow: hidden;
    background: #1886d2;
  }

  .sxy-site .nav_menu {
    width: auto;
    height: 42px;
    margin: 0;
    padding: 0 6px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .sxy-site .nav_menu::-webkit-scrollbar {
    display: none;
  }

  .sxy-site #menu_nav {
    display: flex;
    width: max-content;
    min-width: 100%;
    height: 42px;
  }

  .sxy-site #menu_nav > li {
    display: block;
    float: none;
    flex: 0 0 auto;
    width: auto;
    height: 42px;
    overflow: visible;
  }

  .sxy-site #menu_nav > li > a {
    display: block;
    height: 42px;
    padding: 0 14px;
    font-size: 14px;
    line-height: 42px;
    white-space: nowrap;
  }

  .sxy-site #menu_nav > li.over > a {
    background: #ffffff;
    color: #1886d2;
  }

  .sxy-site #menu_nav li > dl {
    display: none !important;
  }

  .webcms-mnav-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.38);
    cursor: pointer;
  }

  .webcms-mnav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
  }

  .webcms-mnav-toggle:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
  }

  .sxy-site .wrap,
  .sxy-site .Main.wrap {
    width: auto;
    margin: 0;
    padding-right: 12px;
    padding-left: 12px;
    overflow: visible;
  }

  .sxy-site .Main {
    background: #ffffff;
  }

  /* 首页：三栏改单列 */
  .sxy-home .col {
    padding: 12px 0;
  }

  .sxy-home .col2 {
    padding: 4px 0 8px;
  }

  .sxy-home .col3 {
    padding: 0;
  }

  .sxy-home .col4 {
    padding: 4px 0 8px;
  }

  .sxy-home .ind-left,
  .sxy-home .ind-leftcenter,
  .sxy-home .ind-center,
  .sxy-home .ind-centerleft,
  .sxy-home .ind-right,
  .sxy-home .ind-rightdown {
    float: none;
    width: auto;
    margin: 0 0 16px;
  }

  .sxy-home .ind-right,
  .sxy-home .ind-rightdown {
    margin-bottom: 4px;
  }

  .sxy-home .sxy-fade {
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 3;
  }

  .sxy-home .sxy-fade .imageshow li {
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .sxy-home .sxy-fade .imageshow img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* 轮播圆点放大点击区域 */
  .sxy-home .sxy-fade .btnimage {
    right: 8px;
    bottom: 4px;
    height: 32px;
  }

  .sxy-home .sxy-fade .btnimage li {
    width: 32px;
    height: 32px;
    margin: 0;
    background-position: center;
    background-size: 14px 11px;
  }

  /* 影像秀水视频位 */
  .sxy-home .head_vd_14698,
  .sxy-home .head_vd_14698 .head_vd_title {
    width: 100%;
  }

  .sxy-home .head_vd_14698 .head_vd_frame {
    width: 100%;
    height: auto;
    aspect-ratio: 325 / 200;
  }

  .sxy-home .head_vd_14698 .head_vd_frame .vd_play {
    top: 50%;
    left: 50%;
    width: 56px;
    margin: 0;
    transform: translate(-50%, -50%);
  }

  .sxy-home .head_vd_14698 .head_vd_frame img:not(.vd_play) {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* 院长信箱 / 招生就业 / 兄弟学校入口 */
  .sxy-home .col3 .yqlink {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .sxy-home .col3 .yqlink a {
    flex: 0 0 calc(50% - 4px);
  }

  .sxy-home .col3 .yqlink img {
    width: 100%;
    height: auto;
    margin: 0;
  }

  /* 友情链接 */
  .sxy-site #friend_wre .friend_layer {
    display: flex;
    flex-wrap: wrap;
    margin: 0 8px;
  }

  .sxy-site #friend_wre .friend_layer .each {
    float: none;
    flex: 0 0 50%;
    box-sizing: border-box;
    width: 50%;
    max-width: 50%;
    padding: 6px 8px;
    font-size: 13px;
    line-height: 1.6;
  }

  .sxy-site #friend_wre .friend_layer .each a {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .sxy-site #friend_wre .friend_layer .clear {
    display: none;
  }

  /* 页脚 */
  .sxy-site #bottomNav {
    height: auto;
    padding: 16px 0 8px;
  }

  .sxy-site #bottomNav .btmLogo {
    float: none;
    width: auto;
    padding: 0 0 8px;
  }

  .sxy-site #bottomNav .btmLogo li {
    font-size: 13px;
    line-height: 1.9;
    word-break: break-word;
  }

  .sxy-site #bottomNav .btmCode,
  .sxy-site #bottomNav .btmCode .code {
    float: none;
    width: auto;
    height: auto;
  }

  .sxy-site #bottomNav .btmCode .code_pic {
    width: auto;
    height: auto;
    padding: 8px 0 4px;
  }

  .sxy-site #bottomNav .btmCode .code_pic img {
    width: 88px;
    height: auto;
  }

  /* 列表 / 正文公共 */
  .sxy-site .position {
    height: auto;
    padding: 6px 8px 6px 30px;
    line-height: 1.9;
    background-position: 10px 50%;
    word-break: break-word;
  }

  .sxy-site .col_main .col_left,
  .sxy-site .col_main .col_right {
    float: none;
    width: auto;
  }

  .sxy-site .col_main .col_left {
    margin-bottom: 10px;
  }

  /* 左侧栏目：竖向列表改横向可滑动标签 */
  .sxy-site .show_box_leftmenu .sb1_head {
    height: 48px;
    line-height: 48px;
    background-size: 100% 100%;
  }

  .sxy-site .show_box_leftmenu .sb1_head a {
    font-size: 18px;
    line-height: 48px;
  }

  .sxy-site .show_box_leftmenu .sb1_main {
    border: 1px solid #e8e8e8;
    border-bottom: none;
  }

  .sxy-site .show_box_leftmenu .tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sxy-site .show_box_leftmenu .tabs li,
  .sxy-site .show_box_leftmenu li.thistab {
    flex: 0 0 auto;
    width: auto;
    min-width: 96px;
    height: 42px;
    line-height: 42px;
    padding: 0;
    border: 1px solid #e3e9ef;
    border-radius: 4px;
    background: #f4f7fa;
    text-align: center;
  }

  .sxy-site .show_box_leftmenu .tabs li a,
  .sxy-site .show_box_leftmenu .tabs li a:hover {
    height: 42px;
    padding: 0 12px;
    background: none;
    font-size: 14px;
    line-height: 42px;
    white-space: nowrap;
  }

  .sxy-site .show_box_leftmenu li.thistab,
  .sxy-site .show_box_leftmenu li.thistab a {
    color: #ef7a08;
    background: #fff7ef;
  }

  /* 列表项：单行省略，圆点用伪元素对齐标题中线 */
  .sxy-site .new_li9 li {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    min-height: 34px;
    padding: 0 6px 0 0;
    line-height: 34px;
    background: none;
    overflow: hidden;
  }

  .sxy-site .new_li9 li::before {
    content: "";
    flex: 0 0 auto;
    width: 5px;
    height: 5px;
    margin-left: 2px;
    border-radius: 50%;
    background: #1886d2;
  }

  .sxy-site .new_li9 li.clear {
    display: none;
  }

  .sxy-site .new_li9 li a {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    font-size: 14px;
    line-height: 34px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .sxy-site .new_li9 li .label_datatime {
    float: none;
    flex: 0 0 auto;
    order: 2;
    font-size: 11px;
    line-height: 34px;
    white-space: nowrap;
  }

  .sxy-site .label_ul_b {
    font-size: 14px;
    line-height: 1.9;
  }

  .sxy-site .label_ul_b li {
    padding: 4px 0;
  }

  .sxy-site .label_ul_s {
    line-height: 1.9;
  }

  .sxy-site .label_ul_s li {
    padding: 3px 0;
    word-break: break-word;
  }

  .sxy-site .show_box_2 .sb2_main > div {
    padding: 8px !important;
  }

  /* 正文 */
  .sxy-site .layout_txtcontent {
    padding: 8px;
  }

  .sxy-site .layout_txtcontent .layout_txtcontent_title {
    padding: 10px 4px;
    font-size: 18px;
    line-height: 1.6;
    word-break: break-word;
  }

  .sxy-site .layout_txtcontent .layout_txtcontent_info {
    margin: 8px 0 12px;
    padding: 6px 8px;
    line-height: 1.8;
  }

  .sxy-site .layout_txtcontent .layout_txtcontent_content {
    padding: 0 2px;
    overflow-x: auto;
    line-height: 1.9;
    word-break: break-word;
  }

  .sxy-site .layout_txtcontent .layout_txtcontent_content table {
    max-width: 100%;
  }

  .sxy-site .layout_txtcontent .layout_txtcontent_content iframe {
    max-width: 100%;
  }

  .sxy-site .son_title {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 12px;
  }

  /* 上一篇/下一篇：旧站固定 28px 行高会让长标题溢出压到下一行 */
  .sxy-site .change {
    width: auto;
    padding: 0 4px;
  }

  .sxy-site .change ul {
    padding-left: 12px;
    border-left: 3px solid #d40000;
    background: none;
  }

  .sxy-site .change li {
    height: auto;
    padding: 5px 0;
    line-height: 1.8;
    word-break: break-word;
    overflow: hidden;
  }

  .sxy-site .closepage span {
    margin: 0 6px;
  }

  /* 分页 */
  .sxy-site #page {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 0 4px;
    line-height: 1.8;
  }

  .sxy-site #page a,
  .sxy-site #page .s3 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #dcdddd;
  }

  .sxy-site #page .s1 {
    width: auto;
  }

  .sxy-site #page .page-total {
    flex: 0 0 100%;
    text-align: center;
  }
}

/* ── 小屏微调 ── */
@media (max-width: 480px) {
  .sxy-site .headBox {
    height: 150px;
  }

  .sxy-site .ind-box1 .hd .tit,
  .sxy-site .ind-box2 .hd .tit,
  .sxy-site .ind-box3 .hd .tit {
    font-size: 17px;
  }

  .sxy-home .col3 .yqlink a {
    flex: 0 0 calc(50% - 3px);
  }

  .sxy-home .col3 .yqlink {
    gap: 6px;
  }

  .sxy-site #bottomNav .btmCode .code_pic img {
    width: 76px;
  }

  /* 小屏只留 上一页 / 页码 / 下一页，避免分页控件折成两行 */
  .sxy-site #page .page-first,
  .sxy-site #page .page-last,
  .sxy-site #page .page-jump-prev,
  .sxy-site #page .page-jump-next {
    display: none;
  }

  .sxy-site #page a,
  .sxy-site #page .s3 {
    min-width: 28px;
    height: 30px;
    padding: 0 6px;
  }

  .sxy-site .layout_txtcontent .layout_txtcontent_info {
    font-size: 12px;
  }
}
