/* ============================================================
   首页样式：Banner 轮播 + 四大内容版式
   ============================================================ */

/* ---------- Banner：三图并排轮播 ---------- */
#banner-stage {
  position: relative; width: 100%; height: 556px; margin-top: 3px; margin-bottom: 6px;
  box-sizing: border-box; padding-bottom: 36px; overflow: hidden; background: #eee;
  perspective: 1400px; perspective-origin: 50% 50%; transform-style: preserve-3d;
}
.banner-slide {
  position: absolute; top: 0; width: 70%; height: calc(100% - 36px); overflow: hidden;
  border-radius: 4px; opacity: 0; transform: rotateY(0deg) translateX(0) translateZ(0);
  transition: left .85s cubic-bezier(.25,.8,.25,1), transform .85s cubic-bezier(.25,.8,.25,1), opacity .55s ease, box-shadow .6s ease;
  will-change: left, transform, opacity; backface-visibility: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.banner-slide img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 4px; }
.banner-slide::after {
  content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.7); border-radius: 4px;
  z-index: 3; opacity: 0; transition: opacity .55s ease; cursor: default; pointer-events: none;
}
.banner-slide.is-active {
  opacity: 1; transform: rotateY(0deg) translateX(0) translateZ(0); z-index: 10; cursor: default;
  box-shadow: 0 6px 20px rgba(0,0,0,.40), 0 16px 40px rgba(0,0,0,.30), 0 28px 60px rgba(0,0,0,.15);
}
.banner-slide.is-active::after { opacity: 0; pointer-events: none; }
.banner-slide.is-side-left {
  opacity: 1; transform: rotateY(20deg) translateX(50px) translateZ(-80px); z-index: 5;
  box-shadow: 0 4px 14px rgba(0,0,0,.30);
}
.banner-slide.is-side-left::after { opacity: 1; pointer-events: auto; cursor: pointer; }
.banner-slide.is-side-right {
  opacity: 1; transform: rotateY(-20deg) translateX(-50px) translateZ(-80px); z-index: 5;
  box-shadow: 0 4px 14px rgba(0,0,0,.30);
}
.banner-slide.is-side-right::after { opacity: 1; pointer-events: auto; cursor: pointer; }
.banner-slide.is-hidden-left { opacity: 0; transform: rotateY(35deg) translateX(100px) translateZ(-200px); z-index: 1; }
.banner-slide.is-hidden-left::after { opacity: 1; pointer-events: none; }
.banner-slide.is-hidden-right { opacity: 0; transform: rotateY(-35deg) translateX(-100px) translateZ(-200px); z-index: 1; }
.banner-slide.is-hidden-right::after { opacity: 1; pointer-events: none; }

.banner-slide .banner-overlay {
  position: absolute; inset: 0; padding: 60px 50px 50px; display: flex; flex-direction: column;
  justify-content: flex-end; color: #fff;
  background: linear-gradient(to top, rgba(9,24,58,.66) 0%, rgba(9,24,58,.36) 18%, rgba(9,24,58,.12) 32%, transparent 48%);
  border-radius: 4px; opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease;
  pointer-events: none; box-sizing: border-box; z-index: 4;
}
.banner-slide.is-active .banner-overlay { opacity: 1; transform: translateY(0); pointer-events: auto; transition-delay: .35s; }
.banner-slide .banner-tag {
  display: inline-block; align-self: flex-start; font-size: 14px; letter-spacing: 2px; color: #E5D28E;
  padding: 5px 14px; border: 1px solid rgba(204,168,77,.6); border-radius: 20px;
  background: rgba(13,30,70,.35); margin-bottom: 14px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.banner-slide .banner-title {
  font-size: 32px; font-weight: 800; line-height: 1.3; letter-spacing: 1.5px; margin-bottom: 10px;
  text-shadow: 0 2px 12px rgba(0,0,0,.6); color: #fff;
}
.banner-slide .banner-desc {
  font-size: 16px; line-height: 1.8; color: rgba(255,255,255,.92); max-width: 640px; margin-bottom: 20px;
  text-shadow: 0 1px 8px rgba(0,0,0,.5); overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.banner-slide .banner-more {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 10px 26px;
  background: #fff; color: var(--blue-800); border-radius: 24px; font-size: 15px; font-weight: 600;
  letter-spacing: 1px; transition: all .3s; box-shadow: 0 6px 18px rgba(0,0,0,.3);
}
.banner-slide .banner-more:hover { background: var(--gold); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(200,162,75,.55); }
.banner-slide .banner-more span { transition: transform .3s; line-height: 1; }
.banner-slide .banner-more:hover span { transform: translateX(4px); }
.banner-pagination { position: absolute; left: 18%; bottom: 6px; display: flex; gap: 8px; z-index: 30; }
.banner-pagination span { width: 24px; height: 4px; background: #ccc; border-radius: 0; cursor: pointer; transition: background .3s; pointer-events: auto; }
.banner-pagination span.is-active { background: var(--blue-600); }

@media (min-width: 1400px) {
  #banner-stage { height: 596px; }
  .banner-slide .banner-overlay { padding: 70px 60px 55px; }
  .banner-slide .banner-title { font-size: 34px; }
  .banner-slide .banner-desc { font-size: 16px; }
}
@media (min-width: 1200px) and (max-width: 1399px) { #banner-stage { height: 536px; } }
@media (min-width: 992px) and (max-width: 1199px) {
  #banner-stage { height: 476px; padding-bottom: 32px; }
  .banner-slide .banner-overlay { padding: 50px 40px 40px; }
  .banner-slide .banner-title { font-size: 26px; }
  .banner-slide .banner-desc { font-size: 14px; }
  .banner-slide .banner-more { padding: 9px 24px; font-size: 13.5px; }
}
@media (min-width: 768px) and (max-width: 991px) {
  #banner-stage { height: 416px; padding-bottom: 30px; }
  .banner-pagination { left: 50%; transform: translateX(-50%); }
  .banner-slide .banner-overlay { padding: 40px 32px 34px; }
  .banner-slide .banner-tag { font-size: 12px; padding: 4px 12px; margin-bottom: 10px; }
  .banner-slide .banner-title { font-size: 22px; letter-spacing: 1px; margin-bottom: 8px; }
  .banner-slide .banner-desc { font-size: 13px; line-height: 1.7; margin-bottom: 16px; max-width: 100%; }
  .banner-slide .banner-more { padding: 8px 20px; font-size: 13px; }
}
@media (max-width: 767px) {
  #banner-stage { height: 296px; padding-bottom: 26px; margin-top: 0; margin-bottom: 0; }
  .banner-slide { width: 90%; height: calc(100% - 26px); border-radius: 0; }
  .banner-slide img, .banner-slide::after { border-radius: 0; }
  .banner-slide.is-active { box-shadow: 0 4px 14px rgba(0,0,0,.38), 0 10px 26px rgba(0,0,0,.25); }
  .banner-slide.is-side-left { transform: rotateY(12deg) translateX(20px) translateZ(-40px); }
  .banner-slide.is-side-right { transform: rotateY(-12deg) translateX(-20px) translateZ(-40px); }
  .banner-pagination { left: 50%; transform: translateX(-50%); bottom: 4px; }
  .banner-pagination span { width: 16px; height: 3px; }
  .banner-slide .banner-overlay {
    padding: 28px 20px 24px;
    background: linear-gradient(to top, rgba(9,24,58,.70) 0%, rgba(9,24,58,.38) 20%, rgba(9,24,58,.12) 36%, transparent 52%);
  }
  .banner-slide .banner-tag { font-size: 11px; padding: 3px 10px; margin-bottom: 8px; letter-spacing: 1px; }
  .banner-slide .banner-title { font-size: 17px; line-height: 1.35; letter-spacing: .5px; margin-bottom: 6px; }
  .banner-slide .banner-desc { font-size: 12px; line-height: 1.6; margin-bottom: 12px; -webkit-line-clamp: 2; max-width: 100%; }
  .banner-slide .banner-more { padding: 7px 18px; font-size: 12px; border-radius: 20px; gap: 4px; }
}
@media (max-width: 479px) {
  #banner-stage { height: 256px; padding-bottom: 22px; }
  .banner-slide .banner-title { font-size: 15px; }
  .banner-slide .banner-desc { font-size: 11.5px; }
  .banner-slide .banner-more { padding: 6px 16px; font-size: 11.5px; }
  .banner-slide .banner-overlay { padding: 20px 16px 18px; }
}


/* 跑马灯翻页按钮 */
.mq-ctrl { display: flex; gap: 6px; margin-left: auto; margin-right: 14px; }
.mq-ctrl button {
  width: 29px; height: 29px; border: 1px solid #cfd9e8; border-radius: 50%; color: var(--blue-700);
  display: flex; align-items: center; justify-content: center; font-family: Arial, sans-serif;
  font-size: 20px; line-height: 1; background: #fff; transition: all .25s;
}
.mq-ctrl button:hover { background: var(--blue-700); border-color: var(--blue-700); color: #fff; transform: translateY(-2px); box-shadow: 0 5px 12px rgba(13,42,92,.25); }
.panel-head .head-tabs + .mq-ctrl { margin-left: auto; }
.panel-head .mq-ctrl + .more { margin-left: 0; }
@media (max-width: 767px) {
  .mq-ctrl { margin-right: 8px; }
  .mq-ctrl button { width: 26px; height: 26px; font-size: 18px; }
}

/* ============================================================
   通用面板标题
   ============================================================ */
.panel-head { display: flex; align-items: flex-end; justify-content: space-between; border-bottom: 2px solid var(--blue-800); padding-bottom: 8px; margin-bottom: 16px; position: relative; }
.panel-head::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 66px; height: 2px; background: var(--gold); }
.panel-head h2 { font-size: 22px; color: var(--blue-800); line-height: 1; letter-spacing: .5px; }
.panel-head h2::before { content: ""; display: inline-block; width: 4px; height: 18px; background: var(--blue-800); margin-right: 9px; vertical-align: -2px; }
.panel-head .en { font-family: Arial, sans-serif; font-size: 11px; font-weight: 400; color: #a3afc2; margin-left: 8px; letter-spacing: 1.5px; vertical-align: 1px; }
.panel-head .more { font-size: 13.5px; color: #8895aa; padding-right: 12px; position: relative; }
.panel-head .more::after { content: "›"; position: absolute; right: 0; top: -2px; font-size: 17px; }
.panel-head .more:hover { color: var(--blue-600); }
.panel-head .head-tabs { display: flex; align-items: flex-end; gap: 22px; margin-left: 22px; margin-right: auto; }
.panel-head .head-tabs button { font-size: 14px; color: #8895aa; padding-bottom: 2px; position: relative; }
.panel-head .head-tabs button.active, .panel-head .head-tabs button:hover { color: var(--blue-800); font-weight: 700; }
.panel-head .head-tabs button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 2px; background: var(--blue-800); }
.panel-head .head-tabs + .more { margin-left: auto; }

/* ============================================================
   1. 学院新闻 + 公告栏
   ============================================================ */
.xw_tz { margin-top: 30px; }
.xw_tz > .w15 { display: grid; grid-template-columns: 2fr 1fr; gap: 34px; align-items: stretch; }
.news-panel, .notice-panel { display: flex; flex-direction: column; min-width: 0; }
.news-grid { flex: 1; }
.notice-panel .tab-pane.active { display: flex; flex-direction: column; flex: 1; }
.notice-list { flex: 1; min-height: 0; }
.notice-list li { flex: 1; }
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.news-grid .news-card { background: #f5f7fa; border: 1px solid #edf0f5; display: flex; flex-direction: column; position: relative; overflow: hidden; transition: box-shadow .25s, transform .25s, border-color .25s; }
.news-grid .news-card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--gold); z-index: 3; transition: width .3s; }
.news-grid .news-card:hover::before { width: 100%; }
.news-grid .news-card:hover { box-shadow: 0 10px 24px rgba(13,42,92,.13); transform: translateY(-3px); }
.news-card .news-img { position: relative; height: 165px; overflow: hidden; }
.news-card .news-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.news-card:hover .news-img img { transform: scale(1.05); }
.news-card .news-img span { position: absolute; left: 0; bottom: 0; background: var(--blue-800); color: #fff; font-size: 12px; padding: 3px 9px; }
.news-card .news-text { padding: 10px 11px 12px; flex: 1; display: flex; flex-direction: column; }
.news-card .news-text h4 { font-size: 14.5px; line-height: 1.55; font-weight: 500; color: #33415c; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 46px; }
.news-card:hover .news-text h4 { color: var(--blue-600); }
.news-card .news-text time { font-size: 12px; color: #9aa6b8; margin-top: 8px; }

.notice-panel { background: #fff; border: 1px solid #edf1f7; box-shadow: 0 10px 28px rgba(13,42,92,.11); padding: 16px 18px 10px; }
.notice-panel .notice-list { min-height: 300px; }
.notice-list li { display: flex; align-items: center; gap: 14px; padding: 11px 6px; border-bottom: 1px dashed #d9e0ea; border-radius: 3px; transition: background .25s, transform .25s; }
.notice-list li:hover { background: #f2f6fc; transform: translateX(4px); }
.notice-list li:last-child { border-bottom: 0; }
.notice-date { flex: 0 0 52px; text-align: center; background: var(--blue-800); color: #fff; padding: 4px 0 5px; line-height: 1.1; transition: background .25s; }
.notice-list li:hover .notice-date { background: var(--blue-500); }
.notice-date .day { display: block; font-family: Arial, sans-serif; font-size: 22px; font-weight: bold; }
.notice-date .month { display: block; font-family: Arial, sans-serif; font-size: 10px; opacity: .8; margin-top: 2px; }
.notice-title { font-size: 14.5px; line-height: 1.65; color: #3a4760; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-top: 1px; }
.notice-title:hover { color: var(--blue-600); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ============================================================
   2. 成果展示 —— 跑马灯（学院荣誉与喜报）
   ============================================================ */
.cg_zs { margin-top: 46px; padding: 36px 0 40px; position: relative;
  background: url(../images/bg_award.svg) center center / cover no-repeat; }
.cg-band {
  padding: 26px 0; border-radius: 2px; overflow: hidden;
  background: repeating-linear-gradient(45deg, #153f7d 0 11px, #174687 11px 22px, #10346b 22px 33px);
  box-shadow: inset 0 0 0 6px rgba(255,255,255,.04);
}
.cg-viewport {
  width: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.cg-track { display: flex; width: max-content; will-change: transform; }
.cg-group { display: flex; gap: 22px; padding: 0 11px; }
.cg-card {
  flex: 0 0 350px; width: 350px; background: #fff; display: flex; flex-direction: column;
  box-shadow: 0 8px 20px rgba(5,20,50,.18); transition: transform .3s, box-shadow .3s;
}
.cg-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(5,20,50,.28); }
.cg-card .cg-img { height: 178px; overflow: hidden; }
.cg-card .cg-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.cg-card:hover .cg-img img { transform: scale(1.05); }
.cg-card .cg-body { padding: 12px 15px 14px; flex: 1; display: flex; flex-direction: column; }
.cg-card .cg-tag { align-self: flex-start; font-size: 12px; color: #a67c1e; background: #fbf4e2; border: 1px solid #e8d3a1; padding: 1px 8px; border-radius: 2px; margin-bottom: 7px; }
.cg-card h4 { font-size: 15.5px; line-height: 1.6; color: #2e3c56; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 45px; }
.cg-card:hover h4 { color: var(--blue-600); }
.cg-card time { font-size: 12px; color: #9aa6b8; margin-top: 9px; }

/* 成果展示 / 招生就业：深蓝通栏背景下的标题栏浅色化 */
.cg_zs .panel-head, .xt_dt .panel-head { border-bottom-color: rgba(255,255,255,.4); }
.cg_zs .panel-head::after, .xt_dt .panel-head::after { background: var(--gold); }
.cg_zs .panel-head h2, .xt_dt .panel-head h2 { color: #fff; }
.cg_zs .panel-head h2::before, .xt_dt .panel-head h2::before { background: var(--gold); }
.cg_zs .panel-head .head-tabs button, .xt_dt .panel-head .head-tabs button { color: rgba(255,255,255,.7); }
.cg_zs .panel-head .head-tabs button.active, .xt_dt .panel-head .head-tabs button.active,
.cg_zs .panel-head .head-tabs button:hover, .xt_dt .panel-head .head-tabs button:hover { color: #fff; }
.cg_zs .panel-head .head-tabs button.active::after, .xt_dt .panel-head .head-tabs button.active::after { background: var(--gold); }
.cg_zs .panel-head .more, .xt_dt .panel-head .more { color: rgba(255,255,255,.74); }
.cg_zs .panel-head .more:hover, .xt_dt .panel-head .more:hover { color: #fff; }
.cg_zs .mq-ctrl button, .xt_dt .mq-ctrl button { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.55); color: #fff; }
.cg_zs .mq-ctrl button:hover, .xt_dt .mq-ctrl button:hover { background: #fff; border-color: #fff; color: var(--blue-800); }

/* ============================================================
   3. 党建动态 / 教学动态 / 学术动态 / 学团动态
   ============================================================ */
.info_grid { margin-top: 50px; }
.info_grid > .w15 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 62px; }
.info_grid .info-panel { min-width: 0; }
.info_grid .panel-head { min-width: 0; }
.text-list li { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px dashed #d8dfe9; border-radius: 3px; transition: background .25s; }
.text-list li:hover { background: #f5f8fd; }
.text-list li:hover .tl-title { padding-left: 4px; }
.text-list li:last-child { border-bottom: 0; }
.text-list li::before { content: "»"; color: var(--blue-600); font-family: Arial, sans-serif; font-size: 15px; font-weight: bold; line-height: 1; }
.text-list .tl-title { flex: 1; min-width: 0; font-size: 14.5px; color: #3b4860; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .2s, padding-left .2s; }
.text-list .tl-title:hover { color: var(--blue-600); }
.text-list time { flex: 0 0 auto; font-family: Arial, sans-serif; font-size: 13px; color: #9aa6b8; }

/* ============================================================
   4. 招生就业 —— 跑马灯
   ============================================================ */
.xt_dt { margin-top: 52px; padding: 36px 0 40px; position: relative;
  background: url(../images/bg_admission.svg) center center / cover no-repeat; }
.xt-panel { background: #3d3b50; padding: 22px 0; }
.xt-viewport {
  width: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}
.xt-track { display: flex; width: max-content; will-change: transform; }
.xt-group { display: flex; gap: 15px; padding: 0 7.5px; }
.xt-card {
  flex: 0 0 270px; width: 270px; background: #fff; display: flex; flex-direction: column;
  box-shadow: 0 4px 12px rgba(0,0,0,.16); transition: transform .3s, box-shadow .3s;
}
.xt-card:hover { transform: translateY(-5px); box-shadow: 0 12px 24px rgba(0,0,0,.28); }
.xt-card .xt-img { height: 142px; overflow: hidden; }
.xt-card .xt-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.xt-card:hover .xt-img img { transform: scale(1.05); }
.xt-card .xt-body { padding: 11px 12px 13px; min-height: 104px; display: flex; flex-direction: column; }
.xt-card h4 { font-size: 14px; line-height: 1.6; font-weight: 500; color: #3a4760; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.xt-card:hover h4 { color: var(--blue-600); }
.xt-card time { font-size: 12px; color: #9aa6b8; margin-top: 7px; }

/* ---------- 内容区响应式 ---------- */
@media (max-width: 1100px) {
  .xt-card { flex-basis: 250px; width: 250px; }
  .info_grid > .w15 { gap: 34px 40px; }
}
@media (max-width: 991px) {
  .xw_tz > .w15 { grid-template-columns: 1fr; gap: 40px; }
  .info_grid > .w15 { grid-template-columns: minmax(0, 1fr); }
  .cg-card { flex-basis: 320px; width: 320px; }
}
@media (max-width: 767px) {
  .xw_tz { margin-top: 24px; }
  .panel-head { flex-wrap: wrap; gap: 6px 0; }
  .panel-head .head-tabs { order: 3; flex: 1 0 100%; margin: 8px 0 0; gap: 16px; }
  .panel-head .head-tabs button.active::after { bottom: -4px; }
  .news-grid { gap: 10px; }
  .news-card .news-img { height: 140px; }
  .cg_zs, .info_grid, .xt_dt { margin-top: 36px; }
  .cg-band { padding: 14px; }
  .cg-band { padding: 16px 0; }
  .cg-group { gap: 12px; padding: 0 6px; }
  .cg-card { flex-basis: 270px; width: 270px; }
  .cg-card .cg-img { height: 140px; }
  .cg-card h4 { min-height: 0; font-size: 13px; }
  .xt-panel { padding: 14px 0; }
  .xt-group { gap: 10px; padding: 0 5px; }
  .xt-card { flex-basis: 220px; width: 220px; }
  .xt-card .xt-img { height: 110px; }
  .xt-card .xt-body { min-height: 96px; }
}
@media (max-width: 479px) {
  .news-grid { grid-template-columns: 1fr; }
  .cg-card { flex-basis: 240px; width: 240px; }
  .xt-card { flex-basis: 200px; width: 200px; }
}
