body,
td,
th {
  font-size: 16px;
}
body {
  margin-left: 0px;
  margin-top: 0px;
  margin-right: 0px;
  margin-bottom: 0px;
  background-image: url(images/bj.jpg);
  background-repeat: repeat-x;
  background-color: #f1eee500;
}
img {
  border: 0px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "微软雅黑";
}

.news {
  font-family: Verdana, Geneva, sans-serif;
  line-height: 25px;
  color: #333;
}
.container2 .news {
  color: #fff;
}
.news a {
  font-family: Verdana, Geneva, sans-serif;
  -webkit-transition: 0.4s;
  line-height: 40px;
  color: #333;
}
.news a:hover {
  text-indent: 0.4em;
}
.news visited {
  font-family: Verdana, Geneva, sans-serif;
  line-height: 25px;
  color: #333;
}

a:link {
  text-decoration: none;
}
a:visited {
  text-decoration: none;
}

a:active {
  text-decoration: none;
}

.dress {
  font-size: 14px;
  color: #fff;
  font-family: "微软雅黑";
  line-height: 26px;
}

.newsshow {
  margin-top: 10px;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 26px;
  line-height: 45px;
  color: #ff0000;
}
.Article_Title {
  display: block;
  color: #ff0000;
  font-size: 24px;
  margin: 10px;
}
.wp_entry {
  padding: 15px;
}
.info {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 16px;
  line-height: 28px;
  color: #333;
  margin-top: 10px;
  margin-bottom: 20px;
}
.T3 {
  font-family: "微软雅黑";
  font-size: 14px;
  color: #990000;
}
.wp_nav .nav-item a {
  font-family: "Microsoft Yahei";
  display: block;
  text-align: center;
  position: relative;
  z-index: 100;
  line-height: 35px;
}

.wp_nav .sub-nav {
  display: block;
  width: 100%;
  position: absolute;
  z-index: 200;
  visibility: hidden;
  border: 1px solid #ccc;
  border-top: none;
  width: auto !important;
  background-color: #ede8af;
  height: auto !important;
}

.wp_nav .sub-nav .nav-item a span.item-name {
  padding: 5px 10px;
  line-height: 14px !important;
}

.wp_nav .sub-nav .nav-item a {
  padding: 1px;
  border-style: solid;
  border-width: 1px;
  background-color: #eae8a6;
  border-color: #d6cf77;
  margin: 2px;
}

.lanmu a {
  color: #000;
}
.biaot a {
  color: #000;
}
.header {
  width: 100%;
}
.logo {
  width: 1380px;
}
.nav {
  width: 1380px;
  margin: 0 auto;
  height: 34px;
}
.bannerImage {
  width: 100%;
}

.container {
  width: 100%;
  margin-top: 15px;
}
.mt15 {
  margin-top: 15px;
}

.mb15 {
  margin-bottom: 15px;
}

.dtjt9_div_text {
  bottom: 0;
}

.dtjt9_div_text a,
.dtjt9_div_text a:link,
.dtjt9_div_text a:visited {
  font-size: 16px;
  line-height: 32px;
  bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dtjt9_div_img .number {
  bottom: 42px;
}

.bg1 {
  height: 445px;
  background-color: #ffffff;
  margin-top: -15px;
  padding-top: 25px;
}
.bg2 {
  background-color: #0664a7;
  margin-top: -15px;
  overflow: auto;
}
.bg3 {
  height: 220px;
}
.titleC {
  display: flex;
  margin-top: 15px;
  justify-content: space-between; /* 关键：让子元素分别靠左和靠右 */
  align-items: center; /* 垂直居中对齐 */
  width: 100%; /* 可根据需要调整宽度 */
}
.red {
  color: #950004;
}
.white {
  color: #fff;
}
.lmtitle {
  height: 35px;
  text-align: left;
  font-size: 27px;
  font-weight: bold;
  line-height: 36px;
  display: flex;
  align-items: center;
}
.lmtitle svg {
  margin: 0 10px; /* 添加一些间距 */
}
.titleC > a {
  text-decoration: none;
  padding-right: 15px;
}

.container1 {
  width: 1380px;
}
.w40 {
  width: 40%;
}
.w60 {
  width: 60%;
}
.w50 {
  width: 50%;
}
.pr20 {
  padding-right: 20px;
}

.container1-1,
.container2-2 {
  height: 100%;
  float: left;
}
.container1-2,
.container2-1 {
  float: left;
  height: 100%;
}
.container1-2,
.container2-2 {
  padding-left: 20px;
}

.container1-2 a,
.container2-1 a,
.container2-2 a {
  white-space: nowrap; /* 不换行 */
  overflow: hidden; /* 超出隐藏 */
  text-overflow: ellipsis; /* 超出部分显示 ... */
}

.container2 {
  width: 1380px;
}
.container2 .news a {
  color: #fff;
}
.container3 {
  width: 1380px;
  height: 220px;
}

.QRContainer {
  float: left;
  width: 30%;
  height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.QR {
  margin-top: 10px;
}
.linksContainer {
  float: left;
  display: flex;
  gap: 20px; /* 盒子之间的间距 */
  box-sizing: border-box;
  width: 70%;
  padding: 20px;
  height: 220px;
}

.linksContainer > div {
  flex: 1;
  border: 1px solid #adadad;
  color: white;
  text-align: center;

  /* 关键：让 .box 成为一个 flex 容器，实现垂直居中 */
  display: flex;
  align-items: center; /* 垂直居中 */
  justify-content: center; /* 水平居中（可选） */
  padding: 20px; /* padding 不影响居中 */
}

.linksContainer > div:nth-child(1) {
  /* background-color: #e49d3a; */
  background-image: url("images/linkbg1.png"); /* 背景图片 */
  /* background-blend-mode: overlay; 混合模式，可选 */
}
.linksContainer > div:nth-child(2) {
  /* background-color: #48b0dd; */
  background-image: url("images/linkbg2.png");
}
.linksContainer > div:nth-child(3) {
  /* background-color: #6898e4; */
  background-image: url("images/linkbg3.png");
}
.linksContainer > div:nth-child(4) {
  /* background-color: #7176c3; */
  background-image: url("images/linkbg4.png");
}

.linksContainer > div > a {
  font-weight: bold;
  -webkit-transition: 0.4s;
  text-decoration: none;
  color: white;
}
.linksContainer > div > a:hover {
  margin-top: -8px;
}
.footer {
  background-color: #333;
  text-align: center;
  color: white;
  font-size: 16px;
  line-height: 32px;
  padding: 0.2rem 0;
}

.footContainer {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0.8rem;
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
}

.foot-logo {
  padding: 0 1.2rem;
  border-right: 1px solid white;
}

.foot-tel {
  margin: 0;
  padding: 0;
  margin-left: auto;
}

.print a {
  color: #333333;
  text-decoration: none;
}

/* -----------基础响应式调整：替换固定单位为相对单位 */
html {
  font-size: 16px; /* 根字体大小，用于rem单位 */
}

/* 移除固定宽度，使用max-width确保不超出屏幕 */
.container1,
.container2,
.container3,
.logo,
.nav {
  width: 100%;
  max-width: 1380px; /* 最大宽度保持原有设计 */
  padding: 0 15px; /* 左右留白，避免内容贴边 */
  box-sizing: border-box;
}

/* 图片自适应 */
.bannerImage,
.QR img,
.linksContainer img {
  max-width: 100%;
  height: auto; /* 保持宽高比 */
}

/* 响应式布局：小屏幕（手机，≤768px） */
@media (max-width: 768px) {
  html {
    font-size: 14px; /* 小屏幕缩小字体 */
  }
  .container1,
  .container2,
  .container3,
  .logo,
  .nav {
    padding: 0 0.4rem;
  }

  /* 堆叠布局：取消浮动，改为块级元素 */
  .container1-1,
  .container1-2,
  .container2-1,
  .container2-2,
  .QRContainer {
    float: none;
    width: 100% !important;
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 15px;
  }
  .container2-1 {
    border-bottom: 1px dotted #ffffffd5;
    padding-bottom: 15px;
  }

  /* 调整高度为自适应内容 */
  .bg1,
  .bg2,
  .bg3,
  .container3 {
    height: auto;
    min-height: auto;
    padding: 1.25rem 0.9rem;
  }

  /* 标题样式调整 */
  .lmtitle {
    width: 70%;
    font-size: 1.5rem; /* 使用rem单位 */
  }
  .titleC > a {
    font-size: 0.9rem;
    padding-right: 0;
  }

  /* 导航栏调整 */
  .nav {
    height: auto;
    padding: 10px 0;
  }

  /* 新闻列表行高调整 */
  .news a {
    line-height: 30px;
  }

  /* 页脚调整 */
  .footContainer {
    flex-direction: column;
    text-align: center;
    padding: 1rem 0.5rem;
    gap: 10px;
  }

  .foot-logo {
    padding: 0.5rem;
    border-right: none;
    margin-bottom: 10px;
  }

  .foot-addr {
    font-size: 0.9rem;
    padding: 0.5rem;
    text-align: center;
  }

  .foot-tel {
    margin-left: 0;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.9rem;
  }

  .foot-tel li {
    line-height: 1.8;
    text-align: center;
  }

  .footer {
    line-height: 24px;
    padding: 1rem 0;
  }
}

/* 中等屏幕（平板，769px-1199px） */
@media (min-width: 769px) and (max-width: 1199px) {
  .container1,
  .container2,
  .container3 {
    max-width: 100%;
  }

  .w40 {
    width: 45%;
  }
  .w60 {
    width: 55%;
  }

  .lmtitle {
    font-size: 22px;
  }
}

/* 大屏幕（桌面，≥1200px）保持原有设计 */
@media (min-width: 1200px) {
  .container1,
  .container2,
  .container3,
  .logo,
  .nav {
    margin-left: auto;
    margin-right: auto; /* 居中显示 */
  }
}

/* -----------导航基础样式优化 */
.wp_nav {
  width: 100%;
  border-collapse: collapse; /* 合并表格边框，避免多余间距 */
}

.wp_nav td {
  padding: 0;
  vertical-align: middle;
}

.nav-item {
  position: relative; /* 子菜单定位基准 */
}

/* 子菜单基础优化 */
.sub-nav {
  list-style: none; /* 移除默认列表样式 */
  margin: 0;
  padding: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 增加阴影提升层次感 */
}

.sub-nav .nav-item {
  white-space: nowrap; /* 子菜单文字不换行 */
}

/* 响应式适配 - 中等屏幕（平板，769px-1199px） */
@media (max-width: 1199px) {
  /* 调整子菜单宽度 */
  .sub-nav {
    width: 120px !important; /* 适当加宽避免文字溢出 */
  }
}

/* 响应式适配 - 小屏幕（手机，≤768px） */
@media (max-width: 768px) {
  /* 导航栏转为垂直堆叠 */
  .wp_nav tr {
    display: flex;
    flex-direction: column; /* 垂直排列导航项 */
    width: 100%;
  }

  .wp_nav td {
    display: block;
    width: 100% !important; /* 每个导航项占满宽度 */
    border-bottom: 1px solid #eee; /* 增加分隔线 */
  }

  /* 导航项样式调整 */
  .lj {
    width: 100%;
    padding: 10px 15px; /* 增加内边距，提升点击区域 */
    font-size: 16px;
  }

  .nav-item > div {
    width: 100%;
  }

  .nav-item a {
    display: block; /* 链接占满父容器，便于点击 */
    padding: 8px 0;
  }

  /* 子菜单适配 */
  .sub-nav {
    position: relative !important; /* 取消绝对定位，改为相对定位 */
    visibility: visible !important; /* 默认显示子菜单（或通过JS控制显示/隐藏） */
    width: 100% !important; /* 子菜单占满宽度 */
    height: auto !important;
    box-sizing: border-box;
    padding-left: 20px; /* 缩进子菜单，区分层级 */
    background-color: #f5f5f5; /* 浅色背景区分层级 */
    border: none !important;
  }

  /* 二级子菜单（如"非脱产专升本"的子菜单） */
  .sub-nav .sub-nav {
    left: 0 !important; /* 取消左偏移，垂直堆叠 */
    top: 0 !important;
    padding-left: 40px; /* 更深层级缩进 */
  }

  .container3 {
    display: flex;
    flex-direction: column;
  }
  .bg3 {
    margin-top: 0;
    padding: 0;
  }
  .QRContainer {
    order: 2;
    width: 100% !important;
    float: none;
    height: auto;
    margin-top: 15px;
  }

  .linksContainer {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
    width: 100%;
    order: 1;
  }

  .linksContainer > div {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 5px;
    min-height: 80px;
  }
}

/* 响应式页脚 - 平板设备 (769px-1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .footContainer {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 1rem;
    gap: 15px;
  }

  .foot-logo {
    padding: 0 1rem;
    border-right: 1px solid white;
  }

  .foot-addr {
    font-size: 0.9rem;
  }

  .foot-tel {
    font-size: 0.9rem;
    margin-left: auto;
  }

  .foot-tel li {
    line-height: 1.8;
  }
}
