@charset "utf-8";
/* ============================================================
   新闻栏目移动端适配覆盖层
   适用：/viscms/hotnews/ 正文页、列表页、分页
   用法：在 head 中最后引入（置于 index.css / news.css 之后）
   生效条件：需同时声明 <meta name="viewport" content="width=device-width, initial-scale=1">
            否则浏览器按 980px 虚拟视口渲染，@media 不会命中
   断点：1024px（与全站 bp-core.css 一致，覆盖平板），750px 起追加手机紧凑档
   ============================================================ */

@media screen and (max-width: 1024px) {

  html { -webkit-text-size-adjust: 100%; }
  body { overflow-x: hidden; }

  /* ── 1. 解除全部固定宽度容器（PC 写死 1000px / 内联 1040px） ── */
  .top_con, .nav, .p-content, .s-x, .news, .n-fy, .n-ul, .n-xq,
  .bottom-k, .position.commWidth, .n-x2, .n-xq-congtent {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  .bottom-k ul { width: 100% !important; padding-left: 0 !important; box-sizing: border-box; }
  /* width:100% 叠加左右 padding 会溢出，统一收进盒内 */
  .top, .bottom, .p-banner, .news li { box-sizing: border-box; }

  /* ── 2. 顶部客服条 ── */
  .top { height: 34px; }
  .top_con { padding: 0 12px; }
  .top_img { height: 16px; padding-top: 9px; }
  .top_kefu { font-size: 12px; line-height: 32px; }

  /* ── 3. 导航：logo 独占一行，菜单横向滑动 ── */
  .nav { height: auto; margin-top: 0; padding: 8px 12px 0; overflow: visible; }
  .logo { float: none; width: auto; height: auto; padding: 0 0 6px; text-align: center; }
  .logo img { height: 34px; width: auto; }
  .nav_dao {
    width: 100%; float: none; line-height: 1;
    overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    scrollbar-width: none;
  }
  .nav_dao::-webkit-scrollbar { display: none; }
  .nav_dao ul { display: block; white-space: nowrap; }
  .nav_dao ul li {
    float: none; display: inline-block;
    padding: 0 12px 0 0; font-size: 14px;
  }
  .nav_dao ul li:first-child { padding-left: 0; }
  .nav_dao ul li a { font-size: 14px; line-height: 34px; display: inline-block; }
  .nav_dao ul li a:hover,
  .nav_dao ul li .dangqian { border-bottom-width: 2px; padding-bottom: 2px; }

  /* ── 4. 栏目 banner：400px → 150px ── */
  .p-banner {
    height: 150px !important;
    margin-bottom: 20px;
    background-size: cover !important;
    /* 原图文字在左侧，窄屏左对齐可保住「新闻中心」字样不被裁 */
    background-position: 0 50% !important;
  }
  .p-banner img { width: 100%; height: 150px; object-fit: cover; }

  /* ── 5. 栏目标题 ── */
  .p-content { padding: 0 12px 30px; }
  .p-ys1 { margin-top: 6px; }
  .p-span1 { font-size: 18px; line-height: 26px; }
  .p-span2 { font-size: 14px; line-height: 22px; }
  .s-x { margin-top: 8px; margin-bottom: 18px; }
  .s-x img { width: 100%; height: auto; }

  /* ── 6. 列表条目：取消 nowrap，改为两行截断 ── */
  .news { padding-bottom: 30px; }
  .news li {
    display: flex;
    align-items: flex-start;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
  }
  .n-left { flex: 0 0 52px; width: 52px; height: 52px; float: none; margin-right: 10px; }
  .n-p1 { font-size: 17px; line-height: 17px; margin-top: 8px; margin-bottom: 4px; }
  .n-p2 { font-size: 11px; line-height: 11px; }
  .n-right {
    flex: 1 1 auto; min-width: 0;
    width: auto !important; height: auto;
    float: none; padding-top: 0;
    white-space: normal !important;
    overflow: visible; text-overflow: clip;
    word-break: break-all;
  }
  .n-right a p {
    font-size: 15px; line-height: 24px;
    white-space: normal;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .n-right a span {
    font-size: 13px; line-height: 20px; color: #8a8a8a;
    white-space: normal;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .news li > img { display: none; }

  /* ── 7. 分页 ── */
  .n-fy { padding: 0 12px; }
  .n-ul { width: 100% !important; text-align: center; }
  .n-fy li,
  .n-fy li:hover {
    float: none; display: inline-block;
    width: 28px; height: 28px; line-height: 28px;
    margin: 0 4px 6px 0; font-size: 13px;
  }

  /* ── 8. 正文页 ── */
  .position.commWidth {
    padding: 10px 12px 0 !important;
    font-size: 13px; line-height: 1.8;
    word-break: break-all;
  }
  /* 面包屑内层是 float:left 的收缩宽度，手机上必须解除 */
  .add.fl, .add {
    float: none !important;
    width: auto !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: break-word;
    word-break: break-all;
    font-size: 13px !important;
    line-height: 1.8 !important;
  }
  .n-xq {
    padding: 14px 12px 30px !important;
    border: 0 !important;
    margin: 0 auto;
  }
  /* 标题有内联 style（30px / 居中 / 微软雅黑），必须 !important */
  .n-xq-p1 {
    font-size: 20px !important;
    line-height: 1.55 !important;
    text-align: left !important;
    font-family: inherit !important;
    font-weight: 700 !important;
    margin: 2px 0 10px !important;
    color: #1a1a1a !important;
  }
  .n-xq-p2 {
    font-size: 12px;
    line-height: 1.9 !important;
    text-align: left !important;
    color: #999;
    margin-bottom: 6px;
  }
  .n-xq-congtent { font-size: 17px; margin-top: 6px; }
  .n-xq-congtent p {
    font-size: 17px;
    line-height: 1.95;
    text-indent: 2em;
    text-align: justify;
    word-break: break-word;
  }
  /* 正文内层级（配合模板改造 4.2，未改造时无影响） */
  .n-xq-congtent h2 {
    font-size: 19px; line-height: 1.6; color: #192e75;
    font-weight: 700; margin: 26px 0 10px;
    padding-left: 10px; border-left: 4px solid #293e84;
    text-indent: 0;
  }
  .n-xq-congtent h3 {
    font-size: 17px; line-height: 1.65; color: #2b4a9b;
    font-weight: 700; margin: 20px 0 8px; text-indent: 0;
  }
  .n-xq-congtent ul,
  .n-xq-congtent ol { margin: 10px 0 14px; padding-left: 1.6em; }
  .n-xq-congtent li {
    font-size: 17px; line-height: 1.9; color: #565656;
    margin: 4px 0; text-indent: 0;
  }
  .n-xq-congtent blockquote {
    margin: 16px 0; padding: 12px 14px;
    background: #f5f9fe; border-left: 3px solid #bcdbf3;
    font-size: 16px; line-height: 1.9; text-indent: 0;
  }
  .n-xq-congtent figure { margin: 16px 0; }
  .n-xq-congtent figcaption {
    font-size: 13px; color: #8a94a6; line-height: 1.7; text-indent: 0;
  }
  .n-xq-congtent table {
    display: block; width: 100%; overflow-x: auto;
    border-collapse: collapse; font-size: 15px;
  }
  .n-xq-congtent th,
  .n-xq-congtent td { padding: 8px 10px; text-indent: 0; }

  /* ── 9. 页脚 ── */
  .bottom { padding: 24px 12px 18px; }
  .bottom-k ul { height: auto; text-align: center; }
  .bottom-k ul li { float: none; display: inline-block; margin: 0 0 6px; }
  .bottom-k ul li a { font-size: 13px; line-height: 24px; }
  .bottom-k p { font-size: 12px; line-height: 20px; margin-top: 8px; padding: 0; }

  /* ── 10. 兜底 ── */
  img { max-width: 100%; height: auto; }
  .clear { display: none; }
}

/* ══ 平板档（751–1024）：容器已流式，控制行宽与 banner 比例 ══ */
@media screen and (min-width: 751px) and (max-width: 1024px) {
  .p-banner { height: 210px !important; }
  .p-content, .news, .n-fy { max-width: 900px !important; margin-left: auto !important; margin-right: auto !important; }
  .n-xq { max-width: 860px !important; margin: 0 auto; }
  .n-xq-congtent p { line-height: 2.1; }
}

/* ══ 手机档（≤750）：紧凑 ══ */
@media screen and (max-width: 750px) {
  /* banner 完整显示不裁切：contain + 近似天色填充上下留白 */
  .p-banner {
    height: 122px !important;
    background-size: contain !important;
    background-position: 50% 50% !important;
    background-color: #d9e9f7 !important;
    margin-bottom: 14px;
  }
  .n-xq { max-width: 100% !important; }
  .n-xq-congtent p { font-size: 17px; line-height: 1.95; }
}
