/* ========================================
   PC端样式 (> 768px)
   ======================================== */

/* 页面头部 */
.header {
  background: linear-gradient(180deg, #590110 0%, #9e031c 100%);
  height: 6.25rem;
}

.header-container {
  max-width: 100%;
  height: 100%;
  padding: 0 var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo 区域 */
.header-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  flex-shrink: 0;
}

.logo-img {
  height: 4rem;
  width: auto;
}

.logo-text {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 600;
  white-space: nowrap;
}

/* 导航菜单 */
.header-nav {
  padding-top: 1rem;
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.nav-item {
  list-style: none;
  position: relative;
}

.nav-link {
  color: var(--white);
  font-size: 1rem;
  padding: 0.08rem 0.12rem;
  display: block;
  white-space: nowrap;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

.nav-link.active {
  font-weight: 600;
}

/* 有子菜单的导航项添加下拉箭头 */
/* .has-submenu > .nav-link::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.3rem;
  border-left: 0.25rem solid transparent;
  border-right: 0.25rem solid transparent;
  border-top: 0.25rem solid var(--white);
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.has-submenu:hover > .nav-link::after {
  transform: rotate(180deg);
} */

/* 二级菜单样式 */
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 10rem;
  background: rgba(178, 3, 32, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 0.3rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

/* 鼠标移入父级导航项时显示二级菜单 */
.has-submenu:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 二级菜单项样式 */
.submenu li {
  list-style: none;
}

.submenu a {
  display: block;
  padding: 0.6rem 1.2rem;
  color: var(--white);
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
  position: relative;
}

/* 二级菜单项悬停效果 */
.submenu a:hover {
  background: rgba(255, 255, 255, 0.1);
  padding-left: 1.5rem;
  color: var(--gold);
}

/* 二级菜单项左侧高亮条 */
.submenu a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 60%;
  background: var(--gold);
  transition: width 0.3s ease;
}

.submenu a:hover::before {
  width: 0.2rem;
}

/* 右侧功能区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-shrink: 0;
}


.action-btn {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: var(--spacing-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.action-btn:hover {
  opacity: 0.8;
}

/* 菜单按钮默认隐藏 */
.menu-btn {
  display: none;
}

.search-btn{
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  background-color: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-icon {
  width: 2.2rem;
  height: 2.2rem;
  display: block;
  object-fit: contain;
}

/* ----------------------------------------
   轮播图区域
   ---------------------------------------- */
/* 轮播图区域 */
.banner-section {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.banner-swiper {
  width: 100%;
  height: 25rem;
}

.banner-item {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.banner-content {
  text-align: center;
  color: var(--white);
  z-index: 2;
  padding: var(--spacing-xl);
  position: relative;
}

.banner-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-desc {
  font-size: 1.2rem;
  font-weight: 400;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Swiper 分页器自定义样式 */
.banner-swiper .swiper-pagination {
  bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 4rem;
  padding: 0.5rem 0;
  gap: 1rem;
}

.banner-swiper .swiper-pagination-bullet {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  opacity: 1;
  transition: all 0.4s ease;
  margin: 0;
  flex-shrink: 0;
}

.banner-swiper .swiper-pagination-bullet-active {
  background-color: transparent;
  background-image: url('../../assets/images/icon_horse.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 2.5rem;
  height: 2.5rem;
  box-shadow: none;
}

/* Swiper 导航按钮自定义样式 */
.banner-swiper .swiper-button-prev,
.banner-swiper .swiper-button-next {
  color: var(--white);
  width: 3rem;
  height: 3rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.banner-swiper .swiper-button-prev:hover,
.banner-swiper .swiper-button-next:hover {
  background: rgba(0, 0, 0, 0.5);
  transform: scale(1.1);
}

.banner-swiper .swiper-button-prev::after,
.banner-swiper .swiper-button-next::after {
  font-size: 1.2rem;
  font-weight: bold;
}

/* ----------------------------------------
   校园新闻区域
   ---------------------------------------- */
/* 校园新闻区域 */
.news-section {
  padding: 4rem 0 1rem 0;
  background-color: #f5f5f5;
  background-image: url('../images/news-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.news-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  z-index: 1;
}

.news-section .container {
  position: relative;
  z-index: 2;
}

/* 新闻标题区域 */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
  position: relative;
}

.header-left {
  flex: 1;
  display: flex;
  align-items: center;
}

.header-line {
  width: 8rem;
  height: 0.2rem;
}

.header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  flex-shrink: 0;
}

.header-center::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150%;
  height: 150%;
  background-image: url('../../assets/images/title_bg.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  z-index: -1;
  pointer-events: none;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  letter-spacing: 0.1rem;
}

.section-subtitle {
  font-size: 1rem;
  color: #999;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
}

.header-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.more-link {
  color: var(--primary-color);
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding-right: 1rem;
}

.more-link:hover {
  color: #8b031c;
}

.more-link:hover::after {
  right: -0.3rem;
}

/* 新闻内容区域 */
.news-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* 新闻卡片 */
.news-card {
  background: var(--white);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--gold);
  padding-bottom: 0.5rem;
}

.news-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.news-image {
  width: 100%;
  height: 15rem;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-info {
  padding: 1.5rem;
  transition: all 0.3s ease;
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--white);
}

.news-card:hover .news-info {
  background-color: var(--primary-color);
}

.news-date {
  display: block;
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 0.8rem;
  transition: color 0.3s ease;
}

.news-card:hover .news-date {
  color: rgba(255, 255, 255, 0.8);
}

.news-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

.news-card:hover .news-title {
  color: var(--white);
}

/* ----------------------------------------
   新闻列表区域（卡片2 - 横向布局）
   ---------------------------------------- */
/* 新闻列表区域（横向卡片） */
.news-list {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* 横向新闻卡片 */
.news-card-horizontal {
  background: var(--white);
  border-radius: 0.5rem;
  padding: 2rem;
  display: flex;
  gap: 2rem;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.news-card-horizontal::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  background: var(--gold);
  transition: height 0.3s ease;
}

.news-card-horizontal:hover::after {
  height: 0.5rem;
}

.news-card-horizontal:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* 日期区域 */
.card-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  border-right: 1px solid #e0e0e0;
  padding-right: 2rem;
  min-width: 5rem;
}

.date-day {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.date-month {
  font-size: 0.9rem;
  color: #999;
  margin-top: 0.5rem;
}

/* 内容区域 */
.card-content {
  flex: 1;
  position: relative;
  z-index: 2;
}

.card-content::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image: url('../../assets/images/txtbg_logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  pointer-events: none;
}

.news-card-horizontal:hover .card-content::before {
  opacity: 0.8;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1rem;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-desc {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 背景Logo */
.card-bg-logo {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 8rem;
  height: 8rem;
  background-image: url('../images/logo-watermark.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.news-card-horizontal:hover .card-bg-logo {
  opacity: 0.1;
}

/* 通知公告区域 */
.notice-section {
  padding: 8rem 0 1rem 0;
  background-color: #f5f5f5;
  background-image: url('../../assets/images/bg_001.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  height: 40rem;
  box-sizing: border-box;
}

.notice-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  z-index: 1;
}

.notice-section .container {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 2rem;
  align-items: stretch;
  background-image: url('../../assets/images/bg_notices01.png');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  padding: 3rem 2rem;
  border-radius: 0.5rem;
  height: 25rem;
  max-width: 70rem;
}

/* 左侧标题区域 */
.notice-header {
  flex-shrink: 0;
  width: 20rem;
  border-radius: 0.5rem;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  background-image: url('../../assets/images/title_bg.png');
  background-repeat: no-repeat;
  background-size: 100%;
}

.notice-title {
  position: relative;
  z-index: 1;
}

.title-cn {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
  letter-spacing: 0.2rem;
}

.title-en {
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.05rem;
  line-height: 1.4;
}

.notice-nav {
  display: flex;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.nav-btn {
  width: 3rem;
  height: 3rem;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
}

.nav-btn:hover {
  transform: scale(1.1);
}

.nav-icon {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* 右侧通知卡片列表 */
.notice-list {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* 通知卡片 */
.notice-card {
  background: var(--white);
  border-radius: 0.5rem;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
}

.notice-card::before{
  content: '';
  width: 100%;
  height: 0.5rem;
  background-color: var(--gold);
  position: absolute;
  left: 0;
  bottom: 0;
  border-radius: 0 0 0.5rem 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.notice-card:hover::before{
  opacity: 1;
}

.notice-card:hover {
  background: linear-gradient(135deg, var(--primary-color) 0%, #c20821 100%);
  transform: translateY(-0.8rem);
  box-shadow: 0 8px 20px rgba(158, 3, 28, 0.3);
}

.notice-date {
  margin-bottom: 1.5rem;
}

.date-day {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  transition: color 0.3s ease;
}

.notice-card:hover .date-day {
  color: var(--white);
}

.date-year {
  display: block;
  font-size: 0.85rem;
  color: #999;
  margin-top: 0.3rem;
  transition: color 0.3s ease;
}

.notice-card:hover .date-year {
  color: rgba(255, 255, 255, 0.8);
}

.notice-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: auto;
  min-height: 3.2rem;
  transition: color 0.3s ease;
}

.notice-card:hover .notice-card-title {
  color: var(--white);
}

.notice-more {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9rem;
  color: var(--primary-color);
  text-decoration: none;
  margin-top: 1.5rem;
  transition: all 0.3s ease;
}

.notice-card:hover .notice-more {
  color: var(--gold);
}

.notice-more svg {
  width: 1.2rem;
  height: 1.2rem;
  transition: transform 0.3s ease;
}

.notice-card:hover .notice-more svg {
  transform: translateX(0.3rem);
}


/* 魅力开元 */
.mzky-section {
  padding: 4rem 0 1rem 0;
  background-color: #f5f5f5;
  background-image: url('../images/news-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.mzky-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  z-index: 1;
}

.mzky-section .container {
  position: relative;
  z-index: 2;
}

/* 魅力开元 Swiper 外层容器 */
.mzky-swiper-container {
  width: 100%;
  max-width: 100%;
  position: relative;
  z-index: 2;
  padding: 0 2rem;
}

/* 魅力开元 Swiper 容器 */
.mzky-swiper {
  width: 100%;
  height: 16.5rem;
  background-image: url('../images/mzky-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 2rem 0;
  overflow: hidden;
}

.mzky-swiper .swiper-wrapper {
  align-items: center;
}

.mzky-swiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
}

.mzky-swiper .mzky-card {
  border-radius: 0.5rem;
  overflow: hidden;
  width: 100%;
  transition: transform 0.3s ease;
}

.mzky-swiper .mzky-card:hover {
  transform: scale(1.1);
}

.mzky-swiper .mzky-card img{
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

/* .mzky-content .mzky-card:nth-child(1) {
  display: flex;
  justify-content: flex-end;
  position: relative;
}

.mzky-content .mzky-card:nth-child(2) {
  width: 31rem;
  height: 20rem;
}

.mzky-content .mzky-card:nth-child(3) {
  width: 15rem;
  height: 9rem;
}

.mzky-content .mzky-card:nth-child(1) img{
  width: 15rem;
  height: 9rem;
  object-fit: cover;
  position: absolute;
  bottom: 7rem;
  border-radius: 0.5rem;
  overflow: hidden;
}

.mzky-content .mzky-card:nth-child(2) img{
  width: 31rem;
  height: 20rem;
  object-fit: cover;
}

.mzky-content .mzky-card:nth-child(3) img{
  width: 15rem;
  height: 9rem;
  object-fit: cover;
} */

.mzky-bg{
  position: absolute;
  background-color: #cccccc;
  height: 15rem;
  width: 80rem;
  border-bottom-right-radius: 10rem;
  bottom: 0;
  z-index: 1;
}

.mzky-arrow-box{
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-right: 20rem;
}

.mzky-arrow-box .arrow-left{
  background-image: url('../../assets/images/arrow_left.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 3rem;
  height: 3rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mzky-arrow-box .arrow-right{
  background-image: url('../../assets/images/arrow_right.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 3rem;
  height: 3rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mzky-arrow-box .arrow-left:hover{
  opacity: 0.8;
  transform: scale(1.1);
}

.mzky-arrow-box .arrow-right:hover{
  opacity: 0.8;
  transform: scale(1.1);
}

/* ----------------------------------------
   移动端遮罩层
   ---------------------------------------- */
/* 移动端遮罩层 */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-overlay.active {
  display: block;
  opacity: 1;
}