/* 
 * 中国政法大学企业合规师 - KesionCMS v9.5 简化版模板
 * 锁定1200px宽度，传统架构
 */

/* ===== 基础重置 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", "SimHei", "PingFang SC", sans-serif;
  font-size: 14px;
  line-height: 1.8;
  color: #333;
  background: #f5f5f5;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  border: none;
  vertical-align: middle;
}

ul, ol {
  list-style: none;
}

/* ===== 颜色变量 ===== */
:root {
  --primary: #1e3a5f;
  --primary-dark: #152a45;
  --gold: #c9a227;
  --gold-dark: #b8921f;
  --text: #333;
  --text-gray: #666;
  --text-light: #999;
  --border: #e0e0e0;
  --bg-gray: #f5f5f5;
  --white: #fff;
}

/* ===== 容器 - 锁定1200px ===== */
.wrapper {
  width: 1200px;
  margin: 0 auto;
  background: #fff;
}

/* ===== 顶部Banner ===== */
.topbanner {
  width: 1200px;
  height: 160px;
  background: url('../images/topbanner.jpg') center/cover no-repeat;
  position: relative;
}

.topbanner-title {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.topbanner-title h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 8px;
}

.topbanner-title p {
  font-size: 14px;
  opacity: 0.9;
}

/* ===== 导航条 ===== */
.navbar {
  width: 1200px;
  height: 50px;
  background: var(--primary);
  border-bottom: 3px solid var(--gold);
}

.nav-list {
  display: flex;
  height: 50px;
}

.nav-item {
  flex: 1;
  text-align: center;
}

.nav-item a {
  display: block;
  height: 47px;
  line-height: 47px;
  color: rgba(255,255,255,0.9);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s;
}

.nav-item a:hover,
.nav-item.current a {
  background: rgba(255,255,255,0.1);
  color: var(--gold);
}

.nav-item.highlight a {
  background: var(--gold);
  color: var(--primary);
}

.nav-item.highlight a:hover {
  background: var(--gold-dark);
}

/* ===== 面包屑 ===== */
.breadcrumb {
  padding: 15px 30px;
  background: #fafafa;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-gray);
}

.breadcrumb a {
  color: var(--text);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb span {
  margin: 0 8px;
  color: var(--text-light);
}

.breadcrumb .current {
  color: var(--primary);
}

/* ===== 主体内容区 ===== */
.main {
  padding: 30px;
  min-height: 500px;
}

/* ===== 栏目页标题 ===== */
.list-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  padding-bottom: 15px;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 25px;
}

.list-title span {
  font-size: 13px;
  color: var(--text-light);
  font-weight: normal;
  margin-left: 15px;
}

/* ===== 文章列表 ===== */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.article-item {
  display: flex;
  gap: 20px;
  padding-bottom: 25px;
  border-bottom: 1px dashed var(--border);
}

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

.article-thumb {
  width: 200px;
  height: 140px;
  overflow: hidden;
  flex-shrink: 0;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.article-item:hover .article-thumb img {
  transform: scale(1.05);
}

.article-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.5;
}

.article-item:hover .article-title {
  color: var(--primary);
}

.article-desc {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.8;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  gap: 25px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-light);
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ===== 分页 ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px solid var(--border);
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  font-size: 14px;
  border: 1px solid var(--border);
  color: var(--text);
  transition: all 0.3s;
}

.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination .current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ===== 内容页 ===== */
.article-detail {
  padding: 0 20px;
}

.article-header {
  text-align: center;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 30px;
}

.article-header h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 15px;
}

.article-info {
  display: flex;
  justify-content: center;
  gap: 30px;
  font-size: 13px;
  color: var(--text-light);
}

.article-info span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-body {
  font-size: 15px;
  line-height: 2;
  color: var(--text);
}

.article-body p {
  margin-bottom: 20px;
  text-indent: 2em;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  margin: 30px 0 15px;
  color: var(--primary);
}

.article-body h2 {
  font-size: 20px;
  border-left: 4px solid var(--gold);
  padding-left: 15px;
}

.article-body h3 {
  font-size: 18px;
}

.article-body img {
  max-width: 100%;
  margin: 20px auto;
  display: block;
}

.article-body blockquote {
  background: var(--bg-gray);
  border-left: 4px solid var(--gold);
  padding: 15px 20px;
  margin: 20px 0;
  font-style: italic;
  color: var(--text-gray);
}

.article-body ul,
.article-body ol {
  margin: 20px 0;
  padding-left: 2em;
}

.article-body ul li {
  list-style: disc;
  margin-bottom: 8px;
}

.article-body ol li {
  list-style: decimal;
  margin-bottom: 8px;
}

/* ===== 相关文章 ===== */
.related-articles {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid var(--primary);
}

.related-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  padding-left: 15px;
  border-left: 4px solid var(--gold);
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.related-item::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.related-item a {
  flex: 1;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-item a:hover {
  color: var(--primary);
}

.related-item .date {
  font-size: 12px;
  color: var(--text-light);
  flex-shrink: 0;
}

/* ===== 上下篇 ===== */
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px dashed var(--border);
}

.article-nav-item {
  flex: 1;
  padding: 15px;
  background: var(--bg-gray);
  transition: all 0.3s;
}

.article-nav-item:hover {
  background: var(--primary);
}

.article-nav-item:hover .nav-label,
.article-nav-item:hover .nav-title {
  color: #fff;
}

.article-nav-item.next {
  text-align: right;
}

.nav-label {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 5px;
}

.nav-title {
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== 版权行 ===== */
.footer {
  padding: 20px 30px;
  background: var(--primary);
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  border-top: 3px solid var(--gold);
}
