@charset "UTF-8";

/* 基础重置与字体设置 */
html {
	scroll-behavior: smooth;
	scroll-padding-top: 76px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

@media (min-width: 1024px) {
	html {
		scroll-padding-top: 86px;
	}
}

/* 书法标题两侧渐变修饰线 */
.section-title {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.section-title::before,
.section-title::after {
  content: "";
  display: inline-block;
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c28b38);
  margin: 0 16px;
}

.section-title::after {
  background: linear-gradient(90deg, #c28b38, transparent);
}

@media (max-width: 768px) {
  .section-title::before,
  .section-title::after {
    width: 24px;
    margin: 0 8px;
  }
}

/* ============================================================
   时间轴专属交互 (原生实现横向隐藏滚动条、连接轴线与激活联动)
   ============================================================ */
.timeline-scroll-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE / Edge */
}

.timeline-scroll-wrapper::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
  width: 0;
  height: 0;
}

.timeline-track {
  position: relative;
  display: flex;
  min-width: max-content;
  padding: 10px 0;
}

.timeline-track::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 56px;
  right: 56px;
  height: 2px;
  background: #d8c3a5;
  z-index: 1;
}

.timeline-node {
  position: relative;
  z-index: 2;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 112px;
  flex-shrink: 0;
  text-align: center;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #baa286;
  border: 3px solid #f8f2e7;
  box-sizing: border-box;
  margin: 0 auto 12px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.timeline-node.active .timeline-dot,
.timeline-node:hover .timeline-dot {
  background-color: #a81015;
  transform: scale(1.3);
  box-shadow: 0 0 0 4px rgba(168, 16, 21, 0.2);
}

.timeline-node.active .timeline-year,
.timeline-node:hover .timeline-year {
  color: #a81015;
  font-weight: bold;
}

/* ============================================================
   历史画册 Swiper 深度定制 (历史画框模式：统一固定高度、横竖图自适应不裁切)
   ============================================================ */
.history-swiper {
	padding: 16px 0 36px !important;
}

.history-swiper .swiper-slide {
	transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
	opacity: 0.45;
	transform: scale(0.8);
}

.history-swiper .swiper-slide-active {
	opacity: 1;
	transform: scale(1.05);
	z-index: 10;
}

/* 历史画册卡片：纯透明无边框、无背景容器，固定统一高度保障不跳动 */
.history-card {
	position: relative;
	width: 100%;
	height: 230px; /* 移动端基准高度 */
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: none;
	overflow: visible;
}

@media (min-width: 640px) {
	.history-card {
		height: 290px;
	}
}

@media (min-width: 1024px) {
	.history-card {
		height: 350px;
	}
}

/* 历史老照片：纯净原图呈现，完整展示不裁切，自适应横图或竖图 */
.history-card img {
	width: auto !important;
	height: auto !important;
	max-width: 100% !important;
	max-height: 100% !important;
	object-fit: contain !important;
	border-radius: 8px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
	display: block;
	margin: 0 auto;
	transition: box-shadow 0.3s ease;
}

/* 激活居中大图的相片微投影 */
.history-swiper .swiper-slide-active .history-card img {
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.swiper-button-prev-custom,
.swiper-button-next-custom {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #d4af37;
  color: #8c0c10;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.swiper-button-prev-custom:hover,
.swiper-button-next-custom:hover {
  background: #8c0c10;
  color: #ffffff;
}

.swiper-button-prev-custom {
  left: 10px;
}

.swiper-button-next-custom {
  right: 10px;
}

/* ============================================================
   模态弹窗机制与进场动效 (Keyframe 与动态毛玻璃)
   ============================================================ */
.modal-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-mask.show {
  display: flex;
}

.modal-content {
  background: #ffffff;
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ============================================================
   顶部导航栏滚动监听联动 (动态透明与毛玻璃吸顶切换)
   ============================================================ */
#mainHeader {
  background-color: transparent;
  padding-top: 1.25rem;
  padding-bottom: 0.5rem;
  transition: all 0.3s ease;
}

@media (min-width: 640px) {
  #mainHeader {
    padding-top: 1.75rem;
  }
}

@media (min-width: 1024px) {
  #mainHeader {
    padding-top: 2.25rem;
  }
}

#mainHeader.header-scrolled {
	padding-top: 0.6rem;
	padding-bottom: 0.6rem;
	background-color: rgba(125, 8, 11, 0.95);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
	border-bottom: 1px solid rgba(168, 26, 31, 0.6);
}

/* 顶部导航菜单项高亮与动效 (ScrollSpy 指示器) */
#mainHeader nav a {
	position: relative;
	transition: color 0.25s ease, opacity 0.25s ease;
}

#mainHeader nav a.nav-active {
	color: #f7d58b !important;
	font-weight: 600;
}

#mainHeader nav a.nav-active::after {
	content: "";
	position: absolute;
	bottom: -4px;
	left: 50%;
	transform: translateX(-50%);
	width: 22px;
	height: 2.5px;
	background: linear-gradient(90deg, #ffd075, #f7d58b);
	border-radius: 2px;
	box-shadow: 0 0 10px rgba(247, 213, 139, 0.7);
	animation: navIndicatorFadeIn 0.25s ease-out;
}

@keyframes navIndicatorFadeIn {
	from {
		width: 0;
		opacity: 0;
	}
	to {
		width: 22px;
		opacity: 1;
	}
}

/* 移动端菜单激活高亮样式 */
#mobileMenu a.mobile-nav-active {
	color: #f7d58b !important;
	font-weight: 600;
	background-color: rgba(255, 255, 255, 0.12);
	border-left: 3px solid #f7d58b;
	padding-left: 0.75rem;
}

/* ============================================================
   特色模块专属复合背景与排版
   ============================================================ */
.banner-hero-section {
  background-image: url("../images/庆典画面2.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
}

.banner-calligraphy-text {
  font-family: "Xingkai SC", "STXingkai", "FZShuTi", "KaiTi", "楷体", "Songti SC", serif;
  letter-spacing: 0.12em;
  text-shadow:
    0 4px 16px rgba(0, 0, 0, 0.6),
    0 1px 3px rgba(0, 0, 0, 0.8);
}

.bg-logo-section {
  background-color: #910000;
  background-image: url("../images/bg_logo.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
}

.bg-alumni-section {
  background-color: #9c0000;
  background-image: url("../images/bg_Message.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
}

.bg-history-section {
  background-color: #f8f2e7;
  background-image: url("../images/bg_history.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
}

/* ============================================================
   校庆动态交互选项卡 (点击右侧切换左侧主图与标题)
   ============================================================ */
.news-tab-item {
  transition: all 0.25s ease;
  border-left: 4px solid transparent;
  border-radius: 0.5rem;
}

.news-tab-item:hover {
  background-color: rgba(255, 255, 255, 0.65);
}

.news-tab-item.active {
  background-color: #ffffff;
  border-left-color: #8c0c10;
  box-shadow: 0 4px 14px rgba(140, 12, 16, 0.08);
}

.news-tab-item.active h4 {
  color: #8c0c10;
}

/* 移动端手风琴折叠展开与箭头指示动效 (严格限定于 < 1024px 移动端/平板端) */
@media (max-width: 1023.98px) {
  .news-tab-item .news-accordion-body {
    display: none;
  }

  .news-tab-item.active .news-accordion-body {
    display: block;
  }

  .news-tab-item .news-arrow {
    transition:
      transform 0.3s ease,
      color 0.3s ease;
  }

  .news-tab-item.active .news-arrow {
    transform: rotate(180deg);
    color: #8c0c10;
  }
}

/* PC 桌面端 (>= 1024px) 规范隔离：绝对禁止显示列表项内部大图与折叠箭头 */
@media (min-width: 1024px) {
  .news-accordion-body {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
  }

  .news-arrow {
    display: none !important;
  }
}

/* ============================================================
   移动端双行交错跑马灯祝福墙动画 (校庆氛围感无缝飘移)
   ============================================================ */
@keyframes marqueeScrollLeft {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes marqueeScrollRight {
  0% {
    transform: translate3d(-50%, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

.marquee-track-left {
  animation: marqueeScrollLeft 32s linear infinite;
  will-change: transform;
}

.marquee-track-right {
  animation: marqueeScrollRight 36s linear infinite;
  will-change: transform;
}

/* 触摸或长按时平滑暂停，方便用户停驻阅读 */
.marquee-track-left:hover,
.marquee-track-left:active,
.marquee-track-right:hover,
.marquee-track-right:active {
	animation-play-state: paused;
}

/* ============================================================
   校庆捐赠：信笺抽出展开动效与多层阴影质感
   ============================================================ */
@keyframes letterUnfold {
	0% {
		opacity: 0;
		transform: scale(0.92) translateY(24px);
	}
	100% {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

.animate-letter-unfold {
	animation: letterUnfold 0.4s cubic-bezier(0.2, 0.8, 0.25, 1) forwards;
}

.letter-page-content::-webkit-scrollbar {
	width: 4px;
}

.letter-page-content::-webkit-scrollbar-thumb {
	background: #ebdcc7;
	border-radius: 4px;
}

.letter-page-content::-webkit-scrollbar-thumb:hover {
	background: #cbb49b;
}

