/* ============================================================
   九色屯蒙文武教育官网  PC + H5 响应式主题样式
   主色：#1967D2（品牌蓝）   辅色：红 #C62828 / 浅蓝 #E8F0FB
   说明：1:1 复刻老站栏目层级与模块；悬浮工具栏由 float-tool.js 注入
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: #333; background: #fff; line-height: 1.7; font-size: 14px;
}
a { color: #1967D2; text-decoration: none; }
a:hover { color: #C62828; }
img { max-width: 100%; display: block; }
.container { width: 1200px; margin: 0 auto; }
.clear { clear: both; }
.section { padding: 54px 0; }
.section-title { text-align: center; margin-bottom: 38px; }
.section-title h2 { font-size: 30px; color: #1967D2; letter-spacing: 2px; }
.section-title h2::after {
  content: ""; display: block; width: 60px; height: 3px;
  background: #C62828; margin: 14px auto 0;
}
.section-title p { color: #999; margin-top: 10px; }

/* ---------- 顶部条 ---------- */
.topbar { background: #1967D2; color: #fff; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.topbar a { color: #d6e6fb; }
.topbar .hot { color: #ffd9a0; font-weight: bold; }

/* ---------- 头部 LOGO + 导航 ---------- */
.header { background: #fff; border-bottom: 1px solid #eee; position: relative; z-index: 600; }
.header .container { display: flex; align-items: center; height: 90px; }
.logo { display: flex; align-items: center; }
.logo .mark {
  width: 48px; height: 48px; border-radius: 50%;
  background: #C62828; color: #fff; font-size: 22px; font-weight: bold;
  display: flex; align-items: center; justify-content: center; margin-right: 12px;
}
.logo .name { font-size: 22px; font-weight: bold; color: #1967D2; line-height: 1.2; }
.logo .sub { font-size: 12px; color: #888; }
.nav { margin-left: auto; }
.nav > ul { list-style: none; display: flex; }
.nav > ul > li { position: relative; }
.nav > ul > li > a {
  display: block; padding: 0 17px; height: 90px; line-height: 90px;
  color: #333; font-size: 16px;
}
.nav > ul > li:hover > a, .nav > ul > li.active > a { color: #1967D2; border-bottom: 3px solid #C62828; }
.nav .dropdown { display: none; position: absolute; top: 90px; left: 0; background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.12); min-width: 210px; z-index: 500; }
.nav > ul > li:hover .dropdown { display: block; }
.nav .dropdown a { display: block; padding: 12px 18px; border-bottom: 1px solid #f0f0f0; color: #555; }
.nav .dropdown a:hover { background: #f3f8fe; color: #1967D2; }

/* 移动端菜单按钮 */
.menu-btn { display: none; margin-left: auto; width: 44px; height: 40px; background: none; border: none;
  cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.menu-btn span { display: block; height: 3px; background: #1967D2; border-radius: 2px; }

/* ---------- 轮播 ---------- */
.banner { position: relative; height: 440px; overflow: hidden; background: #1967D2; }
.banner .slide { position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
  color: #fff; text-align: center; }
.banner .slide.active { display: flex; }
.banner .slide h1 { font-size: 46px; letter-spacing: 4px; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.banner .slide p { font-size: 18px; margin-top: 16px; color: #e6f0fb; }
.banner .dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.banner .dots span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; }
.banner .dots span.on { background: #C62828; }
.b1 { background: linear-gradient(120deg,#1967D2,#3a8be0); }
.b2 { background: linear-gradient(120deg,#b3261e,#e0493e); }
.b3 { background: linear-gradient(120deg,#0d4f9e,#2a7fb8); }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid #eee; border-radius: 8px; overflow: hidden; transition: .2s; }
.card:hover { box-shadow: 0 6px 20px rgba(25,103,210,.16); transform: translateY(-3px); }
.card .pic { height: 184px; background: #e8f0fb center/cover no-repeat; }
.card .body { padding: 16px; }
.card .body h3 { font-size: 17px; color: #1967D2; margin-bottom: 8px; }
.card .body p { color: #777; font-size: 13px; }

/* ---------- 数据统计 ---------- */
.stats { background: #1967D2; color: #fff; }
.stats .container { display: flex; justify-content: space-around; text-align: center; flex-wrap: wrap; gap: 20px; }
.stat .num { font-size: 42px; font-weight: bold; color: #ffd9a0; }
.stat .lab { font-size: 15px; margin-top: 6px; color: #d6e6fb; }

/* ---------- 企业优势 / 特色 ---------- */
.adv-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border: 1px solid #eee; border-radius: 8px; }
.adv-item .ico { width: 48px; height: 48px; border-radius: 50%; background: #E8F0FB; color: #1967D2;
  display: flex; align-items: center; justify-content: center; font-size: 22px; flex: 0 0 auto; }
.adv-item h3 { color: #1967D2; margin-bottom: 6px; }

/* ---------- 新闻列表 ---------- */
.news-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px dashed #eee; }
.news-item .date { flex: 0 0 70px; text-align: center; color: #C62828; }
.news-item .date b { font-size: 26px; display: block; }
.news-item h3 { font-size: 16px; }
.news-item p { color: #888; font-size: 13px; margin-top: 4px; }

/* ---------- 图集墙 ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-grid .g { height: 180px; background: #e8f0fb center/cover no-repeat; border-radius: 6px; position: relative; overflow: hidden; }
.gallery-grid .g span { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.55); color: #fff;
  font-size: 13px; padding: 6px 10px; }
.gallery-grid .g:hover { box-shadow: 0 4px 16px rgba(25,103,210,.25); }

/* ---------- 底部 ---------- */
.footer { background: #0d3a72; color: #b9cde0; margin-top: 40px; padding-bottom: 56px; }
.footer .container { display: flex; gap: 40px; padding: 40px 0; flex-wrap: wrap; }
.footer .col { flex: 1; min-width: 220px; }
.footer h4 { color: #fff; margin-bottom: 14px; font-size: 16px; }
.footer p { margin: 6px 0; font-size: 13px; }
.footer .copy { text-align: center; padding: 16px 0 0; font-size: 13px; color: #8fb0cf; }

/* ---------- 联系表单 ---------- */
.form-row { margin-bottom: 14px; }
.form-row input, .form-row textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px;
}
.btn {
  display: inline-block; padding: 11px 30px; background: #1967D2; color: #fff;
  border: none; border-radius: 4px; cursor: pointer; font-size: 15px;
}
.btn:hover { background: #1557b8; }
.btn-gold { background: #C62828; }
.btn-gold:hover { background: #a51f17; }

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .container { width: 100%; padding: 0 14px; }
  .menu-btn { display: flex; }
  .nav { display: none; position: absolute; top: 90px; left: 0; right: 0; background: #fff;
    box-shadow: 0 6px 16px rgba(0,0,0,.12); z-index: 599; }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; }
  .nav > ul > li > a { height: 50px; line-height: 50px; padding: 0 18px; border-bottom: 1px solid #f2f2f2; }
  .nav .dropdown { position: static; box-shadow: none; min-width: 0; background: #f7faff; }
  .nav > ul > li:hover .dropdown { display: none; }
  .nav > ul > li.open .dropdown { display: block; }
  .header .container { height: 64px; }
  .logo .name { font-size: 18px; }
  .banner { height: 240px; }
  .banner .slide h1 { font-size: 28px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .stats .container { gap: 24px; }
  .section { padding: 32px 0; }
}
@media (max-width: 480px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
