/* 重置和基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

ul,
li {
  list-style: none;
}

/* 导航栏整体 */
.navbar {
  background-color: #0170c1;
  color: white;
  padding: 0;
  /* position: fixed; */
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Logo 容器：单独一行，居中 */
.nav-logo-container {
  max-width: 1380px;
  width: 100%;
  height: 125px;
  margin: 0 auto;
  background: url("images/byz.png") no-repeat right center;
}

.fjutlogo {
  height: 125px;
  padding: 15px 5px 0px 15px;
  float: left;
}
.fjutlogo img {
  height: 5.8rem;
}
.xyname1 {
  float: left;
  margin-top: 25px;
  margin-left: 15px;
  letter-spacing: 3px;
  font-size: 2.6rem;
  font-weight: bolder;
  color: #fff;
}
.xyname2 {
  display: none;
}

/* 导航菜单容器：单独一行 */
.nav-menu-container {
  width: 100%;
  display: flex;
  justify-content: center; /* 菜单内容居中 */
  background-color: #014a7f;
}

.nav-menu {
  list-style: none;
  display: flex;
  text-align: center;
  background-color: #014a7f;
}

.nav-menu a:hover {
  text-decoration: none;
}

.nav-item {
  position: relative;
  min-width: 76px;
}

.nav-link {
  display: block;
  color: white;
  text-decoration: none;
  padding: 1rem 0.9rem;
  transition: background-color 0.3s ease;
}

/* 二级菜单样式 */
.sub-nav {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #444;
  min-width: 200px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sub-link {
  display: block;
  color: #ffffff;
  padding: 1rem 1.5rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.sub-link:hover {
  background-color: #0099cc;
  color: white;
}

/* 二级菜单显示逻辑 - 仅一级菜单hover时显示二级菜单 */
.nav-item:hover > .sub-nav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 三级菜单样式 */
/* 二级菜单项作为三级菜单的定位容器 */
.sub-nav > li {
  position: relative;
}

/* 三级菜单基础样式 */
.sub-nav .sub-nav {
  top: 0;
  left: 100%; /* 显示在二级菜单右侧 */
  transform: translateX(-10px); /* 左侧进入动画 */
}

/* 三级菜单显示逻辑 - 仅二级菜单项hover时显示三级菜单 */
.sub-nav > li:hover > .sub-nav {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* 汉堡菜单按钮 */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* ---------列表页样式 */
.listbanner {
  width: 100%;
  margin: 0 auto;
}

.main-content {
  margin: 15px auto;
  max-width: 1380px;
  display: flex;
  gap: 20px; /* 子元素间距 */
}

.sidebar {
  margin-left: 12px;
  width: 25%; /* 大屏幕占比 */
  flex-shrink: 0; /* 不被压缩 */
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0;
}

.sidebar h3 {
  font-size: 1.2rem;
  width: 100%;
  padding: 20px;
  color: #fff;
  background: #0170c0;
  border-bottom: 1px solid #eee;
  margin-bottom: 15px;
  text-align: center;
}

/* 导航列表样式 */
.sidebar .nav-list {
  list-style: none;
  padding: 0 10px;
}

.sidebar .nav-item {
  margin: 5px 0;
  border-bottom: 2px dotted #d4d4d4;
}

.sidebar .nav-link {
  display: block;
  padding: 12px 20px;
  color: #0170c0;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  border-radius: 4px;
}

.sidebar .nav-link:hover {
  color: #8b0000;
}

/* 二级子菜单列表 */
.sub-list {
  list-style: none;
  margin-top: 5px;
  margin-bottom: 5px;
  /* display: none;  */
  background-color: #f9f9f9; /* 子菜单背景色，稍作区分 */
  border-radius: 4px;
  padding: 5px 0;
}

/* 二级菜单项 */
.sub-item {
  margin: 3px 0;
}

/* 二级菜单链接 */
.sub-item-link {
  display: block;
  padding: 6px 10px;
  padding-left: 45px;
  color: #666;
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: 3px;
}

.sub-item-link:hover {
  background-color: #e0e7ff;
  color: #1a73e8;
}

/* 一级菜单悬停时显示子菜单 */
.nav-item:hover .sub-list {
  display: block;
}

/* 右侧新闻列表 */
.news-list-container {
  flex: 1;
  /* 占据剩余空间 */
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  min-height: 500px;
}

.news-list-container h2 {
  font-size: 1.5rem;
  color: #1a73e8;
  padding: 0 12px 10px 12px;
  border-bottom: 3px solid #1a73e8;
}

/* 新闻列表头部 */
.list-head {
  margin-bottom: 20px;
  border-bottom: 2px solid #1a73e8;
}

.list-head-container {
  display: flex;
}

.list-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  /* 允许换行 */
}

.column-title {
  font-size: 1.5rem;
  color: #1a73e8;
  font-weight: 600;
}

.column-path {
  font-size: 0.9rem;
  color: #666;
  margin-top: 5px;
}

.column-path a {
  color: #1a73e8;
}

.column-path a:hover {
  color: #9b0000;
}

.listpage-listcontainer {
  margin-left: 16px;
}
.listpage-listcontainer .news-list {
  width: 100%;
  max-width: none;
  margin-bottom: 20px;
}

.listpage-listcontainer .news-item .bullet {
  background-color: #0074d9;
}

.news-item:hover {
  background-color: #f5f5f5;
}

.container2 .news-item:hover {
  background-color: #2a84e357;
}

/* ------------文章页样式------------ */
.art-container {
  max-width: 1380px;
  min-height: 500px;
  margin: 15px auto;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.art-container .column-path {
  text-align: right;
  line-height: 25px;
  padding: 12px 6px;
  border-bottom: 1px solid #e9e9e9;
}

.possplit {
  background-image: url(images/posSplit.gif);
  background-repeat: no-repeat;
  background-position: left center;
  text-indent: 22px;
  background-position: center;
  width: 10px;
  display: inline-block;
  border: 0px solid red;
}

.arti-title {
  text-align: center;
  color: #333;
  margin: 15px;
}

.arti-metas {
  text-align: center;
  color: #999;
  background: #ebebeb;
  padding: 10px;
}

.arti-metas span {
  display: inline-block;
  margin: 0 10px;
}

.readtext {
  margin: 25px 0;
}

/* 当视口宽度足够大，使得容器宽度可能超过 1380px 时 */
@media (min-width: 1230px) {
  .xyname1 {
    float: left;
    margin-top: 23px;
    font-size: 38px;
    letter-spacing: 2px;
  }
}

@media (min-width: 941px) and (max-width: 1229px) {
  .nav-logo-container {
    height: 100px;
    padding-top: 0;
  }
  .fjutlogo {
    height: 70px;
    padding: 15px 5px 0px 15px;
    float: left;
  }
  .fjutlogo img {
    height: 70px;
  }
  .xyname1 {
    float: left;
    margin-top: 23px;
    font-size: 38px;
    letter-spacing: 2px;
  }
  .xyname2 {
    display: none;
  }
}

@media (min-width: 769px) and (max-width: 940px) {
  .nav-logo-container {
    height: 80px;
    background: none;
  }
  .fjutlogo {
    height: 80px;
    padding: 15px 5px 0px 15px;
    float: left;
  }
  .fjutlogo img {
    height: 50px;
  }
  .xyname1 {
    float: left;
    margin-top: 14px;
    font-size: 35px;
    letter-spacing: 2px;
  }
  .xyname2 {
    display: none;
  }
}

/* -----------------------------
   移动端响应式（<=768px）
   ----------------------------- */
@media (max-width: 768px) {
  /* Logo 容器保持 */
  .nav-logo-container {
    height: 80px;
    background: none;
  }

  .fjutlogo {
    height: 80px;
    padding: 15px 5px 0px 15px;
    float: left;
  }
  .fjutlogo img {
    height: 40px;
  }
  .xyname1 {
    display: none;
  }
  .xyname2 {
    display: block;
    float: left;
    margin-top: 5px;
    font-size: 20px;
    font-weight: bolder;
    color: #fff;
  }

  /* 汉堡菜单显示 */
  .hamburger {
    position: absolute;
    right: 15px;
    top: 12px;
    display: block;
    margin-left: auto; /* 靠右 */
  }

  /* 菜单容器设置为列布局 */
  .nav-menu-container {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-menu {
    flex-direction: column;
    left: -100%;
    position: fixed;
    top: 80px; /* 根据实际高度调整 */
    width: 100%;
    background-color: #0074d9;
    transition: 0.3s;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    left: 0;
    z-index: 1000;
  }

  /* 移动端二级菜单 */
  .sub-nav {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
  }

  .nav-item.active .sub-nav {
    max-height: 500px;
  }

  /* 移动端三级菜单 */
  .sub-nav .sub-nav {
    position: static;
    padding-left: 1.5rem; /* 更深层级缩进 */
    max-height: 0;
  }

  /* 仅当二级菜单项激活时显示三级菜单 */
  .sub-nav > li.active .sub-nav {
    max-height: 500px;
  }

  .sub-link {
    padding-left: 2.5rem;
  }

  /* 三级菜单链接缩进更多 */
  .sub-nav .sub-nav .sub-link {
    padding-left: 4rem;
  }
}

/* 平板设备 (769px-1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .main-content {
    flex-direction: column;
    gap: 15px;
    margin: 10px auto;
    padding: 0 15px;
  }

  .sidebar {
    width: 100%;
    margin-left: 0;
  }

  .news-list-container {
    width: 100%;
  }

  .news-item {
    padding: 12px 0;
  }

  .news-item .newstitle {
    font-size: 15px;
  }

  .news-item .date {
    font-size: 13px;
    margin-left: 10px;
  }
}

/* 移动设备 (≤768px) */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
    gap: 15px;
    margin: 10px auto;
    padding: 0 10px;
  }

  .sidebar {
    width: 100%;
    margin-left: 0;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
  }

  .sidebar h3 {
    padding: 15px;
    font-size: 1.1rem;
  }

  .news-list-container {
    width: 100%;
    padding: 15px 10px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
  }

  .news-list-container h2 {
    font-size: 1.3rem;
    padding: 0 0 10px 0;
  }

  .list-head-container {
    flex-direction: column;
    gap: 8px;
  }

  .column-title {
    display: none;
  }

  .list-head {
    padding-bottom: 6px;
    border-bottom: 1px solid #6da1cf;
  }

  .column-path {
    font-size: 0.9rem;
  }

  .listpage-listcontainer {
    margin-left: 0;
  }

  .news-item {
    padding: 10px 0;
    flex-wrap: wrap;
  }

  .news-item .bullet {
    margin-left: 8px;
    margin-right: 10px;
  }

  .news-item .newstitle {
    font-size: 14px;
    flex: 1 1 calc(100% - 70px);
    margin-bottom: 5px;
  }

  .news-item .date {
    font-size: 12px;
    margin-left: 20px;
    flex: 0 0 auto;
  }
  .listbanner {
    height: 100px;
    background: url("images/listbanner.png") no-repeat 85% 50%;
    background-size: cover;
  }

  .listbanner img {
    display: none;
  }
  .art-container {
    margin: 15px 12px;
    padding: 15px;
  }
  .arti-title {
    font-size: 24px;
  }

  .readtext img[data-layer="photo"] {
    width: 100% !important;
    height: auto !important;
  }
}

/* -----------图文热点(保持4：3的比例)-------- */
.dtjt9_div_img {
  position: relative;
  width: 100%;
  max-height: 322px;
  /* 防止内容溢出 */
  overflow: hidden;
}

.dtjt9_div_img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* 确保图片适应容器并保持比例 */
  object-fit: cover; /* 可选，根据需要选择 contain 或 cover */
}

/* 关键：使用伪元素创建比例容器 */
.dtjt9_div_img::before {
  content: "";
  display: block;
  padding-top: 75%; /* 3/4 × 100% = 75% */
}

/* -----------新闻列表-------- */

/* 新闻列表容器 */
.news-list {
  max-width: 800px;
  margin: 0 auto;
  list-style: none;
}

/* 新闻列表项 */
.news-item {
  display: flex;
  /* 启用弹性布局 */
  align-items: center;
  /* 垂直居中对齐 */
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

/* 红色小方块 */
.news-item .bullet {
  width: 6px;
  height: 6px;
  background-color: #950004;
  /* 红色 */
  margin-right: 15px;
  margin-left: 8px;
  /* 与标题的间距 */
  flex-shrink: 0;
  /* 防止方块被压缩 */
}

/* 新闻标题 */
.news-item .newstitle {
  flex: 1;
  /* 占据剩余空间 */
  font-size: 16px;
  color: #333;
  text-align: left;
  overflow: hidden;
  /* 防止文本溢出 */
  text-overflow: ellipsis;
  /* 文本溢出时显示省略号 */
  white-space: nowrap;
  /* 文本不换行 */
  display: flex; /* 启用 flex 布局 */
  min-width: 0; /* 允许 flex 项目在 flex 容器中正确收缩 */
}

/* 日期 */
.news-item .date {
  flex-shrink: 0; /* 防止日期被压缩 */
  font-size: 14px;
  color: #666;
  margin-left: 15px; /* 与标题的间距 */
  margin-right: 10px;
}

/* 最后一个新闻项移除下划线 */
.news-item:last-child {
  border-bottom: none;
}

.news-item a {
  display: block;
  text-decoration: none;
  color: #333;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: transform 0.4s ease; /* 添加动画过渡 */
}

.news-item a:hover {
  color: #950004;
  transform: translateX(4px);
}

.container2 .news-item a,
.container2 .date {
  color: #fff;
}

.container2 .news-item a:hover {
  color: #6cb8f4;
}

.container2 .bullet {
  background-color: #fff;
}

.container2 .news-item {
  border-bottom: none;
}
