/* ============================================================
   首页新版样式（仿大朋友教育官网布局）
   放置路径：/template/pc/skin/css/index_new.css
   主题红：#e60012
   ============================================================ */

/* ---------- 通用板块标题 ---------- */
.dp_title { text-align: center; padding: 50px 0 30px; }
.dp_title h3 { font-size: 28px; font-weight: bold; color: #333; display: inline-block; position: relative; padding-bottom: 12px; margin: 0; }
.dp_title h3:after { content: ""; display: block; width: 46px; height: 3px; background: #e60012; margin: 12px auto 0; }
.dp_title h3.dp_title_red { color: #e60012; }
.dp_title p { font-size: 14px; color: #999; margin-top: 12px; }

/* ---------- 板块一：课程体系卡片 ---------- */
.dp_course_bg { background: #f7f7f7; padding: 40px 0 60px; }
.dp_course_row { display: flex; justify-content: space-between; flex-wrap: wrap; }
.dp_card {
  width: 32%;
  background: #fff;
  border: 1px solid #eee;
  padding: 35px 25px 30px;
  text-align: center;
  box-sizing: border-box;
  transition: all .3s;
}
.dp_card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.12); transform: translateY(-6px); border-color: #e60012; }
.dp_card h4 { font-size: 20px; font-weight: bold; color: #333; margin: 0; }
.dp_card_line { display: block; width: 36px; height: 2px; background: #e60012; margin: 14px auto; }
.dp_card_en { font-size: 12px; color: #bbb; text-transform: uppercase; margin: 0 0 8px; }
.dp_card_desc { font-size: 14px; color: #777; line-height: 1.9; min-height: 100px; margin: 0; }
.dp_card_img { margin-top: 22px; overflow: hidden; }
.dp_card_img img { max-width: 100%; height: 160px; object-fit: cover; transition: transform .4s; }
.dp_card:hover .dp_card_img img { transform: scale(1.06); }
.dp_card_more { margin-top: 18px; }
.dp_card_more a { color: #e60012; font-size: 13px; }
.dp_card_more a:hover { text-decoration: underline; }

/* ---------- 板块二：师资/风采无缝滚动 ---------- */
.dp_teacher_bg { background: #fff; padding: 20px 0 60px; }
.dp_teacher_card { padding: 0 10px; }
.dp_teacher_img { overflow: hidden; border-radius: 4px; }
.dp_teacher_img img { width: 100%; height: 260px; object-fit: cover; display: block; transition: transform .4s; }
.dp_teacher_card:hover .dp_teacher_img img { transform: scale(1.05); }
.dp_teacher_name {
  margin-top: 12px; text-align: center; font-size: 15px; color: #333;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- 板块三：新闻中心 ---------- */
.dp_news_bg { background: #f7f7f7; padding: 20px 0 60px; }
.dp_news_head { border-bottom: 1px solid #e5e5e5; padding-bottom: 12px; margin-bottom: 25px; position: relative; }
.dp_news_name {
  font-size: 20px; font-weight: bold; color: #333;
  border-bottom: 3px solid #e60012; padding-bottom: 9px;
}
.dp_more { position: absolute; right: 0; bottom: 12px; font-size: 13px; color: #e60012; }
.dp_more:hover { text-decoration: underline; }
.dp_mt30 { margin-top: 45px; }

.dp_news_row { display: flex; justify-content: space-between; flex-wrap: wrap; }
.dp_news_item {
  width: 32%;
  background: #fff;
  padding: 22px;
  box-sizing: border-box;
  display: flex;
  border: 1px solid #eee;
  transition: all .3s;
}
.dp_news_item:hover { box-shadow: 0 6px 18px rgba(0,0,0,.1); border-color: #e60012; }
.dp_news_item .time_box {
  flex: 0 0 64px; text-align: center; border-right: 1px solid #eee;
  padding-right: 16px; margin-right: 16px;
}
.dp_news_item .time_day { font-size: 30px; font-weight: bold; color: #e60012; margin: 0; line-height: 1.2; }
.dp_news_item .time_ny { font-size: 13px; color: #999; margin: 4px 0 0; }
.dp_news_t { font-size: 15px; font-weight: bold; margin: 0 0 8px; line-height: 1.5; }
.dp_news_t a { color: #333; }
.dp_news_t a:hover { color: #e60012; }
.dp_news_d { font-size: 13px; color: #888; line-height: 1.7; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 教育资讯两列列表 */
.dp_zx_list { display: flex; flex-wrap: wrap; justify-content: space-between; margin: 0; padding: 0; list-style: none; }
.dp_zx_list li {
  width: 48.5%;
  border-bottom: 1px dashed #ddd;
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}
.dp_zx_list li a {
  color: #333; font-size: 14px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  flex: 1; padding-right: 15px;
}
.dp_zx_list li a:before { content: "·"; color: #e60012; font-weight: bold; margin-right: 8px; }
.dp_zx_list li a:hover { color: #e60012; }
.dp_zx_date { font-size: 13px; color: #aaa; flex-shrink: 0; }

/* ---------- 板块四：活动/荣誉三图横排 ---------- */
.dp_honor_bg { background: #fff; padding: 20px 0 60px; }
.dp_honor_row { display: flex; justify-content: space-between; margin: 0; padding: 0; list-style: none; }
.dp_honor_row li { width: 32%; }
.dp_honor_img { overflow: hidden; border: 1px solid #eee; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.dp_honor_img img { width: 100%; height: 240px; object-fit: cover; display: block; transition: transform .4s; }
.dp_honor_row li:hover .dp_honor_img img { transform: scale(1.05); }
.dp_honor_t { font-size: 15px; font-weight: bold; text-align: center; margin: 14px 0 6px; }
.dp_honor_t a { color: #333; }
.dp_honor_t a:hover { color: #e60012; }
.dp_honor_d { font-size: 13px; color: #888; text-align: center; line-height: 1.7; margin: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 板块五：办学优势红色横条 ---------- */
.dp_adv_bg { background: #e60012; padding: 45px 0; }
.dp_adv_row { display: flex; justify-content: space-between; flex-wrap: wrap; }
.dp_adv_item { width: 24%; text-align: center; color: #fff; }
.dp_adv_item h5 { font-size: 20px; font-weight: bold; margin: 0 0 10px; }
.dp_adv_item p { font-size: 13px; color: rgba(255,255,255,.85); margin: 0; }

/* ---------- 响应式简单适配 ---------- */
@media (max-width: 1200px) {
  .dp_card, .dp_news_item { width: 48%; margin-bottom: 20px; }
  .dp_adv_item { width: 48%; margin-bottom: 20px; }
}

/* ============================================================
   头部样式（header.htm 使用）
   ============================================================ */

/* ---------- 顶部信息条 ---------- */
.dp_topbar { background: #f2f2f2; border-bottom: 1px solid #e5e5e5; font-size: 12px; color: #888; line-height: 34px; }
.dp_topbar .warp { overflow: hidden; }
.dp_topbar_l { float: left; }
.dp_topbar_r { float: right; }
.dp_topbar_r em { font-style: normal; margin-right: 10px; }
.dp_topbar_r b { color: #e60012; font-size: 14px; }

/* ---------- Logo 区 ---------- */
.dp_logo_bg { background: #fff; padding: 22px 0; }
.dp_logo_row { display: flex; align-items: center; }
.dp_logo img { height: 72px; display: block; }
.dp_logo_txt { margin-left: 18px; padding-left: 18px; border-left: 1px solid #ddd; }
.dp_logo_txt strong { display: block; font-size: 26px; color: #333; letter-spacing: 2px; }
.dp_logo_txt span { display: block; font-size: 11px; color: #aaa; letter-spacing: 1px; margin-top: 6px; }
.dp_logo_tel { margin-left: auto; font-size: 15px; color: #666; }
.dp_logo_tel b { font-size: 24px; color: #e60012; margin-left: 6px; }

/* ---------- 红色导航栏 ---------- */
.dp_nav_bg { background: #e60012; }
.dp_nav { margin: 0; padding: 0; list-style: none; display: flex; justify-content: center; }
.dp_nav li { position: relative; }
.dp_nav li a {
  display: block; padding: 0 38px; line-height: 52px;
  color: #fff; font-size: 16px; transition: background .25s;
}
.dp_nav li a:hover, .dp_nav li.on a { background: #b8000e; }

/* ---------- 首页大图轮播 ---------- */
.dp_banner_bg { width: 100%; overflow: hidden; }
.dp_banner_bg img { width: 100%; display: block; }

/* ---------- 导航二级下拉 ---------- */
.dp_nav li.mainlevel { position: relative; }
.dp_nav li a.cur, .dp_nav li a:hover { background: #b8000e; }
.dp_subnav {
  display: none; position: absolute; top: 52px; left: 50%; margin-left: -75px;
  width: 150px; background: #fff; z-index: 999;
  box-shadow: 0 6px 16px rgba(0,0,0,.18); border-top: 3px solid #e60012;
}
.dp_subnav ul { margin: 0; padding: 0; list-style: none; }
.dp_subnav li { border-bottom: 1px solid #f0f0f0; }
.dp_subnav li:last-child { border-bottom: none; }
.dp_subnav li a {
  display: block; padding: 0; text-align: center;
  line-height: 42px; color: #333 !important; font-size: 14px;
}
.dp_subnav li a:hover { background: #fdf0f0; color: #e60012 !important; }
.dp_nav li.mainlevel:hover .dp_subnav { display: block; }

/* ---------- 头部搜索框 ---------- */
.dp_head_search { margin-left: auto; margin-right: 30px; }
.dp_head_search form { display: flex; }
.dp_search_input {
  width: 170px; height: 34px; line-height: 34px; padding: 0 12px;
  border: 1px solid #ddd; border-right: none; border-radius: 3px 0 0 3px;
  font-size: 13px; color: #999; outline: none; box-sizing: border-box;
}
.dp_search_btn {
  width: 64px; height: 34px; line-height: 34px; border: none; cursor: pointer;
  background: #e60012; color: #fff; font-size: 14px; border-radius: 0 3px 3px 0;
}
.dp_search_btn:hover { background: #b8000e; }

/* ---------- 轮播容器微调 ---------- */
#banner { clear: both; }
#slideBox .bd li a { display: block; height: 100%; }

/* ============================================================
   底部样式（footer.htm 使用）
   ============================================================ */
.dp_foot_bg { background: #2b2b2b; padding: 40px 0 30px; color: #ccc; }

/* 联系方式一行 */
.dp_foot_contact {
  display: flex; justify-content: space-between; flex-wrap: wrap;
  padding-bottom: 28px; border-bottom: 1px solid #444;
}
.dp_foot_citem { display: flex; align-items: center; font-size: 16px; color: #fff; }
.dp_foot_cicon {
  display: inline-block; width: 40px; height: 40px; line-height: 40px;
  text-align: center; font-size: 20px; color: #e60012;
  border: 2px solid #e60012; border-radius: 50%; margin-right: 12px;
}
.dp_foot_citem em { font-style: normal; font-size: 13px; color: #999; margin-left: 4px; }

/* 栏目链接 + 二维码 */
.dp_foot_main { display: flex; justify-content: space-between; padding-top: 28px; }
.dp_foot_links { flex: 1; padding-right: 40px; }
.dp_foot_links a {
  display: inline-block; color: #bbb; font-size: 14px;
  margin: 0 26px 14px 0; transition: color .25s;
}
.dp_foot_links a:hover { color: #e60012; }
.dp_foot_qr { text-align: center; flex-shrink: 0; }
.dp_foot_qr img { display: block; background: #fff; padding: 6px; border-radius: 4px; }
.dp_foot_qr p { font-size: 13px; color: #999; margin: 10px 0 0; }

/* 版权条 */
.dp_foot_copy { background: #1f1f1f; padding: 18px 0; text-align: center; }
.dp_foot_copy p { font-size: 13px; color: #777; margin: 4px 0; line-height: 1.8; }
.dp_foot_copy a { color: #777; }
.dp_foot_copy a:hover { color: #e60012; }