/* 公共标题样式 */
.section-header {
  text-align: center;
  padding: 60px 0 40px;
  position: relative;
}
.section-title {
  font-size: 28px;
  color: var(--primary-color);
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section-title i {
  color: var(--primary-color);
  font-size: 24px;
}
.section-dots {
  color: #999;
  letter-spacing: 3px;
  font-size: 24px;
  margin-left: 15px;
}
.divider-v {
  margin: 0 20px;
  color: #ddd;
  font-size: 24px;
  font-weight: 300;
}

.swiper-pagination {
  bottom: 10px !important;
}
.swiper-pagination-bullet {
  width: 21px;
  height: 21px;
}

/* ==================== 5. Banner 全屏轮播 ==================== */
.banner {
  width: 100%;
  height: 100vh; /* [关键] 视口高度 */
  position: relative;
  overflow: hidden;
}
.banner .swiper-slide {
  width: 100%;
  height: 100%;
}
.banner .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.banner .swiper-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.banner .swiper-pagination {
  bottom: 30px !important;
}
.banner .swiper-pagination-bullet {
  width: 21px;
  height: 21px;
  background: #fff;
  opacity: 1;
  margin: 0 6px !important;
}
.banner .swiper-pagination-bullet-active {
  background-color: var(--primary-color);
}

/* ==================== 6. 其他板块 ==================== */
.sidebar {
  position: fixed;
  right: 20px;
  top: 200px;
  z-index: 999;
  width: 60px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.sidebar-item {
  height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  color: #333;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: 0.3s;
}
.sidebar-item a{
display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.sidebar-item:hover {
  background: var(--primary-color);
  color: #fff;
}
.sidebar-item i {
  font-size: 20px;
  margin-bottom: 5px;
}

.news-section {
  padding-bottom: 60px;
  background-color: #d0e6f1;
  position: relative;
  background-image: url("../img/news-bg-n.png");
  background-size: 50%;
  background-position: bottom right;
  background-repeat: no-repeat;
}
.news-section .bg {
  width: 600px;
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
}
.news-content {
  display: flex;
  gap: 30px;
}
.news-hero {
  flex: 0 0 50%;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}
.news-hero .swiper-slide img {
  max-height: 500px;
  transition: transform 6s ease;
}
.news-caption {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 90%;
  background: #5d3363;
  color: #fff;
  padding: 20px 30px;
  display: flex;
  align-items: flex-end;
  box-sizing: border-box;
  transform: translateX(-50%);
}
.news-date-large {
  font-size: 40px;
  line-height: 1;
  font-weight: bold;
  margin-right: 20px;
  flex-shrink: 0;
}
.news-date-large span {
  font-size: 16px;
  display: block;
  font-weight: normal;
  margin-top: 5px;
  opacity: 0.8;
}
.news-title-large {
  font-size: 18px;
  font-weight: bold;
  line-height: 1.4;
  /*padding-bottom: 5px;*/
  padding-right: 80px;
  flex: 1;
  -webkit-line-clamp: 3;
  overflow: hidden;
  max-height: 76px;
}
.news-hero .swiper-pagination {
  bottom: 18px !important;
  right: 50px !important;
  left: auto !important;
  width: auto !important;
  z-index: 10;
}
.news-hero .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.4;
  width: 8px;
  height: 8px;
  margin: 0 4px !important;
}
.news-hero .swiper-pagination-bullet-active {
  opacity: 1;
  background: #fff;
}

.news-list {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1000;
}

.news-list .section-dots {
  position: absolute;
  top: -88px;
  right: 10px;
  font-size: 24px;
}
.news-item {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #e0e0e0;
  cursor: pointer;
  transition: 0.3s;
  z-index: 9999;
}
.news-item:hover .news-text {
  color: var(--primary-color);
}
.date-box {
  text-align: center;
  color: #666;
  margin-right: 20px;
  min-width: 70px; /* 加宽适配英文月份 */
}
.divider {
  width: 1px;
  background-color: var(--primary-color);
  height: 100%;
}
.date-day {
  font-size: 32px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
}
.date-ym {
  font-size: 17px;
  color: var(--primary-color);
  text-transform: uppercase;
}
.news-text {
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-left: 20px;
}

/* ==================== 7. 通用 Tab + Swiper + 卡片 (i18n 优化) ==================== */
.tab-title {
  cursor: pointer;
  position: relative;
  color: #999;
  transition: 0.3s;
  font-weight: normal;
  padding-bottom: 5px;
  margin: 0 5px;
}
.tab-title.active,
.tab-title:hover {
  color: var(--primary-color);
  font-weight: bold;
}

.tab-content {
  position: relative;
  display: none;
  animation: fadeIn 0.5s;
}
.tab-content.active {
  display: block;
}
.tab-content .section-dots {
  position: absolute;
  top: -88px;
  right: 10px;
  font-size: 24px;
}
/* .tab-content  */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tabSwiper,
.storySwiper {
  padding: 10px;
  padding-bottom: 70px;
}
.tabSwiper .swiper-pagination-bullet,
.storySwiper .swiper-pagination-bullet {
  background: #ccc;
  opacity: 1;
}
.tabSwiper .swiper-pagination-bullet-active,
.storySwiper .swiper-pagination-bullet-active {
  background: var(--primary-color);
}

/* 通知卡片 (自适应高度) */
.notice-card {
  background: #fff;
  background-image: url("../img/notice-bg.png");
  background-size: 100% 100%;
  background-position: center bottom;
  background-repeat: no-repeat;
  padding: 25px;
  padding-top: 50px;
  height: auto;
  min-height: 240px; /* [优化] 最小高度 */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}
.notice-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.notice-card:hover,
.notice-card.active {
  background: var(--primary-color);
  color: #fff;
}
.notice-card:hover .notice-title,
.notice-card:hover .notice-link,
.notice-card:hover .notice-date,
.notice-card.active .notice-title,
.notice-card.active .notice-link,
.notice-card.active .notice-date {
  color: #fff;
}
.notice-card:hover .arrow-icon,
.notice-card.active .arrow-icon {
  border-color: #fff;
}
.notice-card:hover::after,
.notice-card.active::after {
  content: "";
  position: absolute;
  right: 0px;
  bottom: 0px;
  width: 100%;
  height: 100%;
  background-image: url("../img/notice-bg-active.png");
  background-size: 100% 100%;
}

.notice-date {
  font-size: 14px;
  color: rgb(0, 51, 102);
  margin-bottom: 20px;
}
.notice-title {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
  color: #333;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden; /* [优化] 限制行数 */
  height: 4.2em; /* 占位防止抖动 */
}
.notice-link {
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: bold;
  white-space: nowrap;
  color: rgb(0, 51, 102);
}
.notice-link .arrow-icon {
  width: 15px;
  height: 8px;
  border-bottom: 2px solid #333;
  border-right: 2px solid #333;
  transform: skew(45deg);
  margin-left: 10px;
  display: inline-block;
}

/* 校友故事卡片 (自适应高度) */
.story-card {
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  overflow: hidden;
  transition: 0.3s;
  height: auto;
  min-height: 380px; /* [优化] 增加最小高度 */
  display: flex;
  flex-direction: column;
}
.story-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
  background-color: var(--primary-color);
  color: #fff;
}
.story-card:hover * {
  color: #fff !important;
}

.story-img {
  height: 260px;
  overflow: hidden;
  flex-shrink: 0;
}
.story-img img {
  transition: transform 0.5s;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-card:hover .story-img img {
  transform: scale(1.05);
}
.story-info {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.story-name {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}
.story-role {
  font-size: 12px;
  color: #698ebf;
  margin-bottom: 15px;
  display: block;
  line-height: 1.4;
}
.story-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==================== 8. 学生发展 ==================== */
.student-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 300px 300px;
  gap: 15px;
  padding-bottom: 60px;
}
.stu-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}
.stu-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.stu-item:hover img {
  transform: scale(1.05);
}
.stu-item-1 {
  grid-column: 1 / 3;
  grid-row: 1 / 2;
}
.stu-item-2 {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}
.stu-item-3 {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}
.stu-item-4 {
  grid-column: 3 / 4;
  grid-row: 1 / 3;
}
.stu-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(93, 51, 99, 0.85);
  color: #fff;
  padding: 10px 20px;
  text-align: center;
  opacity: 0;
  transition: 0.3s;
  border-radius: 4px;
  white-space: nowrap;
}
.stu-item:hover .stu-overlay {
  opacity: 1;
}

.student-development {
  background-image: url("../img/xsfz-bg.png");
  background-size: 100%;
  background-position: center bottom;
  background-repeat: no-repeat;
}

.notice-forum {
  background-color: #e7eef3;
  padding-bottom: 20px;
}

/* =========================================
   移动端适配 (追加到 CSS 末尾)
   ========================================= */

/* --- 1. 平板及以下尺寸 (小于 1440px) --- */
@media screen and (max-width: 1440px) {
  .container {
    width: 100%;
    max-width: 100%;
    padding: 0 1.25rem; /* 增加两侧安全距离 */
  }

  /* 大菜单内容宽度适配 */
  .fm-content {
    width: 100%;
    padding: 2.5rem 1.25rem;
  }
}

/* --- 2. 笔记本/大平板 (小于 1024px) --- */
@media screen and (max-width: 1024px) {
  /* 隐藏右侧悬浮栏 (遮挡视线) */
  .sidebar {
    display: none;
  }

  /* 头部导航：隐藏中间的文字链接，只留Logo和汉堡按钮 */
  .nav-links {
    display: none;
  }

  /* 焦点新闻：改为上下结构 */
  .news-content {
    flex-direction: column;
  }
  .news-hero {
    flex: none;
    width: 100%;
    height: 18.75rem; /* 减小大图高度 */
  }

  .news-list .section-dots {
    position: absolute !important;
    top: unset !important;
    bottom: -2.25rem !important;
    right: 0.625rem !important;
    font-size: 1.5rem;
  }
.tab-content .section-dots{
top: -45px;
}
  .contact-info p {
    justify-content: center;
  }
}

/* =========================================
   Banner 移动端专项适配
   (追加到 CSS 末尾)
   ========================================= */

@media screen and (max-width: 768px) {
  .news-section {
    background-size: 80%;
  }
  .swiper-pagination-bullet {
    width: 0.5rem;
    height: 0.5rem;
  }
  /* 1. 调整 Banner 高度 */
  /* 桌面端是 100vh，手机端改为 50vh 或 60vh，让用户能看到下方的内容 */
  .banner {
    height: 60vh;
    min-height: 18.75rem; /* 设置最小高度防止太矮 */
  }

  /* 2. 优化图片显示焦点 */
  .banner .swiper-slide img {
    /* 手机竖屏时，图片会被裁剪，设置 top center 通常能保留人物头部 */
    object-position: top center;
  }

  /* 3. 调整底部小圆点 (更适合手指点击/查看) */
  .banner .swiper-pagination {
    bottom: 0.9375rem !important; /* 稍微抬高 */
  }

  .banner .swiper-pagination-bullet {
    width: 0.5rem; /* 稍微缩小 */
    height: 0.5rem;
    margin: 0 0.25rem !important;
    opacity: 0.8; /* 增加不透明度 */
  }

  .banner .swiper-pagination-bullet-active {
    background: #fff;
    width: 1rem; /* 激活时变长条，增加视觉反馈 */
    border-radius: 0.25rem;
  }

  .student-grid {
    display: flex;
    flex-direction: column;
  }
}