/* 北方驾校主题 - 复刻 969px 经典布局(HTML/CSS 重写) */
* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 0;
  font: 12px/1.7 "SimSun", "宋体", "Microsoft YaHei", serif;
  color: #333;
  background: #fff;
}
a { color: #3A4B65; text-decoration: none; }
a:hover { color: #FF6600; text-decoration: underline; }
img { border: 0; vertical-align: middle; }
ol, ul { margin: 0; padding: 0; list-style: none; }

.page { width: 969px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

/* ===== 头部 ===== */
.site-header { width: 100%; }
.logo-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 12px 0 8px;
}
.logo-row img { display: block; }
.banner img { display: block; width: 969px; max-width: 100%; height: auto; }
.navbar {
  background: #0F218B;
  height: 27px;
  line-height: 27px;
  padding: 0 20px;
  font-size: 12px;
  white-space: nowrap;
}
.navbar a { color: #fff; font-weight: bold; padding: 0 3px; }
.navbar a:hover { color: #FFFF00; text-decoration: none; }
.navbar a.on { background: #6385A1; color: #fff; }
.nav-sep { color: #9DB3D6; margin: 0 6px; font-weight: normal; }

/* ===== 面包屑 ===== */
.crumb { padding: 12px 0 2px; color: #3A4B65; }
.crumb a { color: #3A4B65; }
.crumb a:hover { color: #FF6600; }
.crumb span { color: #032D6D; font-weight: bold; }

/* ===== 三栏布局 ===== */
.cols { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0 30px; }
.col-left { width: 208px; flex: none; }
.col-left-narrow { width: 165px; flex: none; }
.col-main { flex: 1; min-width: 0; }
.col-right { width: 220px; flex: none; }

.col-block { margin-bottom: 26px; }
.col-title {
  color: #032D6D;
  font-weight: bold;
  font-size: 12px;
  padding: 0 0 6px;
  border-bottom: 2px solid #C9D3E3;
  margin-bottom: 10px;
}
.col-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px solid #C9D3E3;
  margin-bottom: 10px;
}
.col-title-row .col-title { border-bottom: 0; margin-bottom: 0; padding-bottom: 6px; }
.blue-text { color: #3A4B65; font-size: 12px; line-height: 20px; margin: 0 0 8px; }
.blue-text p { margin: 0 0 6px; }
.more-right { text-align: right; margin-top: 6px; }
.more-right a { font: 11px Arial, sans-serif; color: #3A4B65; }

/* 左侧快速通道 */
.quick-links li { padding: 3px 0; font-size: 12px; }
.service-list { padding: 0; }

/* 头条新闻 */
.headline {
  display: flex;
  gap: 10px;
  background: #F0F8FA;
  padding: 10px;
  min-height: 150px;
  align-items: center;
}
.headline-img { width: 180px; flex: none; text-align: center; }
.headline-img img { max-width: 180px; height: auto; }
.headline-title { text-align: center; margin-bottom: 6px; font-size: 13px; }
.headline-title a { font-weight: bold; }
.headline-title a:hover { text-decoration: none; }

/* 文章列表行(原 di_p.gif 底纹 + 箭头) */
.post-list { background: #F4F8F9; padding: 6px 0; }
.post-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: url(/images/di_p.gif) repeat-x;
  padding: 5px 8px;
  min-height: 26px;
  margin: 0 2px;
}
.row-main { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; overflow: hidden; }
.row-main a { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-date { color: #3A4B65; font: 11px Arial, sans-serif; flex: none; margin-left: 10px; }

/* 首页横幅 */
.home-banners { display: flex; gap: 6px; margin-top: 15px; justify-content: center; }
.home-banners img { width: auto; }

/* ===== 侧栏(报名咨询) ===== */
.sidebar-body { padding: 0 2px; }
.district-select {
  width: 100%;
  font-size: 12px;
  padding: 3px;
  border: 1px solid #99B;
  background: #fff;
  color: #3A4B65;
}
.map-box { text-align: center; margin-top: 10px; }

/* ===== 子导航 ===== */
.subnav-box { margin-bottom: 20px; }
.subnav-title {
  color: #fff;
  background: #6385A1;
  font-weight: bold;
  padding: 6px 10px;
  font-size: 12px;
}
.subnav li { border-bottom: 1px dashed #D5DDE8; }
.subnav a { display: block; padding: 6px 12px; color: #3A4B65; font-size: 12px; }
.subnav a:hover { background: #F0F8FA; color: #FF6600; text-decoration: none; }
.subnav a.on { background: #F0F8FA; color: #FF6600; font-weight: bold; }
.side-phone { margin-top: 26px; }

/* ===== 页面主体 ===== */
.page-head { margin-bottom: 8px; }
.page-title { color: #032D6D; font-size: 16px; font-weight: bold; padding-bottom: 6px; }
.divider { border-bottom: 2px solid #C9D3E3; margin: 6px 0 14px; }
.page-content {
  color: #3A4B65;
  font-size: 12px;
  line-height: 22px;
  padding: 0 4px;
  word-break: break-all;
}
.page-content img { max-width: 100%; height: auto; }
.page-content table { max-width: 100%; border-collapse: collapse; }
.page-content td, .page-content th { border: 1px solid #D1D1D1; padding: 4px 8px; }

/* 文章页 */
.post-cat { font: 12px "宋体", SimSun, serif; padding: 6px 0 2px; }
.post-cat a { color: #032D6D; text-decoration: none; }
.post-cat a:hover { text-decoration: underline; }
.post-head { background: #F5F8F9; padding: 10px 12px; }
.post-title { color: #032D6D; font-size: 19px; font-weight: bold; padding: 4px 0; margin: 0; font-family: "宋体", SimSun, serif; }
.post-title a { color: #032D6D; text-decoration: none; }
.post-title a:hover { color: #FF6600; }
.post-meta { color: #999; font: 12px Arial, "宋体", SimSun, sans-serif; padding-bottom: 4px; margin: 6px 0 0; }
.post-meta span { margin-right: 18px; }
.post-meta a { color: #3A4B65; text-decoration: none; }
.post-content {
  color: #3A4B65;
  font-size: 14px;
  line-height: 26px;
  padding: 6px 4px;
  word-break: break-all;
}
.post-content img { max-width: 100%; height: auto; }
.post-content table { max-width: 100%; border-collapse: collapse; }
.post-content td, .post-content th { border: 1px solid #D1D1D1; padding: 4px 8px; }
.post-content p { margin: 0 0 12px; }

.backtop { text-align: right; margin-top: 14px; }
.backtop a:hover { text-decoration: none; }

/* ===== 分页 ===== */
.pagination { padding: 12px 4px; color: #3A4B65; font-size: 12px; }
.pagination a { color: #3A4B65; margin: 0 3px; }
.pagination a:hover { color: #FF6600; }
.pagination .cur { color: #FF6600; font-weight: bold; margin: 0 3px; }

/* ===== 报名表单 / 留言 ===== */
.baoming { padding: 6px 4px; }
.baoming-sep { border-top: 1px dashed #C9D3E3; margin: 16px 0; }
.baoming h4 { margin: 0 0 6px; color: #032D6D; }
#comments h4 { margin: 0 0 6px; color: #032D6D; }
.respond h4 { margin: 16px 0 8px; color: #032D6D; }
.comment-list { margin: 0 0 10px; }
.comment-list li {
  background: #F4F8F9;
  border: 1px solid #E2E9F0;
  padding: 8px 10px;
  margin-bottom: 8px;
}
.c-data { color: #999; font: 11px Arial, sans-serif; margin-bottom: 4px; }
.c-data .author { color: #032D6D; font-weight: bold; font-size: 12px; }
.c-text { color: #3A4B65; font-size: 12px; line-height: 20px; word-break: break-all; }
.c-empty { color: #999; }
.respond .input, .respond .textarea {
  display: block;
  width: 100%;
  max-width: 480px;
  border: 1px solid #99B;
  padding: 5px;
  font: 12px "SimSun", serif;
  color: #333;
  margin-bottom: 8px;
}
.respond .textarea { height: 120px; }
.respond label { display: block; color: #999; font-size: 11px; margin: -6px 0 8px 2px; }
.btn {
  background: #0F218B;
  color: #fff;
  border: 0;
  padding: 6px 26px;
  font-size: 13px;
  cursor: pointer;
}
.btn:hover { background: #FF6600; color: #fff; }
.done-tip {
  background: #F0F8FA;
  border: 1px solid #C9D3E3;
  color: #032D6D;
  padding: 10px;
  margin: 10px 0;
  font-weight: bold;
}

/* ===== 404 ===== */
.notfound { text-align: center; padding: 80px 0; }
.nf-code { font: bold 90px Arial, sans-serif; color: #0F218B; }
.nf-text { color: #3A4B65; font-size: 14px; margin: 16px 0; }
.nf-links { font-size: 13px; }

/* ===== 页脚 ===== */
.site-footer { border-top: 1px solid #C9D3E3; margin-top: 20px; }
.footer-line { height: 4px; background: #0F218B; opacity: 0.15; }
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 10px 20px;
  font: 9pt Arial, "SimSun", sans-serif;
  color: #666;
}
.footer-left a { color: #666; }
.footer-left a:hover { color: #FF6600; }
.footer-right { color: #666; flex: none; margin-left: 16px; }

/* ===== 移动端适配 ===== */
@media (max-width: 1000px) {
  .page { width: auto; padding: 0 10px; }
  .banner img { width: 100%; }
  .cols { flex-direction: column; }
  .col-left, .col-left-narrow, .col-right { width: 100%; }
  .navbar { white-space: normal; height: auto; padding: 4px 10px; line-height: 22px; }
  .headline { flex-direction: column; align-items: flex-start; }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 6px; }
}
