/* 基础重置 & 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", sans-serif;
}

body {
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #0056b3;
}

/* 头部样式（与之前 header 结合） */
.header {
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.top-bar {
  display: flex;
  align-items: center;
  padding: 1rem 2rem;
}

.title-group {
  margin-left: 1rem;
}

.title-group h1 {
  font-size: 1.4rem;
  color: #007bff;
}

.title-group p {
  font-size: 0.9rem;
  color: #666;
}

.main-nav {
  border-top: 1px solid #eee;
}

/* 导航下拉菜单样式（延续之前逻辑，增强交互） */
#nav_all {
  display: flex;
  list-style: none;
}

#nav_all li {
  position: relative;
}

#nav_all li a {
  display: block;
  padding: 0.8rem 1.2rem;
  color: #333;
}

#nav_all li:hover > a {
  background-color: #f1f3f5;
  color: #007bff;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  border: 1px solid #eee;
  border-top: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.has-submenu:hover .submenu {
  opacity: 1;
  visibility: visible;
}

.submenu li a {
  padding: 0.6rem 1.2rem;
  white-space: nowrap;
}

/* 主体内容容器 */
.content-wrapper {
  width: 90%;
  max-width: 1200px;
  margin: 2rem auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .content-wrapper {
    grid-template-columns: repeat(3, 1fr); /* 三列等宽布局 */
  }
  .center-intro {
    grid-column: 1;
    grid-row: 1;
  }
  .news-updates {
    grid-column: 2;
    grid-row: 1;
  }
  .right-column {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
}

/* 各模块通用标题栏 */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #007bff;
  position: relative;
  padding-left: 1rem;
}

.section-header h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 1rem;
  background-color: #007bff;
}

.section-header .more {
  font-size: 0.9rem;
  color: #999;
}

/* 中心简介模块 */
.center-intro {
  display: flex;
  flex-direction: column; /* 让内部元素垂直排列 */
}

/* 中心简介 - 图片容器 */
.center-intro .intro-image {
  width: 100%; /* 占满父容器宽度 */
  margin-bottom: 1rem; /* 与文字保持间距 */
}

.center-intro .intro-image img {
  width: 100%; /* 图片铺满容器 */
  height: auto; /* 保持宽高比 */
  border-radius: 4px; /* 圆角优化 */
  object-fit: cover; /* 裁剪图片（可选，保持比例时用） */
}

/* 中心简介 - 文字内容 */
.center-intro .intro-content {
  width: 100%; /* 占满父容器宽度 */
  display: block; /* 清除原有 Flex 影响 */
}

.center-intro .intro-content p {
  flex: 1;
  text-indent: 2em;
  color: #555;
  margin-bottom: 1rem; /* 与“查看更多”按钮间距 */
}

.center-intro .read-more {
  display: inline-block;
  color: #007bff;
}

/* 新闻动态、规章制度等列表模块通用样式 */
.news-list,
.regu-list,
.practice-list {
  list-style: none;
}

.news-list li,
.regu-list li,
.practice-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px dashed #eee;
}

.news-list .date,
.regu-list .date,
.practice-list .date {
  color: #999;
  font-size: 0.85rem;
  margin-left: 1rem;
}

/* 移除学生获奖模块相关样式（若有） */
.student-awards {
  display: none;
}

/* 确保各模块内容容器填充空间 */
.center-intro,
.news-updates,
.right-column {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 调整内容区内部间距 */
.intro-content p {
  margin-bottom: 1rem;
}

.news-list,
.regu-list,
.practice-list {
  margin-top: 1rem;
}

/* 底部样式 */
.footer {
  background-color: #fff;
  border-top: 1px solid #eee;
  padding: 1.5rem 2rem;
  text-align: center;
  color: #666;
}

.footer-inner p {
  margin: 0.3rem 0;
  font-size: 0.9rem;
}

/* 响应式适配（小屏幕） */
@media (max-width: 768px) {
  /* 中心简介模块 */
  .center-intro .intro-image img {
    max-width: 100%; /* 避免图片超出屏幕 */
  }
  .center-intro .intro-content p {
    font-size: 0.9rem; /* 缩小文字适配小屏幕 */
  }

  /* 主体容器变为单列 */
  .content-wrapper {
    grid-template-columns: 1fr;
  }
  .right-column {
    flex-direction: column;
  }
}