/* 内页 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;
}

/* --- [核心] Hover 触发逻辑 --- */

/* 1. 箭头旋转：当鼠标悬停在 li 上时 */
.has-submenu:hover .arrow {
  transform: translateY(-50%) rotate(180deg);
}

/* 2. 子菜单容器：使用 max-height 实现丝滑下拉动画 */
.submenu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  background-color: #fcfcfc;
  border-bottom: 1px solid #f0f0f0;
  transition:
    max-height 0.5s ease-in-out,
    opacity 0.3s ease-in-out;
}

/* 3. 展开状态：当鼠标悬停在 li 上时 */
.has-submenu:hover .submenu {
  max-height: 500px;
  opacity: 1;
  border-bottom: 1px solid #eee;
}

/* 子菜单链接样式 (保持不变) */
.submenu a {
  padding: 12px 10px;
  font-size: 14px;
  color: #888;
  border-bottom: none !important;
  border-top: 1px solid #f9f9f9;
  justify-content: center;
}

.submenu a:hover {
  color: var(--primary-color);
  background-color: #f0eff5;
}

/* --- 右侧内容区 --- */
.page-body {
  flex: 1;
  min-width: 0;
  padding-top: 25px;
}

/* 面包屑标题 */
.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);
}

.student-list-cotainer {
  width: 100%;
  background-color: white;
  padding: 20px 30px 40px;
  box-sizing: border-box;
}

/* === 学生故事卡片列表 === */
.story-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 50px;
}

/* 卡片主体 */
.student-story-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  padding: 30px;
  display: flex;
  gap: 30px;
  position: relative;
  overflow: hidden;
  /* 初始状态：向下偏移且透明 (用于JS滚动动画) */
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
  /* 使用 SVG 模拟设计图中的柔和波浪 */
  background-image: url("../img/student-bg.png");
  background-repeat: no-repeat;
  background-position: bottom right;
}

.student-story-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 学生照片 */
.ssc-img {
  width: 140px;
  height: 180px;
  flex-shrink: 0;
  overflow: hidden;
  /* 稍微加一点阴影让照片浮起 */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 2;
  /* 确保在波浪之上 */
}

.ssc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.student-story-card:hover .ssc-img img {
  transform: scale(1.05);
}

/* ================== JS 滚动动画激活类 ================== */
/* 当元素进入视口，JS会添加 .visible 类 */
.student-story-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 文本内容 */
.ssc-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
  /* 确保在波浪之上 */
}

.ssc-quote {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  text-align: justify;
  margin-bottom: 20px;
}

.ssc-info {
  font-size: 14px;
  color: #333;
  font-weight: bold;
}

.ssc-info span {
  color: #888;
  font-weight: normal;
  margin-left: 10px;
}

/* 分页器 (复用) */
.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.text-btn {
  width: auto;
  padding: 0 10px;
}

.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;
  }

}

@media screen and (max-width: 768px) {
  .top-bar {
    display: none;
  }

  .sub-banner {
    height: 12.5rem;
  }

  .main-content {
    padding: 1.25rem 0;
    gap: 1.25rem;
  }

  /* 手机端卡片样式调整 */
  .student-story-card {
    flex-direction: column;
    align-items: center;
    padding: 1.25rem;
    gap: 1.25rem;
    text-align: center;
  }

  .ssc-img {
    width: 7.5rem;
    height: 9.375rem;
  }

  .ssc-quote {
    font-size: 0.875rem;
    text-align: left;
  }

  .ssc-info {
    text-align: center;
  }
}