/* 通用内容页（page.html）与 404 页（error.html）
   共用 hero + 正文排版；内容页 hero 使用 banner 背景图，404 页回落到品牌深蓝渐变。 */

/* ========== Hero ========== */
.article-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(200px, 22vw, 300px);
  padding-block: clamp(36px, 5vw, 56px);
  overflow: hidden;
  color: #fff;
  text-align: center;
  background-color: #003366;
  background-image: linear-gradient(135deg, #003366 0%, #0b4b7d 100%);
}

/* 图片遮罩：压暗 banner，保证白色标题与面包屑清晰可读 */
.article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, .55) 0%,
    rgba(0, 0, 0, .38) 55%,
    rgba(0, 0, 0, .58) 100%
  );
}

.article-hero > .container {
  position: relative;
  z-index: 1;
}

/* 内容页 hero 背景（page.css 位于 css/pages/，图片在 theme/img/） */
.page-hero {
  background-image: url('../../img/index-banner2.jpg');
  background-size: cover;
  background-position: center;
}

.article-hero .hero-title {
  max-width: 900px;
  margin: 0 auto;
  color: #fff;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: .5px;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .28);
  overflow-wrap: break-word;
}

.article-hero .hero-desc {
  max-width: 640px;
  margin: 12px auto 0;
  color: rgba(255, 255, 255, .92);
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* hero 内面包屑：居中、白色系 */
.article-hero .breadcrumb {
  justify-content: center;
  margin-top: 16px;
  padding-block: 0;
  color: rgba(255, 255, 255, .75);
}
.article-hero .breadcrumb a { color: rgba(255, 255, 255, .85); }
.article-hero .breadcrumb a:hover { color: #fff; text-decoration: underline; }
.article-hero .breadcrumb .separator { color: rgba(255, 255, 255, .45); }
.article-hero .breadcrumb .current { color: #fff; }

/* ========== 正文区（内容页与 404 页共用） ========== */
.content-section { padding: 64px 0 96px; }

/* 404 页按钮组 */
.content-section.text-center .btn + .btn { margin-inline-start: 12px; }

.policy-placeholder {
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.8;
}
.policy-placeholder__hint { color: #666; }
.policy-placeholder__cta { margin-top: 24px; }

/* ========== CMS 正文排版 ========== */
.cms-content {
  overflow-wrap: break-word;
  color: #4a4a4a;
}

/* 首段作为导语：稍大、颜色更深，与后续正文拉开层次 */
.cms-content > p:first-child {
  margin-bottom: 1.6em;
  color: #2c2c2c;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.cms-content p { margin: 0 0 1.2em; }

.cms-content h2 {
  position: relative;
  margin: 2.4em 0 .8em;
  padding-inline-start: 16px;
  color: #1f1f1f;
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
}
/* 品牌色竖条，强化章节标题的层级感 */
.cms-content h2::before {
  content: "";
  position: absolute;
  inset-block: .18em;
  inset-inline-start: 0;
  width: 4px;
  background: #ff5f18;
}

.cms-content h3 {
  margin: 1.9em 0 .6em;
  color: #1f1f1f;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
}

.cms-content h2:first-child,
.cms-content h3:first-child { margin-top: 0; }
.cms-content > *:last-child { margin-bottom: 0; }

.cms-content a {
  color: #b8420c;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .2s ease;
}
.cms-content a:hover { color: #ff5f18; }

.cms-content strong { color: #1f1f1f; font-weight: 600; }

.cms-content ul,
.cms-content ol {
  margin: 0 0 1.2em;
  padding-inline-start: 1.4em;
  list-style-position: outside;
}
/* 主题把列表重置为无符号，富文本需要恢复 */
.cms-content ul { list-style-type: disc; }
.cms-content ol { list-style-type: decimal; }
.cms-content li { margin-bottom: .4em; }
.cms-content li:last-child { margin-bottom: 0; }

.cms-content hr {
  margin: 2.4em 0;
  border: 0;
  border-top: 1px solid #e6e6e6;
}

.cms-content img {
  max-width: 100%;
  height: auto;
}

/* ========== 窄屏 ========== */
@media (max-width: 767.98px) {
  .article-hero {
    min-height: 180px;
    padding-block: 32px;
  }
  .article-hero .hero-title {
    font-size: 1.75rem;
    letter-spacing: .3px;
  }
  .article-hero .hero-desc { font-size: .9375rem; }
  .article-hero .breadcrumb {
    margin-top: 10px;
    font-size: .75rem;
  }

  .content-section { padding: 40px 0 64px; }
  .content-section.text-center .btn + .btn {
    margin-inline-start: 0;
    margin-top: 10px;
  }

  .cms-content { font-size: .9375rem; }
  .cms-content > p:first-child { font-size: 1rem; }
  .cms-content h2 {
    margin-top: 2em;
    padding-inline-start: 12px;
    font-size: 1.25rem;
  }
  .cms-content h3 { font-size: 1.0625rem; }
}
