/* ==================== 内容页专属样式 ==================== */

/* 背景层 */
.content-bg {
  position: relative;
  background-image: url(../culture/upload/bg-china.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  padding: 40px 20px;
  z-index: 0;
}

/* 内容容器 —— PC端舒展，手机端保留留白 */
.content-container {
  max-width: 1200px;
  width: 94%;
  margin: 0 auto;
  padding: 0;
  overflow-x: hidden;
}

/* 单卡片样式 */
.content-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  margin-bottom: 30px;
  transition: box-shadow 0.3s ease;
}

/* 可选封面图 */
.content-cover {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* 内容主体区 */
.content-body {
  padding: 40px 48px;
}

/* 主标题 */
.content-title {
  font-size: 34px;
  color: #002d4a;
  margin-bottom: 16px;
  line-height: 1.3;
  font-weight: 700;
  border-left: 5px solid #005b96;
  padding-left: 24px;
}

/* 元信息 */
.content-meta {
  font-size: 14px;
  color: #888;
  border-bottom: 1px solid #eaeef2;
  padding-bottom: 24px;
  margin-bottom: 32px;
}

/* ========== 正文排版 ========== */
.content-body p {
  font-size: 17.5px;
  line-height: 1.85;
  color: #2c3e4e;
  margin-bottom: 1.5em;
}

.content-body h2 {
  font-size: 28px;
  color: #004b7c;
  margin: 2em 0 0.8em 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #dce5ec;
  font-weight: 600;
}

.content-body h3 {
  font-size: 23px;
  color: #005b96;
  margin: 1.6em 0 0.6em 0;
  font-weight: 600;
}

.content-body h4 {
  font-size: 20px;
  color: #2c6e9e;
  margin: 1.4em 0 0.5em 0;
  font-weight: 500;
}

.content-body strong {
  color: #003f5c;
  font-weight: 700;
}

.content-body a {
  color: #005b96;
  text-decoration: none;
  border-bottom: 1px solid #cbdbe0;
  transition: color 0.2s, border-color 0.2s;
}

.content-body a:hover {
  color: #003f73;
  border-bottom-color: #003f73;
}

.content-body ul, 
.content-body ol {
  margin: 1em 0 1.5em 2em;
  font-size: 17.5px;
  line-height: 1.85;
  color: #2c3e4e;
}

.content-body li {
  margin-bottom: 0.5em;
}

.content-body blockquote {
  margin: 2em 0;
  padding: 20px 32px;
  background: #f0f4f9;
  border-left: 5px solid #005b96;
  font-style: normal;
  color: #2c4c6c;
  border-radius: 0 16px 16px 0;
  font-size: 16.5px;
}

.content-body blockquote p {
  margin-bottom: 0;
  font-size: 16.5px;
}

/* ========== 插图样式 ========== */
.content-figure {
  margin: 2em 0;
}

.content-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: block;
}

.figure-caption {
  font-size: 13.5px;
  color: #6c7a89;
  text-align: center;
  margin-top: 10px;
  line-height: 1.4;
}

/* 居中插图 */
.content-figure-center {
  text-align: center;
}
.content-figure-center img {
  display: inline-block;
  max-width: 80%;
}

/* 左浮动插图 */
.content-figure-left {
  float: left;
  margin: 0.5em 32px 1em 0;
  max-width: 48%;
}
.content-figure-left img {
  width: 100%;
}

/* 右浮动插图 */
.content-figure-right {
  float: right;
  margin: 0.5em 0 1em 32px;
  max-width: 48%;
}
.content-figure-right img {
  width: 100%;
}

/* 全宽大图 */
.content-figure-full {
  width: calc(100% + 96px);
  margin-left: -48px;
  margin-right: -48px;
  margin-top: 2.5em;
  margin-bottom: 2.5em;
}
.content-figure-full img {
  width: 100%;
  height: auto;
  border-radius: 0;
  display: block;
}
.content-figure-full .figure-caption {
  padding: 12px 48px 0 48px;
  text-align: center;
}

/* ========== 响应式适配 ========== */

/* 平板端 */
@media (max-width: 1024px) and (min-width: 769px) {
  .content-body {
    padding: 32px 36px;
  }
  .content-title {
    font-size: 30px;
  }
  .content-body p {
    font-size: 17px;
  }
  .content-figure-full {
    width: calc(100% + 72px);
    margin-left: -36px;
    margin-right: -36px;
  }
  .content-figure-full .figure-caption {
    padding: 10px 36px 0 36px;
  }
}

/* 手机端 —— 关键修改：卡片不占满，左右留白 15px，与原模板风格一致 */
@media (max-width: 768px) {
  .content-bg {
    padding: 20px 15px;        /* 左右留白 15px（原模板是 20px，稍微收窄但不贴边） */
    background-attachment: scroll;
  }
  .content-container {
    width: 100%;               /* 容器占满，但父级有 padding，所以卡片不贴边 */
    max-width: 100%;
    padding: 0;
  }
  .content-card {
    border-radius: 12px;
  }
  .content-body {
    padding: 24px 20px;
  }
  .content-title {
    font-size: 24px;
    padding-left: 16px;
  }
  .content-meta {
    font-size: 12px;
    padding-bottom: 16px;
    margin-bottom: 24px;
  }
  .content-body p {
    font-size: 16px;
    line-height: 1.75;
  }
  .content-body h2 {
    font-size: 22px;
  }
  .content-body h3 {
    font-size: 19px;
  }
  /* 手机端：浮动图片恢复为居中 */
  .content-figure-left,
  .content-figure-right {
    float: none;
    max-width: 100%;
    margin: 1.5em 0;
    text-align: center;
  }
  .content-figure-left img,
  .content-figure-right img {
    display: inline-block;
    width: auto;
    max-width: 100%;
  }
  .content-figure-center img {
    max-width: 100%;
  }
  /* 全宽大图恢复 */
  .content-figure-full {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .content-figure-full .figure-caption {
    padding: 8px 0 0 0;
  }
  .content-body ul,
  .content-body ol {
    margin-left: 1.2em;
    font-size: 16px;
  }
  .content-body blockquote {
    padding: 14px 20px;
    margin: 1.5em 0;
  }
}

/* 小屏手机（≤480px） */
@media (max-width: 480px) {
  .content-bg {
    padding: 16px 12px;        /* 更小屏幕留白 12px，依然保留背景可见 */
  }
  .content-body {
    padding: 18px 16px;
  }
  .content-title {
    font-size: 22px;
  }
  .content-body p {
    font-size: 15px;
  }
}
/* ========== 文章上下页导航 ========== */
.content-pagination {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px 48px 40px 48px;
  border-top: 1px solid #eaeef2;
  background: rgba(255, 255, 255, 0.98);
}

.pagination-prev,
.pagination-next {
  flex: 1;
  min-width: 180px;
}

.pagination-prev a,
.pagination-next a {
  display: inline-block;
  padding: 10px 0;
  font-size: 15px;
  color: #005b96;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.pagination-prev a:hover,
.pagination-next a:hover {
  color: #003f73;
  border-bottom-color: #005b96;
}

.pagination-prev {
  text-align: left;
}

.pagination-next {
  text-align: right;
}

/* 手机端导航样式 */
@media (max-width: 768px) {
  .content-pagination {
    flex-direction: column;
    gap: 8px;
    padding: 20px 20px 28px 20px;
  }
  .pagination-prev,
  .pagination-next {
    text-align: left;
  }
  .pagination-prev a,
  .pagination-next a {
    font-size: 14px;
    padding: 8px 0;
  }
}