/* ===== 详情页自适应（宽屏+手机） ===== */

/* ---------- 1. 宽屏基础：最大宽度1200，居中 ---------- */
.content-breadcrumb,
.content-page {
  width: 100% !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}

.content-breadcrumb {
  padding: 12px;
  background: #f0f9ff;
}

.content-page {
  margin-top: 15px !important;
  margin-bottom: 15px !important;
  padding: 15px;
  background: #fff;
}

.content-title {
  display: flex;
  min-height: 57px;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 150%;
}

.content-title h1 {
  margin: 0;
  font: inherit;
}

.content-toolbar {
  display: flex;
  min-height: 47px;
  align-items: center;
  margin-top: 15px;
}

.content-meta-cell {
  flex: 0 0 68%;
  min-width: 0;
  text-align: right;
}

.content-share-cell {
  flex: 1;
  min-width: 0;
  padding-left: 15px;
  text-align: left;
}

.content-body-section {
  margin-top: 15px;
}

.content-main-frame {
  width: 95%;
  max-width: 100%;
  min-height: 300px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 15px;
}

.content-main-inner {
  min-height: 300px;
}

/* 正文中的业务表格仍然保留，仅限制其最大宽度。 */
#article-content table {
  width: 100% !important;
  max-width: 100% !important;
}

/* 所有图片强制自适应 */
img {
  max-width: 100% !important;
  height: auto !important;
}

/* ---------- 2. 小屏（≤768px）优化 ---------- */
@media screen and (max-width: 768px) {
  /* 面包屑导航：适当内边距 */
  .content-breadcrumb {
    padding: 8px 12px !important;
  }

  .content-page {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
    padding: 8px;
  }

  /* 标题区：字号缩小 */
  .STYLE5 {
    font-size: 22px !important;
  }

  /* 发布时间、来源、字体控制等行：上下排列 */
  .content-toolbar {
    display: block;
    margin-top: 8px;
  }

  .content-meta-cell,
  .content-share-cell {
    width: 100% !important;
    box-sizing: border-box;
  }

  .content-meta-cell {
    text-align: center;
  }

  .content-share-cell {
    padding: 8px 0 0;
    text-align: center !important;
  }

  /* 内容区域外框：内边距适当减小，边框保留 */
  .content-main-frame {
    width: 100% !important;
    padding: 8px !important;
    border-radius: 15px !important; /* 保留原风格 */
  }

  .content-main-inner {
    min-height: 0;
  }

  /* 内容正文：字号基础调整（但不覆盖用户通过 fontZoom 设置的行内样式） */
  #news-content {
    font-size: 14px !important;
    line-height: 1.8 !important;
  }
  /* 保留用户字号切换功能，不被媒体查询覆盖，所以这里不加 !important 到子元素 */

  /* 分享组件（如有）适当调整 */
  .share-component {
    text-align: center !important;
  }

  /* 二维码图片自适应 */
  #news-content img {
    max-width: 100% !important;
    height: auto !important;
  }
}
