/* /css/style.css */
/* 全局重置 & 基础 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: #f5f5f5;
  color: #1e3a5f;
}

/* 容器 1200px 锁定 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  padding: 30px 40px 40px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  border-radius: 0 0 8px 8px;
}

/* 顶部横幅 */
.top-banner {
  max-width: 1200px;
  margin: 0 auto;
  background: #1e3a5f;
}
.banner-img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 160px;
  object-fit: cover;
}

/* 导航 */
.main-nav {
  max-width: 1200px;
  margin: 0 auto;
  background: #1e3a5f;
  border-top: 3px solid #c9a227;
  border-bottom: 1px solid #2a4a72;
}
.main-nav ul {
  display: flex;
  list-style: none;
  padding: 0 20px;
}
.main-nav li {
  margin-right: 2px;
}
.main-nav a {
  display: block;
  padding: 14px 28px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  transition: background 0.2s;
  border-radius: 4px 4px 0 0;
}
.main-nav a:hover,
.main-nav a.active {
  background: #c9a227;
  color: #1e3a5f;
}
.main-nav a.active {
  background: #c9a227;
  color: #1e3a5f;
  font-weight: 600;
}

/* 面包屑 */
.breadcrumb {
  padding: 12px 0 18px;
  font-size: 14px;
  color: #888;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}
.breadcrumb a {
  color: #1e3a5f;
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb span {
  color: #c9a227;
}

/* 页面标题 */
.page-title,
.article-title {
  font-size: 28px;
  color: #1e3a5f;
  border-left: 5px solid #c9a227;
  padding-left: 16px;
  margin-bottom: 20px;
  line-height: 1.3;
}

/* 文章列表 (通用) */
.article-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.article-list li {
  padding: 12px 0;
  border-bottom: 1px dashed #e0e5ed;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.article-list li a {
  color: #1e3a5f;
  text-decoration: none;
  font-size: 16px;
}
.article-list li a:hover {
  color: #c9a227;
}
.article-list .date {
  color: #999;
  font-size: 14px;
  background: #f0f2f5;
  padding: 2px 10px;
  border-radius: 12px;
}

/* 分页 */
.pagination {
  text-align: center;
  margin-top: 30px;
  padding: 12px 0;
  border-top: 1px solid #eee;
}
.pagination a,
.pagination span {
  display: inline-block;
  padding: 6px 14px;
  margin: 0 3px;
  border: 1px solid #d0d7e5;
  border-radius: 4px;
  color: #1e3a5f;
  background: #fafbfc;
  text-decoration: none;
}
.pagination a:hover {
  background: #c9a227;
  color: #fff;
  border-color: #c9a227;
}

/* 证书结构化 meta */
.cert-meta {
  background: #f8f9fc;
  border-radius: 8px;
  padding: 18px 22px;
  margin: 20px 0 25px;
  border-left: 4px solid #c9a227;
}
.meta-row {
  display: flex;
  padding: 6px 0;
  border-bottom: 1px dashed #e6eaf0;
}
.meta-row:last-child {
  border-bottom: none;
}
.meta-label {
  width: 130px;
  flex-shrink: 0;
  font-weight: 600;
  color: #1e3a5f;
}
.meta-value {
  color: #2c3e5f;
  word-break: break-word;
}
.meta-value a {
  color: #c9a227;
  text-decoration: none;
  font-weight: 500;
}
.meta-value a:hover {
  text-decoration: underline;
}

/* 文章正文 */
.article-content {
  line-height: 1.8;
  font-size: 16px;
  color: #2c3e50;
  margin: 25px 0;
}
.article-content p {
  margin-bottom: 16px;
}
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* 相关区块 */
.related-section {
  margin-top: 35px;
  padding-top: 20px;
  border-top: 2px solid #eef2f7;
}
.related-section h3 {
  color: #1e3a5f;
  font-size: 20px;
  margin-bottom: 15px;
  padding-left: 12px;
  border-left: 4px solid #c9a227;
}
.related-section ul {
  list-style: none;
  padding: 0;
}
.related-section li {
  padding: 8px 0;
  border-bottom: 1px dotted #e6eaf0;
}
.related-section li a {
  color: #1e3a5f;
  text-decoration: none;
}
.related-section li a:hover {
  color: #c9a227;
}

/* 上下篇 */
.prev-next {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid #e6eaf0;
  font-size: 15px;
  color: #555;
}
.prev-next a {
  color: #1e3a5f;
  text-decoration: none;
}
.prev-next a:hover {
  color: #c9a227;
}

/* 首页区块 */
.home-section {
  margin-top: 30px;
}
.section-title {
  font-size: 24px;
  color: #1e3a5f;
  border-bottom: 2px solid #c9a227;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

/* ===== 底部版权（Footer）增强 ===== */

.footer {
  max-width: 1200px;
  margin: 0 auto;
  background: #1e3a5f;
  color: #ccc;
  text-align: center;
  padding: 18px 0;
  font-size: 14px;
  border-top: 3px solid #c9a227;
  margin-top: 20px;
}

.footer p {
  margin: 0;
}

/* 底部链接（备案号、服务协议） */
.footer a {
  color: #ccc;                /* 与footer普通文字颜色一致 */
  text-decoration: none;
}

.footer a:link,
.footer a:visited,
.footer a:active {
  color: #ccc;                /* 任何状态都保持相同颜色 */
  text-decoration: none;
}

.footer a:hover {
  color: #ccc;                /* hover时颜色不变 */
  text-decoration: underline; /* 仅加下划线 */
}

.footer .sep {
  color: #666;
  margin: 0 4px;
}

/* 兼容原有 .footer p 结构，不改动已有样式 */

/* 响应式微调 */
@media (max-width: 768px) {
  .container { padding: 20px; }
  .main-nav ul { flex-wrap: wrap; }
  .main-nav a { padding: 10px 16px; font-size: 14px; }
  .meta-label { width: 100px; }
  .meta-row { flex-wrap: wrap; }
  .prev-next { flex-direction: column; gap: 8px; }
}

/* ===== 分页 fenye 配色 ===== */
#fenye a {
  color: #1e3a5f;              /* 首页/上一页/下一页/末页/页码 */
  text-decoration: none;        /* 不想要下划线就留着，想保留删掉这行 */
}
#fenye a:hover {
  color: #c9a227;               /* 鼠标悬停(可选) */
}

/* 当前页 —— 注意必须连 font 一起选中 */
#fenye a.curr,
#fenye a.curr font {
  color: #c9a227 !important;    /* !important 用于压掉 <font color=red> */
  font-weight: bold;
}

/* 兜底：让分页里所有 font 标签跟随父级颜色，防止别处还有写死的颜色 */
#fenye font {
  color: inherit;
}

/* 页次统计文字(可选) */
#fenye #pagelist > span {
  color: #1e3a5f;
}

/* ===== 报名按钮（仅强化“点此报名”链接） ===== */

.btn-reg {
  display: inline-block;
  background: #c9a227;           /* 品牌金色背景 */
  color: #1e3a5f !important;                /* 深蓝文字 */
  font-weight: 700;
  padding: 4px 18px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  font-size: 15px;
}

.btn-reg:hover {
  background: #b38f1e;           /* 悬停时金色略深 */
  color: #1e3a5f;
  text-decoration: none;
}

.btn-reg:active {
  transform: scale(0.96);        /* 点击时轻微缩小，有反馈感 */
}