/* 内页 Banner */
.sub-banner {
  width: 100%;
  height: 350px; /* 比首页矮 */
  background: url("../img/jjy-banner.png") no-repeat center center/cover;
  position: relative;
  margin-top: 0; /* Header是fixed */
}

/* ==================== 4. 页面主体布局 ==================== */
.main-content {
  padding: 50px 0 80px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}


/* --- 右侧内容区 --- */
.page-body {
  flex: 1;
  min-width: 0;
}

/* 面包屑标题 */
.content-header {
  font-size: 18px;
  color: #666;
  margin-bottom: 30px;
  border-left: 4px solid var(--primary-color);
  padding-left: 15px;
  height: 24px;
  line-height: 24px;
  display: flex;
  align-items: center;
}

.content-header span {
  font-weight: bold;
  color: #333;
  margin-left: 5px;
}
.content-header span a {
  color: #999;
}
.content-header span a:last-child  {
  color: var(--primary-color);
}

/* === 部门介绍样式 === */

/* 部门标题 */
.dept-section {
  background: #fff;
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
  margin-bottom: 40px;
}

.dept-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.dept-icon {
  font-size: 28px;
  color: var(--primary-color);
}

.dept-title-group h2 {
  font-size: 18px;
  color: #333;
  font-weight: 500;
  line-height: 1;
}

.dept-title-group span {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
}

/* 人员卡片网格 */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 两列布局 */
  gap: 20px;
}

/* 个人卡片 */
.dept-card {
  display: flex;
  background: #fff;
  /* 极淡的背景色区分卡片 */
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 25px;
  gap: 25px;
  align-items: flex-start;
  transition: 0.3s;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  /* 初始状态：向下偏移且透明 (用于JS滚动动画) */
  opacity: 0;
  transform: translateY(50px);
}

.dept-card:hover {
  background: #EBF7FF;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border-color: transparent;
  transform: translateY(-3px);
}


/* ================== JS 滚动动画激活类 ================== */
/* 当元素进入视口，JS会添加 .visible 类 */
.dept-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 左侧：照片和名字 */
.dc-left {
  flex-shrink: 0;
  width: 100px;
  text-align: center;
}

.dc-img {
  width: 100px;
  height: 120px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dc-name {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

/* 右侧：详细信息 */
.dc-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dc-role {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.dc-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 10px;
  height: 66px;
  overflow: hidden;
}

.dc-email {
  font-size: 13px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* 分页器 (复用) */
.pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 40px;
}

.page-item {
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #ddd;
  color: #666;
  cursor: pointer;
  font-size: 14px;
  transition: 0.3s;
}

.page-item:hover,
.page-item.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.page-item.text-btn {
  width: auto;
  padding: 0 10px;
}

.page-item.dots {
  border: none;
  cursor: default;
}

@media screen and (max-width: 768px) {
  .top-bar {
    display: none;
  }

  .sub-banner {
    height: 12.5rem;
  }

  .main-content {
    padding: 1.25rem 0;
    gap: 1.25rem;
  }

  /* 手机端卡片变为单列 */
  .dept-grid {
    grid-template-columns: 1fr;
  }

  .dept-section {
    padding: 1.25rem;
  }

  .dept-card {
    padding: 0.9375rem;
    gap: 0.9375rem;
  }

  .dc-img {
    width: 5rem;
    height: 6.25rem;
  }

  .dc-left {
    width: 5rem;
  }

  .dc-role {
    font-size: 0.9375rem;
  }
}
/* ==================== 6. 移动端适配 ==================== */
@media screen and (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .main-content {
    flex-direction: column;
    gap: 1.875rem;
  }

}