/* 内页 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;
  padding-top: 25px;
  width: 100%;
}

/* 面包屑标题栏 */
.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);
}
/* --- 筛选 Tabs (美化版) --- */
.filter-tabs {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-btn {
  flex: 1;
  min-width: 140px;
  text-align: center;
  padding: 12px 0;
  background: #fff;
  color: #555;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid #eee;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.filter-btn:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(93, 51, 99, 0.1);
}

.filter-btn.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 5px 15px rgba(93, 51, 99, 0.2);
}


/* --- 师资卡片网格 --- */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4列 */
  gap: 20px;
  margin-bottom: 50px;
}

.faculty-card {
  background-image: url("../img/teacher-bg.jpg");
  background-size: 100% 100%;
  background-position: center center;
  padding: 25px 20px 0 20px;
  text-align: center;
  transition: 0.3s;
  box-shadow: 2px 6px 10px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 9px;
}
.faculty-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.faculty-grid.fade-in {
  animation: fadeInCard 0.5s ease forwards;
}
@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fc-img {
  max-width: 140px;
  height: 180px;
  margin: 0 auto 20px;
  overflow: hidden;
  border: 1px solid #eee;
}
.fc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fc-info {
  flex: 1;
  text-align: left;
}
.fc-name {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
  color: var(--primary-color);
}
.fc-title {
  font-size: 13px;
  color: #888;
  margin-bottom: 10px;
  display: block;
}
.fc-desc {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 10px;
  overflow: hidden;
}

.fc-tag {
  display: inline-block;
  color: #666;
  font-size: 12px;
  margin-bottom: 20px;
}

/* 卡片底部 */
.fc-footer {
  border-top: 1px solid #d7ccda;
  padding: 15px 0;
  text-align: left;
  font-size: 13px;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M0 20 L20 0 M20 100 L40 80" stroke="%23eee" stroke-width="1" fill="none"/></svg>');
  background-position: bottom right;
  background-repeat: no-repeat;
}

.fc-footer i {
  margin-left: 8px;
  color: var(--primary-color);
}

/* 高亮卡片样式 */
.faculty-card:hover {
  color: #fff;
  background-image: url("../img/teacher-bg-active.png");
  background-size: 100% 100%;
  background-position: center center;
}
.faculty-card:hover .fc-img {
  border-color: rgba(255, 255, 255, 0.3);
}
.faculty-card:hover .fc-name {
  color: #fff;
}
.faculty-card:hover .fc-title {
  color: rgba(255, 255, 255, 0.9);
}
.faculty-card:hover .fc-desc {
  color: rgba(255, 255, 255, 0.9);
}
.faculty-card:hover .fc-tag {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.faculty-card:hover .fc-footer {
  border-top-color: #fff;
  color: #fff;
  background-image: url('data:image/svg+xml;utf8,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><path d="M0 30 L15 5 L45 5 L60 30 L45 55 L15 55 Z" stroke="rgba(255,255,255,0.1)" fill="none" stroke-width="2"/></svg>');
  background-size: 60px 60px;
  background-position: right bottom;
}

.faculty-card:hover .fc-footer i {
  color: #fff;
}

/* 分页器 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 20px;
}
.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.dots {
  border: none;
  cursor: default;
}

/* ==================== 6. 移动端适配 ==================== */
@media screen and (max-width: 1024px) {
  .nav-links {
    display: none;
  }
  .main-content {
    flex-direction: column;
    gap: 1.875rem;
  }
  .faculty-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media screen and (max-width: 768px) {
  .top-bar {
    display: none;
  }
  .sub-banner {
    height: 12.5rem;
  }
  .main-content {
    padding: 1.25rem 0;
    gap: 1.25rem;
  }
  .filter-tabs {
    gap: 0.625rem;
  }
  .filter-btn {
    font-size: 0.8125rem;
    padding: 0.625rem 0.3125rem;
    min-width: auto;
    flex: 1 1 45%;
  }
  .faculty-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
  }
  .faculty-card {
    padding: 0.9375rem 0.625rem 0 0.625rem;
  }
  .fc-img {
    width: 6.25rem;
    height: 8.125rem;
    margin-bottom: 0.625rem;
  }
  .fc-name {
    font-size: 1rem;
  }
  .fc-desc {
    height: 2rem;
    font-size: 0.75rem;
    -webkit-line-clamp: 2;
  }
  .fc-tag {
    font-size: 0.75rem;
    padding: 0.0625rem 0.3125rem;
    transform: scale(0.9);
  }
  .fc-footer {
    font-size: 0.75rem;
    padding: 0.625rem 0;
  }
  .pagination {
    gap: 0.1875rem;
  }
  .page-item {
    width: 1.875rem;
    height: 1.875rem;
    font-size: 0.75rem;
  }
}