:root {
  /*--primary-red: #c62f25;*/
  --primary-red: #18449c;
  /*--dark-red: #8b1a10;*/
  --dark-red: #003399;
  --light-gray: #f8f9fa;
}

.container {
  @media (min-width: 1600px) {
    width: 1570px;
  }

  @media (min-width: 1920px) {
    width: 1870px;
  }
}

body {
  font-family: "Microsoft YaHei", sans-serif;
  background-color: #fff;
}

a{
  text-decoration: none !important;
}

/* 新版导航栏 */
.navbar-party {
  background: var(--dark-red);
  border: none;
  border-radius: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}


@media (min-width: 992px) {
  #main-nav{
    display: flex !important;
    flex: 1;

  }


  .navbar-party .container{
    display: flex;
  }
  .navbar-nav{
    display: flex;
    flex: 1;
    justify-content: flex-end;
    align-items: flex-end;
  }
  .navbar-party .mini-button{
    display: none !important;
  }
}

.navbar-party .mini-button{
  display: flex;
  justify-content: flex-end;
  flex: 1;
  align-items: center;
}



.navbar-brand {
  height: auto;
}

.navbar-brand img {
  width: 400px;
}

.navbar-party .navbar-brand {
  color: white !important;
  font-size: 26px;
  padding: 15px 0;
}



.navbar-default .navbar-toggle .icon-bar {
  background-color: #fff;
}



.navbar-party .navbar-nav > li > a {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 20px;
  padding: 20px 25px;
  transition: all 0.3s;
}

.navbar-party .navbar-nav > li > a:hover,
.navbar-party .navbar-nav > li.active > a {
  background: var(--dark-red);
  color: white !important;
}





/* 导航菜单 */
/*.main-nav {*/
/*  background: var(--main-color);*/
/*  border: none;*/
/*}*/

/* 导航栏基础样式 */
/*.navbar-default {*/
/*  background: #fff;*/
/*  border: none;*/
/*  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);*/
/*}*/

/* 主菜单项样式 */
.navbar-nav {
  float: none !important;
  display: flex;
  justify-content: space-between;
  @media (max-width: 768px) {
    display: block;
  }
}

.navbar-nav>li {
  display: flex;
  flex: 1;
  justify-content: center;
}

.navbar-default .navbar-nav>li>a {
  color: #333;
  padding: 25px 5px;
  /* transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); */
  position: relative;
  text-align: center;
  font-weight: 500;
  white-space: nowrap;
}


.navbar-default .navbar-nav>.active>a,
  /*.navbar-default .navbar-nav>li:hover,*/
.navbar-default .navbar-nav>.open >a{
  border-bottom: 3px solid var(--primary-red);
  color: #889ac6 !important;
}


.navbar-default .navbar-nav>li>a{
  font-weight: bolder;
}

/* 文字颜色变化 */
.navbar-default .navbar-nav>.active,
.navbar-default .navbar-nav>li:hover,
.navbar-default .navbar-nav>li:hover>a,
.navbar-default .navbar-nav>li>a:hover,
.navbar-default .navbar-nav>.open,
.navbar-default .navbar-nav>.open>a,
.navbar-default .navbar-nav>.open>a:hover,
.navbar-default .navbar-nav>.active>a,
.navbar-default .navbar-nav>.active>a:hover {
  /* color: #fff !important; */
  background-color: unset ;
  /*opacity: 0.7;*/
  color: #889ac6 !important;
  /*background-color:#fff;*/
  /* border-bottom: 3px solid var(--main-color); */
}

/* 等宽下拉菜单 */
.dropdown-menu {
  width: 100%;
  min-width: 0;
  margin-top: 3px !important;
  border: none;
  border-radius: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  text-align: center;
  padding: 10px 0;
  display: block; /* 关键：覆盖默认 display:none */
  visibility: hidden;
  transform: translateY(-10%); /* 初始上移 10px */
  transition: all 0.6s ease; /* 统一动画属性 */
}

.open .dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0); /* 复位 */
}

/* 下拉菜单项样式 */
.dropdown-menu>li>a {
  padding: 12px 0px;
  color: #666;
  transition: all 0.2s;
  white-space: unset;
  text-align: center;
}

.dropdown-menu>li>a:hover {
  background: #b50e110d;
  color: var(--dark-red);
}

@media(max-width:767px){
  .navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#fff!important; line-height: 40px;font-size: 14px}
  .navbar-default . navbar-nav .open , dropdown-menu>li>a:focus, .navbar-default .navbar-nav . open .dropdown-menu>li>a:hover{
    color: var(--dark-red);
  }
}

/*.main-nav a {*/
/*  font-size: 18px;*/
/*  font-weight: bolder;*/
/*}*/




/* 现代轮播设计 */
.modern-carousel .carousel-indicators {
  bottom: 20px;
}

.modern-carousel .carousel-indicators li {
  border: 2px solid white;
  background: transparent;
  margin: 0 8px;
}

.modern-carousel .carousel-indicators .active {
  background: white;
  width: 16px;
  height: 16px;
  margin: -2px 8px;
}

.modern-carousel .carousel-caption {
  text-align: left;
  left: 10%;
  right: auto;
  bottom: 15%;
  padding: 30px;
  background: rgba(198, 47, 37, 0.9);
  max-width: 500px;
}

.carousel-inner>.item>a>img, .carousel-inner>.item>img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

/* 卡片式项目设计 */
.project-card {
  border: none;
  margin-bottom: 30px;
  transition: transform 0.3s;
  overflow: hidden;
  position: relative;
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid var(--primary-red);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: transform 0.3s;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-card .panel-body h3, .project-card .panel-body p{
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 分割线标题 */
.section-header {
  text-align: center;
  margin: 50px 0;
  position: relative;
}

.section-header h2 {
  display: inline-block;
  background: white;
  margin: 10px 0;
  padding: 0 30px;
  position: relative;
  z-index: 2;
  color: var(--primary-red);
  font-size: 35px;
  font-weight: bolder;
}

.section-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  background: var(--primary-red);
}

/* 新闻模块 */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.news-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  height: 560px;
}

#newsCarousel, #newsCarousel .carousel-inner, #newsCarousel .carousel-inner .item{
  height: 100%;
}
#newsCarousel .carousel-inner .item img{
  width: 100%;
}
.news-item {
  padding: 20px;
  background: var(--light-gray);
  margin-bottom: 15px;
  border-left: 4px solid var(--primary-red);
  transition: all 0.3s;
}

.news-item:hover {
  transform: translateX(10px);
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.news-item a{
  color: #000;
  text-decoration: none;
}

.news-item a h4, .news-item a p{
  white-space:nowrap;
  text-overflow:ellipsis;
  overflow:hidden;
  -webkit-line-clamp: 2;
  word-wrap: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

/* 报名模块 */
.enrollment-section {
  background: var(--light-gray);
  padding: 40px 0;
}

.enrollment-form {
  background: white;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.enrollment-title {
  margin-bottom: 30px;
}

.enrollment-title span {
  line-height: 1.5;
  font-size: 18px;
  font-weight: bolder;
  color: #666;
}

.map-container {
  height: 100%;
  min-height: 400px;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.map-overlay {
  position: absolute;
  background: var(--primary-red);
  opacity: 0.9;
  padding: 20px;
  color: white;
  text-align: center;
}

.news-tabs {
  margin-bottom: 20px;
}

#news .news-header {
  text-align: left;
  margin: 50px 0;
  position: unset;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
}

#news .news-header h2 {
  display: flex;
  flex: 1;
  background: white;
  margin: 10px 0;
  padding: 0 30px;
  position: relative;
  z-index: 2;
  color: var(--primary-red);
  font-size: 35px;
  font-weight: bolder;
}

.news-header .nav-tabs {
  border-bottom: 2px solid var(--primary-red);
  display: flex;
  flex: 1;
}

.news-header .nav-tabs > li > a {
  color: #666;
}

.news-header .nav-tabs > li.active > a,
.news-header .nav-tabs > li.active > a:hover,
.news-header .nav-tabs > li.active > a:focus {
  background-color: var(--primary-red);
  color: white;
  border: 1px solid var(--primary-red);
  border-bottom-color: transparent;
}

/*.news-list {*/
/*  padding: 0;*/
/*  list-style: none;*/
/*}*/

/*.news-list li {*/
/*  padding: 15px 0;*/
/*  border-bottom: 1px dashed #ddd;*/
/*}*/

/*.news-list li:last-child {*/
/*  border-bottom: none;*/
/*}*/

/*.news-list .date {*/
/*  color: var(--primary-red);*/
/*  font-size: 14px;*/
/*}*/

/*.news-list .title {*/
/*  font-weight: bold;*/
/*  margin: 5px 0;*/
/*}*/

.campus-life {
  margin-bottom: 30px;
}

.campus-life img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  padding: 2px;
}

/* 页脚 */
.party-footer {
  background: var(--dark-red);
  color: rgba(255, 255, 255, 0.9);
  padding: 30px 0 20px;
}

.margin20{
  margin-top: 20px;
  text-align: center;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  display: block;
  padding: 5px 0;
  transition: all 0.3s;
}

.footer-links a:hover {
  color: white;
  padding-left: 10px;
  text-decoration: none;
}
.m2pos {
  font-size: 16px;
  margin: 20px 0;
}
.m2pos a {
  color: var(--primary-red);
}

.post-title .title {
  font-size: 38px;
  line-height: 60px;
  margin-top: 2vw;
  text-align: center;
}
.post-title .post-info {
  padding: 20px 0 30px;
  border-bottom: 4px solid var(--primary-red);
  line-height: 24px;
  font-size: 20px;
  overflow: hidden;
  text-align: center;
}
.post-title .time {
  padding-right: 15px;
}
.post-title .author {
  padding-left: 15px;
}


.category-list{
  list-style: none;
  padding: 0;
  column-gap: 40px;
  border-radius: 10px;
  background: #e7edfb;
}

.category-list-item{
  break-inside: avoid;
  padding: 5px 0;
  border-bottom: 1px solid #eee;
  transition: all 0.3s;
}

.category-list-item .active{
  color: #fff !important;
  background-color: var(--primary-red);
}

.category-list-link{
  display: flex;
  justify-content: center;
  align-items: center;
  /* color: #333; */
  text-decoration: none;
  line-height: 80px;
  padding: 0 5px;
  font-size: 25px;
  color: #555;
  text-align: center;
}

.category-list-link:hover{
  color: #fff !important;
  transition: all 0.3s;
  background-color: var(--primary-red);
}


.notice-list {
  list-style: none;
  padding: 0;
  column-gap: 40px;
}

.notice-item {
  break-inside: avoid;
  /*padding: 5px 0;*/
  border-bottom: 1px solid #eee;
  transition: all 0.3s;
}

.notice-item:hover {
  transform: translateY(10px);
  background: #f8f8f8;
}

.notice-item:hover .title,
.notice-item:hover .date {
  color: var(--primary-red);
}

.notice-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #555;
  text-decoration: none;
  /*line-height: 40px;*/
  padding: 0 5px;
}

.notice-link:hover{
  color: var(--primary-red);
}

.notice-date{
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.notice-date .date{
  font-size: 28px;
  color: #000;
  font-weight: bolder;
}
.notice-date .year-date{
  font-size: 14px;
}

.notice-content{
  display: flex;
  flex: 1;
  padding: 27px 10px;
  flex-direction: column;
}

.notice-content .title{
  font-size: 18px;
  margin: 10px 0;
  font-weight: bolder;
  color: #555;
  -webkit-box-orient: vertical;
  -webkit-line-clamp:1;
  overflow: hidden;
  display: -webkit-box;
}
.notice-content .detail{

  font-size: 12px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp:1;
  overflow: hidden;
  display: -webkit-box;
  color: #777;
}

.notice-content:hover .detail, .notice-content:hover .year-date{
  color: var(--primary-red);
}

@media (max-width: 1600px) {
  .h3, h3 {
    font-size: 20px;
  }
  .project-card img {
    height: 300px;
  }

  .news-carousel {
    height: 420px;
  }

  .news-list {
    height: 480px;
    overflow: hidden;
  }
}

@media (max-width: 1200px) {
  .h3, h3 {
    font-size: 17px;
  }
  .project-card img {
    height: 250px;
  }

  .news-carousel {
    height: 330px;
  }

  .news-list {
    height: 300px;
    overflow: hidden;
  }

  .navbar-brand img {
    width: 300px;
  }
}

@media (max-width: 992px) {
  .navbar-header, .navbar-brand {
    width: 100%;
  }


  .news-tabs {
    margin-top: 20px;
  }

  .news-list {
    overflow: visible;
    height: auto;
  }
  .navbar-brand img {
    width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .h3, h3 {
    font-size: 20px;
  }

  .modern-carousel .carousel-caption {
    left: 5%;
    right: 5%;
    max-width: none;
    padding: 15px;
  }
  .news-list {
    height: auto;
    overflow: unset;
  }
}

.btn-danger {
  color: #fff;
  background-color: var(--primary-red);
  border-color: var(--primary-red);
}

.btn-danger:hover {
  color: #fff;
  background-color: var(--dark-red);
  border-color: var(--dark-red);
}