/* ============================================================
   南宁市百艺通培训学校 - 全局样式
   设计规范：蓝主色 + 橙辅色 | 扁平化 | 响应式 | 最小16px字体
   ============================================================ */

/* --- CSS 变量 / 设计令牌 --- */
:root {
  --primary: #1a56db;
  --primary-light: #3b82f6;
  --primary-dark: #1e40af;
  --accent: #ea580c;
  --accent-light: #f97316;
  --accent-dark: #c2410c;
  --text: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --bg: #ffffff;
  --bg-secondary: #f1f5f9;
  --bg-accent: #fff7ed;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --white: #ffffff;
  --footer-bg: #1a2332;
  --footer-text: #94a3b8;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --transition: 200ms ease;
  --max-width: 1200px;
}

/* --- 深色模式变量（已删除） --- */

/* --- 重置 --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Source Sans 3", "PingFang SC", "Microsoft YaHei", "微软雅黑", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea { font: inherit; }

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

/* --- 头部导航 --- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.header-top {
  display: none;
  background: var(--primary);
  color: var(--white);
  font-size: 14px;
  padding: 6px 0;
}
.header-top .container { display: flex; justify-content: space-between; align-items: center; }
.header-top a { color: var(--white); }
.header-top a:hover { color: #fcd9b8; }
.header-main { height: 64px; }
.header-main .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }

/* --- Logo --- */
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800;
}
/* Logo图片样式 */
.logo img {
  width: 100%;
  height: 45px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.logo-text { padding-left: 12px; position: relative; width: 100%; font-weight: 700; }
.logo-text::after{content: '';position: absolute;left: 0;top: 50%;width: 1px;height: 70%;background-color: #b5b5b5;transform: translateY(-50%);}
.logo-text .name { font-size: 16px; color: var(--primary); line-height: 1.2; }
.logo-text .sub { font-size: 13px; color: var(--text-muted); }
/* 移动端Logo高度调整 */
@media (max-width: 768px) {
  .logo img {
    height: 35px;
  }
  .logo-text { display: none; }
}
/* --- 桌面导航 --- */
.nav-desktop { display: none; gap: 4px; }
.nav-desktop a {
  display: inline-flex; align-items: center;
  padding: 5px 10px; border-radius: var(--radius-xs);
  font-size: 16px; font-weight: 600;
  transition: all var(--transition);
}
.nav-desktop a:hover,
.nav-desktop a.active { background: var(--primary); color: var(--white); }

/* 导航下拉菜单 */
.nav-item {
  position: relative;
}

.nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-item > a::after {
  content: '▾';
  font-size: 12px;
  transition: transform var(--transition);
}

.nav-item:hover > a::after {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition);
  z-index: 200;
}

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

.nav-dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 15px;
  color: var(--text);
  border-radius: 0;
}

.nav-dropdown a:hover {
  background: var(--bg-secondary);
  color: var(--primary);
}

/* --- 移动端菜单按钮 --- */
.nav-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  font-size: 24px; color: var(--primary);
}
.nav-toggle:hover { background: var(--bg-secondary); }

/* --- 移动端菜单 --- */
.nav-mobile {
  display: none; border-top: 1px solid var(--border);
  padding: 8px 0;
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block; padding: 14px 20px; font-size: 16px; font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.nav-mobile a:hover,
.nav-mobile a.active { background: var(--primary); color: var(--white); }

/* 移动端二级菜单 */
.nav-mobile .nav-item > a {
  position: relative;
}

.nav-mobile .nav-item > a::after {
  content: '▸';
  position: absolute;
  right: 20px;
  transition: transform var(--transition);
}

.nav-mobile .nav-item.open > a::after {
  transform: rotate(90deg);
}

.nav-mobile .nav-dropdown {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  box-shadow: none;
  border: none;
  background: var(--bg-secondary);
  display: none;
  margin: 4px 0;
}

.nav-mobile .nav-item.open .nav-dropdown {
  display: block;
}

.nav-mobile .nav-dropdown a {
  padding-left: 40px;
  font-size: 15px;
  background: transparent;
}

.nav-mobile .nav-dropdown a:hover {
  background: var(--primary);
  color: var(--white);
}

/* --- 页面 Banner --- */
.page-banner {
  position: relative; height: 200px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}
.page-banner-content {
  position: relative; z-index: 1; text-align: center;
}
.page-banner h1 {
  font-size: 28px; font-weight: 800; color: var(--white); letter-spacing: 2px;
}
.page-banner p {
  font-size: 16px; color: rgba(255,255,255,0.8); margin-top: 8px;
}

/* --- 面包屑 --- */
.breadcrumb {
  background: var(--bg-secondary); border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.breadcrumb .container { font-size: 14px; color: var(--text-muted); }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--text); font-weight: 600; }

/* --- 区块标题 --- */
.section {
  padding: 48px 0;
}
.section-gray { background: var(--bg-secondary); }
.section-title {
  text-align: center; margin-bottom: 32px;
}
.section-title h2 {
  font-size: 26px; font-weight: 800; color: var(--text);
  position: relative; display: inline-block; padding-bottom: 12px;
}
.section-title h2::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 50px; height: 4px; background: var(--accent); border-radius: 2px;
}
.section-title p {
  margin-top: 12px; font-size: 16px; color: var(--text-secondary); max-width: 600px; margin-left: auto; margin-right: auto;
}
.section-title-left { text-align: left; }
.section-title-left h2::after { left: 0; transform: none; }

/* --- 按钮 --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-xs);
  font-size: 16px; font-weight: 700; white-space: nowrap;
  transition: all var(--transition);
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: var(--white); color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-lg { padding: 16px 36px; font-size: 18px; }
.btn-sm { padding: 8px 20px; font-size: 14px; }

/* --- 卡片 --- */
.card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-body { padding: 20px; }

/* --- 网格系统 --- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

/* --- 首页轮播 --- */
.hero {
  position: relative; height: 400px; overflow: hidden; background: #1a2332;
}
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s;
}
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after {
  content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.45);
}
.hero-content {
  position: absolute; inset: 0; display: flex; align-items: center; z-index: 1;
}
.hero-text { max-width: 560px; }
.hero-text h2 { font-size: 32px; font-weight: 800; color: var(--white); line-height: 1.2; }
.hero-text p { font-size: 17px; color: rgba(255,255,255,0.85); margin-top: 12px; line-height: 1.5; }
.hero-text .btn { margin-top: 20px; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.2); color: var(--white);
  font-size: 20px; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.hero-arrow:hover { background: rgba(255,255,255,0.4); }
.hero-arrow-prev { left: 16px; }
.hero-arrow-next { right: 16px; }
.hero-dots {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 2;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.4); transition: all var(--transition);
}
.hero-dot.active { background: var(--accent); width: 28px; border-radius: 20px; }

/* --- 信息行 --- */
.info-row {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px; border-radius: var(--radius-sm);
  background: var(--bg-secondary);
}
.info-row-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.info-row-icon.blue { background: rgba(26,86,219,0.1); color: var(--primary); }
.info-row-icon.orange { background: rgba(234,88,12,0.1); color: var(--accent); }
.info-row-icon.green { background: rgba(22,163,74,0.1); color: #16a34a; }
.info-row-icon.purple { background: rgba(147,51,234,0.1); color: #9333ea; }
.info-row-text h4 { font-size: 17px; font-weight: 700; }
.info-row-text p { font-size: 16px; color: var(--text-secondary); margin-top: 2px; }

/* --- 取证流程步骤 --- */
.steps { counter-reset: step; }
.step-item {
  position: relative; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); transition: all var(--transition);
}
.step-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.step-num {
  position: absolute; top: -12px; right: -12px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
  box-shadow: var(--shadow-md);
}
.step-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  background: rgba(234,88,12,0.1); display: flex;
  align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 14px;
}
.step-item h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.step-item p { font-size: 16px; color: var(--text-secondary); }

/* --- 统计数字 --- */
.stat-item { text-align: center; padding: 16px; border-radius: var(--radius-sm); background: var(--bg-secondary); }
.stat-value { font-size: 26px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

/* --- 证书卡片 --- */
.cert-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); transition: all var(--transition);
}
.cert-card:hover { box-shadow: var(--shadow-lg); }
.cert-icon {
  width: 56px; height: 56px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 16px;
}
.cert-icon.blue { background: rgba(26,86,219,0.1); color: var(--primary); }
.cert-icon.orange { background: rgba(234,88,12,0.1); color: var(--accent); }
.cert-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.cert-card .desc { font-size: 16px; color: var(--text-secondary); margin-bottom: 12px; }
.cert-list li {
  font-size: 16px; padding: 3px 0; padding-left: 16px;
  position: relative;
}
.cert-list li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
}
.cert-validity {
  margin-top: 14px; padding: 10px; background: var(--bg-secondary);
  border-radius: var(--radius-sm); font-size: 14px; color: var(--text-muted);
}

/* --- 表单 --- */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: 16px; font-weight: 700; margin-bottom: 6px;
}
.form-label .required { color: #dc2626; }
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 12px 16px; border: 2px solid var(--border);
  border-radius: var(--radius-sm); font-size: 16px;
  color: var(--text); background: var(--white);
  transition: border-color var(--transition);
  -webkit-appearance: none; appearance: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none; border-color: var(--primary);
}
.form-textarea { min-height: 120px; resize: vertical; }

/* --- 告示/提醒 --- */
.alert {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 20px; border-radius: var(--radius-sm);
  font-size: 16px; line-height: 1.6;
}
.alert-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.alert-warning { background: #fef3c7; border: 1px solid #fcd34d; color: #92400e; }

/* --- 新闻列表 --- */
.news-item {
  padding: 20px; border-bottom: 1px solid var(--border-light);
  transition: background var(--transition);
}
.news-item:hover { background: var(--bg-secondary); }
.news-meta { display: flex; gap: 12px; margin-bottom: 8px; }
.news-cat {
  display: inline-block; padding: 2px 12px; border-radius: 20px;
  font-size: 13px; font-weight: 600;
  background: rgba(26,86,219,0.1); color: var(--primary);
}
.news-date { font-size: 13px; color: var(--text-muted); }
.news-item h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.news-item h3:hover { color: var(--primary); }
.news-item p { font-size: 16px; color: var(--text-secondary); line-height: 1.6; }

/* --- 图片画廊 --- */
.gallery { display: grid; gap: 12px; }
.gallery-4 { grid-template-columns: repeat(2, 1fr); }
.gallery-item {
  border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: var(--shadow); aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.gallery-item:hover img { transform: scale(1.05); }

/* --- 学员感言 --- */
.testimonial {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow);
}
.testimonial-stars { color: var(--accent); font-size: 18px; margin-bottom: 10px; }
.testimonial-text { font-size: 16px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800;
}
.testimonial-name { font-size: 16px; font-weight: 700; }
.testimonial-course { font-size: 14px; color: var(--text-muted); }

/* --- 友情链接 --- */
.friend-links {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: 12px;
}
.friend-links .label { font-size: 16px; font-weight: 700; color: var(--text-secondary); }
.friend-links a {
  font-size: 16px; color: var(--text-secondary); text-decoration: underline;
  text-underline-offset: 4px; transition: color var(--transition);
}
.friend-links a:hover { color: var(--primary); }

/* ============================================================
   新增样式：主题切换、侧边栏、页脚社交、新闻列表、证书轮播等
   ============================================================ */

/* 主题切换按钮（已删除） */

/* 侧边栏弹出样式改进 */
.sidebar-popup {
  min-width: 220px;
  padding: 20px;
}
.sidebar-popup .popup-qr {
  width: 160px;
  height: 160px;
}
.popup-phone-card {
  text-align: center;
}
.popup-phone-link {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  transition: color 0.2s;
}
.popup-phone-link:last-of-type {
  border-bottom: none;
}
.popup-phone-link:hover {
  color: var(--primary-light);
}

/* 页脚社交媒体 */
.footer-social {
  text-align: center;
}
.social-cards {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.social-card {
  text-align: center;
}
.social-qr {
  width: 102px;
  height: 102px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 8px;
}
.social-qr img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.social-label {
  font-size: 13px;
  color: var(--white);
}

/* 新闻列表 - 带缩略图 */
.news-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition);
}
.news-item:hover {
  background: var(--bg-secondary);
}
.news-thumb {
  width: 200px;
  height: 130px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-secondary);
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.news-item:hover .news-thumb img {
  transform: scale(1.05);
}
.news-content {
  flex: 1;
  min-width: 0;
}
.news-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}
.news-cat {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(26,86,219,0.1);
  color: var(--primary);
}
.news-date {
  font-size: 13px;
  color: var(--text-muted);
}
.news-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.5;
}
.news-item h3:hover {
  color: var(--primary);
}
.news-item p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* 无缩略图时的样式 */
.news-item.no-thumb {
  display: block;
}
.news-item.no-thumb .news-content {
  width: 100%;
}

/* 响应式 - 新闻列表 */
@media (max-width: 768px) {
  .news-item {
    flex-direction: column;
  }
  .news-thumb {
    width: 100%;
    height: 180px;
  }
}

/* 证书样本轮播 */
.cert-slider {
  position: relative;
  overflow: hidden;
}
.cert-slider-track {
  display: flex;
  transition: transform 0.5s ease;
}
.cert-slide {
  flex: 0 0 auto;
  width: 280px;
  margin-right: 20px;
}
.cert-slide img {
  width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

/* 友情链接重排版 - 卡片式布局 */
.friend-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

/* 友情链接卡片 */
.friend-link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--border);
}

.friend-link-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.friend-link-icon {
  font-size: 36px;
  flex-shrink: 0;
}

.friend-link-info h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.friend-link-info p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* 开班公告列表样式 */
.notice-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.notice-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--border);
}

.notice-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  transform: translateX(4px);
}

.notice-date {
  flex-shrink: 0;
  width: 70px;
  text-align: center;
  padding: 8px;
  background: var(--bg-secondary);
  border-radius: var(--radius-xs);
}

.notice-date .day {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.notice-date .month {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.notice-content h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.notice-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Tab切换 --- */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 12px 0; }
.tabs a {
  padding: 10px 20px; border-radius: var(--radius-xs);
  font-size: 16px; font-weight: 700; white-space: nowrap;
  background: var(--bg-secondary); color: var(--text);
  transition: all var(--transition);
}
.tabs a.active,
.tabs a:hover { background: var(--primary); color: var(--white); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* --- 培训课程块 --- */
.course-block {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); margin-bottom: 28px;
}
.course-img { height: 220px; }
.course-img img { width: 100%; height: 100%; object-fit: cover; }
.course-body { padding: 24px; }
.course-body h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.course-features { margin-bottom: 16px; }
.course-features li {
  font-size: 16px; padding: 4px 0 4px 22px;
  position: relative;
}
.course-features li::before {
  content: '✓'; position: absolute; left: 0; top: 4px;
  color: #16a34a; font-weight: 700;
}
.course-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; }
.course-meta span { font-size: 15px; color: var(--text-muted); }

/* --- 页脚 --- */
.footer {
  background: var(--footer-bg); color: var(--footer-text);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid; gap: 36px; padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col h3 {
  font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 16px;
}
.footer-col li {
  font-size: 16px; padding: 4px 0;
}
.footer-col a { color: var(--footer-text); transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-col p { font-size: 16px; line-height: 1.7; }
.footer-address li {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 6px 0; font-size: 16px;
}
.footer-address .icon { margin-top: 2px; flex-shrink: 0; color: var(--accent-light); }

/* 页脚微信二维码列（用户需求：网站底部增加个人微信二维码） */
.footer-qr {
  text-align: center;
}
.footer-qr-img {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: var(--shadow);
  margin: 0 auto 10px;
  background: var(--white);
}
.footer-qr-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.footer-qr .qr-title {
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
}
.footer-qr p {
  font-size: 13px;
  color: var(--footer-text);
  line-height: 1.5;
}

.footer-bottom {
  text-align: center; padding: 20px 0; font-size: 14px;
}
.footer-bottom p { margin-bottom: 4px; }
.footer-bottom a { color: var(--footer-text); }
.footer-bottom a:hover { color: var(--white); }

/* --- 回到顶部 --- */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 99;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  font-size: 22px; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: all var(--transition);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); }

/* --- 透明 Banner 背景图支持 --- */
.banner-bg-building {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  background-size: cover; background-position: center;
}

/* ============================================================
   二级页面 Banner 背景图（用户需求：导航菜单下方展示Banner图）
   ============================================================ */
/* 带 background-image 的 Banner 容器 */
.page-banner.page-banner-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* 默认空 background-image，由各页面内联 style 指定 */
}
/* 渐变遮罩层：保证文字在背景图上始终清晰可读 */
.page-banner.page-banner-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  /* 蓝色主调半透明遮罩，与品牌色统一 */
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.85), rgba(26, 86, 219, 0.78));
  z-index: 0;
}
/* 遮罩下的内容层级提升 */
.page-banner.page-banner-bg .page-banner-content {
  position: relative;
  z-index: 1;
}

/* ============================================================
   右侧浮动侧边栏（用户需求：微信二维码 + 联系电话）
   ============================================================ */
.floating-sidebar {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* 移动端默认隐藏，避免遮挡内容 */
  display: none;
}
/* 侧边栏单个按钮 */
.sidebar-btn {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  overflow: visible;
}
.sidebar-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateX(-4px);
}
.sidebar-btn:hover svg {
  color: var(--white);
}
.sidebar-btn svg {
  width: 26px;
  height: 26px;
  color: var(--primary);
  transition: color var(--transition);
}
.sidebar-btn.btn-phone svg {
  color: var(--accent);
}
.sidebar-btn.btn-phone:hover svg {
  color: var(--white);
}
.sidebar-btn.btn-phone:hover {
  background: var(--accent);
  border-color: var(--accent);
}
/* 悬停弹出卡片 */
.sidebar-popup {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  min-width: 180px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  pointer-events: none;
}
.sidebar-btn:hover .sidebar-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
}
.sidebar-popup .popup-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.sidebar-popup .popup-qr {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  margin: 0 auto;
  border: 1px solid var(--border);
}
.sidebar-popup .popup-qr img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sidebar-popup .popup-tip {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}
.sidebar-popup .popup-phone {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  display: block;
  margin-top: 4px;
}
/* 弹窗指示小三角 */
.sidebar-popup::after {
  content: '';
  position: absolute;
  right: -7px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 7px solid var(--white);
}

/* 桌面端显示侧边栏 */
@media (min-width: 1024px) {
  .floating-sidebar { display: flex; }
}
/* 手机端：底部固定操作栏替代右侧浮动侧边栏 */
.mobile-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  display: flex;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
}
.mobile-action-bar a {
  flex: 1;
  padding: 12px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  transition: background var(--transition);
}
.mobile-action-bar a:active { background: var(--bg-secondary); }
.mobile-action-bar svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}
.mobile-action-bar .action-phone svg { color: var(--accent); }
.mobile-action-bar .action-phone {
  background: var(--accent);
  color: var(--white);
}
.mobile-action-bar .action-phone svg { color: var(--white); }
/* 移动端 body 下边距：避免被底部操作栏遮挡内容（已移除底部工具栏，保留类名供兼容） */
@media (max-width: 1023px) {
  body.has-mobile-bar .back-to-top { bottom: 24px; }
}

/* ============================================================
   新闻列表分页组件（用户需求：新闻资讯页缺少分页）
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 36px;
  flex-wrap: wrap;
}
/* 单个分页按钮 */
.pagination button,
.pagination a {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-xs);
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}
.pagination button:hover,
.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
}
/* 当前页激活态 */
.pagination .active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  cursor: default;
}
.pagination .active:hover {
  background: var(--primary);
  color: var(--white);
}
/* 禁用态（上一页/下一页到边界时） */
.pagination .disabled {
  color: var(--text-muted);
  cursor: not-allowed;
  background: var(--bg-secondary);
}
.pagination .disabled:hover {
  border-color: var(--border);
  color: var(--text-muted);
  background: var(--bg-secondary);
}
/* 省略号 */
.pagination .ellipsis {
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: default;
  padding: 0 4px;
}
.pagination .ellipsis:hover {
  border: none;
  background: transparent;
  color: var(--text-muted);
}

/* ============================================================
   新闻详情页样式（用户需求：缺少新闻详情页）
   ============================================================ */
/* 详情页文章容器 */
.news-article {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 32px;
}
/* 详情页头部：分类+标题+元信息 */
.article-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 20px;
  margin-bottom: 24px;
}
.article-cat {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  background: rgba(26, 86, 219, 0.1);
  color: var(--primary);
  margin-bottom: 12px;
}
.article-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 12px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--text-muted);
}
.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
/* 详情页正文内容 */
.article-body {
  font-size: 17px;
  line-height: 1.9;
  color: var(--text);
}
.article-body p {
  margin-bottom: 16px;
}
.article-body h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 24px 0 12px;
  color: var(--text);
}
.article-body img {
  width: 100%;
  max-width: 800px;
  border-radius: var(--radius-sm);
  margin: 16px auto;
}
.article-body ul,
.article-body ol {
  margin: 12px 0 16px 20px;
}
.article-body ul li,
.article-body ol li {
  list-style: disc;
  margin-bottom: 6px;
}
.article-body ol li {
  list-style: decimal;
}
/* 详情页底部：上下篇导航 */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}
.article-nav a {
  display: block;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  transition: all var(--transition);
}
.article-nav a:hover {
  border-color: var(--primary);
  background: var(--white);
}
.article-nav .nav-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.article-nav .nav-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
}
.article-nav .nav-next {
  text-align: right;
}
/* 详情页返回按钮 */
.article-back {
  margin-bottom: 16px;
}
/* 详情页加载状态 */
.article-loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 16px;
}
.article-loading::before {
  content: '⏳';
  display: block;
  font-size: 40px;
  margin-bottom: 12px;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
/* 详情页未找到提示 */
.article-not-found {
  text-align: center;
  padding: 60px 20px;
}
.article-not-found h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.article-not-found p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* 平板及以下：详情页容器内边距缩小 */
@media (max-width: 640px) {
  .news-article { padding: 20px; }
  .article-title { font-size: 22px; }
  .article-body { font-size: 16px; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav .nav-next { text-align: left; }
}

/* --- 响应式: 平板 --- */
@media (min-width: 640px) {
  .hero { height: 460px; }
  .hero-text h2 { font-size: 40px; }
  .hero-text p { font-size: 18px; }
  .gallery-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .page-banner { height: 240px; }
  .page-banner h1 { font-size: 34px; }
}

/* --- 响应式: 桌面 --- */
@media (min-width: 1024px) {
  .header-top { display: block; }
  .header-main { height: 76px; }
  .logo-text { display: block; }
  .logo-icon { width: 50px; height: 50px; font-size: 22px; }
  .nav-desktop { display: flex; gap: 2px; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
  .hero { height: 520px; }
  .hero-text h2 { font-size: 48px; }
  .hero-text p { font-size: 19px; }
  .gallery-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .page-banner { height: 280px; }
  .page-banner h1 { font-size: 40px; }
  .course-block { display: grid; grid-template-columns: 1fr 1fr; }
  .course-img { height: auto; }
  .footer-grid { grid-template-columns: 2fr 1.5fr 1.5fr; }
}

/* --- 响应式: 大屏 --- */
@media (min-width: 1280px) {
  .hero { height: 560px; }
}

/* --- 动画 --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fadeInUp 0.6s ease forwards; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.nav-mobile.open { animation: slideDown 0.2s ease; }

/* ============================================================
   学员风采 2 行轮播展示模块
   ============================================================ */

/* 轮播容器 */
.showcase-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

/* 单页轮播 */
.showcase-slide {
  display: none;
  animation: fadeInUp 0.4s ease;
}
.showcase-slide.active {
  display: block;
}

/* 2 行 x 4 列网格 */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 640px) {
  .showcase-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 单项展示卡片 */
.showcase-item {
  display: block;
  text-decoration: none;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-secondary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.showcase-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.showcase-img {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.showcase-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.showcase-item:hover .showcase-img img {
  transform: scale(1.08);
}

/* 悬浮遮罩层 */
.showcase-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  padding: 30px 12px 10px;
  color: #fff;
  transform: translateY(3px);
  transition: transform 0.3s ease;
}
.showcase-item:hover .showcase-overlay {
  transform: translateY(0);
}
.showcase-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 640px) {
  .showcase-title {
    font-size: 15px;
  }
}

/* 左右切换按钮 */
.showcase-prev,
.showcase-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  border: none;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: var(--shadow);
  transition: background 0.2s ease, transform 0.2s ease;
  opacity: 0;
}
.showcase-container:hover .showcase-prev,
.showcase-container:hover .showcase-next {
  opacity: 1;
}
.showcase-prev:hover,
.showcase-next:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}
.showcase-prev { left: 12px; }
.showcase-next { right: 12px; }

/* 圆点指示器 */
.showcase-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.showcase-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.showcase-dot:hover {
  background: var(--primary-light);
}
.showcase-dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

/* ============================================================
   学员详情页 - 顶部组图轮播
   ============================================================ */

.detail-gallery {
  position: relative;
  width: 100%;
  height: 360px;
  overflow: hidden;
  background: var(--bg-secondary);
}
@media (min-width: 640px) {
  .detail-gallery { height: 480px; }
}

.detail-gallery-slides {
  width: 100%;
  height: 100%;
  position: relative;
}
.detail-gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.detail-gallery-slide.active {
  opacity: 1;
}
.detail-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 左右切换按钮 */
.detail-gallery-prev,
.detail-gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  border: none;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: background 0.2s ease, transform 0.2s ease;
}
.detail-gallery-prev:hover,
.detail-gallery-next:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}
.detail-gallery-prev { left: 16px; }
.detail-gallery-next { right: 16px; }

/* 圆点指示器 */
.detail-gallery-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.detail-gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.detail-gallery-dot:hover {
  background: rgba(255,255,255,0.8);
}
.detail-gallery-dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* 缩略图列表 */
.detail-gallery-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px;
  overflow-x: auto;
  background: var(--bg-secondary);
  justify-content: center;
  flex-wrap: wrap;
}
.detail-gallery-thumb {
  width: 80px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  flex-shrink: 0;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.detail-gallery-thumb:hover {
  transform: translateY(-2px);
}
.detail-gallery-thumb.active {
  border-color: var(--primary);
}
.detail-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   培训详情页 - 信息卡片组等补充样式
   ============================================================ */

.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}
.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}
.btn-lg {
  padding: 14px 32px;
  font-size: 17px;
}
.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

/* 培训项目页 - 课程简介补充 */
.course-summary {
  margin-bottom: 12px;
}

/* ============================================================
   Swiper 轮播图样式
   ============================================================ */
.hero-swiper {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.hero-swiper .swiper {
  width: 100%;
  height: 100%;
}

.hero-swiper .swiper-slide {
  width: 100%;
  height: 100%;
}

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

/* Swiper 分页器 */
.hero-swiper .swiper-pagination {
  bottom: 20px;
}

.hero-swiper .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.6);
  opacity: 1;
}

.hero-swiper .swiper-pagination-bullet-active {
  background: var(--accent);
}

/* Swiper 导航箭头 */
.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.8);
  border-radius: 50%;
  color: var(--primary);
  font-weight: 700;
  transition: all var(--transition);
}

.hero-swiper .swiper-button-prev:hover,
.hero-swiper .swiper-button-next:hover {
  background: var(--white);
  transform: scale(1.1);
}

.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after {
  font-size: 20px;
  font-weight: 700;
}

/* 移动端轮播图高度调整 */
@media (max-width: 768px) {
  .hero-swiper {
    height: 280px;
  }
}

/* ============================================================
   开班公告头部样式
   ============================================================ */
.notice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--primary);
}

.notice-header-exam {
  border-bottom-color: var(--accent);
}

.notice-header h3 {
  font-size: 20px;
  font-weight: 700;
}

.notice-more {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.notice-more:hover {
  color: var(--primary);
}

/* ============================================================
   友情链接卡片样式（无图片版）
   ============================================================ */
.friend-links-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.friend-link-item {
  display: block;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--border);
  text-align: center;
}

.friend-link-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.friend-link-item h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.friend-link-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================================
   社交媒体链接样式（无二维码）
   ============================================================ */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-link {
  display: block;
  padding: 10px 16px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-xs);
  font-size: 15px;
  color: var(--footer-text);
  transition: all var(--transition);
  text-align: center;
}

.social-link:hover {
  background: var(--primary);
  color: var(--white);
}

/* ============================================================
   通栏广告图轮播样式（Swiper）
   ============================================================ */
.ad-banner-swiper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 40px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

/* 广告图固定高度 120px，超出部分裁剪 */
.ad-banner-swiper .swiper-slide {
  height: 120px;
  overflow: hidden;
}

.ad-banner-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 广告图分页圆点 */
.ad-banner-swiper .swiper-pagination {
  bottom: 6px !important;
}

.ad-banner-swiper .swiper-pagination-bullet {
  background: rgba(255,255,255,0.6);
  opacity: 1;
  width: 8px;
  height: 8px;
}

.ad-banner-swiper .swiper-pagination-bullet-active {
  background: var(--white);
  width: 20px;
  border-radius: 4px;
  transition: all 0.3s;
}

/* ============================================================
   培训项目 Swiper 轮播样式
   ============================================================ */
.training-swiper {
  position: relative;
  /* 左右留出空间给导航箭头 */
  padding: 0 48px;
}

.training-swiper .swiper-slide {
  height: auto;
}

.training-swiper .card {
  height: 100%;
}

.training-swiper .card-body {
  padding: 16px 20px;
}

/* 轮播导航箭头：定位在容器内部 */
.training-swiper .swiper-button-prev,
.training-swiper .swiper-button-next {
  color: var(--primary);
  background: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: var(--shadow);
  --swiper-navigation-size: 16px;
  /* 确保箭头在容器内可见 */
  top: 50%;
  margin-top: -18px;
}

.training-swiper .swiper-button-prev {
  left: 4px;
}

.training-swiper .swiper-button-next {
  right: 4px;
}

.training-swiper .swiper-button-prev::after,
.training-swiper .swiper-button-next::after {
  font-size: 16px;
  font-weight: 700;
}

/* 培训项目分页圆点 */
.training-swiper .swiper-pagination {
  position: relative;
  margin-top: 20px;
  bottom: auto !important;
}

.training-swiper .swiper-pagination-bullet {
  background: var(--border);
  opacity: 1;
  width: 10px;
  height: 10px;
  transition: all 0.3s;
}

.training-swiper .swiper-pagination-bullet-active {
  background: var(--primary);
  width: 24px;
  border-radius: 5px;
}

/* ============================================================
   学校荣誉 Swiper 轮播样式
   ============================================================ */
.honor-swiper {
  position: relative;
  padding-bottom: 30px;
}

.honor-swiper .swiper-slide {
  height: auto;
}

.honor-swiper .swiper-pagination {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}

.honor-swiper .swiper-pagination-bullet {
  background: var(--border);
  opacity: 1;
  width: 10px;
  height: 10px;
  transition: all 0.3s;
}

.honor-swiper .swiper-pagination-bullet-active {
  background: var(--primary);
  width: 24px;
  border-radius: 5px;
}

/* ============================================================
   开班公告列表页样式
   ============================================================ */
.notice-page-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.notice-page-item {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--border);
}

.notice-page-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.notice-page-date {
  flex-shrink: 0;
  width: 80px;
  text-align: center;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
}

.notice-page-date .day {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.notice-page-date .month {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

.notice-page-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.notice-page-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.notice-page-meta {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.notice-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.notice-badge-class {
  background: #dbeafe;
  color: #1e40af;
}

.notice-badge-exam {
  background: #ffedd5;
  color: #9a3412;
}

/* ============================================================
   开班公告详情页样式
   ============================================================ */
.notice-detail-header {
  text-align: center;
  padding: 32px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.notice-detail-header h1 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 16px;
}

.notice-detail-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

.notice-detail-body {
  padding: 32px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 16px;
  line-height: 1.8;
}

.notice-detail-body p {
  margin-bottom: 16px;
}

.notice-detail-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ============================================================
   学员风采 / 学校环境展示 Swiper 轮播样式
   ============================================================ */
.showcase-swiper,
.student-showcase-swiper {
  position: relative;
  padding: 0 48px 40px;
}

.showcase-swiper .swiper-slide,
.student-showcase-swiper .swiper-slide {
  height: auto;
}

.showcase-swiper .showcase-item,
.student-showcase-swiper .showcase-item {
  aspect-ratio: 4 / 3;
  height: 100%;
}

/* 导航箭头 */
.showcase-swiper .swiper-button-prev,
.showcase-swiper .swiper-button-next,
.student-showcase-swiper .swiper-button-prev,
.student-showcase-swiper .swiper-button-next {
  color: var(--primary);
  background: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: var(--shadow);
  --swiper-navigation-size: 16px;
  top: calc(50% - 20px);
}

.showcase-swiper .swiper-button-prev,
.student-showcase-swiper .swiper-button-prev {
  left: 4px;
}

.showcase-swiper .swiper-button-next,
.student-showcase-swiper .swiper-button-next {
  right: 4px;
}

/* 分页圆点 */
.showcase-swiper .swiper-pagination,
.student-showcase-swiper .swiper-pagination {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.showcase-swiper .swiper-pagination-bullet,
.student-showcase-swiper .swiper-pagination-bullet {
  background: var(--border);
  opacity: 1;
  width: 10px;
  height: 10px;
  transition: all 0.3s;
}

.showcase-swiper .swiper-pagination-bullet-active,
.student-showcase-swiper .swiper-pagination-bullet-active {
  background: var(--primary);
  width: 24px;
  border-radius: 5px;
}

/* ============================================================
   学员详情页 Swiper 轮播样式
   ============================================================ */
.detail-gallery-swiper {
  position: relative;
  width: 100%;
  height: 360px;
  overflow: hidden;
  background: var(--bg-secondary);
}

@media (min-width: 640px) {
  .detail-gallery-swiper {
    height: 595px;
  }
}

.detail-gallery-swiper .swiper-slide {
  width: 100%;
  height: 100%;
}

.detail-gallery-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 详情页轮播导航箭头 */
.detail-gallery-swiper .swiper-button-prev,
.detail-gallery-swiper .swiper-button-next {
  color: #fff;
  background: rgba(0,0,0,0.5);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  --swiper-navigation-size: 20px;
  transition: background 0.2s ease;
}

.detail-gallery-swiper .swiper-button-prev:hover,
.detail-gallery-swiper .swiper-button-next:hover {
  background: rgba(0,0,0,0.7);
}

/* 详情页轮播分页指示器 */
.detail-gallery-swiper .swiper-pagination-bullet {
  background: rgba(255,255,255,0.6);
  opacity: 1;
}

.detail-gallery-swiper .swiper-pagination-bullet-active {
  background: #fff;
  width: 20px;
  border-radius: 4px;
}

/* 详情页缩略图 Swiper */
.detail-thumbs-swiper {
  padding: 8px 0;
}

.detail-thumbs-swiper .swiper-slide {
  width: 80px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: border-color 0.2s ease;
  flex-shrink: 0;
}

.detail-thumbs-swiper .swiper-slide-thumb-active {
  border-color: var(--primary);
}

.detail-thumbs-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

  /* --- 列表网格：桌面3列 / 平板2列 / 手机1列 --- */
  .teacher-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

  /* --- 教师卡片：白底 + 圆角 + 轻阴影，悬停上浮 --- */
  .teacher-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
  }

  .teacher-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
  }

  /* --- 头像区：4:3 比例，hover 轻微放大 --- */
  .teacher-avatar-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-secondary);
  }

  .teacher-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
  }

  .teacher-card:hover .teacher-avatar {
    transform: scale(1.05);
  }

  /* --- 信息区 --- */
  .teacher-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
  }

  /* 姓名行：姓名 + 职称标签 两端对齐 */
  .teacher-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .teacher-name {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
  }

  /* 职称标签：胶囊样式 */
  .teacher-tag {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
  }

  /* 简介：最多显示3行，超出省略 */
  .teacher-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* --- 列表底部信息条 --- */
  .teacher-summary {
    margin-top: 36px;
    text-align: center;
    font-size: 15px;
    color: var(--text-muted);
  }

  .teacher-summary b {
    color: var(--primary);
    font-weight: 800;
  }

  /* --- 响应式适配 --- */
  @media (max-width: 992px) {
    .teacher-list {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 600px) {
    .teacher-list {
      grid-template-columns: 1fr;
    }

    .teacher-info {
      padding: 16px;
    }
  }