/* ================= 基础变量与重置 ================= */
/* 全局CSS变量：颜色、过渡效果等 */
:root {
  --primary-blue: #003371;
  --light-blue-bg: #f8fbff;
  --text-dark: #333333;
  --text-gray: #666666;
  --text-light: #999999;
  --white: #ffffff;
  --transition-speed: 0.4s;
}

/* 全局重置：清除默认内外边距、盒模型、字体 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

/* 页面背景、文字颜色、禁止横向滚动 */
body {
  background-color: var(--light-blue-bg);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* 链接清除下划线、继承颜色 */
a {
  text-decoration: none;
  color: inherit;
}

/* 列表清除默认圆点 */
ul {
  list-style: none;
}

/* ================= 通用样式 ================= */
/* 通用板块内边距 */
.section {
  padding: 50px 10%;
}

/* 板块标题栏布局：标题+更多按钮 */
.section-title-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  border-bottom: 2px solid #eee;
  padding-bottom: 15px;
}

/* 板块大标题样式 */
.section-title {
  font-size: 28px;
  color: var(--primary-blue);
  font-weight: bold;
}

/* “更多”按钮样式 */
.more-btn {
  font-size: 14px;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: bold;
  transition: opacity 0.3s;
}

/* 更多按钮hover效果 */
.more-btn:hover {
  opacity: 0.8;
}

/* 标签切换按钮组 */
.dynamics-tabs {
  display: flex;
  gap: 30px;
}

/* 单个标签按钮样式 */
.tab-btn {
  background: none;
  border: none;
  font-size: 16px;
  color: var(--text-gray);
  cursor: pointer;
  padding-bottom: 5px;
  position: relative;
  transition: all 0.3s;
}

/* 标签按钮激活状态 */
.tab-btn.active {
  color: var(--primary-blue);
  font-weight: bold;
}

/* 标签按钮激活底部横条 */
.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-blue);
}

/* 滚动渐入动画：默认隐藏 */
.scroll-fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

/* 滚动渐入动画：显示状态 */
.scroll-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================= 1. 顶部导航栏 ================= */
/* 导航栏整体：固定顶部、弹性布局 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 110px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 5% 20px 5%;
  z-index: 1000;
  background-color: transparent;
  transition: all var(--transition-speed);
}

/* 导航栏滚动后样式：背景色、高度、阴影 */
.navbar.scrolled {
  background-color: var(--primary-blue);
  height: 105px;
  padding-top: 15px;
  padding-bottom: 18px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Logo区域：图片+文字 */
.logo-area {
  display: flex;
  align-items: center;
  color: var(--white);
  gap: 15px;
  margin-bottom: -5px;
}

/* Logo图片尺寸 */
.logo-area img {
  height: 60px;
}

/* Logo文字左侧分隔线 */
.logo-text {
  border-left: 1px solid rgba(255, 255, 255, 0.4);
  padding-left: 12px;
}

/* Logo文字大小 */
.logo-text h2 {
  font-size: 18px;
  letter-spacing: 1px;
}

/* 导航容器：菜单+搜索 */
.nav-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
}

/* 导航菜单列表 */
.nav-links {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 单个导航菜单项 */
.nav-item {
  display: inline-flex;
  align-items: center;
  padding: 0 15px 25px;
  margin-bottom: -25px;
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  text-underline-offset: 6px;
  text-decoration-thickness: 2.5px;
  transition: text-decoration-color 0.3s;
  position: static;
}

/* 导航项hover下划线 */
.nav-item:hover {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--primary-blue);
}

/* 滚动后导航项hover下划线颜色 */
.navbar.scrolled .nav-item:hover {
  text-decoration-color: #fff;
}

/* 下拉菜单整体 */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  visibility: hidden;
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.3s ease;
  z-index: 1001;
  border-top: none;
}

/* 导航项hover时显示下拉菜单 */
.nav-item:hover .mega-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

/* 下拉菜单内容容器 */
.mega-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  position: relative;
}

/* 下拉菜单顶部小三角 */
.mega-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: var(--arrow-left, 50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 10px solid rgba(255, 255, 255, 0.98);
  transform: translateX(-50%);
  z-index: 1002;
}

/* 下拉菜单左侧图片区域 */
.mega-featured {
  flex: 1;
  display: flex;
  gap: 30px;
  padding: 0 60px;
  border-right: 1px solid #eee;
  align-items: center;
}

/* 下拉菜单图片 */
.mega-featured img {
  width: 160px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* 下拉菜单标题 */
.mega-featured .mega-text h3 {
  font-size: 20px;
  color: var(--primary-blue);
  margin-bottom: 12px;
  font-weight: bold;
}

/* 下拉菜单描述文字 */
.mega-featured .mega-text p {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
}

/* 下拉菜单右侧链接列表 */
.mega-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 60px;
  gap: 2px;
  justify-content: center;
  list-style: none;
  margin: 0;
}

/* 下拉菜单单个链接 */
.mega-links li {
  font-size: 15px;
  color: #444;
  padding: 5px 0;
  transition: all 0.3s;
  cursor: pointer;
  width: fit-content;
}

/* 下拉链接hover效果 */
.mega-links li:hover {
  color: var(--primary-blue);
  transform: translateX(5px);
  font-weight: 500;
}

/* 顶部搜索框 */
.search-box {
  display: flex;
  align-items: center;
  background: transparent;
  transition: all 0.3s;
  align-self: flex-end;
}

.search-box:hover {
  background: rgba(255, 255, 255, 0);
}

/* 搜索输入框 */
.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: white;
  flex: 1;
  font-size: 13px;
  height: 24px;
}

/* 搜索框占位符透明 */
.search-box input::placeholder {
  color: rgba(255, 255, 255, 0);
}

/* 搜索按钮 */
.search-box button {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 13px;
  margin-left: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0.9;
}

/* 移动端菜单开关按钮（三条杠） */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1010;
}

/* 菜单开关按钮的三条横线 */
.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* 菜单打开时：第一条斜线 */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

/* 菜单打开时：中间条消失 */
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

/* 菜单打开时：第三条反斜线 */
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ================= 2. Banner 轮播图 ================= */
/* 轮播图容器 */
.banner {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* 轮播图轨道 */
.banner-track {
  width: 100%;
  height: 100%;
  position: relative;
}

/* 单个轮播项 */
.banner-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out, transform 8s ease-out;
  transform: scale(1.05);
}

/* 轮播项激活显示 */
.banner-item.active {
  opacity: 1;
  z-index: 1;
  transform: scale(1);
}

/* 轮播左右按钮通用样式 */
.banner-ctrl {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.2);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  font-size: 20px;
  transition: background 0.3s;
}

/* 按钮hover */
.banner-ctrl:hover {
  background: rgba(0, 0, 0, 0.5);
}

/* 左按钮位置 */
.banner-ctrl.prev {
  left: 30px;
}

/* 右按钮位置 */
.banner-ctrl.next {
  right: 30px;
}

/* 轮播指示器容器（小圆点） */
.banner-indicators {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

/* 单个指示器圆点 */
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s;
}

/* 指示器激活状态 */
.dot.active {
  background: white;
  width: 25px;
  border-radius: 5px;
}

/* ================= 分组背景 ================= */
/* 白色背景板块 */
.section-group-white {
  background: url("../images/background/background_1.png") center/cover no-repeat;
  background-color: var(--white);
}

/* 花纹背景板块 */
.section-group-pattern {
  background: url("../images/background/background_2.png") center top repeat;
  background-color: #fbfcff;
  padding-bottom: 20px;
  position: relative;
}

/* 花纹背景遮罩层 */
.section-group-pattern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0);
  z-index: 0;
}

/* 花纹背景内容层级 */
.section-group-pattern>* {
  position: relative;
  z-index: 1;
}

/* ================= 3. 新闻速递 ================= */
/* 新闻布局容器 */
.news-main-container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* 新闻左侧大图网格 */
.news-featured-grid {
  width: 400px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 新闻大图卡片 */
.news-card-featured {
  display: flex;
  flex-direction: column;
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

/* 新闻卡片hover上浮 */
.news-card-featured:hover {
  transform: translateY(-5px);
}

/* 新闻卡片图片 */
.news-card-featured .news-card-img {
  width: 100%;
  height: 220px;
  background-position: center;
  background-size: cover;
  border-radius: 4px;
}

/* 新闻卡片信息区域 */
.news-card-featured .news-card-info {
  width: 100%;
  padding: 12px 0;
}

/* 新闻卡片标题 */
.news-card-featured .news-card-info h3 {
  font-size: 15px;
  color: var(--primary-blue);
  line-height: 1.6;
  font-weight: bold;
}

/* 新闻标签样式 */
.news-tag {
  color: var(--primary-blue);
  font-weight: bold;
  margin-right: 5px;
}

/* 新闻日期 */
.news-card-featured .news-card-info .date {
  font-size: 13px;
  color: #aaa;
}

/* 新闻右侧列表 */
.news-side-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* 新闻列表项 */
.news-list-item {
  padding: 24px 0;
  border-bottom: 1px solid #eee;
  transition: all 0.3s;
  cursor: pointer;
}

/* 新闻列表项hover */
.news-list-item:hover {
  padding-left: 10px;
  background: rgba(0, 51, 113, 0.02);
}

/* 新闻列表标题 */
.news-item-title {
  color: #333;
  margin-bottom: 8px;
  display: block;
  font-size: 16px;
  transition: color 0.3s;
}

/* 列表标题hover变色 */
.news-list-item:hover .news-item-title {
  color: var(--primary-blue);
}

/* 新闻列表日期 */
.news-item-date {
  font-size: 14px;
  color: var(--primary-blue);
}

/* ================= 4. 理院动态 ================= */
/* 动态板块位置微调 */
.dynamics-section {
  margin-top: -40px;
}

/* 标签内容默认隐藏 */
.tab-content {
  display: none;
}

/* 标签内容激活：三列网格 */
.tab-content.active {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 20px;
}

/* 动态卡片样式 */
.dynamic-item-card {
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: all 0.3s;
  cursor: pointer;
  border-top: 3px solid transparent;
}

/* 动态卡片hover效果 */
.dynamic-item-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border-top-color: var(--primary-blue);
}

/* 动态卡片标题（两行溢出隐藏） */
.dynamic-title {
  margin-bottom: 10px;
  font-weight: 500;
  line-height: 1.5;
  height: 45px;
  overflow: hidden;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 动态日期 */
.dynamic-date {
  font-size: 12px;
  color: #999;
}

/* ================= 5. 教学活动 ================= */
/* 教学活动容器 */
.teaching-custom-container {
  position: relative;
  height: 450px;
  overflow: visible;
}

/* 图片堆叠区域 */
.teaching-stack {
  position: absolute;
  top: 0;
  left: 28%;
  right: 0;
  height: 100%;
}

/* 堆叠图片项 */
.teaching-slide {
  position: absolute;
  overflow: hidden;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
  padding: 6px;
  border-radius: 4px;
  box-shadow: 3px 5px 20px rgba(0, 0, 0, 0.2);
}

/* 堆叠图片内部图 */
.teaching-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 2px;
  aspect-ratio: 4 / 3;
}

/* 第一张：最前、最大 */
.teaching-slide[data-pos="0"] {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 80%;
  z-index: 3;
}

/* 第二张：居中、缩小 */
.teaching-slide[data-pos="1"] {
  left: 288px;
  top: 50%;
  transform: translateY(-50%) scale(0.8);
  height: 80%;
  z-index: 2;
}

/* 第三张：最后、最小 */
.teaching-slide[data-pos="2"] {
  left: 528px;
  top: 50%;
  transform: translateY(-50%) scale(0.6);
  height: 80%;
  z-index: 1;
}

/* 隐藏图片位置 */
.teaching-slide[data-pos="hidden"] {
  left: 100%;
  opacity: 0;
  top: 50%;
  transform: translateY(-50%) scale(0.4);
  height: 80%;
  z-index: 0;
}

/* 左侧文字卡片 */
.teaching-card {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 33%;
  height: 70%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  padding: 30px 35px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 10;
  box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

/* 教学内容切换动画 */
#teaching-content-box {
  transition: all 0.4s ease;
}

/* 教学内容文字（最多3行） */
#teaching-main-text {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 教学内容日期 */
#teaching-main-date {
  font-size: 13px;
  color: #999;
  display: block;
  margin-bottom: 30px;
}

/* 下一条信息区域 */
.teaching-next-info {
  border-top: 1px solid #eee;
  padding-top: 10px;
}

/* 下一条标签 */
.next-label {
  color: var(--primary-blue);
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 8px;
}

/* 下一条标题 */
#teaching-next-title {
  font-weight: normal;
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

/* 教学左右按钮组 */
.teaching-nav-controls {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

/* 按钮通用样式 */
.nav-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #ced4da;
  background-color: white;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #666666;
}

/* 按钮hover */
.nav-arrow:hover {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 51, 113, 0.3);
  color: #ffffff;
}

/* 左箭头符号 */
.nav-arrow.prev::before {
  content: "←";
}

/* 右箭头符号 */
.nav-arrow.next::before {
  content: "→";
}

/* ================= 6. 理院风采 ================= */
/* 风采区域顶部间距 */
.gallery-section {
  padding-top: 40px;
}

/* 滚动照片墙 */
.style-gallery {
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
}

/* 滚动轨道 */
.style-track {
  display: flex;
  width: calc(320px * 12);
  animation: scrollAuto 30s linear infinite;
}

/* 鼠标悬浮暂停滚动 */
.style-track:hover {
  animation-play-state: paused;
}

/* 滚动图片尺寸 */
.style-track img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
  margin-right: 20px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 自动滚动动画 */
@keyframes scrollAuto {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-320px * 6));
  }
}

/* ================= 7. 页脚 ================= */
/* 页脚容器 */
.footer-container {
  margin-top: 0;
  background: url('../images/footer/footer_bg1.png') center top / cover no-repeat,
              url('../images/background/background_3.png') center top / cover no-repeat;
  color: white;
  position: relative;
background-color: #003371;
}



/* 移动端顶部装饰（默认隐藏） */
.footer-mobile-roof,
.footer-mobile-roof-decorative {
  display: none;
}

/* 页脚内容布局 */
.footer-content {
  
  margin: 0 auto;
  padding: 200px 5% 0px 10%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* 页脚左侧链接栏 */
.footer-links-col {
  flex: 1;
  max-width: 240px;
}

/* 页脚标题统一样式 */
.footer-links-col h4,
.footer-contact-col h4 {
  font-size: 20px;
  margin-bottom: 22px;
  letter-spacing: 2px;
  font-weight: bold;
  text-shadow: 0 1px 8px rgba(0, 20, 60, 0.6);
}

/* 链接选择框组 */
.link-select-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 下拉选择框样式 */
.link-select {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  padding: 9px 40px 9px 18px;
  border-radius: 25px;
  outline: none;
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  transition: border-color 0.3s, background-color 0.3s;
}

/* 选择框hover */
.link-select:hover {
  border-color: rgba(255, 255, 255, 1);
  background-color: rgba(255, 255, 255, 0.08);
}

/* 下拉选项背景 */
.link-select option {
  background: var(--primary-blue);
  color: white;
}

/* 访问量统计 */
.visitor-count {
  margin-top: 35px;
  font-size: 18px;
  letter-spacing: 1px;
}

/* 访问数字体 */
.visitor-count .count-num {
  font-size: 22px;
  margin: 0 8px;
  font-family: Arial, sans-serif;
  font-weight: bold;
}

/* 页脚中间空白区域 */
.footer-center-space {
  width: 380px;
  flex-shrink: 0;
}

/* 页脚右侧联系栏 */
.footer-contact-col {
  flex: 1.2;
  max-width: 360px;
}

/* 联系信息布局 */
.contact-layout {
  display: flex;
  justify-content: space-between;
  gap: 25px;
}

/* 联系文字区域 */
.contact-info-text {
  flex: 1;
}

/* 信息块间距 */
.info-block {
  margin-bottom: 18px;
}

/* 信息标签（灰色小字） */
.info-label {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 6px;
}

/* 信息内容 */
.info-block p {
  font-size: 13px;
  line-height: 1.9;
  margin: 0;
}

/* 二维码组 */
.footer-qrs {
/*  display: flex;*/
/*  gap: 20px;*/
  flex-shrink: 0;
}

/* 单个二维码盒子 */
.qr-box {
  text-align: center;
}

/* 二维码占位 */
.qr-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 4px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

/* 二维码图片 */
.qr-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* 二维码文字 */
.qr-box p {
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.75);
}

/* 页脚底部版权栏 */
.footer-bottom-bar {
  text-align: center;
  padding: 14px 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 1px;
  background: rgba(0, 0, 0, 0.15);
}

/* ================= 响应式适配：分辨率从高到低（已合并重复） ================= */
/* 1300px：窄屏笔记本适配导航 */
@media (max-width: 1300px) {
  .nav-links {
    flex-wrap: nowrap !important;
    gap: 6px;
  }
  .nav-item {
    white-space: nowrap !important;
    padding: 0 8px 25px !important;
    font-size: 13.5px !important;
  }
}

/* 1100px以下：手机/平板完整响应式（已合并两个1100px） */
@media (max-width: 1100px) {
  /* 页脚中间间距缩小 */
  .footer-center-space {
    width: 240px;
  }

  /* 移动端导航固定样式 */
  .navbar {
    position: fixed;
    height: 65px;
    padding: 0 5%;
    align-items: center;
    background-color: var(--primary-blue);
    z-index: 1000;
  }

  .navbar.scrolled {
    height: 65px;
    padding: 0 5%;
    align-items: center;
  }

  /* 移动端Logo大小 */
  .logo-area img {
    max-height: 30px;
  }

  .logo-text h2 {
    font-size: 14px;
  }

  .logo-text p {
    font-size: 8px;
  }

  .logo-area {
    margin-bottom: 0;
  }

  /* 显示菜单开关按钮 */
  .menu-toggle {
    display: flex;
    -webkit-tap-highlight-color: transparent;
  }

  /* 移动端导航菜单容器 */
  .nav-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-blue);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 5%;
    gap: 15px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: -1;
  }

  /* 菜单打开时显示 */
  .nav-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 999;
  }

  /* 移动端菜单纵向排列 */
  .nav-links {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-item {
    padding: 15px 0;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-item:hover {
    text-decoration: none;
  }

  /* 移动端下拉菜单 */
  .mega-menu {
    position: static;
    display: none;
    visibility: visible;
    opacity: 1;
    transform: none;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    margin-top: 10px;
  }

  .nav-item.open .mega-menu {
    display: block;
  }

  .mega-menu::before {
    display: none;
  }

  .mega-container {
    flex-direction: column;
    padding: 0;
  }

  .mega-featured {
    display: none;
  }

  .mega-links {
    padding: 0 15px;
  }

  .mega-links li {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  }

  .mega-links li:hover {
    color: var(--white);
    transform: none;
  }

  /* 移动端搜索框全屏 */
  .search-box {
    align-self: stretch;
    margin-right: 0;
    width: 100%;
  }

  /* 移动端Banner */
  .banner {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: auto;
    margin-top: 65px;
  }

  .banner-ctrl {
    display: none;
  }

  /* 移动端板块内边距 */
  .section {
    padding: 30px 5%;
  }

  .section-title {
    font-size: 22px;
  }

  .section-title-wrapper {
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
  }

  .more-btn {
    font-size: 13px;
    flex-shrink: 0;
  }

  /* 移动端新闻纵向排列 */
  .news-main-container {
    flex-direction: column;
    gap: 20px;
  }

  .news-featured-grid {
    width: 100%;
  }

  .news-card-featured .news-card-img {
    height: 180px;
  }

  /* 移动端标签栏横向滚动 */
  .dynamics-tabs .section-title {
    margin-right: 15px !important;
  }

  .dynamics-tabs {
    flex: 1;
    width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
  }

  .dynamics-tabs::-webkit-scrollbar {
    height: 0;
    width: 0;
  }

  /* 移动端动态卡片单列 */
  .tab-content.active {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .dynamic-item-card {
    padding: 15px;
  }

  .dynamic-title {
    font-size: 15px;
    height: auto;
  }

  /* 移动端教学活动改为上下结构 */
  .teaching-custom-container {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .teaching-stack {
    position: relative;
    left: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: 280px;
  }

  .teaching-slide {
    width: 100% !important;
    left: 0 !important;
    top: 0 !important;
    height: 100% !important;
  }

  .teaching-slide[data-pos="0"] {
    opacity: 1 !important;
    z-index: 10 !important;
    transform: none !important;
  }

  /* 移动端只显示一张教学图 */
  .teaching-slide[data-pos="1"],
  .teaching-slide[data-pos="2"],
  .teaching-slide[data-pos="hidden"] {
    display: none !important;
  }

  /* 移动端教学文字卡片 */
  .teaching-card {
    position: relative;
    width: 90%;
    margin: -40px auto 0;
    transform: none;
    top: auto;
    left: auto;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 20;
    border-radius: 8px;
  }

  /* 移动端风采照片尺寸 */
  .style-track img {
    width: 200px;
    height: 140px;
    margin-right: 10px;
  }

  .style-track {
    width: calc(210px * 12);
  }

  /* 移动端滚动动画 */
  @keyframes scrollAuto {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(calc(-210px * 6));
    }
  }

  /* 移动端页脚纯色背景 */
  .footer-container {
    background: #003371 !important;
    margin-top: 40px;
    padding-bottom: 20px;
  }

  /* 移动端页脚顶部锥形装饰 */
  .footer-mobile-roof {
    display: block;
    position: absolute;
    top: -40px;
    left: 0;
    width: 0;
    height: 0;
    border-left: 50vw solid transparent;
    border-right: 50vw solid transparent;
    border-bottom: 40px solid #003371;
    z-index: 1;
  }

  /* 移动端页脚纵向排列 */
  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 35px;
    padding: 60px 8% 35px;
    text-align: center;
  }

  .footer-links-col,
  .footer-contact-col {
    max-width: 100%;
    width: 100%;
  }

  .footer-center-space {
    display: none;
  }

  .link-select-wrapper {
    align-items: center;
  }

  .link-select {
    width: 100%;
    max-width: 300px;
  }

  .contact-layout {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .footer-qrs {
    justify-content: center;
  }

  .footer-bottom-bar {
    padding: 18px 5%;
    line-height: 1.6;
  }
}
/* 900px：平板导航缩小 */
@media (max-width: 900px) {
  .nav-item {
    padding: 0 10px 25px;
    font-size: 14px;
  }
  .logo-area img {
    max-height: 27px;
  }
  .menu-toggle {
    width: 24px;
    height: 17px;
  }
/* 菜单开关按钮的三条横线 */
  .menu-toggle span {
    height: 2px;
  }
/* 菜单打开时：第一条斜线 */
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
/* 菜单打开时：第三条反斜线 */
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* 480px：小手机Logo更小 */
@media (max-width: 480px) {
  .logo-area img {
    max-height: 20px;
  }
  .menu-toggle {
    width: 18px;
    height: 13px;
  }
/* 菜单开关按钮的三条横线 */
  .menu-toggle span {
    height: 2px;
  }
/* 菜单打开时：第一条斜线 */
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
/* 菜单打开时：第三条反斜线 */
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

}