/**
 * 云南工商学院招生专题样式表
 * 遵循腾讯前端代码规范
 */

/* ==================== 基础重置 ==================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #f9f9f9;
  color: #333;
  font-family: 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  transition: padding-top 0.3s ease;
}

img {
  loading: lazy;
  transition: opacity 0.3s ease;
}

img:not([src]) {
  background-color: #f5f5f5;
  display: block;
}

/* ==================== CSS变量 ==================== */
:root {
  --accent-color: #cc9622;
  --dark-color: #333;
  --gray-color: #6c757d;
  --light-color: #f8f9fa;
  --primary-color: #7e0014;
  --secondary-color: #cc9622;
}

/* ==================== 顶部副导航 ==================== */
.top-subnav {
  background-color: #7e0014;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  color: #fff;
  font-size: 14px;
  left: 0;
  padding: 8px 0;
  position: fixed;
  top: 0;
  transition: box-shadow 0.3s ease, top 0.3s ease;
  width: 100%;
  z-index: 1020;
}

.top-subnav .container {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.top-subnav-item {
  align-items: center;
  display: flex;
  gap: 8px;
}

.top-subnav a {
  color: #fff;
  margin-left: 20px;
  text-decoration: none;
}

/* ==================== 主导航 ==================== */
.navbar {
  background-color: #fff !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease, top 0.3s ease;
  z-index: 1010;
}

.navbar-brand img {
  height: 38px;
}

/* Logo包装器 */
.logo-wrapper {
  align-items: center;
  display: flex;
  height: 50px;
  justify-content: flex-start;
  width: 260px;
}

.navbar-nav .nav-link {
  color: #333;
  font-weight: 500;
  margin: 0 10px;
  transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
  color: #7e0014;
  font-weight: 600;
}

.sub-nav {
  align-items: center;
  display: flex;
  gap: 20px;
}

.sub-nav-item {
  align-items: center;
  color: var(--dark-color);
  display: flex;
  gap: 5px;
}

.btn-apply {
  background-color: var(--primary-color) !important;
  border-radius: 8px;
  color: #fff !important;
  padding: 8px 20px;
  transition: background-color 0.3s;
}

.btn-apply:hover {
  background-color: #6a0000 !important;
}

/* ==================== Banner轮播 ==================== */
.banner-carousel {
  height: 650px;
  overflow: hidden;
  position: relative;
}

.banner-carousel .carousel-item {
  height: 650px;
}

.banner-carousel .carousel-item img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.banner-carousel .carousel-caption {
  bottom: auto;
  left: 50%;
  position: absolute;
  right: auto;
  text-align: center;
  top: 40%;
  transform: translate(-50%, -50%);
  width: 100%;
}

.banner-title {
  color: #fff;
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-subtitle {
  color: #fff;
  font-size: 24px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* ==================== 通用板块样式 ==================== */
.section {
  overflow: hidden;
  padding: 50px 0;
  position: relative;
}

.section::before {
  background-color: rgba(255, 255, 255, 0.9);
  content: '';
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1;
}

.section > .container {
  position: relative;
  z-index: 2;
}

/* 板块底纹美化 */
.section-bg-1 {
  background-attachment: fixed;
  background-blend-mode: overlay;
  background-image: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  background-position: center;
  background-size: cover;
}

.section-bg-2 {
  background-attachment: fixed;
  background-blend-mode: soft-light;
  background-image: linear-gradient(135deg, #fff 0%, #f1f3f5 100%);
  background-position: center;
  background-size: cover;
}

.section-bg-3 {
  background-attachment: fixed;
  background-blend-mode: overlay;
  background-image: linear-gradient(135deg, #f8f9fa 0%, #dee2e6 100%);
  background-position: center;
  background-size: cover;
}

.section-bg-4 {
  background-attachment: fixed;
  background-blend-mode: soft-light;
  background-image: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  background-position: center;
  background-size: cover;
}

.section-title {
  color: #7e0014;
  display: inline-block;
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 15px;
  position: relative;
}

.section-title::after {
  background-color: #cc9622;
  bottom: -10px;
  content: '';
  height: 3px;
  left: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
  width: 80px;
}

.section-subtitle {
  color: #6c757d;
  font-size: 18px;
  margin-bottom: 50px;
}

.section-subtitle-highlight {
  color: #7e0014;
  font-size: 28px;
}

/* ==================== 招生时间轴 ==================== */
.timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.timeline-item {
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  flex: 1;
  min-width: 150px;
  padding: 20px;
  position: relative;
  text-align: center;
  transition: box-shadow 0.3s, transform 0.3s;
}

.timeline-item:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-10px);
}

.timeline-icon {
  color: #7e0014;
  font-size: 36px;
  margin-bottom: 15px;
}

.timeline-date {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.timeline-text {
  color: #6c757d;
}

/* 时间轴状态标识 */
.timeline-status {
  border-radius: 20px;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 5px 12px;
  position: absolute;
  right: -10px;
  top: -10px;
  z-index: 10;
}

.status-ended {
  background-color: #6c757d;
}

.status-processing {
  background-color: #28a745;
}

.status-pending {
  background-color: #ffc107;
}

/* ==================== 学校简介数字滚动 ==================== */
.stats-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 60px;
}

.xxjj-title {
  color: #7e0014;
  font-size: 32px;
  font-weight: bold;
}

.xxjj-text {
  font-size: 1.25rem;
  line-height: 2;
  margin-bottom: 1.5rem;
  text-indent: 2em;
}

.stat-item {
  flex: 1;
  min-width: 150px;
  text-align: center;
}

.stat-icon {
  color: #7e0014;
  font-size: 32px;
  margin-bottom: 20px;
}

.stat-number {
  color: #7e0014;
  display: inline;
  font-size: 30px;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-text {
  color: #6c757d;
  font-size: 16px;
}

.sup {
  color: #7e0014;
  display: inline;
  font-size: 1em;
  margin-left: 2px;
  position: relative;
  top: -20px;
}

/* ==================== 学院专业板块 ==================== */
.college-card {
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 30px;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}

.college-card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-10px);
}

.college-header {
  background-color: #7e0014;
  color: #fff;
  padding: 20px;
  position: relative;
}

.college-header a {
  text-decoration: none;
}

.college-header a:hover {
  color: #cc9622;
}

.college-name {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.college-slogan {
  font-size: 16px;
  opacity: 0.9;
}

.college-body {
  padding: 20px;
}

.college-stats {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.college-stat {
  align-items: center;
  display: flex;
  gap: 5px;
}

.major-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.major-item {
  border-radius: 20px;
  font-size: 14px;
  padding: 5px;
  width: 100%;
}

.major-item:hover {
  background-color: #7e00141c;
}

/* ==================== 横向手风琴图片 ==================== */
.horizontal-accordion {
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  height: 500px;
  overflow: hidden;
}

.accordion-panel {
  cursor: pointer;
  flex: 1;
  overflow: hidden;
  position: relative;
  transition: flex 0.5s ease;
}

.accordion-panel:hover {
  flex: 3;
}

.accordion-panel img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  width: 100%;
}

.accordion-panel:hover img {
  transform: scale(1.1);
}

.accordion-overlay {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  bottom: 0;
  color: #fff;
  left: 0;
  padding: 10px 30px;
  position: absolute;
  right: 0;
  transform: translateY(100%);
  transition: transform 0.5s ease;
}

.accordion-panel:hover .accordion-overlay {
  transform: translateY(0);
}

.accordion-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.accordion-desc {
  font-size: 16px;
  opacity: 0.9;
}

/* ==================== 校园活动 ==================== */
.activity-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.activity-item {
  border-radius: 8px;
  height: 300px;
  overflow: hidden;
  position: relative;
}

.activity-item img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
  width: 100%;
}

.activity-item:hover img {
  transform: scale(1.05);
}

.activity-overlay {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  bottom: 0;
  color: #fff;
  left: 0;
  padding: 10px 20px;
  position: absolute;
  right: 0;
}

.activity-title {
  font-size: 16px;
  font-weight: bold;
}

/* 调整布局 */
.activity-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 1;
}

.activity-item:nth-child(6) {
  grid-column: span 2;
  grid-row: span 1;
}

/* ==================== 滑块通用样式 ==================== */
.slider-container {
  overflow: hidden;
  padding: 20px 0;
  position: relative;
}

.slider-wrapper {
  display: flex;
  transition: transform 0.5s ease;
}

.slider-item {
  flex: 0 0 25%;
  padding: 0 15px;
}

.slider-btn {
  align-items: center;
  background-color: #7e0014;
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 20px;
  height: 50px;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: background-color 0.3s, transform 0.3s;
  width: 50px;
  z-index: 10;
}

.slider-btn:hover {
  background-color: #6a0000;
  transform: translateY(-50%) scale(1.1);
}

.slider-prev {
  left: 0;
}

.slider-next {
  right: 0;
}

/* ==================== 师资队伍 ==================== */
.teacher-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: 100%;
  overflow: hidden;
  padding-bottom: 20px;
  position: relative;
  text-align: center;
  transition: all 0.4s ease;
}

.teacher-card::before {
  background: linear-gradient(90deg, #7e0014, #cc9622);
  content: '';
  height: 5px;
  left: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  transition: opacity 0.4s ease;
  width: 100%;
}

.teacher-card:hover {
  box-shadow: 0 10px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-10px) scale(1.02);
}

.teacher-card:hover::before {
  opacity: 1;
}

.teacher-img {
  margin-bottom: 15px;
  object-fit: cover;
  transition: all 0.4s ease;
  width: 100%;
}

.teacher-card:hover .teacher-img {
  filter: brightness(1.05);
}

.teacher-name {
  display: inline-block;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 5px;
  position: relative;
}

.teacher-name::after {
  background-color: #7e0014;
  bottom: -5px;
  content: '';
  height: 2px;
  left: 0;
  position: absolute;
  transition: width 0.4s ease;
  width: 0;
}

.teacher-card:hover .teacher-name::after {
  width: 100%;
}

.teacher-title {
  color: #cc9622;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.teacher-card:hover .teacher-title {
  color: #7e0014;
}

.teacher-achievement {
  color: #6c757d;
  display: -webkit-box;
  font-size: 14px;
  -webkit-line-clamp: 3;
  overflow: hidden;
  padding: 0 10px;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
  -webkit-box-orient: vertical;
}

.teacher-card:hover .teacher-achievement {
  color: #555;
}

/* ==================== 就业/升学数据 ==================== */
.data-section {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 40px;
  overflow: hidden;
  padding: 20px;
}

.data-left-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.job-data-image {
  align-items: center;
  display: flex;
  justify-content: center;
  width: 100%;
}

.job-data-image img {
  border-radius: 8px;
  height: auto;
  width: 100%;
}

/* 关于云南工商学院 - 视频图片展示 */
.about-school-section {
  padding: 60px 0 10px;
}

.about-media-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 55% 45%;
}

.about-media-item {
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
}

/* 视频容器 */
.video-container {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  height: 100%;
  min-height: 300px;
  position: relative;
  width: 100%;
}

.video-container video {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.video-overlay {
  align-items: center;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.4) 100%);
  bottom: 0;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  left: 0;
  padding: 20px;
  pointer-events: none;
  position: absolute;
  right: 0;
  text-align: center;
  top: 0;
}

.video-overlay h3 {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 4px;
  margin-bottom: 10px;
}

.video-overlay h2 {
  font-size: 36px;
  font-weight: bold;
  letter-spacing: 6px;
  margin-bottom: 15px;
}

.video-overlay p {
  font-size: 12px;
  letter-spacing: 2px;
  opacity: 0.9;
}

/* 播放按钮 */
.play-button-wrapper {
  cursor: pointer;
  height: 56px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  z-index: 10;
}

.play-button {
  align-items: center;
  background-color: #7e0014;
  border-radius: 50%;
  display: flex;
  height: 100%;
  justify-content: center;
  left: 0;
  position: absolute;
  top: 0;
  transition: all 0.3s ease;
  width: 100%;
}

.play-button i {
  color: #fff;
  font-size: 20px;
  margin-left: 4px;
}

.play-button-pulse {
  animation: pulse-expand 1.5s ease-out infinite;
  background-color: rgba(126, 0, 20, 0.6);
  border-radius: 50%;
  height: 56px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
}

@keyframes pulse-expand {
  0% {
    height: 56px;
    opacity: 0.6;
    width: 56px;
  }
  100% {
    height: 112px;
    opacity: 0;
    width: 112px;
  }
}

.play-button-wrapper:hover .play-button {
  background-color: rgba(200, 0, 0, 1);
  transform: scale(1.1);
}

/* 视频全屏弹层 */
.video-modal {
  align-items: center;
  background-color: rgba(0, 0, 0, 0.95);
  display: flex;
  height: 100vh;
  justify-content: center;
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  transition: opacity 0.3s ease;
  width: 100vw;
  z-index: 2147483647;
}

.video-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-content {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  position: relative;
  width: 100%;
}

.video-modal-content video {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.video-modal-close {
  align-items: center;
  background-color: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  height: 50px;
  justify-content: center;
  position: fixed;
  right: 20px;
  top: 20px;
  transition: all 0.3s ease;
  width: 50px;
  z-index: 2147483647;
}

.video-modal-close:hover {
  background-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.video-modal-close i {
  color: #fff;
  font-size: 20px;
}

/* 右侧图片 */
.about-image {
  height: 100%;
  min-height: 300px;
  position: relative;
}

.about-image-link {
  display: block;
  height: 100%;
  position: relative;
  width: 100%;
}

.about-image img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  width: 100%;
}

.about-image-link:hover img {
  transform: scale(1.05);
}

.image-caption {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  bottom: 0;
  color: #fff;
  left: 0;
  padding: 30px 20px 20px;
  position: absolute;
  right: 0;
}

.image-caption p {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.caption-link {
  border-bottom: 1px solid #fff;
  color: #fff;
  display: inline-block;
  font-size: 14px;
  padding-bottom: 2px;
  transition: all 0.3s;
}

.about-image-link:hover .caption-link {
  border-bottom-color: #8D9092;
  color: #8D9092;
}

.data-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
}

.data-text h3 {
  color: #7e0014;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
}

.data-text p {
  color: #333;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 15px;
}

.data-stats {
  align-items: center;
  display: grid;
  flex: 1;
  gap: 15px;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  justify-content: center;
  padding: 40px;
}

.data-stat-item {
  background-color: #fff;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  transition: all 0.3s ease;
}

.data-stat-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

/* 缩小icon和数字字体 */
.data-stat-item .stat-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.data-stat-item .stat-number {
  font-size: 24px;
  margin-bottom: 5px;
}

.data-stat-item .stat-text {
  font-size: 13px;
}

/* ==================== 就业/升学明星卡片 ==================== */
.student-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: 100%;
  overflow: hidden;
  padding-bottom: 20px;
  position: relative;
  text-align: center;
  transition: all 0.4s ease;
}

.student-card::before {
  background: linear-gradient(90deg, #cc9622, #cc9622);
  content: '';
  height: 5px;
  left: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  transition: opacity 0.4s ease;
  width: 100%;
}

.student-card:hover {
  box-shadow: 0 10px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-10px) scale(1.02);
}

.student-card:hover::before {
  opacity: 1;
}

.student-img {
  margin-bottom: 15px;
  object-fit: cover;
  transition: all 0.4s ease;
  width: 100%;
}

.student-card:hover .student-img {
  filter: brightness(1.05);
  transform: scale(1.03);
}

.student-name {
  display: inline-block;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 5px;
  position: relative;
}

.student-name::after {
  background-color: #cc9622;
  bottom: -5px;
  content: '';
  height: 2px;
  left: 0;
  position: absolute;
  transition: width 0.4s ease;
  width: 0;
}

.student-card:hover .student-name::after {
  width: 100%;
}

.student-info {
  color: #cc9622;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.student-card:hover .student-info {
  color: #7e0014;
}

.student-card a {
  text-decoration: none;
}

.btn-more {
  background-color: #7e0014;
  border: none;
  border-radius: 8px;
  color: #fff;
  margin-top: 0;
  overflow: hidden;
  padding: 10px 30px;
  position: relative;
  transition: all 0.3s;
}

.btn-more::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  content: '';
  height: 100%;
  left: -100%;
  position: absolute;
  top: 0;
  transition: left 0.5s ease;
  width: 100%;
}

.btn-more:hover {
  background-color: #6a0000;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #fff;
  transform: translateY(-3px);
}

.btn-more:hover::before {
  left: 100%;
}

/* ==================== 奖助学金政策 ==================== */
.scholarship-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.scholarship-item {
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 30px 10px;
  text-align: center;
  transition: box-shadow 0.3s, transform 0.3s;
}

.scholarship-item:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-10px);
}

.scholarship-icon {
  color: #7e0014;
  font-size: 48px;
  margin-bottom: 20px;
}

.scholarship-name {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.scholarship-amount {
  color: #cc9622;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.scholarship-desc {
  color: #6c757d;
  font-size: 14px;
}

/* ==================== 快捷导航 ==================== */
.quick-nav-container {
  display: grid;
  gap: 25px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .quick-nav-container {
    grid-template-columns: repeat(6, 1fr);
  }
}

.quick-nav-item {
  background-color: #fff;
  border: 1px solid rgba(131, 1, 0, 0.1);
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  padding: 20px 10px;
  position: relative;
  text-align: center;
  transform-style: preserve-3d;
  transition: all 0.3s ease;
}

.quick-nav-item::before {
  background: linear-gradient(135deg, rgba(131, 1, 0, 0.05) 0%, transparent 100%);
  content: '';
  height: 100%;
  left: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  transition: all 0.3s ease;
  width: 100%;
}

.quick-nav-item:hover::before {
  opacity: 1;
}

.quick-nav-item:hover {
  border-color: #7e0014;
  box-shadow: 0 15px 30px rgba(131, 1, 0, 0.2);
  transform: translateY(-10px) rotateX(10deg);
}

.quick-nav-icon {
  align-items: center;
  background: linear-gradient(135deg, #7e0014, #a5322e);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 1.8rem;
  height: 50px;
  justify-content: center;
  margin: 0 auto 15px;
  position: relative;
  transition: all 0.3s ease;
  width: 50px;
  z-index: 1;
}

.quick-nav-item:hover .quick-nav-icon {
  transform: rotateY(180deg) scale(1.1);
}

.quick-nav-link {
  color: inherit;
  text-decoration: none;
}

.quick-nav-title {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
}

/* ==================== Footer ==================== */
footer {
  background-color: #7e0014;
  color: #fff;
  padding: 60px 0 20px;
  position: relative;
}

footer::before {
  background: linear-gradient(90deg, #cc9622, #cc9622);
  content: '';
  height: 10px;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.footer-logo {
  align-items: flex-start;
  color: #7e0014;
  display: flex;
  height: 80px;
  justify-content: flex-start;
  margin-bottom: 0;
}

.footer-logo .logo-img {
  width: 80%;
}

.footer-info {
  margin-bottom: 0;
}

.footer-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
  padding-bottom: 10px;
  position: relative;
}

.footer-title::after {
  background-color: #cc9622;
  bottom: 0;
  content: '';
  height: 2px;
  left: 0;
  position: absolute;
  width: 50px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ddd;
  padding-left: 5px;
  position: relative;
  text-decoration: none;
  transition: all 0.3s;
}

.footer-links a::before {
  color: #cc9622;
  content: '•';
  left: -10px;
  opacity: 0;
  position: absolute;
  transition: opacity 0.3s;
}

.footer-links a:hover {
  color: #cc9622;
  padding-left: 10px;
}

.footer-links a:hover::before {
  opacity: 1;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #ccc;
  font-size: 14px;
  margin-top: 20px;
  padding-top: 20px;
  text-align: center;
}

/* ==================== 悬浮按钮 ==================== */
.float-buttons {
  bottom: 80px;
  position: fixed;
  right: 30px;
  transform: translateY(-50%);
  z-index: 9999;
}

.float-btn {
  align-items: center;
  background-color: #7e0014;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  height: 45px;
  justify-content: center;
  margin-bottom: 15px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s;
  width: 45px;
}

.float-btn::before {
  content: '';
  height: 100%;
  left: -100%;
  position: absolute;
  top: 0;
  transition: left 0.5s ease;
  width: 100%;
}

.float-btn:hover {
  background-color: #6a0000;
  transform: scale(1.1);
}

.float-btn:hover::before {
  left: 100%;
}

.float-top {
  bottom: 30px;
  position: fixed;
  right: 30px;
  z-index: 9999;
}

/* ==================== 报名表单弹窗 ==================== */
.modal {
  align-items: center;
  backdrop-filter: blur(5px);
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  height: 100%;
  justify-content: center;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 99999;
}

.modal-content {
  animation: modalFadeIn 0.4s ease;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  overflow: auto;
  padding: 30px 0;
  position: relative;
  -webkit-overflow-scrolling: touch;
  width: 90%;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.close-modal {
  color: #6c757d;
  cursor: pointer;
  font-size: 24px;
  position: absolute;
  right: 10px;
  top: -5px;
  transition: all 0.3s;
}

.close-modal:hover {
  color: #7e0014;
  transform: scale(1.1);
}

.form-control {
  border: 1px solid #ddd;
  border-radius: 0;
  margin-bottom: 20px;
  transition: all 0.3s;
}

.form-control:focus {
  border-color: #7e0014;
  box-shadow: 0 0 0 0.2rem rgba(131, 1, 0, 0.1);
}

.btn-submit {
  background-color: var(--primary-color) !important;
  border: none;
  border-radius: 0;
  color: #fff;
  overflow: hidden;
  padding: 10px 30px;
  position: relative;
  transition: all 0.3s;
  width: 100%;
}

.btn-submit::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  content: '';
  height: 100%;
  left: -100%;
  position: absolute;
  top: 0;
  transition: left 0.5s ease;
  width: 100%;
}

.btn-submit:hover {
  background-color: #6a0000;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #fff;
  transform: translateY(-3px);
}

.btn-submit:hover::before {
  left: 100%;
}

/* ==================== 了解更多按钮 ==================== */
.btn-know-more {
  background-color: #7e0014;
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-size: 16px;
  margin-top: 20px;
  overflow: hidden;
  padding: 10px 30px;
  position: relative;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-know-more::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  content: '';
  height: 100%;
  left: -100%;
  position: absolute;
  top: 0;
  transition: left 0.5s ease;
  width: 100%;
}

.btn-know-more:hover {
  background-color: #6a0000;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #fff;
  text-decoration: none;
  transform: translateY(-3px);
}

.btn-know-more:hover::before {
  left: 100%;
}

/* ==================== 工具类 ==================== */
.text-indent-2 {
  text-indent: 2em;
}

/* 快捷导航链接样式 */
.quick-nav-container a {
  text-decoration: none;
}

/* 校园美景板块容器 */
.campus-section .container {
  max-width: 100%;
}

/* 两列数据统计布局 */
.data-stats-two-col {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(1, 1fr);
}

#applyModal h3 {
  text-align: center;
}

#applyModal iframe {
  overflow: auto;
}

#job-texts {
  padding-bottom: 0;
}

#job-datas {
  padding-top: 0;
}

/* ==================== 悬浮框 ==================== */
#float {
  position: absolute;
  z-index: 10;
}

#floatImg {
  height: 100px;
  width: 100px;
}

.float-container {
  position: relative;
  z-index: 99999999999999999999;
}

.float-container p {
  cursor: pointer;
  margin: 0;
  position: absolute;
  right: 0;
  text-align: right;
  top: -25px;
}

.ad1-close {
  font-size: 12px;
}

#contact {
  margin-top: 60px;
}

/* ==================== 招生咨询联系方式 ==================== */
.contact-section {
  align-items: stretch;
  display: flex;
  gap: 0;
  width: 100%;
}

.contact-grid {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  flex: 1;
  padding: 20px;
  width: 100%;
}

.contact-row {
  display: flex;
  gap: 0;
  width: 100%;
}

.contact-col {
  flex: 1;
  min-width: 0;
  padding: 0 20px;
}

.contact-col:not(:last-child) {
  border-right: 1px solid #e0e0e0;
}

.contact-col:first-child {
  padding-left: 0;
}

.contact-col:last-child {
  padding-right: 0;
}

.contact-item {
  align-items: center;
  border-top: 1px dotted #ccc;
  display: grid;
  font-size: 14px;
  gap: 5px;
  grid-template-columns: 200px 80px auto;
  line-height: 1.4;
  padding: 8px 0;
}

.contact-region {
  color: #666;
  white-space: nowrap;
}

/* 地区为空时，不显示顶部点线 */
.contact-item:has(.contact-region:empty) {
  border-top: none;
}

.contact-teacher {
  color: #333;
  white-space: nowrap;
}

.contact-phone {
  color: #7e0014;
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
}

.contact-divider {
  height: 1px;
  margin: 25px 0;
}

/* ==================== 微信公众号二维码弹窗 ==================== */
.wechat-modal {
  align-items: center;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  height: 100%;
  justify-content: center;
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  transition: opacity 0.3s ease;
  width: 100%;
  z-index: 2147483647;
}

.wechat-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.wechat-modal-content {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  padding: 20px;
  position: relative;
  text-align: center;
}

.wechat-modal-content img {
  display: block;
  height: 200px;
  margin-bottom: 10px;
  width: 200px;
}

.wechat-modal-content p {
  color: #333;
  font-size: 14px;
  margin: 0;
}

.wechat-modal-close {
  align-items: center;
  background-color: #7e0014;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  height: 30px;
  justify-content: center;
  position: absolute;
  right: -10px;
  top: -10px;
  transition: transform 0.2s ease;
  width: 30px;
}

.wechat-modal-close:hover {
  transform: scale(1.1);
}

.wechat-modal-close i {
  color: #fff;
  font-size: 14px;
}

/* ==================== 数字滚动动画 ==================== */
.counter {
  animation: count 2s ease-out forwards;
  counter-reset: num 0;
}

@keyframes count {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== 响应式调整 ==================== */
@media (max-width: 1200px) {
  .contact-item {
    gap: 8px;
    grid-template-columns: 120px 90px 1fr;
  }
}

@media (max-width: 992px) {
  .banner-carousel,
  .banner-carousel .carousel-item {
    height: 400px;
  }

  .banner-title {
    font-size: 36px;
  }

  .banner-subtitle {
    font-size: 20px;
  }

  .slider-item {
    flex: 0 0 33.333%;
  }

  .activity-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .activity-item:nth-child(1) {
    grid-column: span 2;
  }

  .sub-nav {
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
  }

  /* 数据板块改为单列 */
  .data-section {
    grid-template-columns: 1fr;
  }

  .horizontal-accordion {
    height: 400px;
  }

  /* 数据统计响应式 */
  .data-stats {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }

  /* 顶部副导航响应式 */
  .top-subnav .container {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .top-subnav a {
    margin-left: 0;
    margin-right: 15px;
  }

  .contact-section {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .banner-carousel,
  .banner-carousel .carousel-item {
    height: 200px;
  }

  .banner-title {
    font-size: 28px;
  }

  .banner-subtitle {
    font-size: 16px;
  }

  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 28px;
  }

  .timeline-date {
    font-size: 16px;
  }

  .xxjj-title {
    font-size: 22px;
  }

  .xxjj-text {
    font-size: 1.125rem;
  }

  .stat-item {
    min-width: 100px;
  }

  .stat-icon {
    font-size: 32px;
  }

  .stat-number {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .slider-item {
    flex: 0 0 50%;
  }

  .activity-item {
    height: 200px;
  }

  .float-btn {
    height: 50px;
    width: 50px;
  }

  .horizontal-accordion {
    height: 300px;
  }

  .accordion-title {
    font-size: 18px;
  }

  .activity-title {
    font-size: 18px;
  }

  .accordion-desc {
    font-size: 14px;
  }

  .footer-links li {
    float: left;
    width: 33.33%;
  }

  footer {
    padding: 30px 0 15px;
  }

  footer .col-lg-2.col-md-4.mb-5.mb-md-0 {
    margin-bottom: 1.5rem !important;
  }

  .contact-row {
    flex-direction: column;
    gap: 10px;
  }

  .contact-col {
    padding: 0;
  }

  .contact-col:not(:last-child) {
    border-right: none;
    padding-bottom: 10px;
  }

  .contact-item {
    align-items: flex-start;
    border-top: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    grid-template-columns: none;
    justify-content: space-between;
    padding: 6px 0;
  }

  .contact-item .contact-region,
  .contact-item .contact-teacher {
    flex-shrink: 0;
  }

  .contact-item .contact-phone {
    margin-left: auto;
    text-align: right;
  }

  .contact-region {
    font-weight: 500;
  }

  .about-media-grid {
    grid-template-columns: 1fr;
  }

  .video-overlay h3 {
    font-size: 18px;
  }

  .video-overlay h2 {
    font-size: 28px;
  }

  .about-media-item {
    min-height: 250px;
  }
}

@media (max-width: 576px) {
  .slider-item {
    flex: 0 0 100%;
  }

  .activity-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title {
    font-size: 24px;
  }

  .float-buttons {
    right: 15px;
  }

  .float-top {
    bottom: 15px;
    right: 15px;
  }

  .data-text,
  .data-stats {
    padding: 20px;
  }

  .data-text h3 {
    font-size: 22px;
  }

  .horizontal-accordion {
    flex-direction: column;
    height: 900px;
  }

  .accordion-panel:hover {
    flex: 1;
  }

  .accordion-overlay {
    padding: 15px;
    transform: translateY(0);
  }

  /* 数据统计移动端 */
  .data-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
