*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-width: 1200px;
  overflow-x: hidden;
  background: #fff;
  color: #333;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}
/* ===== 汉堡菜单按钮 — 桌面端隐藏 ===== */
.mobile-menu-toggle {
  display: none;
}
/* 顶栏 + 主导航；主导航 sticky 后需整块盖住下方轮播 */
.site-header {
  position: relative;
  z-index: 110;
}

.site-header + .hero {
  margin-top: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

input,
button {
  font: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0;
}

h2,
h3,
h4 {
  margin: 0;
}

/* 大屏内容区：按视口百分比变宽，并用 max 限制极大屏下的行长 */
.container {
  width: min(75%, 1560px);
  margin: 0 auto;
}

/* 顶栏 / 主导航内层：沿用 1200px 定宽居中，与下方正文流体宽度区分 */
.site-header .topbar .container.topbar__inner,
.site-header .main-nav > .container {
  width: 1200px;
  max-width: 100%;
}

/* ===========================
   顶部红色栏
=========================== */
.topbar {
  position: relative;
  z-index: 100;
  min-height: 100px;
  height: auto;
  padding: 12px 0;
  background: #bb2027;
  background-image: linear-gradient(90deg, rgba(150, 18, 22, 0.55) 0%, rgba(187, 32, 39, 0) 38%, rgba(187, 32, 39, 0) 62%, rgba(150, 18, 22, 0.55) 100%);
  color: #fff;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  height: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* logo：高度适配 100px 栏高 */
.brand__logo {
  height: 72px;
  width: auto;
}

.brand__text {
  line-height: 1.5;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  padding-left: 14px;
}

.brand__cn {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
}

.brand__sub {
  margin-top: 4px;
  font-size: 14px;
  opacity: 0.9;
}

.topbar__actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
}

/* 顶栏咨询电话：左圆标 + 右侧号码在上、说明在下，组间竖线（与设计稿一致） */
.topbar__hotlines {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  margin-left: 12px;
  padding: 4px 0 4px 20px;

  gap: 0;
  row-gap: 8px;
  column-gap: 0;
  background: none;
  box-shadow: none;
}

.topbar__hotline-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 0 4px;
  min-width: 0;
  color: #fff;
}

.topbar__hotline-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #fff;
  box-sizing: border-box;
}

.topbar__hotline-icon-wrap .topbar__hotline-icon {
  display: block;
  width: 22px;
  height: 22px;
}

.topbar__hotline-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  min-width: 0;
}

.topbar__hotline-num {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  line-height: 1.12;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.topbar__hotline-num:hover {
  opacity: 0.88;
}

.topbar__hotline-role {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  line-height: 1.2;
}

.topbar__hotline-divider {
  display: block;
  flex-shrink: 0;
  width: 0px;
  height: 44px;
  align-self: center;
  margin: 0 14px;
  background: rgba(255, 255, 255, 0.32);
}

/* 搜索框仅隐藏：HTML 与各 .search/.search__* 样式仍保留，去掉 label 上的 search--hidden 即可显示 */
.search.search--hidden {
  display: none;
}

.search {
  display: flex;
  align-items: center;
  width: 268px;
  height: 36px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  transition: all 0.3s ease;
  animation: searchPulse 3s ease-in-out infinite;
}

@keyframes searchPulse {
  0%, 100% {
    box-shadow: 0 0 0 rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
  }
}

.search:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
  animation: none;
}

.search:focus-within {
  animation: none;
  transform: none;
}

.search__input {
  width: 100%;
  height: 100%;
  padding: 0 12px;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font-size: 14px;
}

.search__input::placeholder {
  color: rgba(255, 255, 255, 0.75);
  animation: placeholderFloat 2s ease-in-out infinite;
}

@keyframes placeholderFloat {
  0%, 100% {
    opacity: 0.75;
    transform: translateX(0);
  }
  50% {
    opacity: 0.9;
    transform: translateX(2px);
  }
}

.search:focus-within .search__input::placeholder {
  animation: none;
  transform: none;
  opacity: 0.75;
}

.search__button {
  flex-shrink: 0;
  height: 100%;
  padding: 0 18px;
  border: 0;
  color: #bb2027;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}

.search__button:hover {
  background: #f5f5f5;
}

/* 顶栏搜索点击后的轻提示（main.js 写入 #searchToast） */
.search-toast {
  position: fixed;
  left: 50%;
  bottom: 100px;
  transform: translate3d(-50%, 10px, 0);
  padding: 12px 22px;
  background: rgba(35, 35, 35, 0.92);
  color: #fff;
  font-size: 14px;
  line-height: 1.45;
  border-radius: 8px;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.22);
  z-index: 10050;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
  max-width: min(360px, calc(100vw - 32px));
  text-align: center;
  box-sizing: border-box;
}

.search-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate3d(-50%, 0, 0);
}

.topbar__meta {
  font-size: 14px;
  white-space: nowrap;
}

/* ===========================
   主导航（越过顶栏后吸顶由 main.js 加 .main-nav--fixed；body overflow-x 会导致 sticky 失效）
=========================== */
.main-nav {
  position: relative;
  z-index: 110;
  height: 64px;
  background: #fff;
  border-bottom: 2px solid #e8e0d8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: stretch;
}

.main-nav.main-nav--fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 220;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14);
}

/* JS 在 .main-nav 后插入，固定导航时撑起 header 高度，避免正文/轮播跳动 */
.main-nav-fixed-placeholder {
  margin: 0;
  padding: 0;
  border: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
  flex-shrink: 0;
}

.main-nav > .container {
  display: flex;
  align-items: stretch;
}

.main-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  height: 100%;
}

.main-nav__list > li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.main-nav__list > li > a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 22px;
  font-size: 16px;
  line-height: 24px;
  color: #3a3a3a;
  white-space: nowrap;
  transition: color 0.2s;
}

.main-nav__list > li > a:hover,
.main-nav__list > li.is-active > a {
  color: #bb2027;
}

.main-nav__list > li.is-active > a {
  font-weight: 700;
}

/* 活动状态底部指示线 */
.main-nav__list > li.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 28px;
  height: 2px;
  transform: translateX(-50%);
  background: #bb2027;
}

/* hover 时显示下划线（仅非 active 项） */
.main-nav__list > li:not(.is-active):hover::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 28px;
  height: 2px;
  transform: translateX(-50%);
  background: #bb2027;
  opacity: 0.5;
}

/* 有子菜单的箭头 */
.main-nav__list > li.has-sub > a::after {
  content: "\25BE";
  margin-left: 4px;
  font-size: 16px;
  opacity: 0.6;
}

/* 二级菜单 */
.sub-nav {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 120px;
  background: #fff;
  /* border-top: 2px solid #bb2027; */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 200;
  text-align: center;
}

.main-nav__list > li.has-sub:hover > .sub-nav {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* 三级及以下：嵌套子菜单侧向展开（依赖直接子级 hover，避免一级 hover 误显整棵树） */
.sub-nav li {
  position: relative;
  border-bottom: 1px solid #f0ebe5;
}

.sub-nav li:last-child {
  border-bottom: 0;
}

.sub-nav li.has-sub > .sub-nav {
  left: 100%;
  top: 0;
  transform: translateX(4px) translateY(0);
  margin-left: 2px;
}

.sub-nav li.has-sub:hover > .sub-nav {
  opacity: 1;
  visibility: visible;
  transform: translateX(4px) translateY(0);
}

.sub-nav li.has-sub > .sub-link::after {
  content: "\25B8";
  margin-left: 6px;
  font-size: 11px;
  opacity: 0.65;
}

.sub-nav a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  color: #444;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.sub-nav a:hover {
  background: #bb2027;
  color: #fff;
}

/* ===========================
   首屏轮播
=========================== */
.hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: #f4e7d0;
}

/* 大字背景装饰 */
.hero__bg-symbol {
  position: absolute;
  top: 20px;
  left: 50%;
  font-size: 220px;
  line-height: 1;
  color: rgba(196, 162, 114, 0.07);
  transform: translateX(-50%);
  letter-spacing: 8px;
  user-select: none;
  pointer-events: none;
  z-index: 2;
}

/* 竖排口号 */
.hero__motto {
  position: absolute;
  top: 70px;
  z-index: 3;
  color: #b3997a;
  font-size: 28px;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  letter-spacing: 4px;
  user-select: none;
}

.hero__motto span {
  display: block;
}

.hero__motto--left  { left: calc(50% - 420px); }
.hero__motto--center { left: calc(50% - 20px); transform: translateX(-50%); }
.hero__motto--right { right: calc(50% - 420px); }

/* 轮播容器 */
.hero__slides {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 轮播控件 */
.hero__controls {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero__arrow {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.hero__arrow:hover {
  background: rgba(187, 32, 39, 0.7);
  border-color: transparent;
}

.hero__dots {
  display: flex;
  gap: 8px;
}

.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, border-color 0.2s;
}

.hero__dot.is-active {
  background: #fff;
  border-color: #fff;
}

.hero__dot:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.5);
}

/* ===========================
   内容主区域
=========================== */
.page-main {
  position: relative;
  overflow: hidden;
  background-image: url('/dfiles/0411/images/section-bg-1.png');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
}

/* 各模块通用 */
.section {
  position: relative;
  z-index: 1;
  padding: 36px 0 40px;
}

.section--news {
  /* background: rgba(255, 255, 255, 0.91); */
  padding-top: 40px;
  padding-bottom: 48px;
}

.section--training {
  /* background: linear-gradient(180deg, rgba(245, 240, 232, 0.90) 0%, rgba(250, 247, 242, 0.90) 100%); */
  padding-top: 38px;
  padding-bottom: 44px;
}

.section--enterprise {
  /* background: rgba(255, 255, 255, 0.91); */
  padding-top: 38px;
  padding-bottom: 44px;
}

.section--scene {
  /* background: linear-gradient(180deg, rgba(240, 235, 226, 0.88) 0%, rgba(248, 244, 238, 0.88) 100%); */
  padding-top: 36px;
  padding-bottom: 44px;
}

.section--campus {
  /* background: rgba(255, 255, 255, 0.91); */
  padding-top: 36px;
  padding-bottom: 40px;
}

/* 模块标题 */
.section-title {
 display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 22px;
}
.section-title .subhead__more {
  flex-shrink: 0;
  white-space: nowrap;
}
.section-title img {
  display: block;
  width: 284px;
  height: 54px;
  object-fit: contain;
}

.section-title__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 5px;
  background: #bb2027;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.section-title h2 {
  color: #222;
  font-size: 20px;
  font-weight: 800;
}

.section-title__en {
  color: #bbb;
  font-size: 12px;
  margin-top: 2px;
}

/* ===========================
   学校要闻
=========================== */

/* 子标题行：竖线图标 + 红色文字 + 右侧"更多" */
.subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ece7e0;
}

.subhead__title {
  position: relative;
  padding-left: 12px;
  color: #bb2027;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

/* 左侧竖线 */
.subhead__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  background: #bb2027;
  border-radius: 2px;
}

.subhead__more {
  color: #999;
  font-size: 14px;
  transition: color 0.2s;
}

.subhead__more:hover {
  color: #bb2027;
}

/* ---- 图文轮播 ---- */
.news-slider {
  position: relative;
  overflow: hidden;
  border: 1px solid #e8e0d8;
  border-radius: 2px;
  margin-bottom: 14px;
  background: #fff;
}

.news-slider__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.news-slider__item {
  flex: 0 0 100%;
  min-width: 0;
}

.news-slider__item img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.news-slider__body {
  padding: 12px 14px 20px;
}

.news-slider__body h3 {
  margin: 0 0 6px;
  color: #222;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news-slider__body p {
  margin: 0;
  color: #777;
  font-size: 14px;
  line-height: 1.7;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 圆点导航 */
.news-slider__dots {
  position: absolute;
  bottom: 5px;
  right: 14px;
  display: flex;
  gap: 6px;
  z-index: 5;
}

.news-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(187, 32, 39, 0.25);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.news-slider__dot.is-active {
  background: #bb2027;
  transform: scale(1.25);
}

.news-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.news-bullet-list {
  margin-top: 10px;
}

.news-bullet-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed #e0d8ce;
}

.news-bullet-list li::before {
  content: "\2022";
  color: #c3b9aa;
  font-size: 18px;
  flex-shrink: 0;
}

.news-bullet-list a {
  flex: 1;
  color: #555;
  font-size: 14px;
  transition: color 0.2s;
}

.news-bullet-list a:hover {
  color: #bb2027;
}

.news-bullet-list time {
  color: #aaa;
  font-size: 12px;
  white-space: nowrap;
}

.news-side-list {
  display: grid;
  gap: 14px;
}

.news-side-item {
  display: grid;
  grid-template-columns: 135px 1fr;
  gap: 14px;
  align-items: start;
}

.news-side-item img {
  width: 135px;
  height: 88px;
  object-fit: cover;
}

.news-side-item h3 {
  margin-bottom: 5px;
  color: #333;
  font-size: 16px;
  line-height: 1.5;
}

.news-side-item time {
  display: block;
  margin-bottom: 4px;
  color: #aaa;
  font-size: 14px;
}

.news-side-item p {
  color: #777;
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===========================
   干部培训 - Tabs
=========================== */
.tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 20px;
  position: relative;
  border-bottom: 2px solid #e8e0d8;
}

.tab-btn {
  position: relative;
  padding: 10px 28px 12px;
  border: 0;
  background: none;
  color: #666;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.22s, background 0.22s;
  border-radius: 4px 4px 0 0;
  letter-spacing: 0.5px;
}

.tab-btn:hover {
  color: #bb2027;
  background: rgba(187, 32, 39, 0.04);
}

.tab-btn.is-active {
  color: #bb2027;
  background: rgba(187, 32, 39, 0.06);
}

/* 选中状态底部的小三角形，尖端朝上 */
.tab-btn.is-active::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #bb2027;
  z-index: 1;
  animation: triangleAppear 0.3s ease;
}

@keyframes triangleAppear {
  from {
    opacity: 0;
    transform: translateX(-50%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

/* 活动指示条：用 transform 平滑滑动 */
.tabs__indicator {
  position: absolute;
  bottom: -2px;
  height: 2px;
  background: #bb2027;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 1px;
}

/* Tab 面板容器 */
.tab-panels {
  position: relative;
}

/* 所有面板始终以 grid 布局存在，通过 opacity + pointer-events 控制显隐 */
.tab-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  /* 隐藏状态：折叠到 0 高度 */
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  /* 不加 transition，切换时靠 is-active 直接显示，淡入动画通过 animation 实现 */
}

.tab-panel.is-active {
  max-height: 9999px;
  overflow: visible;
  opacity: 1;
  pointer-events: auto;
  animation: tabFadeIn 0.32s ease both;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-grid {
  display: grid;
  gap: 10px;
}

.card-grid--four {
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, auto);
  overflow: hidden;
}

/* 只显示前两行（8张）*/
.card-grid--four .image-card:nth-child(n+9) {
  display: none;
}

.image-card {
  overflow: hidden;
  border: 1px solid #ece7e0;
  background: #fff;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.image-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.image-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(187, 32, 39, 0.05) 0%, rgba(187, 32, 39, 0) 50%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
  pointer-events: none;
}

.image-card:hover {
  box-shadow: 0 8px 24px rgba(187, 32, 39, 0.2), 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(187, 32, 39, 0.2);
}

.image-card:hover::before {
  opacity: 1;
}

.image-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-card:hover img {
  transform: scale(1.08);
}

.image-card h3 {
  padding: 10px 12px 14px;
  color: #555;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 600;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: break-word;
}

.image-card:hover h3 {
  color: #bb2027;
}

/* ===========================
   企业培训 - Grid
=========================== */
/* 6 列：第一行 4+2（2:1），第二行 2+4（1:2），上下错位不对齐 */
.enterprise-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 280px 188px;
  gap: 8px;
}

.enterprise-grid .enterprise-card:nth-child(1) {
  grid-column: 1 / 5;
  grid-row: 1;
}

.enterprise-grid .enterprise-card:nth-child(2) {
  grid-column: 5 / 7;
  grid-row: 1;
}

.enterprise-grid .enterprise-card:nth-child(3) {
  grid-column: 1 / 3;
  grid-row: 2;
}

.enterprise-grid .enterprise-card:nth-child(4) {
  grid-column: 3 / 7;
  grid-row: 2;
}

.enterprise-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  min-height: 0;
  height: 100%;
  align-self: stretch;
}

/* 整块可点：遮罩在上方时需 pointer-events:none，点击穿透到此层 <a> */
.enterprise-card > a {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}

/* 图片铺满网格槽位，按容器裁切，不因素材宽高比变形 */
.enterprise-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.enterprise-card:hover img {
  transform: scale(1.04);
}

.enterprise-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.40));
  transition: background 0.3s;
  pointer-events: none;
}

.enterprise-card:hover::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.52));
}

.enterprise-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 22px 20px;
  color: #fff;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  pointer-events: none;
}

.enterprise-card__overlay h3 {
  margin-bottom: 6px;
  font-size: 17px;
}

.enterprise-card__overlay p {
  font-size: 12px;
  opacity: 0.9;
}

/* ===========================
   现场教学 - Scene Tabs
=========================== */
.scene-layout {
  display: grid;
  grid-template-columns: 500px 1fr;
  gap: 0;
  min-height: 340px;
  /* 左下角和右上角圆弧 */
  border-radius: 0 28px 0 28px;
  overflow: hidden;
}

.scene-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(88px, 1fr));
}

.scene-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 340px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  font-weight: 700;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  overflow: hidden;
  transition: transform 0.32s ease, filter 0.32s ease, color 0.25s ease, box-shadow 0.32s ease;
}

.scene-tab::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.6s ease;
}

.scene-tab:hover::before {
  left: 100%;
}

/* 毕业帽图标 */
.scene-tab__icon {
  display: block;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 3L1 9l11 6 9-4.91V17h2V9L12 3zm-1 12.99L5.5 13l5.5 3 5.5-3-5.5 2.99zM12 18l-7-3.82V17l7 4 7-4v-2.82L12 18z'/%3E%3C/svg%3E") center/20px no-repeat;
  border-radius: 50%;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  pointer-events: none;
}

.scene-tab:hover .scene-tab__icon {
  background-color: rgba(255, 255, 255, 0.48);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.35);
}

/* 竖排四字：避免部分内核在 vertical-rl + 过大 px 字距下叠字；禁止 flex 挤压文字区 */
.scene-tab > span {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  -webkit-text-orientation: mixed;
  flex-shrink: 0;
  line-height: 1.65;
  /* 用 em 代替大 px，避免与竖排度量叠加异常 */
  letter-spacing: 0.28em;
  pointer-events: none;
  cursor: default;
  white-space: nowrap;
  font-kerning: normal;
}

.scene-tab:hover {
  transform: scale(1.06);
  z-index: 2;
  filter: brightness(1.12);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .scene-tab {
    transition: filter 0.25s ease, color 0.25s ease;
  }

  .scene-tab:hover {
    transform: none;
  }
}

.scene-tab.is-active {
  color: #fff;
}

.scene-tab.is-active .scene-tab__icon {
  background-color: rgba(255, 255, 255, 0.5);
}

.scene-tab.is-active::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 10px solid currentColor;
  z-index: 5;
  filter: brightness(0.9);
}

.scene-tab--red   { background: rgba(177, 45, 47, 0.92); color: rgba(255,255,255,0.85); }
.scene-tab--blue  { background: rgba(45, 97, 170, 0.92); color: rgba(255,255,255,0.85); }
.scene-tab--brown { background: rgba(178, 113, 42, 0.92); color: rgba(255,255,255,0.85); }
.scene-tab--gold  { background: rgba(191, 146, 68, 0.92); color: rgba(255,255,255,0.85); }
.scene-tab--green { background: rgba(50, 120, 80, 0.92); color: rgba(255,255,255,0.85); }

.scene-tab--red.is-active   { background: #b12d2f; }
.scene-tab--blue.is-active  { background: #2d61aa; }
.scene-tab--brown.is-active { background: #b2712a; }
.scene-tab--gold.is-active  { background: #bf9244; }
.scene-tab--green.is-active { background: #317850; }

/* 场景内容面板 */
.scene-panels {
  position: relative;
  min-height: 340px;
}

.scene-feature {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.38s ease;
  pointer-events: none;
}

.scene-feature.is-active {
  opacity: 1;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .scene-feature {
    transition: opacity 0.2s ease;
  }
}

.scene-feature__link {
  display: block;
  position: absolute;
  inset: 0;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.scene-feature__link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: -4px;
  z-index: 3;
}

.scene-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene-feature__mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.15), rgba(10, 10, 10, 0.52));
}

.scene-feature__content {
  position: absolute;
  inset: 0;
  padding: 38px 32px;
  color: #fff;
}

.scene-feature__content h3 {
  margin-bottom: 14px;
  font-size: 19px;
}

.scene-feature__content h4 {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
}

.scene-feature__content time {
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
}

.scene-feature__content p {
  max-width: 520px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
}

/* ===========================
   校园风光
=========================== */
.campus-grid {
  display: grid;
  gap: 10px;
}

.campus-grid--top {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 10px;
}

.campus-grid--bottom {
  grid-template-columns: repeat(4, 1fr);
}

.campus-card {
  position: relative;
  overflow: hidden;
  background: #eee;
  cursor: pointer;
}

/* 与上方槽位高度一致，图片居中裁切，避免素材尺寸不一导致变形 */
.campus-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.campus-card:hover img {
  transform: scale(1.04);
}

.campus-card--wide {
  height: 218px;
}

.campus-grid--bottom .campus-card {
  height: 158px;
}

.campus-card__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 10px 14px;
  background: rgba(30, 18, 10, 0.60);
  color: #fff;
  font-size: 15px;
  line-height: 1.4;
 user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
    text-align: center;
}

/* ===========================
   页脚
=========================== */
.site-footer {
  --footer-overlay: rgba(187, 32, 39, 0.88);
  --footer-bg-image: url("/dfiles/0411/images/hero-slider.png");
  --footer-border-light: rgba(255, 255, 255, 0.72);
  padding: 32px 0 0;
  color: rgba(255, 255, 255, 0.99);
  background-color: #bb2027;
  background-image:
    linear-gradient(var(--footer-overlay), var(--footer-overlay)),
    var(--footer-bg-image);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px;
}

.footer-col h3 {
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--footer-border-light);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.footer-col a,
.footer-col p {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.5;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: #fff;
}

/* 页脚最底：备案与版权条（加深色带 + 顶部分隔与阴影） */
.footer-copyright {
  margin-top: 28px;
  padding: 14px 0 18px;
  border-top: 1px solid var(--footer-border-light);
  text-align: center;
  background-color: #bb2027;
  background-image:
    linear-gradient(var(--footer-overlay), var(--footer-overlay)),
    var(--footer-bg-image);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat;
}

.footer-copyright__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.98);
}

.footer-copyright__text a {
  color: inherit;
  text-decoration: none;

}

.footer-copyright__text a:hover {
  color: #fff;
}