﻿/* ===================== 自适应改造：≤1200 收窄 / ≤1000 单栏 / ≤768 手机版 / ≤380 小屏 ===================== */
html,body{overflow-x:hidden;-webkit-text-size-adjust:100%;}
/* 正文内容防撑破（后台编辑器内联样式必须用 !important 压制） */
#chan_newsDetail img,#chan_newsDetail p img{max-width:100%!important;height:auto!important;}
#chan_newsDetail video,#chan_newsDetail iframe,#chan_newsDetail embed,#chan_newsDetail object{max-width:100%!important;height:auto!important;}
#chan_newsDetail table{display:block;width:100%!important;max-width:100%!important;overflow-x:auto;}
#chan_newsDetail{overflow-wrap:break-word;word-break:break-word;}
#chan_newsDetail pre{overflow-x:auto;}

@media (max-width:1200px){
  .channel-nav,.main-header,.epMiscCon,#chan_mainBlk{width:auto;max-width:1170px;box-sizing:border-box;padding-left:12px;padding-right:12px;}
  .chan_newsInfo_body{width:auto;}
  .chan_newsInfo_body.fixed{left:0;right:0;width:auto;box-sizing:border-box;}
  /* 1000~1200：左栏流式收窄、右栏定宽，避免 800+336 撑破窗口（125% 缩放笔记本常见宽度） */
  #chan_mainBlk_lft{width:auto!important;float:left;margin-right:16px;}
  #chan_mainBlk_rgt{width:336px!important;float:right!important;}
  #chan_newsDetail,#chan_newsBlk{width:auto!important;max-width:100%!important;}
  .chan_newsInfo_title{max-width:calc(100% - 120px);}
;}
@media (max-width:1000px){
  /* 两栏并一栏，右栏整体移到正文下方 */
  #chan_mainBlk_lft,#chan_mainBlk_rgt{float:none!important;width:auto!important;max-width:100%!important;margin-top:16px;}
  #chan_newsDetail{width:auto;}
  #chan_newsTitle{font-size:30px;line-height:46px;}
  .epbWrap{width:auto;}
  .epbWrap .eppagebottom{width:auto;}
  .item_defaultView .item_img,.item_defaultView .item_img img{width:160px;height:106px;max-width:160px;}
  .item_defaultView .item_con{width:calc(100% - 176px);height:auto;min-height:106px;}
  .item_defaultView .item_con .item-text .tit{font-size:18px;}
  .item_bigPicView .item_img img{width:100%;height:auto;}
  .show_adver{width:auto!important;}
  /* 列表防右侧空白（≤1000 同样生效） */
  #chan_mainBlk_lft,#chan_newsBlk,#chan_xgxw,#chan_wntj,.wntjItem,.item_titleView .item_con{width:auto!important;max-width:100%!important;float:none!important;}
  /* 资讯排行单行省略（≤1000 同样生效，防止手机实际渲染宽度落在 768~1000 之间时不触发） */
  .epReciList li{height:32px!important;line-height:32px!important;overflow:hidden!important;}
  .epReciList .epReciHotword,.epReciList .epReciHotword a{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%;}
;}
@media (max-width:768px){
  /* 顶部通栏导航：横向滑动 */
  .channel-nav{height:auto;}
  .channel-nav-list{float:none;padding:5px 0;white-space:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;}
  .channel-nav-list a{display:inline-block;float:none;}
  .channel-nav-login{display:none;}
  /* 报头 */
  .main-header{height:auto!important;min-height:52px;padding-bottom:8px;overflow:hidden;position:relative;z-index:2;}/* overflow:hidden 清除内部浮动：导航隐藏后 header 会塌陷，面包屑会叠上来 */
  .top_header_logo{width:110px;height:44px;}
  .top_header_logo_channel{font-size:22px!important;line-height:44px!important;position:relative!important;}
  .top_header_logo_channel::before{height:26px!important;top:50%!important;transform:translateY(-50%);margin:0!important;margin-left:-10px!important;}/* 分隔线锚到「科技」自身并垂直居中，不再垂过红线 */
  .header-addfav{display:none;}
  #epHeadInc{display:none;}/* ep_head.shtml include 出来的顶部通栏导航，手机端隐藏（用户要求） */
  #newsNav{display:none;}/* 顶部通栏导航兜底隐藏 */
  /* 位置导航 */
  .epMisc{line-height:38px;clear:both;position:static!important;margin-top:0!important;float:none!important;}/* 清浮动+防负margin拉叠 */
  .epMiscCon{height:auto;padding-bottom:8px;}
  .searchdiv{display:none;}/* 手机端隐藏搜索框（用户要求） */
  .searchinput{width:74%;}
  /* 标题与信息条 */
  #chan_newsTitle{padding:12px 0;font-size:22px;line-height:34px;letter-spacing:0;}
  #chan_newsInfo{height:auto;}
  .chan_newsInfo_body{height:auto;line-height:inherit;padding:8px 12px;box-sizing:border-box;font-size:0.8rem;}/* 日期/来源整块缩小字号（用户要求） */
  .chan_newsInfo_link,.chan_newsInfo_link a{font-size:0.8rem;}
  .chan_newsInfo_body.fixed{display:none!important;}/* 手机端下拉时不显示吸顶标题条（用户要求），彻底屏蔽 JS 加的 fixed 悬浮 */
  .chan_newsInfo_source{float:none;display:block;line-height:26px;padding-right:70px;box-sizing:border-box;}
  .chan_newsInfo_source .source{margin-left:0;margin-right:10px;}
  .chan_app_upload{display:none;}
  .article_info{display:none!important;}/* 带内联 display:inline-block，必须 !important 才能压住 */
  /* 吸顶标题条：标题整行省略，字体按钮绝对定位右上角，不再换行错位 */
  .chan_newsInfo_title{float:none;width:auto;max-width:100%;height:30px;line-height:30px;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .chan_newsInfo_body.fixed .chan_newsInfo_title{display:block;}
  .chan_newsInfo_link{position:absolute;right:10px;top:8px;float:none;}
  .chan_newsInfo_link a{float:left;margin-left:10px;}
  .chan_newsInfo_font_big,.chan_newsInfo_font_small{margin-top:0;margin-left:0;}
  /* 正文防窄列：无论站点 CSS 怎么写，手机端正文一律通栏 */
  #chan_mainBlk_lft,#chan_newsBlk,#chan_newsDetail{width:auto!important;max-width:100%!important;float:none!important;}
  #chan_newsDetail{padding-left:0!important;padding-right:0!important;margin-left:0!important;margin-right:0!important;}
  #chan_newsDetail p,#chan_newsDetail div,#chan_newsDetail span,#chan_newsDetail section{max-width:100%!important;}
  #chan_newsDetail p{width:auto!important;}
  /* 列表防右侧空白：站点 CSS 可能给列表容器/条目写死宽度，全部放开 */
  #chan_xgxw,#chan_wntj,.wntjItem,.item_titleView .item_con{width:auto!important;max-width:100%!important;float:none!important;}
  /* 正文 */
  #chan_newsDetail{font-size:16px;line-height:1.9;}
  /* 底部四图：两列 */
  .epbWrap .eppagebottom{height:auto;overflow:visible;}
  .epbWrap .imgNews{width:calc(50% - 10px);margin-right:19px;margin-bottom:14px;height:auto;}
  .epbWrap .imgNews:nth-child(2n){margin-right:0;}
  .epbWrap .imgNews img{width:100%!important;max-width:100%!important;height:110px!important;object-fit:cover;display:block;}/* 统一裁切成同尺寸，不再大小不一 */
  /* 推荐列表：小图左、文右 */
  .item_defaultView .item_img,.item_defaultView .item_img img{width:120px;height:80px;max-width:120px;}
  .item_defaultView .item_con{width:calc(100% - 136px);min-height:80px;}
  .item_titleView .desc{display:none;}/* 手机端隐藏列表摘要行（与标题重复、版面杂乱，用户要求） */
  .item_titleView .item_foot{margin-top:4px;}
  .item_defaultView .item_con .item-text .tit{font-size:16px;}
  /* 资讯排行：标题单行超出省略（双层保险：li 锁高裁切 + 标题/链接强制单行） */
  .epReciList li{height:32px!important;line-height:32px!important;overflow:hidden!important;}
  .epReciList .epReciHotword,.epReciList .epReciHotword a{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%;}
  .wntjItem .tit{margin-bottom:6px;}
  .wntjItem .item_foot{font-size:12px;}
  .side_zhtj_news{width:auto;}
  .pageStyle5{font-size:14px;}
  .editor{padding:5px 0;}
;}
@media (max-width:380px){
  #chan_newsTitle{font-size:20px;line-height:30px;}
  #chan_newsDetail{font-size:15px;}
  .item_defaultView .item_img,.item_defaultView .item_img img{width:100px;height:67px;max-width:100px;}
  .item_defaultView .item_con{width:calc(100% - 116px);}
  .epbWrap .imgNews{width:calc(50% - 8px);margin-right:16px;}
;}