/* 手机端样式 */
@media (max-width: 768px) {
/* 菜单或搜索打开时禁止页面滚动 */
body.menu-open,
body.search-open {
  overflow: hidden;
}

/* 手机端菜单按钮 - 临时在所有尺寸显示用于测试 */
.mobile-menu-btn {
  display: block !important;
  position: fixed;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  border-radius: 5px;
  z-index: 10000;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  position: absolute;
  height: 3px;
  width: 24px;
  background: #fff;
  left: 8px;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-btn span:nth-child(1) {
  top: 12px;
}

.mobile-menu-btn span:nth-child(2) {
  top: 18px;
}

.mobile-menu-btn span:nth-child(3) {
  top: 24px;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 18px;
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 18px;
}
.logo-section{
 border:none;
}
  .dropdown-menu-third{
    position: initial;
  }
  /* 禁用触摸高亮效果 */
  * {
    -webkit-tap-highlight-color: transparent;
  }

  .silde-bar{
  display:none;
}
  .main-nav > li:hover > a {
    background-color: transparent !important;
  }
  
  .dropdown-menu {
    display: none;
  }
  
  .dropdown.active .dropdown-menu {
    display: block !important;
  }
  
  /* 移动端三级菜单样式 */
  .dropdown-menu-third {
    display: none;
    padding-left: 20px;
    background-color: rgba(255, 255, 255, 0.05);
  }
  
  .dropdown-submenu.active .dropdown-menu-third {
    display: block !important;
  }
  
  
  .dropdown-menu-third li a {
    padding: 10px 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
  }
  
  /* 通用样式 */
  .container {
    width: 100%;
    padding: 0 15px;
  }
  
  /* 顶部信息栏 */
  .top-bar {
    background-size: cover;
  }
  
  .logo-section {
    flex-direction: column;
    padding: 10px 0;
  }
  
  .logo img {
    height: 40px;
  }
  
  .top-links {
    margin-top: 10px;
    justify-content: center;
  }
  
  .top-links li a {
    padding: 0 8px;
    font-size: 14px;
  }
  
  /* 移动端搜索框 */
  .search-container {
    justify-content: center;
    position: relative;
  }
  
  .search-container .search-btn {
    background-size: contain;
    width: 24px;
    height: 24px;
  }
  
  .search-container .search-text {
    display: none;
  }
  
  /* 移动端搜索弹出层 */
  .mobile-search-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1001;
    padding: 20px;
    box-sizing: border-box;
  }
  
  .mobile-search-popup.active {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }
  
  .mobile-search-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    margin-top: 20px;
  }
  
  .mobile-search-title {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
  }
  
  .mobile-search-close {
    color: #fff;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
  }
  
  .mobile-search-form {
    width: 100%;
    display: flex;
    margin-bottom: 20px;
  }
  
  .mobile-search-input {
    flex: 1;
    height: 40px;
    padding: 0 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
    border: 1px solid #fff;
    color: #fff;
  }
  .mobile-search-input::placeholder {
    color: #fff;
  }
  .mobile-search-submit {
    width: 60px;
    height: 40px;
    background-color: #0068b7;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    font-size: 16px;
    cursor: pointer;
  }
  
  .mobile-search-keywords {
    width: 100%;
    margin-top: 20px;
  }
  
  .mobile-search-keywords h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 10px;
  }
  
  .mobile-search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .mobile-search-tag {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
  }
  
  /* 导航菜单 */
  .nav-container {
    position: fixed;
    top: 0;
    left: -200%;
    width: 80%;
    height: 100%;
    background-color: #0068b7;
    z-index: 999;
    transition: all 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* 添加惯性滚动支持 */
  }
  
  .nav-container.active {
    left: 0;
  }
  
  .nav-wrapper {
    max-width: 100%;
  }
  
  .main-nav {
    flex-direction: column;
    padding: 60px 0 20px;
  }
  
  .main-nav > li > a {
    padding: 12px 15px;
    font-size: 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .dropdown-menu {
    position: static;
    background-color: rgba(0, 0, 0, 0.2);
    box-shadow: none;
    display: none;
  }
  
  .dropdown.active .dropdown-menu {
    display: block;
  }
  
  .dropdown-menu a {
    padding: 10px 25px;
    color: #fff;
    text-align: left;
  }
  
  /* 遮罩层 */
  .mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    -webkit-tap-highlight-color: transparent; /* 移除点击高亮效果 */
  }
  
  .mobile-overlay.active {
    display: block;
    animation: fadeIn 0.3s ease; /* 添加渐变动画 */
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  /* Banner轮播图 */
  .banner-swiper .swiper-slide img {
    height: 200px;
    object-fit: cover;
  }
  
  .banner-swiper .swiper-button-next,
  .banner-swiper .swiper-button-prev {
    width: 30px !important;
    height: 30px !important;
    display: none;
  }
  
  /* 新闻通知公告区域 */
  .news-notice-wrapper {
    flex-direction: column;
  }
  
  .news-area,
  .notice-area {
    width: 100%;
    margin-bottom: 20px;
  }
  
  .news-slide-content {
    flex-direction: column;
  }
  .swiper-pagination{
    left: 50% !important;
    transform: translateX(-50%);
    width: 100% !important;
  }
  .swiper-pagination-bullet{
    width: 36px !important;
    height: 36px !important;
  }
  .news-time{
    margin-top: 30px;
  }
  .news-pagination{
    justify-content: center;
    bottom: 50px !important;
  }
  .news-image {
    width: 100%;
    height:220px;
  }
  
  .news-info {
    padding: 15px;
  }
  
  .news-title {
    font-size: 16px;
    padding: 10px 15px 0;
  }
  
  .news-summary {
    font-size: 14px;
    padding: 5px 15px 0;
  }
  
  .news-list {
    flex-direction: column;
  }
  
  .news-item {
    width: 100%;
    margin-bottom: 30px;
  }
  
  /* 学术看板区域 */
  .academic-swiper .swiper-slide {
    width: 100% !important;
  }
  
  .academic-slide-box {
    width: 100%;
  }
  .academic-board-section{
    background-color: #0068b7;
    background:#0068b7;
    margin: 30px auto;
  }
  .academic-info {
    width: 100%;
    height: auto;
    position: absolute;
    border-radius: 0;
    padding: 15px;
  }
  .academic-board-container{
    max-width: 96%;
    margin: 0 auto;
  }
  .swiper-slide .academic-divider img{
    width: initial;
  }
  .academic-progress{
    display: none;
  }
  .party-building-container{
    max-width: 96%;
    margin: 0 auto;
  }
  .academic-controls{
    justify-content: center;
    margin-bottom: 20px;
  }
  .party-building-section{
    padding: 0;
  }
  .party-building-item{
    padding: 0;
  }
  .teacher-student-section{
    margin-top: 0;
  }
  /* 党建工作区域 */
  .party-building-content {
    flex-direction: column;
  }
  
  .party-building-links,
  .party-building-image {
    width: 100%;
  }
  
  .party-building-image {
    margin-top: 20px;
    height: auto;
  }
  .academic-swiper .swiper-slide:nth-child(odd) .academic-slide-box{
    height: auto;
  }
  .academic-swiper .swiper-slide:nth-child(even) .academic-slide-box{
    height: auto;
  }
  .teacher-student-container{
    max-width: 96%;
    margin: 0 auto;
  }
  .friend-links-btn{
    width: 50%;
    margin: 0 auto;
  }
  /* 师生风采区域 */
  .teacher-student-content {
    grid-template-columns: 1fr;
    grid-template-areas:
      "center-large"
      "left-top"
      "left-bottom"
      "right-top"
      "right-bottom";
  }
  
  .teacher-student-item {
    width: 100% !important;
    height: auto !important;
    margin-bottom: 15px;
  }
  
  .teacher-student-item img {
    height: 200px;
  }
  
  /* 底部信息栏 */
  .footer {
    padding: 20px 0;
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
    padding: 20px 15px;
  }
  
  .footer-logo {
    margin-bottom: 15px;
    justify-content: center;
  }
  
  .footer-info {
    margin-left: 0;
    padding-left: 0;
    text-align: center;
  }
  
  .footer-info::before {
    display: none;
  }
  
  .footer-info p {
    margin: 10px 0;
    line-height: 1.8;
    font-size: 16px;
  }
  
  /* 让书记邮箱单独站一排 */
  .footer-info p:nth-child(2) {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
  }
  
  .footer-info p:nth-child(2) span {
    display: block;
  }
  
  .footer-contact {
    margin-top: 15px;
    margin-left: 0;
    text-align: center;
  }
  
  .friend-links {
    width: 100%;
    margin-bottom: 20px;
    position: relative;
  }
  
  .friend-links-btn {
    width: 50%;
    margin: 0 auto;
    border-radius: 30px;
    padding: 10px 15px;
    font-size: 16px;
    background-color: #fff;
  }
  
  /* 移动端友情链接下拉菜单 */
  .friend-links-dropdown {
    position: static !important;
    width: 100% !important;
    margin-top: 15px !important;
    margin-bottom: 0 !important;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .friend-links-list {
    flex-direction: column !important;
    gap: 5px !important;
  }
  
  .friend-links-list a {
    display: block;
    text-align: center;
    padding: 10px !important;
  }
}

/* 平板电脑样式 */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    width: 100%;
    padding: 0 20px;
  }
  
  .logo img {
    height: 50px;
  }
  
  .news-notice-wrapper {
    flex-direction: column;
  }
  
  .news-area,
  .notice-area {
    width: 100%;
    margin-bottom: 20px;
  }
  
  .teacher-student-content {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "center-large center-large"
      "left-top right-top"
      "left-bottom right-bottom";
  }
  
  .teacher-student-item {
    width: 100% !important;
  }
}