/* ==========================
1. 全局基础样式
========================== */
:root {
  --primary: rgba(134, 86, 170, 1);
  --primary-dark: #62407c;
  --primary-transparent15: rgba(134, 86, 170, 0.15);
  --primary-transparent25: rgba(134, 86, 170, 0.25);
  --primary-transparent50: rgba(134, 86, 170, 0.5);
  --primary-transparent75: rgba(134, 86, 170, 0.75);
  --primary-transparent90: rgba(134, 86, 170, 0.9);
  --primary-transparent95: rgba(134, 86, 170, 0.95);

  --gold: #e6c450;
  --gold-light: #f2d070;
  --gold-dark: #c9a638;
  --gold-transparent: rgba(230, 196, 80, 0);
  --gold-transparent25: rgba(230, 196, 80, 0.25);
  --gold-transparent50: rgba(230, 196, 80, 0.5);
  --gold-transparent75: rgba(230, 196, 80, 0.75);
  --white: #ffffff;
  --white-transparent25: rgba(255, 255, 255, 0.25);
  --white-transparent50: rgba(255, 255, 255, 0.50);
  --white-transparent75: rgba(255, 255, 255, 0.75);
  --text: #000000;
  --text-light: #999999;
  --border-light: rgba(134, 86, 170, .06);
  --bg-bj:#f1eae0;
  --bg-bj-transparent: rgba(241, 234, 224, 0);
  --bg-bj-transparent30: rgba(241, 234, 224, 0.30);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  background: url("../images/index_bg.png") top center   repeat-x;

  width: 100%;
  height: auto;
  font-family: "Microsoft YaHei", sans-serif;
  color: var(--text);
  font-size: 16px;
  overflow-x: hidden;
}
.bger{
  background: linear-gradient(var(--bg-bj-transparent), var(--bg-bj-transparent30)),
  url(../images/bgpic.png) center top repeat-y;
  background-size: 100% auto;
  width: 100%;
  height: auto;
}
.text-primary { color: var(--white) !important; }
.bg-primary { background-color: var(--primary) !important; }
.dazi { font-size: 2.2rem; }

/* ==========================
 2. 头部LOGO区域 —— 紫色主题
========================== */
.header-top {


  padding: 24px 0;
  position: relative;
  z-index: 100;
}

.logo1, .logo2 {
  height: 76px;
  object-fit: contain;
}

.title-box {

  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 76px;
}
.cn {
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 2.6rem;
  font-weight: 700;

  line-height: 1.2;
  white-space: nowrap;
}
.en {
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 13.7px;
  clear: both;
  margin-top: 6px;
  line-height: 1.3;
}
.geyan{
  font-family:"仿宋_GB2312";
  color: var(--primary);
  font-size: 1.6rem;
  letter-spacing: 3px;
}
.header-search-desktop {
  width: 140px;
  /*flex-shrink: 0;*/
  /*margin-left: auto;*/
  /*display: flex;*/
  /*align-items: center;*/
  /*height: 76px;*/
}

.input-group:focus-within {
  z-index: 3;
  border-color: var(--primary);
  border-radius: 6px;
  box-shadow: 0 0 0 0.15rem rgba(134, 86, 170, .3);
}
.input-group:focus-within .form-control,
.input-group:focus-within .btn {
  border-color: var(--primary);
  box-shadow: none;
}
.input-group .form-control {
  background: transparent !important;
  border: 1px solid var(--primary) !important;
  color: var(--primary) !important;
}
.input-group .btn {
  border: 1px solid var(--primary) !important;
  color: var(--primary) !important;
}
.navbar-toggler {
  border-color: var(--white) !important;
}
.navbar-toggler i {
  color: var(--white) !important;
}
/* ==========================
  3. 导航栏样式 —— 紫色背景+白色文字
========================== */
.school-navbar {
  background: var(--primary);
  box-shadow: 0 2px 14px rgba(134, 86, 170, .18);
  z-index: 9999;
  transition: all .3s ease;
  padding: 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  height: 54px;
}

.school-navbar .container {
  display: flex;
  justify-content: flex-start;
}

.school-navbar.fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--primary);
}

@media (min-width: 992px) {
  .school-navbar .nav-link {
    font-size: 14px !important;
    padding: 6px 6px !important;
    font-weight: 500;
  }
  .geyan{
    font-size: 1rem;
    letter-spacing: 1px;
  }
  .logo1, .logo2 {
    height: 58px;
  }

}
@media (min-width: 1600px) {
  .geyan{
    font-size: 1.6rem;
    letter-spacing: 3px;
  }
  .school-navbar .nav-link {
    font-size: 20px !important;
    padding: 16px 16px !important;
    font-weight: 500;
  }
}
.school-navbar .nav-link {
  color: var(--white) !important;
  padding: 12px 8px !important;
  font-size: 16px;
  border-radius: 6px;
  transition: all .2s;
}

/* 电脑版悬停：半透明紫色 */
@media (min-width: 992px) {
  .school-navbar .nav-link:hover,
  .school-navbar .nav-item.dropdown:hover > .nav-link {
    background-color: var(--primary-transparent50) !important;
    color: var(--white) !important;
  }
}

.school-navbar .dropdown-menu {
  background-color: var(--primary) !important;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
  padding: 8px 0;
  min-width: 180px;
}

.school-navbar .dropdown-item {
  color: var(--white);
  font-weight: bold;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 15px;
}

.school-navbar .dropdown-item:hover {
  background-color: var(--white);
  color: var(--primary) !important;
}

.dropdown-submenu > .dropdown-toggle::after {
  margin-left: .5em;
  vertical-align: middle;
  border-top: .3em solid transparent;
  border-bottom: .3em solid transparent;
  border-left: .3em solid currentColor;
  content: "";
}

.navbar-toggler {
  border: 1px solid rgba(255,255,255,.5) !important;
  padding: 6px 10px !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 30 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-toggler:focus,
.navbar-toggler:active {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5) !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
}

.navbar-toggler[aria-expanded="true"] {
  background-color: rgba(255, 255, 255, 0.2) !important;
}

@media (min-width: 992px) {
  .navbar .nav-item.dropdown:hover > .dropdown-menu {
    display: block !important;
    margin-top: 0;
    top: 100%;
    visibility: visible;
    opacity: 1;
  }
  .navbar .dropdown-submenu.dropend:hover > .dropdown-menu {
    display: block !important;
    position: absolute;
    left: 98%;
    top: 0;
    margin: 0;
    visibility: visible;
    opacity: 1;
  }
  .navbar .dropdown-menu {
    display: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease;
  }
  .navbar .dropdown-submenu { position: relative; }
}

.nav-logo {
  display: none;
  align-items: center;
  gap: 8px;
  margin-right: .01rem;
}

.school-navbar.fixed-top .nav-logo { display: flex; }
.nav-logo-img1 { height: 36px; }
.nav-logo-img2 { height: 32px; }

#navbarNav.navbar-collapse {
  margin-left: 0 !important;
  justify-content: flex-start;
}

.school-navbar .navbar-nav {
  width: auto;
  display: flex;
  justify-content: flex-start;
}
.school-navbar .nav-item { text-align: left; }


/* ==========================
4. 页面通用布局 + 统一列表描述字体
========================== */
.fullpage-wrapper {
  width: 100%;
  height: auto;
  position: relative;
}


#section2, #section4 {
  position: relative;
  z-index: 10; /* 高于背景，低于内容动画层级 */
}



.section-container {
  width: 100%;
  padding: 0 20px;
  position: relative;
  z-index: 20;
  margin: 0 auto !important;
  flex: none;
}

.z20 { z-index: 20 !important; position: relative; }

.particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 10 !important;
  pointer-events: auto;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.card-custom {
  border: none;
  border-radius: 18px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 26px rgba(134, 86, 170, .08), 0 2px 6px rgba(134, 86, 170, .05);
  transition: all .4s cubic-bezier(.25, 1, .5, 1);
  overflow: hidden;
  margin-bottom: 24px;
  height: 100%;
  z-index: 20 !important;
  position: relative;
}

.card-custom:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(134, 86, 170, .14), 0 4px 10px rgba(134, 86, 170, .08);
}

.card-custom .card-header {
  border: none;
  background: linear-gradient(120deg, var(--primary), var(--gold));
  color: var(--white);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 20px;
  border-radius: 16px 16px 0 0 !important;
}

.card-custom .card-header a {
  color: rgba(255, 255, 255, .85) !important;
  font-size: 13px;
  transition: all .3s;
}

.card-custom .card-header a:hover {
  color: var(--white) !important;
  transform: translateX(3px);
}

/* ✅ 统一所有列表描述字体：15px */
.list-unstyled li,
.news-content p,
.swiper-slide .text,
.bg-huise small,
.student-item .student-info,
.video-item p {
  font-size: 18px !important;
}

.list-unstyled li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.list-unstyled li:last-child { border-bottom: none; }

.list-unstyled li > span {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.list-unstyled li > span a {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  width: 100%;
  font-size: 15px;
  color: #2d2d2d;
  transition: color .3s;
}

.list-unstyled li > span a:hover {
  color: var(--primary);
  font-weight: 500;
}

.list-unstyled li .text-muted {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text-light) !important;
}

.bg-blue { background-color: rgba(230, 240, 255, .4) !important; }
.bg-pink { background-color: rgba(255, 230, 240, .4) !important; }

#section2 .card-body,
#section7 .card-body { padding-top: 20px; }

/* ==========================
5. 右侧固定导航
========================== */
.right-nav {
  position: fixed;
  z-index: 99999 !important;
  display: flex;
  align-items: center;
  pointer-events: auto !important;
}

@media (min-width: 1025px) {
  .right-nav {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 1024px) and (orientation: portrait) {
  .right-nav {
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 12px;
    background: rgba(0, 0, 0, .3);
    padding: 8px 16px;
    border-radius: 30px;
    backdrop-filter: blur(8px);
  }
  .page-info { display: none; }
}

.nav-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .3);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  cursor: pointer !important;
  transition: all .3s ease;
  font-size: 14px;
  pointer-events: auto !important;
  user-select: none;
}

.nav-dot.active {
  background: var(--white);
  color: var(--primary);
  transform: scale(1.1);
}

.page-info {
  color: var(--white);
  font-size: 12px;
  text-align: center;
  margin-top: 5px;
}

/* ==========================
6. 第一屏：轮播banner
========================== */
#section1 {
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  height: auto !important; /* 👈 在这里改大图高度 = 改比例 */
}

#section1 .carousel,
#section1 .carousel-inner,
#section1 .carousel-item {
  width: 100% !important;
  height: auto !important;
  flex: 1;
}

#section1 .carousel-item img {
  width: 100% !important;
  height: auto !important;
  object-fit: cover; /* 👈 控制图片显示方式 */
  filter: brightness(.8);
}

/* 隐藏原生控制按钮 */
.carousel-control-prev,
.carousel-control-next {
  display: none !important;
}

/* 圆环按钮通用样式 */
/* 圆环按钮通用样式 */
.countdown-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 70px;
  height: 70px;
  z-index: 20;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.3s ease;


}
/* 鼠标悬停：整体一起变浅 */
.countdown-btn:hover {
  opacity: 1 !important;


}
.countdown-btn:hover .countdown-icon {
  color: rgba(255, 255, 255, 0.85) !important;

}

.countdown-prev {
  left: 20px;
}
.countdown-next {
  right: 20px;
}

.countdown-circle {
  fill: none;
  stroke: var(--white-transparent50);
  stroke-width: 3;

}
.countdown-progress {
  fill: none;
  stroke: var(--white);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.05s linear;
  transform: rotate(-90deg);
  transform-origin: center;

}
.countdown-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 1);
  font-size: 20px;
  pointer-events: none;
  transition: color 0.3s ease;
}

/* 🔥 轮播倒计时圆环 + 箭头 整体阴影 */
.countdown-btn svg {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 1));
}
.countdown-btn:hover svg {
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 1));
}

/* 内部箭头文字阴影 */
.countdown-btn .countdown-icon {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* 手机版按钮缩小 */
@media (max-width: 767px) {
  .countdown-btn {
    width: 40px !important;
    height: 40px !important;
  }
  .countdown-icon {
    font-size: 14px !important;
  }
  .countdown-prev { left: 10px !important; }
  .countdown-next { right: 10px !important; }
}






.carousel-caption { bottom: 80px; text-shadow: 0 2px 4px rgba(0, 0, 0, .5); }
.carousel-caption p {font-size: 18px; }
.carousel-caption h3, .carousel-caption p {
  color: var(--white) !important;
}
.carousel-indicators { bottom: 40px; }
.carousel-indicators .active { background-color: var(--white); }

/* ==========================
7. 第二屏：新闻动态 —— 白色
========================== */
.bg-title {
  position: relative;
  margin-bottom: -3.5rem;
  font-size: 3.5rem;
  font-weight: bold;
  color: rgba(255,255,255,0.2) !important;
  line-height: 1;
  z-index: 0;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);

}

.news-more {
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
  float: right;
  margin-top: 10px;
}
.news-more:hover { color: rgba(255,255,255,0.8); }

.news-image-container {
  overflow: hidden !important;
  border-radius: 12px !important;
}

.news-image {
  transition: transform 0.5s ease !important;
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: none;
}

.news-image.active { display: block; }
.news-image:hover { transform: scale(1.08); }

.news-list-container {
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-item {
  display: flex;
  gap: 1rem;
  padding: .8rem 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.news-item:last-child { border-bottom: none; }

.news-item::before,
.news-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid transparent;
  transition: all 0.4s ease;
  z-index: -1;
}

.news-item::before {
  border-top-color: var(--white);
  border-right-color: var(--white);
  transform-origin: top right;
  transform: scale(0, 0);
}

.news-item::after {
  border-bottom-color: var(--white);
  border-left-color: var(--white);
  transform-origin: bottom left;
  transform: scale(0, 0);
}

.news-item:hover::before,
.news-item.active::before { transform: scale(1, 1); }

.news-item:hover::after,
.news-item.active::after {
  transform: scale(1, 1);
  transition-delay: 0.2s;
}

.news-item:hover { background-color: rgba(255,255,255,0.1); }

.news-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  color: var(--white);
  font-weight: bold;
  position: right;
  z-index: 1;
}

.news-date .day { font-size: 2.2rem; line-height: 1; }
.news-date .month { font-size: 1rem; }

.news-item.active .news-date { color: var(--white); }
.news-item.active .news-date::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--white);
  margin-top: 5px;
}

.news-content h5 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--white);
  position: relative;
  z-index: 1;
  display: inline-block;
}

.news-content h5::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background-color: var(--white);
  transition: width 0.3s ease;
}

.news-item:hover h5,
.news-item.active h5 { color: var(--white); }

.news-item:hover h5::after,
.news-item.active h5::after { width: 100%; }

.news-content p {

  color: var(--white);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

/* ==========================
8. 第三屏：师资队伍 —— 紫色
========================== */
.section-title {
  text-align: center;
  padding: 40px 0 20px;
  position: relative;
}

.title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.section-title .en-title {
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--primary-transparent75) !important;
}

/* ✅ 师资队伍 中文标题 紫色 */
#section3 .title-wrapper .dazi {
  color: var(--primary) !important;
}

#personage {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 50px 15px;
  animation: 0.5s ease-in-out 0.35s 1 normal forwards running fadeInUp2;
  position: relative;
}

@keyframes fadeInUp2 {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.swiper-container {
  width: 100%;
  height: auto;
  min-height: 380px;
  overflow: hidden;
  position: relative;
  padding: 20px 0 50px;
}

.swiper-slide {
  transition: transform 0.5s cubic-bezier(0.23, 1, .32, 1), opacity 0.5s ease;
  position: relative;
  display: flex;
  justify-content: center;
  z-index: 1;
}

.swiper-slide a {
  display: block;
  width: 100%;
  max-width: 640px;
  text-decoration: none;
}

.swiper-slide .image {
  width: 100%;
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center;
  margin-bottom: 16px;
  transition: box-shadow 0.3s ease;
}

.swiper-slide .text {
  text-align: center;

  line-height: 1.5;
  padding: 0 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 500;
}

.swiper-slide {
  transform: scale(0.55);
  z-index: 1;
  opacity: 0.5;
}
.swiper-slide-prev,
.swiper-slide-next {
  transform: scale(0.80);
  z-index: 60;
  opacity: 0.85;
}
.swiper-slide-active {
  transform: scale(1.3);
  z-index: 999 !important;
  opacity: 1 !important;
}

.swiper-pagination {
  bottom: 0 !important;
  z-index: 100 !important;
}
.swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #ccc !important;
  opacity: 1;
  margin: 0 5px !important;
  transition: all 0.3s ease;
}
.swiper-pagination-bullet-active {
  background: var(--primary) !important;
  transform: scale(1.2);
}

.swiper-button-next,
.swiper-button-prev {
  display: flex !important;
  opacity: 1 !important;
  z-index: 9999 !important;
  width: 40px !important;
  height: 40px !important;
  background: white !important;
  border-radius: 50% !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18) !important;
  color: var(--primary) !important;
  transition: all 0.3s ease;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
  transform: scale(1.08);
}
.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px !important;
}
.swiper-button-prev { left: 15px !important; }
.swiper-button-next { right: 15px !important; }

/* ==========================
9. 第四屏：招生信息 —— 白色
========================== */
.zsxx .card-item {
  padding: 20px;
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  cursor: pointer;
}

.zsxx .card-item:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.zsxx .card-item i {
  font-size: 8rem;
  transition: transform 0.3s ease;
}

.zsxx .card-item:hover i {
  transform: scale(1.1);
}

.zsxx .card-item p a {
  color: var(--white);
}
.zsxx .card-item:hover p a {
  color: var(--white);
}

/* ==========================
10. 第五屏：学生发展 —— 紫色
========================== */
/* ✅ 学生发展 中文标题 紫色 */
#section5 .title-wrapper .dazi {
  color: var(--primary) !important;
}

.bg-huise {
  padding: 20px;
  border-radius: 12px;
  background-color: var(--white);
  border: 1px solid var(--primary);
  color: var(--primary) !important;
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  cursor: pointer;
}

.bg-huise:hover {
  color: var(--primary) !important;
  background: #fffcf5;
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.bg-huise h5,
.bg-huise small {
  color: var(--text) !important;
}

.card-img {
  width: 70px;
  height: 90px;
  object-fit: cover;
}

.event-card { transition: 0.3s; }
.event-card:hover { background: #f8f0ff !important; }
.event-card:hover img { transform: scale(1.05); transition: 0.3s; }

/* 校友之家 紫色 */
.student-carousel-wrapper {
  border: 1px solid var(--primary) !important;
  border-radius: 12px;
  padding: 20px;
  background: rgba(255,255,255,0.03);
}
.alumni-title {
  color: var(--primary) !important;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
}
.student-item .student-text {

  margin-top: 8px;
  text-align: center;
}
#studentCarousel .carousel-control-prev,
#studentCarousel .carousel-control-next {
  border: 1px solid var(--primary) !important;
}
#studentCarousel .carousel-control-prev-icon::after,
#studentCarousel .carousel-control-next-icon::after {
  color: var(--primary) !important;
}

/* ==========================
11. 第六屏：校园风采 —— 白色 ✅ 优化版
========================== */


.video-thumb, .img-thumb {
  width: 100%;
  aspect-ratio: 16 / 9; /* ✅ 强制比例，图片永远不变形 */
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(134, 86, 170, 0.12);
  transition: transform 0.5s ease; /* ✅ 图片内部微动效 */
}

/* 图片内部放大效果 */
.video-item:hover .video-thumb,
.img-item:hover .img-thumb {
  transform: scale(1.04);
}



/* ---------- 手机端完美适配 ---------- */
@media (max-width: 767px) {
  .video-thumb, .img-thumb {
    font-size: 1rem;
    aspect-ratio: 16 / 9; /* 手机也保持比例 */
  }
  .video-play-btn {
    font-size: 36px; /* 手机按钮缩小 */
  }
  .video-item, .img-item {
    margin-bottom: 12px; /* 手机间距更舒服 */
  }
}


.img-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  align-items: center;
  justify-content: center;
}


.img-modal { background: rgba(0, 0, 0, .9); }

.img-modal.show { display: flex; }

.img-modal-content {
  width: 90%;
  max-width: 900px;
  position: relative;
  padding: 20px;
}

.img-modal-content {
  max-width: 1000px;
  text-align: center;
}

.img-modal-close {
  position: absolute;
  top: 10px;
  right: 20px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
}


.img-modal-prev, .img-modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.3);
  border: none;
  color: var(--white);
  font-size: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .3s;
}

.img-modal-prev { left: 20px; }
.img-modal-next { right: 20px; }


.img-modal-prev:hover, .img-modal-next:hover {
  background: rgba(255,255,255,.5);
}


#modalImage {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, .5);
}



/* ==========================
12. 第七屏：友情链接 —— 紫色
========================== */
/* ✅ 友情链接 中文标题 紫色 */
#section7 .title-wrapper .dazi {
  color: var(--primary) !important;
}

.link-item {
  background-color: rgba(163,72,133,0.1);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 10px;
  border-radius: 12px;
}
.link-item:hover {
  background-color: rgba(163,72,133,0.3);
  transform: translateY(-4px);
  text-decoration: none;
}

.link-logo {
  max-height: 120px !important;
  height: 120px !important;
  object-fit: contain !important;
  border-radius: 12px;
  transition: transform 0.3s ease;
}
.link-item:hover .link-logo { transform: scale(1.08); }

.link-text {
  color: var(--text) !important;

  transition: color 0.3s ease;
}
.link-item:hover .link-text { color: var(--primary-dark) !important; }
.link-text {
  font-size: 18px;
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* ==========================
13. 底部footer —— 白色
========================== */
.footer-link {
  font-size: 18px;
  background: linear-gradient(var(--primary-transparent95), var(--primary-transparent75), var(--primary-transparent95)), url("../images/topbg.jpg") center center / cover no-repeat;

  color: var(--white) !important;
  padding: 30px 0;

}
.footer-link a {
  color: var(--white) !important;
  text-decoration: none !important;
}
.footer-link a:hover {
  color: rgba(255,255,255,0.8) !important;
  text-decoration: underline;
}

/* ==========================
14. 各板块背景
========================== */
#section2 {

  position: relative;
  width: 100%;
  background: linear-gradient(var(--primary-transparent95), var(--primary-transparent75), var(--primary-transparent95)), url("../images/hd6.jpg") center center / cover no-repeat;
  padding-bottom: 60px;
  clip-path: polygon(
    0   30px,           /* 左顶点 */
    50% 0,        /* 顶部中间尖点 */
    100% 30px,          /* 右顶点 */
    100% 100%,       /* 右下角 */
    50% calc(100% - 30px), /* 底部内凹点 */
    0   100%         /* 左下角 */
  );
  z-index: 0;
}
#section3 {
  position: relative;
  width: 100%;

  /*background: linear-gradient(var(--bg-bj-transparent), var(--bg-bj) 20%,var(--bg-bj) 80%, var(--bg-bj-transparent));*/



  z-index: 0;
}
#section4 {

  position: relative;
  width: 100%;

  background: linear-gradient(var(--primary-transparent95), var(--primary-transparent75), var(--primary-transparent95)), url("../images/hd7.jpg") center center / cover no-repeat;

  /*  background: url("../images/book2.svg?id=2") center / 100% 100% no-repeat;*/
  /*clip-path: url(#customClipPath);*/

  z-index: 0;

}


#section1{
  margin-bottom: 60px;

}
#section6 {
  border-radius: 2rem;
  position: relative;
  width: 100%;
  background: linear-gradient(var(--primary-transparent95), var(--primary-transparent75), var(--primary-transparent95)), url("../images/hd6.jpg") center center / cover no-repeat;


  /*clip-path: url(#shape);*/
  display: block !important;




}
#section8 {
  position: relative;
  width: 100%;
  background: linear-gradient(var(--primary-transparent95), var(--primary-transparent75), var(--primary-transparent95)), url("../images/hd3.jpg") center center / cover no-repeat;
  border-radius:2rem ;
  margin-bottom: 60px;
  z-index: 0;
}


/* ==========================
15. 响应式适配
========================== */
/* ==========================
15. 响应式适配 —— 手机版完美优化
========================== */
@media (max-width: 1600px) {
  #section4 {
    /*background: url("../images/book1.svg") center center/ 100% 100% no-repeat;*/
  }
}
@media (max-width: 1365px) {
  #section4 {
    background: url("../images/book1.svg") center center/ cover no-repeat;
  }
}

@media (max-width: 991px) {
  /* 手机版：顶部LOGO区域优化 */
  .header-top {
    height: auto !important;

  }
  .header-top .row {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 8px !important;
  }
  .header-top .col-lg-3,
  .header-top .col-lg-9 {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }
  .logo1, .logo2 {
    height: 50px !important;
  }
  .title-box {
    border-left: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    text-align: center !important;
    align-items: center !important;
  }
  .title-box .cn {
    font-size: 18px !important;
    white-space: normal !important;
    line-height: 1.3 !important;
  }
  .title-box .en {
    font-size: 12px !important;
    margin-top: 2px !important;
  }
  .header-search-desktop {
    display: none !important;
  }

  /* 手机版：导航栏优化 */
  /* 手机版：导航栏优化 + 搜索框样式修复 */
  .school-navbar {
    height: auto !important;
    padding: 8px 12px !important;
  }
  .navbar-toggler {
    padding: 6px 10px !important;
    border-width: 1px !important;
  }
  .navbar-collapse {
    background-color: var(--primary) !important;
    padding: 10px !important;
    border-radius: 8px !important;
    margin-top: 8px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15) !important;
  }
  .school-navbar .nav-link {
    padding: 10px 8px !important;
    font-size: 16px !important;
  }
  .school-navbar .dropdown-menu {
    background-color: rgba(255,255,255,0.1) !important;
    position: static !important;
    float: none !important;
    border: none !important;
    box-shadow: none !important;
    padding-left: 15px !important;
  }
  .school-navbar .dropdown-item {
    color: #fff !important;
    padding: 8px 15px !important;
  }
  .school-navbar .dropdown-item:hover {
    background-color: rgba(255,255,255,0.2) !important;
    color: #fff !important;
  }

  /* ✅ 手机端导航搜索框完美修复（白色文字+透明边框） */
  .school-navbar .input-group {
    border: 1px solid rgba(255,255,255,0.3) !important;
    border-radius: 6px !important;
    overflow: hidden !important;
  }
  .school-navbar .input-group .form-control {
    background: rgba(255,255,255,0.08) !important;
    color: #ffffff !important;
    border: none !important;
  }
  .school-navbar .input-group .form-control::placeholder {
    color: rgba(255,255,255,0.6) !important;
  }
  .school-navbar .input-group .btn {
    background: rgba(255,255,255,0.08) !important;
    color: #ffffff !important;
    border: none !important;
  }
  .school-navbar .input-group .btn:hover {
    background: rgba(255,255,255,0.2) !important;
  }


  /* 其他板块手机通用 */
  .bg-title {
    font-size: 2.4rem !important;
  }
  .section-title {
    font-size: 1.8rem !important;
    margin-bottom: 1rem !important;
  }
  .news-more {
    font-size: 0.85rem !important;
  }
  .news-image {
    height: 220px !important;
  }
  .news-list-container {
    padding-left: 0 !important;
    margin-top: 1rem !important;
  }
  #section1 {
    height: auto !important;
  }
}

@media (max-width: 767px) {

  /* 超小屏手机进一步优化 */
  .bg-title {
    font-size: 2rem !important;
  }
  .dazi {
    font-size: 1.6rem !important;
  }
  .en-title.dazi.text-primary{
    font-size: 1.2rem !important;
  }
  .zxhy {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
  }
  .logo1, .logo2 {
    height: 42px !important;
  }
  .title-box .cn {
    font-size: 16px !important;
  }
  .title-box .en {
    font-size: 11px !important;
  }

  /* 师资轮播手机版 */
  #personage {
    padding: 30px 10px !important;
  }
  .swiper-slide {
    transform: scale(0.65) !important;
  }
  .swiper-slide-prev,
  .swiper-slide-next {
    transform: scale(0.85) !important;
  }
  .swiper-slide-active {
    transform: scale(1.2) !important;
  }
  .swiper-button-prev,
  .swiper-button-next {
    display: none !important;
  }


}

@media (min-width:768px) {

  .card-img { width: 100px; height: 130px; }
}
@media (min-width:992px) {

  .card-img { width: 140px; height: 180px; }
}


/* 独立悬浮返回顶部 */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-transparent95);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px var(--primary-dark);
}
.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover {
  background:  var(--primary);
  transform: scale(1.08);
  color: var(--white);
}



/* 中间LOGO布局：左导航 + 中LOGO + 右导航 同一行 */
.header-middle-layout {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  height: 80px !important;
  gap: 20px;
}
.header-middle-layout .header-left,
.header-middle-layout .header-right {
  flex: 1;
  display: flex;
  align-items: center;
}
.header-middle-layout .header-left {
  justify-content: flex-end;
}
.header-middle-layout .header-right {
  justify-content: flex-start;
}
/* 中间LOGO布局：左导航 + 中LOGO + 右导航 同一行 */
.header-middle-layout {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  height: 80px !important;
  gap: 20px;
}
.header-middle-layout .header-left,
.header-middle-layout .header-right {
  flex: 1;
  display: flex;
  align-items: center;
}
.header-middle-layout .header-left {
  justify-content: flex-end;
}
.header-middle-layout .header-right {
  justify-content: flex-start;
}
.header-middle-layout .logomiddle {
  background: url("../images/logobgz2.png") no-repeat center center;
  background-size: contain;
  height: 137px;
  width: 469px;
  flex-shrink: 0;

  /* 🔥 核心修复：水平+垂直完美居中 */
  display: flex;
  align-items: center;       /* 垂直居中 */
  justify-content: center;   /* 水平居中 */
  gap: 12px;
  text-align: center;        /* 文字居中 */
}

/* 🔥 手机版：LOGO + 标题 自适应缩小，完美适配 */
@media (max-width: 767px) {
  .header-middle-layout .logomiddle {
    width: 200px !important;    /* 手机宽度缩小 */
    height: 60px !important;    /* 手机高度缩小 */
    background-size: 100% 100% !important;
    gap: 6px !important;
  }
  .header-middle-layout .logomiddle img {
    height: 28px !important;    /* LOGO图标变小 */
  }
  .header-middle-layout .logomiddle .header-title {
    padding-left: 8px !important;
    gap: 2px !important;
  }
  .header-middle-layout .logomiddle .cn {
    font-size: 13px !important; /* 中文标题缩小 */
  }
  .header-middle-layout .logomiddle .en {
    font-size: 9px !important;  /* 英文标题缩小 */
    line-height: 1.2 !important;
  }
}

/* 导航内部不挤 */
.header-middle-layout .navbar-nav {
  display: flex;
  gap: 2px;
}



.header-middle-layout .logomiddle img {
  height: 40px;

}
/* 导航内部不挤 */
.header-middle-layout .navbar-nav {

  display: flex;
  gap: 2px;
}


#dingbu3 {
  background-color: var(--white)  !important;
}
/* 校友之家轮播统一样式 */
.student-carousel-wrapper {
  border: 1px solid  var(--primary) !important;
  border-radius: 12px;
  padding: 20px;
  background: rgba(255,255,255,0.03);
}
.alumni-title {
  color: var(--primary) !important;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
}

/* 校友之家 —— 终极修复：顶部不裁切 + 完美圆形 + 悬停放大 */
/* 🔥 核心修复：取消所有父容器裁剪，释放圆形空间 */
.student-item,

#studentCarousel .carousel-item {
  overflow: visible !important;
}
/* 校友卡片基础样式 */
.student-item {
  text-align: center;
  /* 增加内边距，防止顶部挤压 */
  padding: 10px 0;
}
/* 核心圆形容器（完全保留你的尺寸和样式） */
.student-img-box {
  width: 145px;
  height: 145px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 12px;
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(134, 86, 170, 0.15);
  /* 提升层级，防止被遮挡 */
  z-index: 99;
  position: relative;
  /* 悬停过渡动画 */
  transition: transform 0.4s ease, box-shadow 0.3s ease;
}
/* 图片样式（保留原有配置） */
.student-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
/* 鼠标悬停：外框放大，完整显示不裁切 */
.student-item:hover .student-img-box {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(134, 86, 170, 0.3);
}
/* 图片轻微放大 */
.student-item:hover .student-img-box img {
  transform: scale(1.08);
}




/* 文字金色 */
.student-item .student-text {

  margin-top: 8px;
  text-align: center;
}
.student-item .student-name {
  font-weight: bold;
  margin-bottom: 2px;
}
.student-item .student-info {

  opacity: 0.9;
}

/* 强制修复：校友之家轮播 左右按钮永久可见 */
#studentCarousel .carousel-control-prev,
#studentCarousel .carousel-control-next {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  width: 30px !important;
  height: 30px !important;
  top: 90% !important;
  transform: translateY(-50%) !important;
  border: 1px solid  var(--primary) !important;

  border-radius: 50% !important;
  z-index: 9999 !important;
}
#studentCarousel .carousel-control-prev {
  left: 15px !important;
}
#studentCarousel .carousel-control-next {
  right: 15px !important;
}
#studentCarousel .carousel-control-prev-icon,
#studentCarousel .carousel-control-next-icon {
  background-image: none !important;
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
}
#studentCarousel .carousel-control-prev-icon::after {
  content: "<" !important;
  color:  var(--primary)!important;
  font-size: 18px !important;
  font-weight: bold !important;
}
#studentCarousel .carousel-control-next-icon::after {
  content: ">" !important;
  color:  var(--primary) !important;
  font-size: 18px !important;
  font-weight: bold !important;
}
/* 🔥 顶部1 网站名称字体变大 + 导航字体稍粗（不夸张） */
#dingbu1 .header-title .cn {
  font-size: 24px !important; /* 原来20px → 改大到24px，更醒目 */
  font-weight: bold !important;
}
#dingbu1 .header-title .en {
  font-size: 13px !important;
}

/* 顶部1 导航字体：稍微有点粗，不厚重 */
#dingbu1 .school-navbar .nav-link {
  font-weight: 500 !important; /* 原来bold → 改为500（稍粗） */
}
#dingbu1 .school-navbar .dropdown-item {
  font-weight: 500 !important; /* 下拉菜单同步 */
}
/* ==========================
🔥 顶部1 + 顶部2 LOGO背景PNG 统一加阴影
========================== */
/* 顶部1：左侧LOGO背景 */
#dingbu1 {
  position: absolute;
}
#dingbu1::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.35));
  z-index: -1;
  pointer-events: none;
}

/* 顶部2：中间LOGO背景 */
.header-middle-layout .logomiddle {
  position: relative;
}
.header-middle-layout .logomiddle::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.35));
  z-index: -1;
  pointer-events: none;
}
/* 电脑版导航 一级菜单鼠标悬停 半透明紫色 */
@media (min-width: 992px) {
  .navbar-nav > li > a:hover,
  .navbar-nav > li:hover > a {
    background-color:  var(--primary-transparent50) !important;
    color: #fff !important;
  }
}
/* ==========================
🔥 学生发展4个卡片 → 四叶草圆角样式（完美不影响内容）
========================== */
.xsfz1, .xsfz1:hover {

  border-radius: 0 90px 0 90px  !important;  /* 右下 + 左上 大圆角 */
}
.xsfz2, .xsfz2:hover {
  border-radius: 90px  0 90px 0 !important;   /* 左上 + 右下 大圆角 */
}
.xsfz3, .xsfz3:hover {
  border-radius: 90px 0 90px 0 !important;   /* 右上 + 左下 大圆角 */
}
.xsfz4, .xsfz4:hover {
  border-radius: 0 90px 0 90px !important;   /* 左下 + 右上 大圆角 */
}



/* 文字两行省略，和原图一致 */
.line-clamp-2 {
  font-size: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 卡片hover效果，和原图的轻微上浮+阴影一致 */
#section3 .card {
  transition: all 0.3s ease;
  border-radius: 0 0 60px 0;
  overflow: hidden;
}
#section3 .card .card-img-top{
  height: 200px;
}
#section3 .card:hover {
  transform: translateY(-8px);
  background-color: var(--primary-transparent95);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15) !important;
}
/* 👇 加上这段，卡片里的链接 hover 也会变白 */
/* 卡片hover时，内部所有链接同步变色 */
#section3 .card:hover a {
  color: var(--white) !important;
}
.about_qdt {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 84px;
  background: url(../images/pic_1.png) no-repeat;
  background-size: 100% 100%;
}
.about_qdd {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 69px;
  background: url(../images/pic_2.png) no-repeat;
  background-size: 100% 100%;
}
.active123_t {
  width: 100%;
  height: 67px;
  position: absolute;
  top: 0;
  left: 0;
  background: url(../images/pic_3.png) no-repeat;
  background-size: 100% 100%;
}
.jt {
  height: 0px;
  position: absolute;
  bottom: -100px;
  left: 10%;
  width: 0px;
  border-top: 50px solid #8656AA;
  border-left: 100px solid transparent;
  border-right: 100px solid transparent;
  border-bottom: 50px solid transparent;
}
.jt2 {
  height: 0px;
  position: absolute;
  bottom: -100px;
  right: 10%;
  width: 0px;
  border-top: 50px solid #f9f6f2;
  border-left: 100px solid transparent;
  border-right: 100px solid transparent;
  border-bottom: 50px solid transparent;
}
@media screen and (max-width: 480px) {
  .about_qdt, .about_qdd, .active_t,.active123_t {
    height: 30px;
  }
  .jt2,.jt {
    bottom: -80px;

  }
}

/* 学生发展卡片 鼠标悬浮动画 */
.card-hover-item {
  background-color: #fff;
  transition: all 0.3s ease;

  border: 3px solid rgb(218, 178, 99);
}
.card-hover-item:hover {
  background-color: rgb(251, 243, 227);
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(134, 86, 170, 0.15);
  border-color: 3px solid rgb(218, 178, 99);
}
.card-hover-img {
  transition: transform 0.4s ease;
}
.card-hover-item:hover .card-hover-img {
  transform: scale(1.05);
}
/* 导航滑块 */
.navbar-nav { position: relative !important; }
.nav-slider {
  position: absolute;
  top: 0;
  height: 100%;
  background: rgb(207, 164, 246);
  z-index: 0;
  transition: all 0.3s ease;
  opacity: 0.2;
  pointer-events: none;
}
.nav-item {
  position: relative;
  z-index: 1;
}
.text-justify-last {
  text-align: justify;
  text-align-last: justify;
}
