/* Template Name:  Template
   Author: 九章数科
   Version: 1.0.0
*/
@charset "utf-8";
@import "tailwind.css";
body {
  font-family: "Inter", sans-serif;
  color: #333;
  scroll-behavior: smooth;
}

img {
  display: inline-block;
}

.nav-link {
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #dadada;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.dropdown-menu {
  opacity: 0;
  min-width: 100px;
  visibility: hidden;
  white-space: nowrap;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .menuBox.active {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #26619f;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    z-index: 99;
  }

  .menuBox.active .nav-link {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: space-between;
  }
  .menuBox.active .dropdown-menu {
    position: static;
    display: none;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    box-shadow: none;
    border-radius: 0;
    padding: 0;
  }
  .dropdown.active .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .dropdown.active .dropdown-menu a {
    color: #ffffff;
    opacity: 1;
  }
  .dropdown.active:hover .dropdown-menu {
    transform: translateY(0);
  }
}

.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-inner {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-item {
  min-width: 100%;
}

.news-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.notice-item {
  transition: background-color 0.3s ease;
  border-bottom: 1px solid #f0f0f0;
}

.notice-item:hover {
  background-color: #f3f4f6;
}

.btn-primary {
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 86, 219, 0.3);
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c5c5c5;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a0a0a0;
}

/* 交互动画 */
.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* 区域标题样式 */
.section-title {
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #26619f 0%, #083d7a 100%);
  border-radius: 3px;
}

/* 链接标题hover位移效果 */
.content-link {
  transition: transform 0.3s ease;
}

.content-link:hover {
  transform: translateX(5px);
}

/* 新闻轮播指示器 */
.news-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ddd;
  transition: all 0.3s ease;
}

.news-indicator.active {
  width: 24px;
  border-radius: 4px;
  background-color: #1a56db;
}

/* 确保各区域容器高度统一 */
.uniform-height {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.uniform-height > div:last-child {
  flex-grow: 1;
}

/* 全屏搜索遮罩层 */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-content {
  position: relative;
  width: 90%;
  max-width: 600px;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.search-overlay.active .search-content {
  transform: translateY(0);
}

.search-overlay-input {
  width: 100%;
  padding: 16px 24px;
  font-size: 18px;
  border: none;
  border-radius: 40px;
  outline: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.search-overlay-close {
  position: absolute;
  top: -20px;
  right: -10px;
  transform: translateY(-50%);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.search-overlay-close:hover {
  color: #333;
}

.search-submit {
  position: absolute;
  right: -1px;
  top: 0;
  background: #26619f;
  border: none;
  color: white;
  width: 90px;
  border-top-right-radius: 59px;
  border-bottom-right-radius: 59px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.search-submit:hover {
  background: #1a4a7a;
}

/* 全宽头部样式 */
.full-width-header {
  width: 100%;
  background-color: #1a56db;
  padding: 12px 0;
}

.university-link {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.university-link:hover {
  opacity: 0.8;
}

.carousel .swiper-button-prev,
.carousel .swiper-button-next {
  background-color: #07070745;
  width: 50px;
  height: 50px;
  border-radius: 50px;
  transform: scale(0.95);
  transition: transform 0.5s ease;
}
.carousel .swiper-button-prev:hover,
.carousel .swiper-button-next:hover {
  background-color: #0707079c;
  transform: scale(1);
}
.carousel .swiper-button-prev::after,
.carousel .swiper-button-next::after {
  font-size: 22px;
  color: #fff;
}
.carousel .swiper-pagination .swiper-pagination-bullet {
  opacity: 0.4;
  width: 15px;
  height: 15px;
  background: #ffffff;
}
.carousel .swiper-pagination .swiper-pagination-bullet-active {
  width: 30px;
  opacity: 1;
  border-radius: 10px;
  background: #ffffff;
}

.news-carousel .swiper-button-next,
.news-carousel .swiper-button-prev {
  color: #ffffff;
  background-color: #0000006e;
  padding: 30px;
}
.news-carousel .swiper-button-prev {
  left: -10px;
  border-top-right-radius: 30px;
  border-bottom-right-radius: 30px;
}
.news-carousel .swiper-button-next {
  right: -10px;
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
}
.news-carousel .swiper-button-next::after,
.focusSlide .swiper-button-prev::after {
  font-size: 30px;
}
.news-carousel:hover .hot-swiper-button {
  opacity: 1;
}

.article-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.article-card img {
  height: 200px;
  object-fit: cover;
}
.filter-active {
  @apply bg-primary text-white;
}
@media (max-width: 640px) {
  .article-card img {
    height: 160px;
  }
}

.article-title .art_metas span {
  margin-left: 15px;
}

.col_path .possplit {
  position: relative;
  display: inline-block;
  text-align: center;
  width: 20px;
}

.col_path .possplit::after {
  position: absolute;
  content: " > ";
  display: inline-block;
  height: 0;
  color: #777;
  width: 14px;
  left: 3px;
}

.card-shadow {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.card-hover {
  transition: all 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(22, 93, 255, 0.15);
}
.nav-shadow {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
}
.section-divider {
  height: 4px;
  background: linear-gradient(90deg, #1169c6 0%, #26619f 100%);
  border-radius: 2px;
}
.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #1169c6;
  position: absolute;
  left: -6px;
  top: 8px;
}
.timeline-line {
  width: 2px;
  background-color: #e5e6eb;
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 0;
}

.notice-card {
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.notice-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-left-color: #3b82f6;
}

.notice-date {
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  transition: all 0.3s ease;
}

.notice-card:hover .notice-date {
  transform: scale(1.05);
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 确保分页组件在网格布局中占据整行 */
#wp_paging_w02 {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 20px;
}

/* 分页组件基础样式 */
.wp_paging {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    padding: 15px 20px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
    width: 100%;
}

.wp_paging li {
    margin: 5px 0;
}

.wp_paging li span, .wp_paging li a {
    display: inline-block;
    float: none;
    margin-left: 0px;
}
.wp_paging li a {
    cursor: pointer;
    color: #666;
    line-height: 25px;
    height: auto;
}
.wp_paging li input {
    font-size: 12px;
    width: 45px;
    height: auto;
    line-height: 15px;
    border: 1px solid #d5d5d5;
    background: #fff;
    margin: 0px;
    text-align: center;
}
.wp_paging li a.pagingJump {
    color: #fff;
}

/* 记录信息样式 */
.pages_count {
    font-size: 14px;
    color: #6c757d;
}

.pages_count em {
    font-style: normal;
    font-weight: 600;
    color: #495057;
    padding: 0 2px;
}

/* 翻页导航样式 */
.page_nav {
    display: flex;
    gap: 8px;
}

.page_nav a {
    display: inline-block;
    padding: 2px 12px;
    font-size: 14px;
    text-decoration: none;
    color: #495057;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.page_nav a:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.page_nav a:first-child,
.page_nav a:last-child {
    font-weight: 500;
}

/* 当前页和禁用状态 */
.page_nav a[href="javascript:void(0);"] {
    color: #adb5bd;
    cursor: not-allowed;
    background: #f8f9fa;
}

.page_nav a[href="javascript:void(0);"]:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
}

/* 跳转区域样式 */
.page_jump {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.pages {
    color: #6c757d;
}

.pages em {
    font-style: normal;
    font-weight: 600;
    color: #495057;
    padding: 0 2px;
}

.pageNum {
    width: 50px;
    padding: 6px 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.pageNum:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.pagingJump {
    display: inline-block;
    padding: 2px 12px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.2s ease;
}

.pagingJump:hover {
    background: #0069d9;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .wp_paging {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .page_nav, .page_jump {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .page_nav {
        flex-wrap: wrap;
    }
    
    .page_jump {
        flex-direction: column;
        gap: 10px;
    }
}
