/* ========== 基础 ========== */
:root {
  --blue: #003f97;
  --blue-deep: #002a66;
  --blue-mid: #0052b8;
  --red: #c41230;
  --red-deep: #8e0a1c;
  --gold: #d4a017;
  --text: #222;
  --muted: #888;
  --line: #e6e6e6;
  --bg-soft: #f4f5f7;
  --container: 1200px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Noto Serif SC", "Songti SC", serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/* 日历图标 */
.icon-cal {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 5px;
  vertical-align: -2px;
  border: 1.5px solid #999;
  border-radius: 2px;
  box-sizing: border-box;
  position: relative;
  background:
    linear-gradient(#999, #999) center 4px / 100% 1px no-repeat;
}
.icon-cal::before,
.icon-cal::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 1.5px;
  height: 4px;
  background: #999;
  border-radius: 1px;
}
.icon-cal::before { left: 2px; }
.icon-cal::after { right: 2px; }

/* ========== 顶栏 ========== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background .35s, box-shadow .35s;
}

.site-header.is-solid {
  background: rgba(0, 63, 151, .96); /* #003f97 */
  box-shadow: 0 2px 16px rgba(0,0,0,.2);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.45), transparent);
  pointer-events: none;
  opacity: 1;
  transition: opacity .35s;
}

.site-header.is-solid::before { opacity: 0; }

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(100% - 48px, 1400px);
  margin: 0 auto;
  padding: 14px 0 12px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 1;
  max-width: min(360px, 38vw);
}

/* 横版校徽字标：略收宽度，给导航留出单行空间 */
.logo img {
  display: block;
  width: auto;
  height: 48px;
  max-width: 100%;
  object-fit: contain;
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  z-index: 1;
  min-width: 0;
  flex: 1;
}

.util-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: rgba(255,255,255,.9);
}

.util-links a:hover { color: #fff; }

.search-btn {
  color: #fff;
  display: grid;
  place-items: center;
  padding: 2px;
}

.main-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0 14px;
  font-size: 14px;
  color: #fff;
  width: 100%;
  white-space: nowrap;
}

.main-nav > a,
.nav-item > a {
  position: relative;
  padding: 4px 0;
  transition: opacity .2s;
  flex-shrink: 0;
  line-height: 1.2;
}

.main-nav > a:hover,
.nav-item > a:hover { opacity: .85; }

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

/* 对齐南邮：白底下拉 + 顶色条 + max-height 展开，相对一级菜单居中 */
.sub-nav {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 140px;
  max-height: 0;
  padding: 0 1em;
  overflow: hidden;
  box-sizing: border-box;
  background: #fff;
  border-top: 0 solid var(--red);
  box-shadow: 0 0 12px -6px rgba(0, 0, 0, .55);
  transition: max-height .6s ease, padding .6s ease, border-top-width .6s ease;
  z-index: 20;
}

.nav-item:hover .sub-nav {
  max-height: 50vh;
  padding: 10px 1em;
  border-top-width: 4px;
}

.sub-nav a {
  display: block;
  padding: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 2;
  white-space: nowrap;
  color: var(--blue);
  text-align: center;
  transition: color .2s, opacity .2s;
}

.sub-nav a:hover {
  color: var(--red);
  background: transparent;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 2;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
}

/* ========== Banner ========== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--blue-deep);
}

.hero-swiper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: relative;
  overflow: hidden;
  background-color: rgba(0, 63, 151, .12);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  transform: scale(1);
  transition: transform 10s .5s;
}

.hero-slide.swiper-slide-active::before {
  transform: scale(1.05);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, transparent 35%, transparent 70%, rgba(0,0,0,.2) 100%);
  pointer-events: none;
  z-index: 2;
}

/* 原 Banner 中间向下浏览图标 */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 28px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 14px;
  z-index: 3;
}

.hero-scroll span {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: #fff;
  animation: scrollDot 1.6s infinite;
}

@keyframes scrollDot {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(16px); }
}

/* 对齐南邮 Banner 右下角：未激活只显示图标；激活「数字在上 / 图标在下」且整列底对齐 */
.hero .pagination {
  position: absolute;
  right: 62px;
  bottom: 50px;
  left: auto;
  width: auto !important;
  z-index: 3;
  display: block;
  font-size: 0;
  line-height: 0;
}

.hero .pagination .swiper-pagination-bullet {
  display: inline-block !important;
  margin: 0 !important;
  border-radius: 0;
  width: auto !important;
  height: auto !important;
  background: none !important;
  opacity: 1;
  font-size: 0;
  line-height: 1;
  color: #fff;
  text-align: center;
  vertical-align: bottom;
  cursor: pointer;
}

.hero .pagination .swiper-pagination-bullet .s {
  display: block !important; /* 不可 inline，否则数字会和图标横排错位 */
  width: 46px;
  height: 24px;
  margin: 0 auto;
  opacity: .3;
  background: url("../assets/banP1.png") no-repeat center / contain;
  filter: brightness(0) invert(1);
  transition: opacity .6s;
}

.hero .pagination .swiper-pagination-bullet-active {
  opacity: 1;
  font-size: 26px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  font-weight: 400;
}

.hero .pagination .swiper-pagination-bullet-active .s {
  opacity: 1 !important;
}

/* ========== ② 新闻三栏（对齐南工大 njit.edu.cn） ========== */
:root {
  --njit-blue: #003f97;
  --njit-blue2: #0052b8;
  --njit-red: #bb2026;
  --njit-red2: #b62629;
  --njit-text: #333;
  --njit-muted: #999;
  --njit-gray: #666;
  --njit-line: #eee;
}

.section-news {
  margin-top: 72px;
  padding: 0 0 48px;
  background: #fff;
  position: relative;
  z-index: 2;
}

.news-wrap {
  width: min(1360px, 95%);
  margin: 0 auto;
}

.news-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.news-l { width: 24%; }
.news-m { width: 46%; margin: 0 2.5%; min-width: 0; }
.news-r { flex: 1; min-width: 0; }

/* 标题栏：校园新闻 / 通知公告 */
.itit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.itit-text {
  /* 玉龙底图：--itit-mark-opacity 越小越淡（建议 0.08~0.28）；--itit-mark-size 控制显示高度 */
  --itit-mark-opacity: 0.18;
  --itit-mark-size: 64px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 18px 52px 18px 0;
  font-size: 27px;
  font-weight: 700;
  line-height: normal;
}

/* 标题右侧玉龙底图（对齐原 itit-logo：右对齐、高度约标题行） */
.itit-mark {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: var(--itit-mark-size);
  height: var(--itit-mark-size);
  background: url("../assets/itit-yulong.png") center / contain no-repeat;
  opacity: var(--itit-mark-opacity);
  pointer-events: none;
  z-index: 0;
}

.itit-text > span,
.itit-text > b {
  position: relative;
  z-index: 1;
}

.itit-text::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 4px;
  background: var(--njit-blue2);
  z-index: 1;
}

.itit-text::after {
  content: "";
  position: absolute;
  left: 37px;
  bottom: 0;
  width: 16px;
  height: 4px;
  background: #aa2431;
  z-index: 1;
}

.itit-text span { color: var(--njit-text); }
.itit-text b {
  color: var(--njit-blue);
  font-weight: 900;
}

.itit > a {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--njit-blue);
  transition: color .3s;
}

.itit > a i {
  position: relative;
  width: 33px;
  height: 33px;
  margin-right: 14px;
}

.itit > a i::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 50px;
  height: 50px;
  transform: translate(-50%, -50%);
  background: url("../assets/itit-more2.png") center / 100% 100% no-repeat;
  animation: circleScale 1.3s linear infinite;
}

.itit > a i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/itit-more.png") center / 100% 100% no-repeat;
  transition: transform .5s;
}

.itit > a:hover { color: #aa2431; }
.itit > a:hover i::before {
  background-image: url("../assets/itit-more2-r.png");
}
.itit > a:hover i::after {
  transform: rotate(180deg);
  background-image: url("../assets/itit-more-r.png");
}

@keyframes circleScale {
  0% { transform: translate(-50%, -50%) scale(.7); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0; }
}

/* 左栏头条图 */
.first-item {
  display: block;
  position: relative;
  margin: 28px 0 8px;
  overflow: hidden;
}

.first-item .pic {
  position: relative;
  padding-top: 67.5%;
  background: center / cover no-repeat #ddd;
}

.first-item .pic::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100px;
  background: linear-gradient(rgba(15, 94, 187, 0), rgb(15, 94, 187));
}

.first-item .info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px;
  z-index: 2;
}

.first-item .info span {
  display: block;
  margin-bottom: 4px;
  padding-left: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.75;
  color: #fff;
  background: url("../assets/icon-date4.png") left center / 14px no-repeat;
}

.first-item .info .titline {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: #fff;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* 列表（左/右共用） */
.publist ul li a {
  display: block;
  position: relative;
  padding: 14px 0;
}

.publist ul li a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--njit-line);
  z-index: 1;
}

.publist ul li:last-child a::before { background: none; }

.publist ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--njit-red2);
  z-index: 2;
  transition: width .5s;
}

.publist ul li a h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--njit-text);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  height: 50px;
  transition: color .25s, font-weight .25s;
}

.publist ul li a span {
  display: block;
  margin-top: 8px;
  padding-left: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.75;
  color: var(--njit-muted);
  background: url("../assets/icon-date.png") left center / 14px no-repeat;
}

.publist ul li a:hover h3 {
  color: var(--njit-red2);
  font-weight: 600;
}

.publist ul li a:hover::after { width: 100%; }

.news-r .publist { margin-top: 12px; }

/* 中栏焦点图 */
.news-m .s1-mpics { margin-top: 26px; }

.focus-slider {
  position: relative;
  overflow: hidden;
  background: #111;
}

.focus-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s;
}

.focus-slide.is-active { opacity: 1; position: relative; }

.focus-slide .pic {
  display: block;
  padding-top: 61.8%;
  background: center / cover no-repeat;
}

.focus-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  height: 50px;
  margin: -1px 0 0;
  padding: 0;
  background: var(--njit-blue);
  list-style: none;
}

.focus-dots button {
  display: block;
  width: 36px;
  height: 2px;
  padding: 0;
  background: rgba(255, 255, 255, .5);
  transition: .25s;
}

.focus-dots button.is-active {
  height: 4px;
  border-radius: 4px;
  background: var(--njit-red);
}

/* 中栏摘要区 */
.s1-mtext {
  position: relative;
  background: linear-gradient(#f1f8ff 0%, #fff 100%);
  overflow: hidden;
  min-height: 200px;
}

/* 中间栏底图（对齐南工大 s1-msvg：右下角淡线稿） */
.s1-msvg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  z-index: 0;
  pointer-events: none;
}

.s1-msvg img {
  width: 85%;
  max-width: 520px;
  height: auto;
  /* 黑底白线 → 反色后黑线淡显，贴近原站浅蓝线稿效果 */
  filter: invert(1);
  opacity: .14;
  user-select: none;
}

/* 正文与图片同步淡入淡出 */
.focus-text-slider {
  position: relative;
  z-index: 1;
}

.focus-text-slide {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

.focus-text-slide.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

.focus-body {
  z-index: 1;
  padding: 32px 8% 36px;
  text-align: center;
}

.focus-body > a { display: block; }

.focus-body h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--njit-red);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.focus-body p {
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--njit-gray);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  height: 46px;
  text-align: left;
}

.focus-date {
  display: block;
  margin-top: 16px;
  padding-left: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.75;
  color: var(--njit-blue);
  background: url("../assets/icon-date2.png") left center / 14px no-repeat;
  text-align: left;
}

/* ========== ③ 主题专栏（对齐佛山大学 fosu.edu.cn） ========== */
.section-theme {
  padding: 60px 0;
  background: #f5f5f5;
  overflow: hidden;
}

.theme-tit {
  height: 60px;
  line-height: 50px;
  text-align: center;
  margin: 0 auto 25px;
  position: relative;
  background: url("../assets/solution_bg.jpg") center bottom no-repeat;
}

.theme-tit h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  color: #222;
  line-height: 50px;
}

.theme-con {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}

.ztzl-swiper {
  width: 62vw;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0 70px;
  overflow: hidden;
}

.ztzl-swiper .swiper-slide {
  background-position: center;
  background-size: cover;
}

.ztzl-swiper .swiper-slide a {
  display: block;
  width: 85%;
  margin: 0 auto;
  box-shadow: 0 26px 22px rgba(154, 33, 50, .3);
  transition: transform .3s;
}

.ztzl-swiper .swiper-slide img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.ztzl-swiper .swiper-slide-shadow-left,
.ztzl-swiper .swiper-slide-shadow-right {
  width: 85%;
  left: 8%;
}

.theme-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 40px;
  height: 40px;
  margin-top: -40px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
  transition: .25s;
}

.theme-nav::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid #9a2132;
  border-right: 2px solid #9a2132;
  transform: translate(-40%, -50%) rotate(-135deg);
}

.theme-nav.next::before {
  transform: translate(-60%, -50%) rotate(45deg);
}

.theme-nav.prev { left: 8px; }
.theme-nav.next { right: 8px; }

.theme-nav:hover {
  background: #9a2132;
}

.theme-nav:hover::before {
  border-color: #fff;
}

/* 专题聚焦等仍用通用标题 */
.section-title {
  margin: 0;
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: .08em;
}

.section-title.dark { color: #1a1a1a; }
.section-title.red { color: var(--red-deep); }

.title-line {
  display: block;
  width: 48px;
  height: 3px;
  margin: 14px auto 0;
  background: var(--red);
}

/* ========== ④ 专题聚焦（对齐浙江传媒学院 cuz.edu.cn） ========== */
.section-subject {
  padding: 72px 0 48px;
  background: #fff;
  position: relative;
  z-index: 2;
}

.subject-wrap {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* 标题栏 */
.section-subject .sy_tit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 36px;
  z-index: 5;
}

.section-subject .sy_tit.cen {
  justify-content: center;
}

.section-subject .sy_tit .wz_out {
  position: relative;
  display: flex;
  align-items: center;
}

.section-subject .sy_tit .wz_out::after {
  content: "";
  display: block;
  width: 220px;
  height: 64px;
  background: url("../assets/ztjj/sy_tit_bg.png") center / 100% no-repeat;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
}

.section-subject .sy_tit .pic {
  position: relative;
  z-index: 1;
}

.section-subject .sy_tit .pic img {
  display: block;
  max-height: 52px;
  width: auto;
}

.section-subject .sy_tit > a.more {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  padding-left: 36px;
  background: url("../assets/ztjj/sy_more.png") left center / 28px no-repeat;
  transition: .4s;
}

.section-subject .sy_tit > a.more p {
  margin: 0;
  font-size: 15px;
  color: #dc2143;
  line-height: 24px;
  transition: .4s;
}

.section-subject .sy_tit > a.more:hover {
  transform: translate(5px, -50%);
}

/* 卡片轮播 */
.p3_main {
  position: relative;
}

.p3_lb {
  overflow: hidden;
}

.p3_lb .swiper-slide a {
  display: block;
  position: relative;
  overflow: hidden;
}

.p3_lb .img {
  position: relative;
  padding-bottom: 38.7%;
  border-radius: 30px 0;
  overflow: hidden;
}

.p3_lb .img .img_box {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  transition: transform .4s;
}

.p3_lb a:hover .img .img_box {
  transform: scale(1.05);
}

.p3_lb .con {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 24px;
  border-radius: 0 200px 200px 0;
  pointer-events: none;
}

.p3_lb .con p {
  margin: 0;
  font-size: 20px;
  color: #fff;
  line-height: 1.6;
  letter-spacing: 2px;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,.25);
  max-width: 100%;
}

/* 左右箭头 */
.p3_jt {
  position: absolute;
  width: calc(100% + 100px);
  left: -50px;
  top: calc(50% - 20px);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 6;
}

.p3_jt > div {
  width: 40px;
  height: 32px;
  position: relative;
  cursor: pointer;
  pointer-events: auto;
  background: url("../assets/ztjj/p3_prev.png") center / 100% 100% no-repeat;
  opacity: .85;
  transition: opacity .25s;
}

.p3_jt > div:hover { opacity: 1; }

.p3_jt > div.swiper-button-next {
  transform: rotate(180deg);
  left: auto;
  right: 0;
}

.p3_jt > div.swiper-button-disabled {
  opacity: .35;
  cursor: default;
}

.p3_jt .swiper-button-prev::after,
.p3_jt .swiper-button-next::after {
  display: none;
}

/* ========== ⑤ 校园文化（对齐 scnu.edu.cn） ========== */
.section-culture {
  position: relative;
  padding: 24px 24px 64px;
  background: center / cover no-repeat;
  color: #fff;
}

.culture-inner {
  position: relative;
  z-index: 1;
  color: #fff;
}

.culture-title {
  margin: 0;
  padding: 40px 0;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
}

.culture-title a {
  color: #fff;
  padding-left: 1.25rem;
}

.ext-icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 4px;
  border: 1.5px solid currentColor;
  border-radius: 1px;
  vertical-align: 2px;
  position: relative;
  opacity: .9;
}

.ext-icon::after {
  content: "";
  position: absolute;
  top: 1px;
  right: 1px;
  width: 4px;
  height: 4px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
}

/* md:grid-cols-4 md:gap-16 —— 中间视频占 2 列 */
.culture-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4rem;
  align-items: start;
}

.culture-col {
  grid-column: span 1;
  text-align: center;
}

.culture-col--video {
  grid-column: span 2;
}

.culture-label {
  width: 100%;
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.culture-label a {
  color: #fff;
}

.culture-card {
  display: block;
  color: #fff;
}

.culture-media {
  width: 100%;
  height: 24rem; /* h-96 */
  overflow: hidden;
}

.culture-zoom {
  width: 100%;
  height: 24rem;
  background: center / cover no-repeat;
  transition: transform 1s ease;
}

.culture-card:hover .culture-zoom {
  transform: scale(1.08);
}

.culture-video {
  display: block;
  width: 100%;
  background: #000;
  vertical-align: top;
}

.culture-caption {
  margin-top: 0.25rem;
  font-size: 14px;
  line-height: 1.6;
  color: #fff;
  text-align: left;
}

.culture-caption--center {
  text-align: center;
  width: 100%;
}

.culture-caption a {
  color: #fff;
}

.culture-card:hover .culture-caption,
.culture-caption a:hover {
  text-decoration: underline;
}

/* ========== 页脚（对齐南邮：底图落在品牌行，高度约 152px） ========== */
.site-footer {
  color: var(--blue);
}

.footer-inner {
  width: 100%;
  margin: 0;
  padding: 62px 0 0; /* 对齐南邮 footer padding-top */
  position: relative;
  z-index: 1;
  background-color: #f7fbff;
}

.footer-inner > .quick-icons,
.footer-inner > .footer-brand,
.footer-inner > .footer-addr {
  width: min(100% - 40px, var(--container));
  margin-left: auto;
  margin-right: auto;
}

.quick-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin: 0 auto;
  padding-bottom: 24px; /* 对齐南邮 linkIcon padding-bottom */
}

.quick-icons a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 100px;
  padding: 10px 8px;
  font-size: 13px;
  color: var(--blue-mid);
  transition: color .25s;
}

.quick-icons a .qi-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
}

.quick-icons a .qi-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity .25s, filter .25s;
}

.quick-icons a:hover { color: var(--red); }
.quick-icons a:hover .qi-icon img {
  filter: brightness(0) saturate(100%) invert(18%) sepia(84%) saturate(3200%) hue-rotate(340deg) brightness(90%) contrast(95%);
}

/* 对齐南邮 .logo：footInner 底图区固定约 152px；居中显示校门主体 */
.footer-brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 323px;
  margin-bottom: 0;
  background-image: url("../assets/footer-gate.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

/* 页脚横版校徽：原图约 3.5:1，高度约 56px */
.pre-logo {
  position: relative;
  z-index: 1;
  height: 56px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  flex-shrink: 0;
}

/* 校训绝对居中，尺寸仍按整行宽度计算，避免被挤小 */
.pre-motto {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  height: 56px;
  width: auto;
  max-width: 46%;
  object-fit: contain;
  transform: translate(-50%, -50%);
}

.pre-motto.reveal-up {
  transform: translate(-50%, calc(-50% + 28px));
}

.pre-motto.reveal.is-inview {
  transform: translate(-50%, -50%);
}

.pre-links {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--blue);
}

.pre-links a:hover { color: var(--red); }

.footer-addr {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 28px;
  min-height: 45px; /* 对齐南邮 .bottom */
  padding: 12px 0 18px;
  color: var(--blue);
  font-size: 13px;
  text-align: center;
  background: transparent;
}

.footer-copy {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  padding: 14px 24px; /* 对齐南邮 .copy */
  background: var(--blue);
  font-size: 13px;
  text-align: center;
  color: rgba(255,255,255,.9);
}

.footer-copy a { color: rgba(255,255,255,.9); }
.footer-copy a:hover { color: #fff; }

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 42px;
  height: 42px;
  background: var(--red);
  color: #fff;
  font-size: 18px;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: .25s;
  box-shadow: 0 4px 14px rgba(196,18,48,.35);
}

.back-top.is-show {
  opacity: 1;
  visibility: visible;
}

.back-top:hover { background: var(--red-deep); }

/* ========== 动效（滚动入场，不改最终版式） ========== */
.reveal {
  opacity: 0;
  transition: opacity .9s ease, transform .9s ease;
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.reveal-up { transform: translate3d(0, 28px, 0); }
.reveal-left { transform: translate3d(-28px, 0, 0); }
.reveal-right { transform: translate3d(28px, 0, 0); }

.reveal.is-inview {
  opacity: 1;
  transform: none;
}

/* 离开视口时瞬间复位，避免向上滚时反向过渡 */
.reveal.is-reset {
  transition: none !important;
  transition-delay: 0s !important;
}


@media (max-width: 767px) {
  .reveal-up,
  .reveal-left,
  .reveal-right {
    transform: translate3d(0, 16px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-up,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-slide::before,
  .hero-slide.swiper-slide-active::before {
    transition: none;
    transform: none;
  }

  .focus-slide,
  .focus-text-slide {
    transition: none;
  }
}

/* ========== 响应式 ========== */
@media (max-width: 1100px) {
  .news-grid {
    flex-wrap: wrap;
  }
  .news-l,
  .news-r {
    width: 48%;
  }
  .news-m {
    width: 100%;
    margin: 0 0 28px;
    order: -1;
  }
  .ztzl-swiper { width: 80vw; }
  .theme-tit h2 { font-size: 28px; }
  .logo { max-width: min(300px, 34vw); }
  .logo img { height: 40px; }
  .main-nav { gap: 0 10px; font-size: 13px; }
}

@media (max-width: 860px) {
  .mobile-toggle { display: flex; margin-top: 8px; }
  .header-right {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(80vw, 320px);
    background: var(--blue-deep);
    padding: 80px 24px 24px;
    align-items: stretch;
    transform: translateX(100%);
    transition: transform .3s;
  }
  .header-right.is-open { transform: translateX(0); }
  .main-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .main-nav > a,
  .nav-item > a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .sub-nav {
    position: static;
    left: auto;
    transform: none;
    max-height: none;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    border-top: 0;
    padding: 0 0 8px 12px;
    display: none;
    transition: none;
  }
  .nav-item:hover .sub-nav {
    max-height: none;
    padding: 0 0 8px 12px;
    border-top-width: 0;
  }
  .nav-item.is-open .sub-nav { display: block; }
  .sub-nav a {
    color: rgba(255,255,255,.85);
    text-align: left;
    line-height: 2.2;
  }
  .sub-nav a:hover { color: #fff; }
  .util-links { justify-content: flex-start; margin-bottom: 16px; }

  .news-grid {
    flex-direction: column;
  }
  .news-l,
  .news-m,
  .news-r {
    width: 100%;
    margin: 0;
    order: 0;
  }
  .news-m { order: -1; margin-bottom: 24px; }
  .itit-text {
    --itit-mark-size: 52px;
    font-size: 22px;
    padding-right: 40px;
  }
  /* 对齐 scnu：md 以下单列，视频段上下留白 */
  .culture-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .culture-col,
  .culture-col--video { grid-column: auto; }
  .culture-col--video { margin: 2.5rem 0; }
  .culture-media,
  .culture-zoom { height: 20rem; }

  .theme-con { padding: 0 16px; }
  .ztzl-swiper { width: 92vw; padding-bottom: 40px; }
  .theme-nav { display: none; }
  .theme-tit h2 { font-size: 24px; }

  .section-subject .sy_tit > a.more {
    position: static;
    margin-top: 12px;
  }
  .section-subject .sy_tit.cen {
    flex-direction: column;
  }
  .p3_jt { display: none; }
  .p3_lb .con p { font-size: 16px; white-space: normal; }

  .section-culture { background-attachment: scroll; }

  .footer-brand {
    flex-direction: column;
    text-align: center;
    height: auto;
    min-height: 152px;
    padding: 20px 0;
    background-size: cover;
    background-position: center center;
  }
  .pre-motto {
    position: relative;
    left: auto;
    top: auto;
    max-width: 80%;
    transform: none;
  }
  .pre-motto.reveal-up {
    transform: translate3d(0, 16px, 0);
  }
  .pre-motto.reveal.is-inview {
    transform: none;
  }
  .footer-inner {
    padding-top: 36px;
  }
  .header-inner { padding-top: 14px; }
  .logo { max-width: min(280px, 70vw); }
  .logo img { height: 36px; }
}

/* 对齐南邮 H5：max-width 767px 时 Banner 按宽高比，而非 100vh */
@media screen and (max-width: 767px) {
  .hero {
    height: auto;
    min-height: 0;
  }

  .hero-swiper {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
  }

  .hero-slide {
    height: auto;
    min-height: 0;
    /* 南邮：padding-top: calc(54.1667%) ≈ 13/24 */
    padding-top: 54.1667%;
    background-size: cover;
    background-position: center center;
  }

  .hero-slide::before {
    transition: none;
    transform: none;
  }

  .hero-slide.swiper-slide-active::before {
    transform: none;
  }

  .hero-scroll,
  .hero .pagination {
    display: none; /* H5 隐藏中间图标与右下角分页 */
  }
}

@media (max-width: 520px) {
  .section-title { font-size: 26px; }
  .culture-title { font-size: 1.25rem; padding: 28px 0; }
  .culture-media,
  .culture-zoom { height: 16rem; }
  .focus-body h3 { font-size: 16px; }
  .footer-addr,
  .footer-copy { font-size: 12px; }
}
