@charset "UTF-8";
/* Content Article —— 文章详情页样式（不依赖 index.css） */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #f5f7f5;
  color: #333333;
  line-height: 1.6;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 布局容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}

/* 面包屑 */
.breadcrumb {
  font-size: 0.88rem;
  color: #666666;
  padding: 12px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumb a {
  color: #0d7a3d;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #095c2d;
  text-decoration: underline;
}

.breadcrumb .separator {
  color: #999999;
}

.breadcrumb .current {
  color: #666666;
}

/* 文章卡片 */
.article {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 32px 40px;
}

.article-header {
  border-bottom: 1px solid #e0e6e0;
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.article-title {
  font-size: 1.8rem;
  font-weight: 800;
  /*color: #095c2d;*/
  color: #000000;
  line-height: 1.4;
  margin-bottom: 14px;
  letter-spacing: 1px;
  text-align: center;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 0.88rem;
  color: #666666;
}

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

.article-meta .meta-icon {
  color: #0d7a3d;
  font-size: 0.95rem;
}

/* 文章正文 */
.article-body {
  font-size: 1.05rem;
  color: #333333;
  line-height: 1.85;
  word-break: break-word;
}

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

.article-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #095c2d;
  margin: 28px 0 14px;
  padding-left: 12px;
  border-left: 4px solid #0d7a3d;
  line-height: 1.4;
}

.article-body h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: #0d7a3d;
  margin: 22px 0 12px;
  line-height: 1.4;
}

.article-body h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #333333;
  margin: 18px 0 10px;
}

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

.article-body li {
  margin-bottom: 6px;
  padding-left: 4px;
}

.article-body blockquote {
  margin: 18px 0;
  padding: 12px 18px;
  background: #f8faf8;
  border-left: 4px solid #0d7a3d;
  color: #555555;
  font-style: normal;
  border-radius: 0 4px 4px 0;
}

.article-body blockquote p {
  margin-bottom: 6px;
  text-indent: 0;
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

/*.article-body strong {
  color: #095c2d;
  font-weight: 700;
}*/

.article-body a {
  color: #0d7a3d;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.article-body a:hover {
  color: #095c2d;
}

/* 文章正文中的图片 —— 居中且不超出文章宽度 */
.article-body img {
  display: block; /* 块级元素，margin auto 才能居中 */
  max-width: 100% !important; /* 宽度不超过文章容器 */
  height: auto !important; /* 高度按比例自适应，避免变形；!important 覆盖 CMS 内容里的内联固定高度（如 style="height:811px"）导致手机端图片拉长 */
  width: auto !important; /* 配合 max-width，忽略内联固定宽度 */
  margin: 20px auto; /* 上下 20px 间距，左右 auto居中 */
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.article-body figure {
  margin: 20px 0;
  text-align: center;
}

.article-body figure img {
  margin: 20px auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.article-body figcaption {
  margin-top: 8px;
  font-size: 0.88rem;
  color: #666666;
}

/* 文章附件下载 */
.article-attachments {
  margin-top: 28px;
  padding: 18px 22px;
  background: #f8faf8;
  border: 1px solid #e0e6e0;
  border-left: 4px solid #0d7a3d;
  border-radius: 6px;
}

.attachments-title {
  margin: 0 0 12px;
  font-size: 1.08rem;
  font-weight: 700;
  color: #095c2d;
  display: flex;
  align-items: center;
}

.attachments-title::before {
  content: "📎";
  margin-right: 8px;
  font-size: 1.1rem;
}

.attachments-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.attachments-item {
  border-top: 1px dashed #e0e6e0;
}

.attachments-item:first-child {
  border-top: 0;
}

.attachments-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  color: #333333;
  text-decoration: none;
  font-size: 0.96rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.attachments-item a:hover {
  background: #ffffff;
  color: #0d7a3d;
}

.attachment-icon {
  font-size: 1.25rem;
  flex: 0 0 auto;
}

.attachment-name {
  flex: 1 1 auto;
  color: #0d7a3d;
}

.attachments-item a:hover .attachment-name {
  text-decoration: underline;
}

.attachment-meta {
  flex: 0 0 auto;
  color: #999999;
  font-size: 0.82rem;
}

@media (max-width: 768px) {
  .article-attachments {
    padding: 14px 16px;
  }
  .attachment-meta {
    display: none;
  }
}

/* 文章底部信息 */
.article-footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px dashed #e0e6e0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: #666666;
}

.article-footer .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-footer .tag {
  background: #f8faf8;
  color: #0d7a3d;
  padding: 3px 12px;
  border-radius: 20px;
  border: 1px solid #e0e6e0;
  font-size: 0.82rem;
}

.article-footer .source {
  color: #999999;
}

/* 上下篇导航 */
.article-nav {
  margin-top: 20px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.article-nav .nav-item {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  background: #f8faf8;
  border-radius: 6px;
  transition: background 0.2s;
  min-width: 0;
}

.article-nav .nav-item:hover {
  background: #eef5ef;
}

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

.article-nav .nav-label {
  font-size: 0.82rem;
  color: #666666;
  margin-bottom: 4px;
}

.article-nav .nav-title {
  font-size: 0.95rem;
  color: #333333;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-nav .nav-item:hover .nav-title {
  color: #0d7a3d;
}

/* 页脚 */
.footer {
  background: #095c2d;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding: 24px 16px;
  margin-top: 24px;
  font-size: 0.85rem;
}

/* 移动端适配 */
@media (max-width: 992px) {
  .article {
    padding: 22px 22px;
  }

  .article-title {
    font-size: 1.45rem;
  }

  .article-body {
    font-size: 1rem;
    line-height: 1.8;
  }

  .article-body h2 {
    font-size: 1.25rem;
  }

  .article-body h3 {
    font-size: 1.1rem;
  }

  .article-nav {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  .container {
    padding: 12px;
  }

  .article {
    padding: 18px 16px;
    border-radius: 6px;
  }

  .article-title {
    font-size: 1.25rem;
    letter-spacing: 0;
  }

  .article-meta {
    gap: 12px;
    font-size: 0.82rem;
  }

  .article-body {
    font-size: 0.95rem;
    line-height: 1.75;
  }

  .article-body p {
    text-indent: 1.5em;
    margin-bottom: 14px;
  }

  .article-body h2 {
    font-size: 1.15rem;
    margin: 22px 0 10px;
  }

  .article-body h3 {
    font-size: 1.02rem;
    margin: 18px 0 8px;
  }

  .article-body blockquote {
    padding: 10px 14px;
    font-size: 0.92rem;
  }

  .article-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .breadcrumb {
    font-size: 0.82rem;
    padding: 8px 0;
  }
}

/* ==================== Channel —— 频道分页列表页 ==================== */

/* 频道头部 */
.channel-header {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 16px 26px;
  margin-bottom: 16px;
  border-left: 6px solid #0d7a3d;
  position: relative;
  overflow: hidden;
}

.channel-header::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 220px;
  height: 100%;
  background-image: linear-gradient(135deg, transparent 50%, rgba(13, 122, 61, 0.06) 50%);
  pointer-events: none;
}

.channel-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.channel-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #095c2d;
  letter-spacing: 2px;
  line-height: 1.3;
  position: relative;
}

.channel-subtitle {
  font-size: 0.88rem;
  color: #999999;
  letter-spacing: 3px;
  font-weight: 600;
}

.channel-desc {
  font-size: 0.88rem;
  color: #666666;
  line-height: 1.6;
  max-width: 80%;
  position: relative;
}

/* 列表卡片 */
.channel-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.list-item {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 12px 20px;
  display: flex;
  gap: 18px;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.list-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

/* 左侧日期块 */
.list-date {
  flex-shrink: 0;
  width: 64px;
  text-align: center;
  background: linear-gradient(135deg, #0d7a3d 0%, #095c2d 100%);
  color: #ffffff;
  border-radius: 6px;
  padding: 5px 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.list-date .day {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 1px;
}

.list-date .year-month {
  font-size: 0.72rem;
  margin-top: 2px;
  opacity: 0.85;
  letter-spacing: 1px;
}

/* 右侧正文 */
.list-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}

.list-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.list-title a {
  color: #333333;
  transition: color 0.2s;
}

.list-title a:hover {
  color: #0d7a3d;
}

.list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: #999999;
}

.list-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.list-meta .meta-icon {
  color: #0d7a3d;
}

/* 分页 */
.pagination {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.9rem;
}

.page-btn,
.page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #e0e6e0;
  border-radius: 4px;
  background: #ffffff;
  color: #555555;
  font-weight: 500;
  transition: all 0.2s;
}

.page-btn {
  padding: 0 14px;
  font-size: 0.85rem;
}

.page-btn:hover,
.page-num:hover {
  border-color: #0d7a3d;
  color: #0d7a3d;
}

.page-btn.disabled {
  color: #cccccc;
  border-color: #ececec;
  background: #fafafa;
  cursor: not-allowed;
  pointer-events: none;
}

.page-btn.disabled:hover {
  border-color: #ececec;
  color: #cccccc;
}

.page-num.active {
  background: #0d7a3d;
  border-color: #0d7a3d;
  color: #ffffff;
  cursor: default;
}

.page-ellipsis {
  color: #999999;
  padding: 0 4px;
  user-select: none;
}

.page-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  color: #666666;
  font-size: 0.85rem;
}

.page-input {
  width: 50px;
  height: 32px;
  border: 1px solid #e0e6e0;
  border-radius: 4px;
  text-align: center;
  font-size: 0.88rem;
  color: #333333;
  outline: none;
  -moz-appearance: textfield;
}

.page-input::-webkit-outer-spin-button,
.page-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.page-input:focus {
  border-color: #0d7a3d;
}

.page-go {
  height: 32px;
  padding: 0 14px;
  border: none;
  background: #0d7a3d;
  color: #ffffff;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}

.page-go:hover {
  background: #095c2d;
}

/* 频道页移动端适配 */
@media (max-width: 992px) {
  .channel-header {
    padding: 14px 18px;
  }

  .channel-title {
    font-size: 1.25rem;
  }

  .channel-desc {
    max-width: 100%;
  }

  .list-item {
    padding: 12px 18px;
    gap: 16px;
  }

  .list-date {
    width: 64px;
  }

  .list-date .day {
    font-size: 1.3rem;
  }
}

@media (max-width: 600px) {
  .list-item {
    flex-direction: row;
    padding: 10px 12px;
    gap: 12px;
  }

  .list-date {
    width: 56px;
    padding: 4px 4px;
  }

  .list-date .day {
    font-size: 1.15rem;
  }

  .list-date .year-month {
    font-size: 0.7rem;
  }

  .list-title {
    font-size: 1rem;
  }

  .list-meta {
    gap: 10px;
    font-size: 0.78rem;
  }

  .pagination {
    padding: 12px 12px;
    gap: 4px;
    font-size: 0.82rem;
  }

  .page-btn,
  .page-num {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
  }

  .page-btn {
    padding: 0 10px;
    font-size: 0.78rem;
  }

  .page-jump {
    width: 100%;
    justify-content: center;
    margin-left: 0;
    margin-top: 6px;
  }
}

/* ===================== 文章页操作按钮 ===================== */
.article-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 20px 0 30px;
}

.action-btn {
  padding: 9px 32px;
  font-size: 0.95rem;
  font-family: inherit;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  letter-spacing: 2px;
}

.btn-print {
  background: #ffffff;
  color: #555555;
  border: 1px solid #cccccc;
}

.btn-print:hover {
  color: #0d7a3d;
  border-color: #0d7a3d;
  box-shadow: 0 3px 8px rgba(13, 122, 61, 0.3);
}

.btn-close {
  background: #ffffff;
  color: #555555;
  border: 1px solid #cccccc;
}

.btn-close:hover {
  color: #0d7a3d;
  border-color: #0d7a3d;
  box-shadow: 0 3px 8px rgba(13, 122, 61, 0.3);
}

@media (max-width: 600px) {
  .article-actions {
    display: none;
  }
}

/* 打印时隐藏按钮及无关元素 */
@media print {
  .site-header,
  .breadcrumb,
  .article-actions,
  .footer {
    display: none !important;
  }

  .article {
    box-shadow: none;
    border: none;
    padding: 0;
  }
}