/* style.css - 项目公共样式与布局 */

/* 页面背景与全局字体 */
body {
  background-color: #f4f6f9;
  font-family: "Microsoft YaHei", "SimSun", Arial, sans-serif;
  font-size: 16px;
  color: #333333;
}

/* 版心宽度 1200px 居中 */
.container-1200 {
  width: 1200px;
  margin: 0 auto;
}

/* 页面外层包裹 */
.page-wrap {
  min-width: 1200px;
}

/* =============================================
   头部区域
   背景图 1920x188，通栏居中，超宽不处理
   ============================================= */
.header {
  height: 188px;
  background-image: url(../images/navbg.jpg);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: auto 100%;
  background-color: #c9dff0; /* 图片两侧兜底色，与图片边缘色调匹配 */
}

/* 头部内容行：左 logo、右搜索，利用 display:table 实现垂直居中（IE11 兼容） */
.header-inner {
  display: table;
  width: 100%;
  height: 188px;
}

.header-logo,
.header-search {
  display: table-cell;
  vertical-align: middle;
}

/* Logo 图片自适应高度，最高不超过 120px */
.header-logo a {
  display: inline-block;
}
.header-logo img {
  display: block;
  max-height: 120px;
  width: auto;
}

/* 搜索框靠右对齐 */
.header-search {
  text-align: right;
  white-space: nowrap;
  position: relative;
}

/* 搜索输入框 */
.search-input {
  display: inline-block;
  width: 300px;
  height: 38px;
  line-height: 38px;
  padding: 0 12px;
  border: 1px solid #acd5fe;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  -webkit-border-radius: 20px;
  font-size: 14px;
  font-family: "Microsoft YaHei", "SimSun", Arial, sans-serif;
  color: #333;
  vertical-align: middle;
  /* IE11 下 box-sizing 需明确声明 */
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

/* placeholder 颜色 */
.search-input::-webkit-input-placeholder {
  color: #b3b2b2;
}
.search-input:-ms-input-placeholder {
  color: #b3b2b2;
}
.search-input::-moz-placeholder {
  color: #b3b2b2;
}

/* 搜索按钮 */
.search-btn {
  position: absolute;
  right: 3px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-block;
  width: 70px;
  height: 32px;
  border-radius: 16px;
  -webkit-border-radius: 16px;
  line-height: 32px;
  padding: 0;
  border: none;
  background-color: #217ad5;
  color: #ffffff;
  font-size: 13px;
  font-family: "Microsoft YaHei", "SimSun", Arial, sans-serif;
  cursor: pointer;
  vertical-align: middle;
  /* 紧贴输入框，去掉 inline-block 间距 */
  margin-left: -4px;
}
.search-btn:hover {
  background-color: #1f6bc2;
}

/* =============================================
   顶部导航
   背景通栏 #4488C1，主内容 1200px
   ============================================= */
.nav-bar {
  background-color: #4488c1;
}

/* 清除浮动通用类 */
.clearfix:after {
  content: "";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}
.clearfix {
  zoom: 1; /* IE 兼容 */
}

.main-nav {
  height: 48px;
  line-height: 48px;
  font-size: 0; /* 去掉 inline-block 间隙，后续用 font-size 还原 */
  width: 1080px;
  margin: 0 auto;
}

.nav-item {
  width: 180px;
  float: left;
  position: relative;
  border-right: 1px solid #5c96c8;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.nav-item:last-child {
  border-right: none;
}

.nav-item > a {
  display: block;
  padding: 0 32px;
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
  text-align: center;
  background-color: #4488c1;
}

/* 顶部导航 hover / active 状态 */
.nav-item.current > a,
.nav-item > a:hover {
  background-color: #2f6ea7; /* 激活/悬停颜色，比主色稍深 */
}

/* 子菜单容器 */
.sub-nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 48px;
  background-color: #4488c1;
  display: none;
  z-index: 1000;
}

.sub-nav li a {
  display: block;
  padding: 0 24px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  font-size: 16px;
  color: #ffffff;
  border-top: 1px solid #5c96c8;
}

/* 子菜单 hover/激活颜色稍变亮，提升点击感 */
.sub-nav li a:hover {
  background-color: #5d9bd0;
}

/* 主体区域占位样式 */
.main {
  padding: 30px 0 40px 0;
}

/* 首页首屏大标题 */
.home-hero {
  text-align: center;
  margin: 0 auto 30px;
  width: 1000px;
}

.home-hero-title {
  font-size: 38px;
  line-height: 48px;
  font-weight: bold;
  color: #f00;
  /* 限制最多两行，超出隐藏（IE11 用固定高度实现） */
  max-height: 96px;
  width: 1000px;
  margin: 0 auto;
  overflow: hidden;
}

/* =============================================
   首页首屏：焦点图 + 要闻
   左侧焦点图 620x400，右侧新闻列表 560px
   ============================================= */
.home-top {
  margin-top: 20px;
  height: 400px;
  overflow: hidden;
}

.home-focus {
  float: left;
  width: 620px;
  height: 400px;
  background-color: #d6e6f5; /* 焦点图兜底背景色 */
  overflow: hidden;
  margin-right: 20px;
}

/* Swiper 容器高度与父级一致，兼容 IE11 */
.home-focus-swiper {
  width: 100%;
  height: 100%;
  position: relative; /* 作为分页与左右按钮的定位参考容器 */
}

.home-focus-swiper .swiper-wrapper {
  height: 100%;
}

/* 单条焦点图：保证图片短边完整显示，标题在底部左侧 */
.focus-slide-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  color: #ffffff;
  text-decoration: none;
}

.focus-img-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.focus-img-table {
  display: table;
  width: 100%;
  height: 100%;
}

.focus-img-cell {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
}

.focus-img-wrap img {
  /* 填满容器，长边裁切，兼容 IE11 */
  height: 100%;
  width: auto;
  max-width: none;
  -webkit-transition: -webkit-transform 0.4s ease;
  -moz-transition: -moz-transform 0.4s ease;
  transition: transform 0.4s ease;
}

/* 鼠标进入整块焦点图时，图片略微放大，增强交互感 */
.focus-slide-inner:hover .focus-img-wrap img {
  -webkit-transform: scale(1.05);
  -ms-transform: scale(1.05);
  transform: scale(1.05);
}

.focus-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  line-height: 40px;
  padding: 0 16px;
  background: rgba(0, 0, 0, 0.6);
  font-size: 0;
}

.focus-caption-title {
  display: inline-block;
  font-size: 16px;
  max-width: 420px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 焦点图分页圆点：位于底部右侧 */
.home-focus-swiper .swiper-pagination {
  bottom: 12px !important;
  text-align: right;
  right: 12px;
  left: auto !important;
  width: auto !important;
}

.home-focus-swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  margin: 0 4px;
  background-color: rgba(255, 255, 255, 0.6);
  opacity: 1;
}

.home-focus-swiper .swiper-pagination-bullet-active {
  background-color: #4488c1;
}

/* 焦点图左右切换按钮（灰色半透明块，兼容 IE11） */
.home-focus-swiper .swiper-button-prev,
.home-focus-swiper .swiper-button-next {
  width: 40px;
  height: 74px;
  margin-top: -37px;
  background: url(../images/focus_btn.png) no-repeat;
  color: transparent;
  text-indent: -9999em;
  overflow: hidden;
  font-size: 0;
  cursor: pointer;
}

.home-focus-swiper .swiper-button-prev:after,
.home-focus-swiper .swiper-button-next:after {
  font-size: 0; /* 隐藏 Swiper 默认图标 */
}

.home-focus-swiper .swiper-button-prev {
  left: 0;
  background-position: 0 -74px; /* 左箭头普通态（浅色，下半部分） */
}

.home-focus-swiper .swiper-button-next {
  right: 0;
  background-position: -40px -74px; /* 右箭头普通态（浅色，下半部分） */
}

.home-focus-swiper .swiper-button-prev:hover {
  background-position: 0 0; /* 左箭头 hover/active 态（深色，上半部分） */
}

.home-focus-swiper .swiper-button-next:hover {
  background-position: -40px 0; /* 右箭头 hover/active 态（深色，上半部分） */
}

/* 右侧新闻列表区域 + 标签切换 */
.home-news {
  float: right;
  width: 540px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.home-section-hd {
  font-size: 0;
  border-bottom: 1px solid #4488c1;
  padding: 10px 0;
  height: 40px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  overflow: hidden;
}

.home-section-tabs {
  float: left;
}

.home-section-tab {
  display: inline-block;
  font-size: 16px;
  font-weight: bold;
  color: #6d7278;
  cursor: pointer;
  margin-right: 24px;
}

.home-section-tab.current {
  color: #4488c1;
}

.home-section-title {
  display: inline-block;
  font-size: 16px;
  font-weight: bold;
  color: #4488c1;
}

.home-section-more {
  float: right;
  width: 28px;
  height: 16px;
  margin-top: 4px;
  background: url(../images/more.png) no-repeat center center;
  text-indent: -9999em;
  overflow: hidden;
}

.home-section-more:hover {
  background-position: center center;
}

.home-section-bd {
  padding: 6px;
}

.home-news-bd {
  padding: 6px;
}

.home-news-list {
  display: none;
}

.home-news-list .news-link {
  padding: 9px 0;
}

.home-news-list .news-title {
  max-width: 90%;
}

.home-news-list.current {
  display: block;
}

/* 首页第二行布局：组织架构 / 通知公告 / 查询服务 */
.home-row2 {
  margin-top: 28px;
  height: 460px;
  overflow: hidden;
}

.home-col-org {
  float: left;
  width: 200px;
}

.home-col-notice {
  float: left;
  width: 540px;
  margin-left: 35px;
}

.home-col-query {
  float: right;
  width: 390px;
}

.home-org-text {
  font-size: 16px;
  color: #333333;
  padding: 16px 0;
  overflow: hidden;
}

.home-org-label {
  margin-bottom: 10px;
}

.home-org-name {
  margin-bottom: 16px;
  text-indent: 2em;
}

.home-org-name a {
  font-weight: bold;
  color: #4488c1;
  margin-right: 10px;
  line-height: 2;
}

.home-org-image {
  width: 100%;
  height: 100px;
  border-radius: 8px;
  /* border: 1px solid #979797; */
  overflow: hidden;
}

.home-org-image img {
  width: 100%;
  height: 100%;
}

.home-notice-bd {
  padding: 6px;
}

.home-notice-list .news-link {
  padding: 9px 0;
}

.home-notice-list .news-title {
  max-width: 90%;
}

.home-query-bd {
  padding: 6px;
}

.home-query-list {
  width: 350px;
  margin: 0 auto;
  padding: 10px 0 0;
}

.home-query-item {
  list-style: none;
  margin-bottom: 10px;
}

.home-query-link {
  display: block;
}

.home-query-img {
  display: block;
  width: 350px;
  height: 90px;
  border-radius: 4px;
  overflow: hidden;
}

.home-query-img img {
  width: 100%;
  height: 100%;
}

/* 首页第三行：并排 4 个图片区块（每个 285x90，剩余 60px 作为间距均分） */
.home-row3 {
  margin-top: 10px;
  overflow: hidden;
}

.home-row3-item {
  float: left;
  width: 285px;
  margin-right: 20px; /* 4*285 + 3*20 = 1200，刚好占满一行 */
}

.home-row3-item:last-child {
  margin-right: 0;
}

.home-row3-link {
  display: block;
}

.home-row3-img {
  display: block;
  width: 285px;
  height: 90px;
  border-radius: 4px;
  overflow: hidden;
}

.home-row3-img img {
  display: block;
  width: 100%;
  height: 100%;
}

/* 首页：友情链接 区域 */
.home-links {
  margin-top: 24px;
}

.home-links-bd {
  padding: 16px 0 4px;
  font-size: 16px;
  color: #333333;
}

.home-link-item {
  display: inline-block;
  margin-right: 24px;
  line-height: 24px;
  color: #333333;
}

.home-link-item:hover {
  color: #4488c1;
}

/* =============================================
   详情页
   ============================================= */
.detail-breadcrumb {
  margin-bottom: 20px;
  font-size: 14px;
  color: #6d7278;
}

.detail-breadcrumb a {
  color: #4488c1;
}

.detail-breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-icon {
  display: inline-block;
  vertical-align: middle;
}

.breadcrumb-icon img {
  display: block;
  width: 14px;
  height: 14px;
}

.breadcrumb-text {
  vertical-align: middle;
}

.detail-article {
  background-color: #ffffff;
  padding: 36px 80px 50px 80px;
}

.detail-title {
  width: 800px;
  margin: 0 auto;
  font-size: 34px;
  line-height: 47px;
  text-align: center;
  color: #333333;
  margin-bottom: 20px;
  /* 限制最多显示两行，超出隐藏（IE11 通过固定高度实现） */
  max-height: 2.8em;
  overflow: hidden;
}

.detail-meta {
  text-align: center;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid #979797;
}

.detail-date {
  font-size: 15px;
  color: #6d7278;
}

.detail-content {
  font-size: 18px;
  line-height: 34px;
  color: #6d7278;
  text-indent: 2em;
}

.detail-content p {
  margin-bottom: 18px;
}

/* =============================================
   列表页
   ============================================= */
.list-panel {
  background-color: #ffffff;
  padding: 26px 40px 32px 40px;
}

.news-link {
  display: block;
  padding: 10px 0;
  font-size: 0;
  color: #333333;
}

.news-title {
  display: inline-block;
  max-width: 860px;
  font-size: 16px;
  line-height: 26px;
  color: #333333;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* 列表前的圆点，仿照设计中的小点 */
  position: relative;
  padding-left: 14px;
}

.news-title:before {
  content: "·";
  position: absolute;
  left: 0;
  top: 0;
  color: #333333;
}

.news-title span {
  color: red;
}

.news-date {
  display: inline-block;
  float: right;
  font-size: 14px;
  color: #7b7b7b;
  line-height: 26px;
}

.news-link:hover .news-title {
  color: #4488c1;
}

/* 分页组件 */
.pagination {
  margin-top: 18px;
  text-align: right;
  font-size: 14px;
  color: #6d7278;
}

.page-info {
  margin-right: 8px;
}

.page-num,
.page-btn,
.page-go {
  display: inline-block;
  min-width: 32px;
  height: 30px;
  line-height: 30px;
  margin: 0 3px;
  padding: 0 8px;
  text-align: center;
  border: 1px solid #c7d4e4;
  background-color: #ffffff;
  color: #6d7278;
  cursor: pointer;
}

.page-num.current {
  background-color: #4488c1;
  border-color: #4488c1;
  color: #ffffff;
}

.page-btn.disabled {
  color: #bbbbbb;
  cursor: default;
}

.page-ellipsis {
  margin: 0 4px;
}

.page-input {
  width: 40px;
  height: 28px;
  line-height: 28px;
  margin: 0 4px;
  padding: 0 4px;
  border: 1px solid #c7d4e4;
  vertical-align: middle;
  text-align: center;
}

.page-go {
  background-color: #4488c1;
  border-color: #4488c1;
  color: #ffffff;
}

/* =============================================
   教育培训分栏列表（list1.html）
   左侧子分类 + 右侧图文列表
   ============================================= */
.train-layout {
  background-color: transparent;
}

.train-side {
  float: left;
  width: 210px;
}

.train-main {
  float: right;
  width: 960px;
}

.side-nav {
  background-color: #e6f0fa;
}

.side-nav-title {
  height: 56px;
  line-height: 56px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
  background-color: #4488c1;
}

.side-nav-item a {
  display: block;
  height: 48px;
  line-height: 48px;
  text-align: center;
  font-size: 16px;
  color: #4488c1;
  border-top: 1px solid #ffffff;
}

.side-nav-item.current a {
  background-color: #ffffff;
  border-left: 4px solid #4488c1;
  color: #4488c1;
}

.side-nav-item a:hover {
  background-color: #ffffff;
}

.card-list-panel {
  background-color: #ffffff;
  padding: 20px 30px 26px 30px;
}

.card-list {
  margin: 0;
}

.card-item {
  padding: 18px 0;
  border-bottom: 1px solid #e5e9ef;
}

.card-item:last-child {
  border-bottom: none;
}

.card-link {
  display: block;
  color: #333333;
}

.card-thumb {
  float: left;
  width: 120px;
  height: 120px;
  /* background-color: #f0f0f0; */
  text-align: center;
  line-height: 120px;
  overflow: hidden;
}

.card-thumb img {
  max-width: 100%;
  max-height: 100%;
  vertical-align: middle;
}

.card-info {
  margin-left: 150px;
}

.card-title {
  font-size: 18px;
  color: #333333;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 14px;
  line-height: 24px;
  color: #6d7278;
  max-height: 72px;
  overflow: hidden;
}

.card-link:hover .card-title {
  color: #4488c1;
}

/* =============================================
   专家页（委员 / 专家列表）
   ============================================= */
.expert-panel {
  background-color: #ffffff;
  padding: 20px 30px 30px 30px;
}

.expert-section {
  margin-bottom: 26px;
}

.expert-section-title {
  height: 30px;
  line-height: 30px;
  padding: 0 30px;
  background-color: #e6e6e6;
  font-size: 16px;
  font-weight: bold;
  color: #4488c1;
  letter-spacing: 1px;
}

.expert-list {
  padding: 18px 0 0 0;
}

.expert-list.chief {
  text-align: left;
}

.expert-item {
  display: inline-block;
  width: 117px;
  margin: 0 40px 26px 0;
  text-align: center;
  vertical-align: top;
}

.expert-photo {
  width: 117px;
  height: 183px;
  /* 使用 table-cell 实现图片在固定容器内的垂直居中，兼容 IE11 */
  display: table-cell;
  text-align: center;
  vertical-align: middle;
  overflow: hidden;
}

.expert-photo img {
  /* 作为“内联块”参与垂直居中计算 */
  display: inline-block;
  max-width: 100%;
  max-height: 100%;
}

.expert-name {
  margin-top: 8px;
  font-size: 16px;
  color: #333333;
  font-weight: bold;
}

/* =============================================
   证书查询页
   ============================================= */
.query-panel {
  background-color: #ffffff;
  padding: 30px 60px 40px 60px;
}

.query-title {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  color: #2f6ea7;
  margin-bottom: 36px;
}

.query-form {
  width: 480px;
  margin: 0 auto;
}

.query-row {
  display: table;
  width: 100%;
  margin-bottom: 14px;
}

.query-label {
  display: table-cell;
  width: 90px;
  font-size: 14px;
  color: #333333;
  text-align: right;
  vertical-align: middle;
}

.query-field {
  display: table-cell;
  padding-left: 10px;
  vertical-align: middle;
}

.query-input {
  width: 100%;
  height: 32px;
  line-height: 32px;
  padding: 0 8px;
  border: 1px solid #c7d4e4;
  font-size: 14px;
  font-family: "Microsoft YaHei", "SimSun", Arial, sans-serif;
  color: #333333;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.query-tip {
  margin-top: 8px;
  font-size: 12px;
  color: #999999;
  text-align: center;
}

.query-actions {
  margin-top: 20px;
  text-align: center;
}

.query-button {
  min-width: 140px;
  height: 36px;
  line-height: 36px;
  padding: 0 20px;
  border: none;
  background-color: #4488c1;
  color: #ffffff;
  font-size: 14px;
  font-family: "Microsoft YaHei", "SimSun", Arial, sans-serif;
  cursor: pointer;
}

.query-button:hover {
  background-color: #2f6ea7;
}

/* =============================================
   证书查询结果页（zhengshu1.html）
   ============================================= */
.cert-panel {
  background-color: #ffffff;
  padding: 30px 60px 40px 60px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.06);
}

.cert-table {
  width: 600px;
  margin: 0 auto 24px auto;
  border-collapse: collapse;
  border: 1px solid #d0dde9;
}

.cert-table th,
.cert-table td {
  border: 1px solid #d0dde9;
  font-size: 14px;
  color: #333333;
  padding: 8px 12px;
  vertical-align: middle;
}

.cert-label {
  width: 120px;
  text-align: right;
  background-color: #f5f7fa;
}

.cert-value {
  text-align: left;
  color: #4488c1 !important;
}

.cert-photo-cell {
  text-align: center;
}

.cert-photo {
  width: 117px;
  height: 183px;
  display: inline-block;
}

.cert-qrcode {
  width: 120px;
  height: 120px;
  margin: 10px auto;
  background-color: #000000;
}

.cert-actions {
  text-align: center;
}

.cert-back-button {
  margin-top: 12px;
  min-width: 140px;
  height: 36px;
  line-height: 36px;
  padding: 0 20px;
  border: 1px solid #c7d4e4;
  background-color: #ffffff;
  color: #4488c1;
  font-size: 14px;
  font-family: "Microsoft YaHei", "SimSun", Arial, sans-serif;
  cursor: pointer;
}

.cert-back-button:hover {
  background-color: #f0f4f8;
}

/* =============================================
   底部区域
   顶部通栏 4px 横线：#4488C1
   ============================================= */
.footer {
  border-top: 4px solid #4488c1;
  padding: 30px 0;
  background-color: transparent;
  color: #555555;
  font-size: 14px;
}

.footer-inner {
  width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-badge,
.footer-text {
  display: inline-block;
  vertical-align: middle;
}

.footer-badge {
  margin-right: 20px;
}

.footer-badge img {
  display: block;
}

.footer-text {
  line-height: 1.9;
  text-align: left;
}
