/* ========================================
   英迪国际大学中文官网 - 主样式文件
   主色调: #e10000 (红色)
   ======================================== */

/* 分类筛选标签 */
.filter-tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 10px 24px;
  background: var(--bg-light);
  color: var(--text);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.filter-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* 筛选内容隐藏 */
.filter-item {
  display: block;
}

.filter-item.hidden {
  display: none;
}

/* 通用隐藏类（课程 / 新闻卡片筛选共用） */
.hidden {
  display: none !important;
}

/* 详情页布局 */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}

.detail-main {
  min-width: 0;
}

.detail-sidebar {
  height: fit-content;
}

/* 课程详情页首图 */
.program-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.program-hero-image {
  height: 100%;
  min-height: 320px;
}

.program-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.program-hero-info {
  padding: 40px 40px 40px 0;
}

.program-hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.program-hero-info h2 {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 16px;
}

.program-hero-info p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 24px;
}

/* 详情内容区块 */
.detail-section {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
}

.detail-section h2 {
  font-size: 1.3rem;
  color: var(--secondary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-section h2 i {
  color: var(--primary);
}

.detail-section p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 12px;
}

/* 入学要求 */
.requirement-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.requirement-item h4 {
  font-size: 1rem;
  color: var(--secondary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.requirement-item ul {
  list-style: none;
}

.requirement-item ul li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: var(--text-light);
  font-size: 0.95rem;
}

.requirement-item ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

/* 课程结构 */
.course-structure {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.structure-year {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 24px;
}

.structure-year h4 {
  font-size: 1.1rem;
  color: var(--secondary);
  margin-bottom: 16px;
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}

.structure-year ul {
  list-style: none;
}

.structure-year ul li {
  padding: 8px 0;
  color: var(--text-light);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.structure-year ul li:last-child {
  border-bottom: none;
}

/* 职业标签 */
.career-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.career-tag {
  padding: 8px 16px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.9rem;
  color: var(--text);
  transition: var(--transition);
}

.career-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* 侧边栏 */
.sidebar-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.sidebar-card h4 {
  font-size: 1.1rem;
  color: var(--secondary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}

.sidebar-links {
  list-style: none;
}

.sidebar-links li {
  margin-bottom: 8px;
}

.sidebar-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  color: var(--text-light);
  font-size: 0.95rem;
  transition: var(--transition);
}

.sidebar-links a:hover {
  color: var(--primary);
  padding-left: 8px;
}

.sidebar-links i {
  color: var(--primary);
}

.cta-card {
  background: var(--text);
  color: #fff;
  text-align: center;
}

.cta-card h4 {
  color: #fff;
  border-bottom-color: var(--primary);
}

.cta-card p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

/* 新闻文章 */
.news-article {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.news-article-header {
  padding: 32px 32px 20px;
}

.news-tag-large {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.news-article-header h1 {
  font-size: 1.8rem;
  color: var(--secondary);
  line-height: 1.4;
  margin-bottom: 16px;
}

.news-article-meta {
  display: flex;
  gap: 20px;
  color: var(--text-lighter);
  font-size: 0.9rem;
}

.news-article-meta i {
  margin-right: 4px;
}

.news-article-image {
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.news-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-article-body {
  padding: 32px;
}

/* 富文本（TinyMCE）元素适配 */
.news-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 16px auto;
}
.news-article-body a {
  color: var(--primary);
  text-decoration: underline;
}
.news-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
.news-article-body table td,
.news-article-body table th {
  border: 1px solid #e2e6ef;
  padding: 8px 12px;
  font-size: 0.9rem;
}

.news-article-body p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.news-article-body h3 {
  font-size: 1.2rem;
  color: var(--secondary);
  margin: 24px 0 12px;
}

.news-article-body ul {
  margin: 16px 0;
  padding-left: 20px;
}

.news-article-body ul li {
  padding: 6px 0;
  color: var(--text-light);
  line-height: 1.6;
}

.news-article-body ol {
  margin: 16px 0;
  padding-left: 20px;
}

.news-article-body ol li {
  padding: 6px 0;
  color: var(--text-light);
  line-height: 1.6;
}

.news-article-body blockquote {
  margin: 16px 0;
  padding: 12px 18px;
  border-left: 4px solid var(--primary);
  background: #f5f8ff;
  color: var(--text-light);
  border-radius: 0 8px 8px 0;
}

.news-article-body pre {
  background: #f6f8fa;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  overflow-x: auto;
  font-family: Consolas, Menlo, monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #333;
  margin: 16px 0;
  white-space: pre-wrap;
}

.news-article-body hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

.news-article-footer {
  padding: 20px 32px;
  border-top: 1px solid var(--border);
}

.news-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.news-tags span {
  color: var(--text-lighter);
  font-size: 0.9rem;
}

.news-tags a {
  padding: 4px 12px;
  background: var(--bg-light);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-light);
  transition: var(--transition);
}

.news-tags a:hover {
  background: var(--primary);
  color: #fff;
}

/* 侧边栏新闻列表 */
.sidebar-news-list {
  list-style: none;
}

.sidebar-news-list li {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.sidebar-news-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sidebar-news-list a {
  display: block;
}

.sidebar-news-date {
  font-size: 0.8rem;
  color: var(--text-lighter);
  margin-bottom: 4px;
  display: block;
}

.sidebar-news-list p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
  transition: var(--transition);
}

.sidebar-news-list a:hover p {
  color: var(--primary);
}

/* 课程详情页首图 */
.program-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  margin-bottom: 40px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.program-hero-image {
  min-height: 360px;
}

.program-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.program-hero-info {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.program-hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 16px;
  width: fit-content;
}

.program-hero-info h2 {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 16px;
}

.program-hero-info p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.program-hero-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.program-hero-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-light);
  padding: 10px 14px;
  background: var(--bg-light);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.program-hero-meta i {
  color: var(--primary);
  font-size: 1.1rem;
}

/* 响应式 */
@media (max-width: 1024px) {
  .program-hero {
    grid-template-columns: 1fr;
  }
  
  .program-hero-image {
    min-height: 240px;
  }
  
  .program-hero-info {
    padding: 28px;
  }
  
  .detail-layout {
    grid-template-columns: 1fr;
  }
  
  .detail-sidebar {
    order: 2;
  }
  
  .requirement-list {
    grid-template-columns: 1fr;
  }
  
  .course-structure {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .detail-section {
    padding: 24px;
  }
  
  .news-article-header h1 {
    font-size: 1.4rem;
  }
  
  .news-article-image {
    height: 250px;
  }
  
  .news-article-meta {
    flex-wrap: wrap;
    gap: 10px;
  }
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
}

.page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.page-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.page-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* CSS 变量 */
:root {
  --primary: #e10000;
  --primary-dark: #b80000;
  --primary-light: #ff3333;
  --secondary: #1a1a1a;
  --text: #333333;
  --text-light: #666666;
  --text-lighter: #999999;
  --bg: #ffffff;
  --bg-light: #f8f8f8;
  --bg-dark: #1a1a1a;
  --border: #e5e5e5;
  --shadow: 0 2px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.12);
  --transition: all 0.3s ease;
  --radius: 8px;
  --radius-lg: 16px;
  --max-width: 1200px;
}

/* 重置 */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* 容器 */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   顶部信息栏
   ======================================== */
.top-bar {
  background: var(--secondary);
  color: #fff;
  font-size: 0.85rem;
  padding: 8px 0;
}

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

.top-bar-left {
  display: flex;
  gap: 20px;
  align-items: center;
}

.top-bar-left span {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.9;
}

.top-bar-left i {
  color: var(--primary);
}

.top-bar-right {
  display: flex;
  gap: 15px;
  align-items: center;
}

.lang-switch {
  display: flex;
  gap: 10px;
}

.lang-switch a {
  opacity: 0.7;
  font-size: 0.8rem;
}

.lang-switch a.active,
.lang-switch a:hover {
  opacity: 1;
  color: var(--primary);
}

.auth-switch {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-switch a {
  opacity: 0.85;
  font-size: 0.85rem;
  color: #fff;
}

.auth-switch a:hover {
  opacity: 1;
  color: var(--primary);
}

.auth-switch .auth-sep {
  opacity: 0.4;
  font-size: 0.8rem;
  color: #fff;
}

.auth-msg {
  position: relative;
}

.auth-msg-badge {
  position: absolute;
  top: -9px;
  right: -13px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-style: normal;
  font-size: 0.7rem;
  line-height: 16px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* ========================================
   导航栏
   ======================================== */
/* 顶部信息栏 + 导航栏整体吸顶悬浮（公共模板 #site-header） */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* 滚动后悬浮阴影（.scrolled 由 site-common.js 在滚动时添加） */
#site-header.scrolled {
  box-shadow: 0 2px 12px rgba(26, 26, 46, 0.12);
}

.navbar {
  background: var(--bg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 45px;
  width: auto;
}

.nav-menu {
  display: flex;
  gap: 0;
  align-items: center;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: block;
  padding: 0 18px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  line-height: 70px;
  position: relative;
}

.nav-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--primary);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-menu > li:hover > a::after,
.nav-menu > li > a.active::after {
  width: 60%;
}

.nav-menu > li:hover > a,
.nav-menu > li > a.active {
  color: var(--primary);
}

/* 下拉菜单 */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg);
  min-width: 200px;
  box-shadow: var(--shadow-hover);
  border-radius: 0 0 var(--radius) var(--radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  border-top: 3px solid var(--primary);
}

.nav-menu > li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 12px 20px;
  font-size: 0.9rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.dropdown li:last-child a {
  border-bottom: none;
}

.dropdown li a:hover {
  background: var(--bg-light);
  color: var(--primary);
  padding-left: 25px;
}

/* 申请按钮 */
.btn-apply {
  background: var(--primary);
  color: #fff !important;
  padding: 10px 24px !important;
  border-radius: 30px;
  font-weight: 600;
  transition: var(--transition);
  line-height: 1.5 !important;
}

.btn-apply:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(225,0,0,0.3);
}

.btn-apply::after {
  display: none !important;
}

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* ========================================
   轮播图 Hero
   ======================================== */
.hero-slider {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
}

.slide.active {
  opacity: 1;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-color: #1a1a2e; /* 图片加载完成前的深色兜底，避免首次访问显示白色区块 */
}

.slide-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  color: #fff;
  padding: 0 20px;
}

.slide-content h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.slide-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
  line-height: 1.8;
}

.slide-btns {
  display: flex;
  gap: 15px;
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(225,0,0,0.4);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: #fff;
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

/* 轮播指示器 */
.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--primary);
  width: 30px;
  border-radius: 6px;
}

/* ========================================
   数据统计栏
   ======================================== */
.stats-bar {
  background: var(--primary);
  padding: 40px 0;
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.stat-item p {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* ========================================
   区块标题
   ======================================== */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-label {
  display: inline-block;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 15px;
}

.section-desc {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   关于我们区块
   ======================================== */
.section-about {
  padding: 80px 0;
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  border: 4px solid var(--primary);
  border-radius: var(--radius);
  z-index: -1;
}

.about-content h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--secondary);
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 25px 0;
}

.about-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.about-features li i {
  color: var(--primary);
  font-size: 1.2rem;
}

/* ========================================
   课程卡片
   ======================================== */
.section-programs {
  padding: 80px 0;
  background: var(--bg-light);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.program-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.program-image {
  height: 180px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 3rem;
  overflow: hidden;
}

.program-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.program-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.program-tag {
  display: inline-block;
  background: rgba(225,0,0,0.1);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
  /* flex 容器内保持胶囊自适应宽度，不被拉成整行 */
  align-self: flex-start;
}

.program-info h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--secondary);
}

.program-info p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.6;
  /* 简介由渲染层按 120 字截断，此处只做溢出兜底；min-height 为短简介下限，避免留白过多 */
  flex: 1;
  overflow: hidden;
  min-height: 4.32rem;
}

.program-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.program-meta span {
  font-size: 0.85rem;
  color: var(--text-lighter);
}

.program-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.program-link:hover {
  gap: 10px;
}

/* ========================================
   为什么选择我们
   ======================================== */
.section-why {
  padding: 80px 0;
  background: var(--bg);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.why-card {
  text-align: center;
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.why-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.why-icon {
  width: 70px;
  height: 70px;
  background: rgba(225,0,0,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--primary);
  font-size: 1.8rem;
}

.why-card h4 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--secondary);
}

.why-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ========================================
   校区展示
   ======================================== */
.section-campuses {
  padding: 80px 0;
  background: var(--bg-light);
}

.campuses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.campus-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 280px;
  cursor: pointer;
}

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

.campus-card:hover img {
  transform: scale(1.1);
}

.campus-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px 20px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: #fff;
  transition: var(--transition);
}

.campus-card:hover .campus-overlay {
  padding-bottom: 30px;
}

.campus-overlay h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.campus-overlay p {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ========================================
   新闻动态
   ======================================== */
.section-news {
  padding: 80px 0;
  background: var(--bg);
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.news-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-light);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.news-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.news-image {
  border-radius: var(--radius);
  overflow: hidden;
  height: 140px;
}

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

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-tag {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  margin-bottom: 8px;
}

.news-content h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--secondary);
  line-height: 1.4;
}

.news-date {
  font-size: 0.85rem;
  color: var(--text-lighter);
}

/* ========================================
   CTA 区块
   ======================================== */
.section-cta {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--secondary) 0%, #2d2d2d 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(225,0,0,0.15) 0%, transparent 70%);
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.cta-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 30px;
}

/* ========================================
   页脚
   ======================================== */
.footer {
  background: var(--secondary);
  color: #fff;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img {
  height: 40px;
  margin-bottom: 15px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.7;
  line-height: 1.8;
}

.footer-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #fff;
}

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

.footer-links a {
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--primary);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer-contact i {
  color: var(--primary);
  margin-top: 3px;
}

.footer-wechat-item { display: none; flex-direction: column; }
.footer-wechat-item i { margin-bottom: 6px; }
.footer-wechat-qr { width: 110px; height: 110px; background: #fff; border-radius: var(--radius); padding: 8px; }
.footer-icp { margin-left: 12px; opacity: 0.7; }

.footer-qr {
  text-align: center;
}

.footer-qr img {
  width: 120px;
  height: 120px;
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 10px;
  padding: 10px;
}

.footer-qr p {
  font-size: 0.85rem;
  opacity: 0.7;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

.footer-bottom a:hover {
  opacity: 1;
  color: var(--primary);
}

/* ========================================
   页面标题横幅
   ======================================== */
.page-banner {
  height: 300px;
  background: linear-gradient(135deg, var(--secondary) 0%, #2d2d2d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 50%, rgba(225,0,0,0.2) 0%, transparent 50%);
}

.page-banner h1 {
  font-size: 2.5rem;
  position: relative;
  z-index: 1;
}

.breadcrumb-wrap {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.breadcrumb-wrap .breadcrumb {
  margin-top: 0;
}

.breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.9rem;
  opacity: 0.8;
}

.breadcrumb a:hover {
  color: var(--primary);
}

/* ========================================
   内容区块
   ======================================== */
.section-content {
  padding: 60px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
}

.sidebar {
  position: sticky;
  top: 90px;
  height: fit-content;
}

.sidebar-menu {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border);
}

.sidebar-menu li {
  margin-bottom: 5px;
}

.sidebar-menu a {
  display: block;
  padding: 10px 15px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: var(--transition);
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  background: var(--primary);
  color: #fff;
}

.main-content h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--secondary);
}

.main-content p {
  margin-bottom: 15px;
  line-height: 1.8;
  color: var(--text-light);
}

/* ========================================
   联系表单
   ======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.contact-details {
  margin-top: 30px;
}

.contact-item {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-item i {
  width: 50px;
  height: 50px;
  background: rgba(225,0,0,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.contact-item p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.contact-wechat-qr {
  display: block;
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-top: 6px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #fff;
  padding: 6px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(225,0,0,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ========================================
   申请表单
   ======================================== */
.apply-form {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-section {
  margin-bottom: 30px;
}

.form-section h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  color: var(--secondary);
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .campuses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .nav-menu > li > a {
    padding: 0 12px;
    font-size: 0.88rem;
  }
  
  .btn-apply {
    padding: 8px 18px !important;
  }
}

@media (max-width: 900px) {
  .nav-menu > li > a {
    padding: 0 8px;
    font-size: 0.82rem;
  }
  
  .btn-apply {
    padding: 6px 14px !important;
    font-size: 0.82rem;
  }
  
  .logo img {
    height: 38px;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg);
    flex-direction: column;
    padding: 20px;
    transition: left 0.3s ease;
    overflow-y: auto;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu > li {
    width: 100%;
  }
  
  .nav-menu > li > a {
    line-height: 50px;
    border-bottom: 1px solid var(--border);
  }
  
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    display: none;
    padding-left: 20px;
  }
  
  .nav-menu > li:hover .dropdown {
    display: block;
  }
  
  .hero-slider {
    height: 500px;
  }
  
  .slide-content h2 {
    font-size: 2rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    order: -1;
  }
  
  .programs-grid {
    grid-template-columns: 1fr;
  }
  
  .why-grid {
    grid-template-columns: 1fr;
  }
  
  .campuses-grid {
    grid-template-columns: 1fr;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .news-card {
    grid-template-columns: 1fr;
  }
  
  .news-image {
    height: 200px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: static;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .slide-btns {
    flex-direction: column;
  }
  
  .btn-primary,
  .btn-outline {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-slider {
    height: 450px;
  }
  
  .slide-content h2 {
    font-size: 1.6rem;
  }
  
  .slide-content p {
    font-size: 0.95rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  
  .stat-item h3 {
    font-size: 1.8rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .about-features {
    grid-template-columns: 1fr;
  }
  
  .cta-content h2 {
    font-size: 1.8rem;
  }
  
  .page-banner h1 {
    font-size: 1.8rem;
  }
  
  .apply-form {
    padding: 25px;
  }
}

/* ========================================
   动画
   ======================================== */
/* 滚动显示 */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 前端动态加载：消息提示 / 空状态 / 加载状态 ===== */
.form-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.6;
  display: none;
}
.form-message.show { display: block; }
.form-message.success {
  background: #e8f7ee;
  color: #1a7f37;
  border: 1px solid #b7e4c7;
}
.form-message.error {
  background: #fdecea;
  color: #c0392b;
  border: 1px solid #f5c6c0;
}
.empty-state,
.loading-state {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-light);
  padding: 40px 20px;
  font-size: 0.95rem;
}

