/* 文章内容页样式 */

/* 右侧文章内容容器 */
.article-content {
  flex: 1;
  background: #fff;
  border-radius: 4px;
  padding: 30px 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 面包屑导航 */
.article-content .breadcrumb {
  font-size: 14px;
  color: #666;
  margin-bottom: 25px;
  /* padding-bottom: 15px; */
  border-bottom: 2px solid #0e458a;
}

.article-content .breadcrumb a {
  color: #0e458a;
  transition: color 0.3s;
}

.article-content .breadcrumb a:hover {
  color: #1a5dad;
  text-decoration: underline;
}

.article-content .breadcrumb span {
  color: #333;
  font-weight: 500;
}

/* 文章标题区 */
.article-header {
  text-align: center;
  padding: 20px 0 30px;
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 30px;
}

.article-title-main {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  line-height: 1.5;
  margin-bottom: 20px;
}

.article-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  color: #666;
}

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

.meta-item i {
  font-style: normal;
  color: #0e458a;
}

/* 文章正文 */
.article-body {
  font-size: 16px;
  line-height: 2;
  color: #333;
  padding: 20px 0;
}

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

.article-body h3 {
  font-size: 20px;
  font-weight: bold;
  color: #0e458a;
  margin: 25px 0 15px;
  padding-left: 15px;
  border-left: 4px solid #0e458a;
}

.article-body h4 {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin: 20px 0 12px;
}

.article-body ul,
.article-body ol {
  margin: 15px 0;
  padding-left: 40px;
}

.article-body li {
  margin-bottom: 8px;
  line-height: 1.8;
}

.article-body a {
  color: #0e458a;
  text-decoration: underline;
}

.article-body a:hover {
  color: #1a5dad;
}

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

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.article-body table th,
.article-body table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

.article-body table th {
  background-color: #f5f5f5;
  font-weight: bold;
}

/* 附件下载区 */
.article-attachment {
  background: #f9f9f9;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  padding: 20px;
  margin-top: 30px;
}

.article-attachment h4 {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin: 0 0 15px 0;
  padding-left: 0;
  border-left: none;
}

.article-attachment ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-attachment li {
  margin-bottom: 10px;
}

.article-attachment li:last-child {
  margin-bottom: 0;
}

.article-attachment a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0e458a;
  font-size: 14px;
  padding: 8px 15px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 3px;
  transition: all 0.3s;
  text-decoration: none;
}

.article-attachment a:hover {
  background: #0e458a;
  color: #fff;
  border-color: #0e458a;
}

.article-attachment .icon-file:before {
  content: "📄";
  font-style: normal;
}

/* 上一篇/下一篇导航 */
.article-navigation {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid #e8e8e8;
}

.nav-item {
  display: flex;
  align-items: flex-start;
  padding: 12px 15px;
  margin-bottom: 12px;
  background: #f9f9f9;
  border-radius: 4px;
  transition: background 0.3s;
}

.nav-item:hover {
  background: #f0f5fa;
}

.nav-label {
  font-size: 14px;
  color: #666;
  font-weight: 500;
  white-space: nowrap;
  margin-right: 10px;
}

.nav-link {
  flex: 1;
  color: #333;
  font-size: 14px;
  line-height: 1.6;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #0e458a;
  text-decoration: underline;
}

/* 上一篇样式 */
.nav-prev {
  position: relative;
  padding-left: 45px;
}

.nav-prev:before {
  content: "↑";
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #0e458a;
  font-weight: bold;
}

/* 下一篇样式 */
.nav-next {
  position: relative;
  padding-left: 45px;
}

.nav-next:before {
  content: "↓";
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #0e458a;
  font-weight: bold;
}

/* 返回列表按钮 */
.nav-back {
  text-align: center;
  margin-top: 20px;
  padding: 0;
  background: none;
}

.nav-back:hover {
  background: none;
}

.back-btn {
  display: inline-block;
  padding: 10px 40px;
  background: #0e458a;
  color: #fff;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s;
  text-decoration: none;
}

.back-btn:hover {
  background: #1a5dad;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(14, 69, 138, 0.3);
}

/* 响应式设计 */
@media (max-width: 991px) {
  .article-content {
    padding: 20px 25px;
  }

  .article-title-main {
    font-size: 24px;
  }

  .article-meta {
    flex-direction: column;
    gap: 10px;
  }

  .article-body {
    font-size: 15px;
  }

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

@media (max-width: 767px) {
  .article-content {
    padding: 15px 20px;
  }

  .article-title-main {
    font-size: 20px;
  }

  .article-body {
    font-size: 14px;
    line-height: 1.8;
  }

  .article-body p {
    text-indent: 0;
  }

  .article-body h3 {
    font-size: 16px;
    padding-left: 10px;
    border-left-width: 3px;
  }

  .nav-item {
    flex-direction: column;
    padding-left: 15px;
  }

  .nav-prev:before,
  .nav-next:before {
    display: none;
  }

  .nav-label {
    margin-bottom: 5px;
  }

  .back-btn {
    padding: 8px 30px;
    font-size: 14px;
  }
}
