/* ===============================================
   济南青沐教育培训学校 - 全局样式
   主色：#1565C0（深蓝） 辅色：#1976D2 / #42A5F5
   =============================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary:       #1565C0;
  --primary-light: #1976D2;
  --primary-bg:    #E3F2FD;
  --accent:        #FF8F00;
  --accent-light:  #FFF8E1;
  --text-main:     #212121;
  --text-sub:      #616161;
  --text-light:    #9E9E9E;
  --border:        #E0E0E0;
  --bg-light:      #F5F7FA;
  --white:         #FFFFFF;
  --radius:        8px;
  --radius-lg:     12px;
  --shadow:        0 2px 12px rgba(21,101,192,0.10);
  --shadow-lg:     0 6px 24px rgba(21,101,192,0.15);
}

body {
  font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", sans-serif;
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.7;
  background: var(--white);
}

a { text-decoration: none; color: inherit; transition: color .2s; }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ---- 通用容器 ---- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---- 顶部信息条 ---- */
.top-bar {
  background: var(--primary);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  padding: 6px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a { color: rgba(255,255,255,0.85); }
.top-bar a:hover { color: #fff; }

/* ---- 主导航 ---- */
.main-header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 999;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-area .school-name {
  display: flex;
  flex-direction: column;
}
.logo-area .name-cn {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
  line-height: 1.3;
}
.logo-area .name-en {
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 0.5px;
}
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: block;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  border-radius: var(--radius);
  transition: background .2s, color .2s;
  position: relative;
}
.main-nav a:hover,
.main-nav a.active {
  background: var(--primary-bg);
  color: var(--primary);
}
.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 16px; right: 16px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* ---- 汉堡按钮（移动端） ---- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---- 移动端全屏菜单 ---- */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 1000;
  flex-direction: column;
  animation: fadeIn .25s ease;
}
.mobile-menu.open { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}
.mobile-menu-close {
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-sub);
}

.mobile-menu-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 4px;
  overflow-y: auto;
}
.mobile-menu-nav a {
  display: block;
  padding: 14px 16px;
  font-size: 17px;
  color: var(--text-main);
  border-radius: var(--radius);
  transition: background .2s, color .2s;
}
.mobile-menu-nav a:hover,
.mobile-menu-nav a:active {
  background: var(--primary-bg);
  color: var(--primary);
}

.mobile-menu-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-sub);
  line-height: 2;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-phone {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}
.btn-enroll {
  background: var(--accent);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s, transform .1s;
}
.btn-enroll:hover {
  background: #E65100;
  transform: translateY(-1px);
}

/* ---- 页面标题条 ---- */
.page-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #1976D2 100%);
  color: var(--white);
  padding: 48px 0 40px;
  text-align: center;
}
.page-banner h1 { font-size: 30px; font-weight: 700; letter-spacing: 2px; }
.page-banner p { font-size: 15px; margin-top: 8px; opacity: .8; }
.breadcrumb {
  margin-top: 12px;
  font-size: 13px;
  opacity: .75;
}
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb span { margin: 0 6px; }

/* ---- 区块通用 ---- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-light); }
.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 1px;
}
.section-title p {
  font-size: 14px;
  color: var(--text-sub);
  margin-top: 8px;
}
.title-line {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin: 12px auto 0;
}

/* ---- 按钮 ---- */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  border: none;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: #0D47A1; color: var(--white); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: #E65100; color: var(--white); }

/* ---- 卡片 ---- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-body { padding: 24px; }
.card-title { font-size: 17px; font-weight: 600; color: var(--text-main); margin-bottom: 8px; }
.card-desc { font-size: 14px; color: var(--text-sub); line-height: 1.8; }

/* ---- 数据统计块 ---- */
.stat-item { text-align: center; padding: 24px; }
.stat-num {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}
.stat-num sup { font-size: 20px; }
.stat-num .unit { font-size: 20px; }
.stat-label { font-size: 14px; color: var(--text-sub); margin-top: 6px; }

/* ---- 悬浮咨询栏 ---- */
.float-bar {
  position: fixed;
  right: 0; top: 50%;
  transform: translateY(-50%);
  z-index: 888;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.float-item {
  background: var(--primary);
  color: var(--white);
  width: 48px;
  padding: 10px 0;
  text-align: center;
  font-size: 12px;
  cursor: pointer;
  transition: background .2s;
  position: relative;
  overflow: visible;
  white-space: nowrap;
}
.float-item:hover { background: #0D47A1; }
.float-item .fi-icon { font-size: 20px; display: block; margin-bottom: 2px; color: var(--white); }
.float-item:hover .fi-icon { color: var(--white); }
.float-item:hover .float-label { color: var(--white); }
.float-item:first-child { border-radius: 8px 0 0 0; }
.float-item:last-child  { border-radius: 0 0 0 8px; }

/* ---- 悬浮窗弹层（PC端 hover 显示） ---- */
.float-popup {
  display: none;
  position: absolute;
  right: 56px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(0,0,0,.18);
  padding: 16px;
  text-align: center;
  z-index: 999;
  width: 180px;
}
.float-item:hover .float-popup { display: block; }
.popup-arrow {
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: var(--white);
  box-shadow: 3px 3px 6px rgba(0,0,0,.08);
  transform: translateY(-50%) rotate(45deg);
  z-index: -1;
}
.popup-title { font-size: 13px; font-weight: 700; color: var(--text-main); margin-bottom: 8px; }
.popup-qr {
  width: 120px; height: 120px;
  background: var(--bg-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--text-light);
  margin: 0 auto 6px;
}
.popup-phone { font-size: 16px; font-weight: 700; color: var(--primary); padding: 8px 0; }
.popup-tip { font-size: 11px; color: var(--text-light); }

/* ---- 底部 ---- */
.footer {
  background: #0D1B3E;
  color: rgba(255,255,255,.75);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .name { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-brand p { font-size: 13px; line-height: 1.9; }
.footer-col h4 { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,.65); }
.footer-col a:hover { color: #fff; }
.footer-col .contact-item { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; margin-bottom: 10px; }
/* footer 二维码 */
.footer-qr-row { display: flex; gap: 16px; margin-top: 16px; }
.footer-qr-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.footer-qr-item img { width: 80px; height: 80px; border-radius: 6px; background: #fff; padding: 4px; box-sizing: border-box; }
.footer-qr-item span { font-size: 12px; color: rgba(255,255,255,.6); }
.footer-qr-placeholder { width: 80px; height: 80px; border-radius: 6px; background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; font-size: 11px; color: rgba(255,255,255,.5); text-align: center; line-height: 1.4; }

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 13px;
  color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.5); }

/* ---- 网格布局 ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 20px; }

/* ---- 新闻列表 ---- */
.news-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.news-item:last-child { border-bottom: none; }
.news-date {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--primary-bg);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.news-date .day { font-size: 22px; font-weight: 700; color: var(--primary); line-height: 1; }
.news-date .month { font-size: 12px; color: var(--text-sub); }
.news-info h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.news-info h3 a:hover { color: var(--primary); }
.news-info p { font-size: 13px; color: var(--text-sub); }

/* ---- 课程卡片 ---- */
.course-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; height: 100%; }
.course-header {
  padding: 20px 24px;
  color: var(--white);
}
.course-header.blue  { background: var(--primary); }
.course-header.teal  { background: #00796B; }
.course-header.amber { background: #E65100; }
.course-header.purple{ background: #6A1B9A; }
.course-header h3 { font-size: 18px; font-weight: 700; }
.course-header p  { font-size: 13px; opacity: .85; margin-top: 4px; }
.course-body { padding: 20px 24px; background: var(--white); flex: 1; }
.course-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  border: 1px solid var(--primary-light);
  color: var(--primary);
  background: var(--white);
  margin: 3px 4px 3px 0;
}

/* ---- 优势图标块 ---- */
.advantage-item {
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.advantage-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.adv-icon {
  width: 64px; height: 64px;
  background: var(--primary-bg);
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.advantage-item h3 { font-size: 16px; font-weight: 700; color: var(--text-main); margin-bottom: 8px; }
.advantage-item p  { font-size: 13px; color: var(--text-sub); line-height: 1.8; }

/* ---- Banner 轮播 ---- */
.banner-wrap {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  background: #0D1B3E;
}
.banner-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity .6s ease;
}
.banner-slide.active { opacity: 1; }
.banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,27,62,.55);
}
.banner-content {
  position: relative;
  z-index: 2;
  padding: 0 40px;
  max-width: 680px;
}
.banner-content .tag {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 4px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}
.banner-content h2 {
  font-size: 38px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: 1px;
}
.banner-content p {
  font-size: 15px;
  color: rgba(255,255,255,.85);
  margin-bottom: 28px;
  line-height: 1.8;
}
.banner-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.banner-dots {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px;
  z-index: 10;
}
.banner-dot {
  width: 8px; height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: all .3s;
}
.banner-dot.active { background: var(--white); width: 24px; }

/* ---- 响应式 ---- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .banner-wrap { height: 320px; }
  .banner-content h2 { font-size: 26px; }
  .header-inner { height: 60px; }
  .logo-area .name-cn { font-size: 16px; }
}

@media (max-width: 600px) {
  /* 隐藏桌面导航和CTA，显示汉堡按钮 */
  .main-nav  { display: none !important; }
  .header-cta { display: none; }
  .hamburger  { display: flex !important; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .banner-wrap { height: auto !important; min-height: 420px; padding-bottom: 48px; }
  .banner-content { padding: 32px 20px 24px; max-width: 100%; }
  .banner-content h2 { font-size: 22px; }
  .banner-btns { flex-direction: column; align-items: center; }
  .banner-btns .btn { width: 80%; text-align: center; }
  .banner-dots { bottom: 12px; z-index: 100; }

  /* 移动端：悬浮栏改为底部固定横栏 */
  body { padding-bottom: 56px; }

  .float-bar {
    flex-direction: row !important;
    position: fixed !important;
    bottom: 0 !important; top: auto !important;
    left: 0 !important; right: 0 !important;
    transform: none !important;
    width: 100% !important;
    z-index: 9999;
    flex: 1;
  }
  .float-item { flex: 1; border-radius: 0 !important; padding: 8px 0; }
  .float-item .float-popup { display: none; }
  .float-item.active .float-popup { display: block !important; }

  /* 手机端：popup向上弹出、水平居中、不超出屏幕 */
  .float-item.active .float-popup {
    position: fixed !important;
    bottom: 56px !important;
    top: auto !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: 220px !important;
    z-index: 10000 !important;
  }
  .float-item.active .popup-arrow { display: none; }

  .section { padding: 40px 0; }
}

/* (已删除重复的跑马灯和悬浮窗样式，使用上方原版定义) */
