/* ============================================================
   dbsport · responsive.css —— 响应式降级
   策略：双端分离为主（touch 套系）；PC 模板自带断点，关闭
   touch 后仍可在平板/手机获得可用布局（官方"自适应降级"路线）。
   ============================================================ */

/* 手机版图标宫格导航：默认隐藏（PC 用胶囊导航），仅手机断点显示 */
.ys-nav-icons{display:none;}

/* 广告幻灯圆点：仅手机端显示 */
.pv-ad-dots{display:none;}

/* 页脚折叠面板：PC(≥769px) 常开且保持原标题外观；手机端折叠样式见下方媒体查询 */
@media (min-width:769px){
	.ys-fcol summary{display:block;list-style:none;cursor:default;font-size:14px;color:#f1f5f9;margin:0 0 10px;font-weight:600;}
	.ys-fcol summary::-webkit-details-marker{display:none;}
	.ys-fcol details:not([open]) > .ys-fcol-body{display:block;}
}

/* BUG-02(F4)：解除 Discuz 宽屏模式 body/#wp 的 min-width:1200px（common.css L91/widthauto.css L9）。
   必须全局生效：只在手机断点覆盖会导致 769~1199px 平板/窄窗口整页横向溢出（2026-10-24 频道页错乱根因） */
body,#wp,#hd .wp,#ft .wp,#toptb{min-width:0 !important;}

/* ===== 批注③(2026-10-24)：频道页/文章页配色与门户风格统一 =====
   门户规范（dbsport）：正文链接深 slate 色 #0f172a/#334155，悬停门户橙 #f97316；
   修正频道页三处混搭：文章标题 Discuz 默认蓝(.xi2 #369)、标签 pill 浅蓝、边栏链接被全局 a 橙染色 */
/* 文章列表标题：蓝 → 深 slate，悬停门户橙 */
.wp .lewei_le_weil .xs2 a{color:#0f172a !important;}
.wp .lewei_le_weil .xs2 a:hover{color:#f97316 !important;}
/* 频道标签 pill：浅蓝 → 门户橙底纹 */
.wp .lewei_le_weil .lewei_tag a{color:#ea580c !important;background:rgb(249 115 22 / 8%) !important;}
/* 边栏模块标题：左侧橙色题标（DIY 标题有内联样式，用 !important 保底） */
.lewei_sd h3{font-size:15px !important;font-weight:600 !important;color:#0f172a !important;border-left:3px solid #f97316 !important;padding-left:10px !important;line-height:1.3 !important;margin:0 0 8px !important;}
/* 边栏列表链接：全局 a 橙 → 深 slate，悬停门户橙 */
.lewei_sd .module li a,.lewei_sd .lewei_t li a,.lewei_sd .lewei_t1 .lewei_b1 a{color:#334155;}
.lewei_sd .module li a:hover,.lewei_sd .lewei_t li a:hover,.lewei_sd .lewei_t1 .lewei_b1 a:hover{color:#f97316;}
.lewei_sd .lewei_t1 h3 a{color:#0f172a;}
.lewei_sd .lewei_t1 h3 a:hover{color:#f97316;}

/* ===== 批注④(2026-10-24)：边栏三区定稿 =====
   区一 热门资讯（原热门排行，标题数据已改）；区二 精选图文 = 卡片式左图右文；
   区三 广告区 = 一行轮播。配色准则：dbsport 模板（橙色主调 #f97316），不理会 default/lewei 原色 */
/* 精选图文卡片式左图右文（原 100px+163px 浮动在 305px 边栏内放不下，文字掉图下；改 flex） */
.lewei_sd .lewei_t1 li{display:flex;gap:10px;align-items:flex-start;float:none;width:auto;padding:12px 0;border-bottom:1px solid #f1f5f9;}
.lewei_sd .lewei_t1 li>span{flex:0 0 108px;}
.lewei_sd .lewei_t1 li>span a{display:block;float:none;width:108px;height:80px;border-radius:6px;overflow:hidden;}
.lewei_sd .lewei_t1 .lewei_b1{flex:1;float:none;width:auto;min-width:0;}
.lewei_sd .lewei_t1 .lewei_b1 h3{font-size:14px !important;font-weight:600 !important;line-height:1.4 !important;border-left:none !important;padding-left:0 !important;margin:0 0 8px !important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;}
.lewei_sd .lewei_t1 .lewei_b1 p{display:flex;justify-content:space-between;margin:0;font-size:12px;color:#94a3b8;line-height:1.2;}
/* 广告区：一行轮播（叠放淡切 + 圆点） */
.pv-sd-ad-box{background:#fff;border-radius:6px;padding:12px 15px;}
.pv-sd-slide{position:relative;height:110px;}
.pv-sd-ad-item{position:absolute;left:0;top:0;width:100%;height:110px;margin:0;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#fff7ed,#ffedd5);border:1px dashed #fdba74;border-radius:6px;color:#ea580c;font-size:13px;opacity:0;transition:opacity .5s;pointer-events:none;}
.pv-sd-ad-item.is-active{opacity:1;pointer-events:auto;}
.pv-sd-slide .pv-ad-dots{display:flex;position:absolute;bottom:6px;left:0;right:0;justify-content:center;gap:6px;z-index:2;}
/* 首页边栏三个广告位间距（手机端幻灯叠放由下方媒体查询归零） */
.pv-ad-slide .pv-ad-box{margin:0 0 12px;}
.pv-ad-slide .pv-ad-box:last-child{margin-bottom:0;}

/* 批注②(2026-10-24)：频道页/文章页右侧 DIY 边栏归位。
   lewei 模板边栏 .lewei_sd 在 .lewei_news 内部右浮，而主列 .lewei_le_weil 写死 880px——
   容器不足 ~1205px 时边栏被顶到文章列表下方（站主批注"应该是边栏吧"）。
   ≥1025px：主列改流体宽度 calc(100% - 325px)（上限 880），与 305px 边栏并排；
   ≤1024px：见平板媒体查询（边栏通栏落内容下方，主列 100%） */
/* ===== 批注⑤(2026-10-24)：边栏容器间距 + 热门资讯行距放松 =====
   站主反馈"每个容器之间太紧凑、热门资讯每条内容也太紧凑" */
/* 三个卡片容器之间留白：热门资讯 / 精选图文 / 广告区 */
.lewei_sd .lewei_r{margin:0 0 15px;}
.lewei_sd .lewei_r2{margin:15px 0;}
.lewei_sd .pv-sd-ad-box{margin:15px 0 0;}
/* 模块内边距同步放松 */
.lewei_sd .lewei_r .module{padding:14px 16px;}
.lewei_sd .pv-sd-ad-box{padding:14px 16px;}
/* 热门资讯条目：原写死 33px 行高居中，改自动行高 + 上下留白 + 淡分隔线 */
.lewei_sd .module li{height:auto !important;line-height:1.55 !important;padding:8px 0 !important;font-size:14px;border-bottom:1px solid #f8fafc;}
.lewei_sd .module li:last-child{border-bottom:none;}

/* ===== 批注⑥(2026-10-24)：快捷导航按钮文字禁止换行 =====
   频道多时头部空间不足，flex 把按钮压窄（78px），"快捷导航"四字折成两行；
   禁止换行 + 禁止收缩，挤压由中间导航滚动区吸收 */
.ys-qmenu-btn,.ys-qmenu-btn span{white-space:nowrap;flex-shrink:0;}

/* ===== 批注⑦(2026-10-24)：主列表卡片改左图右文 =====
   站主批注"卡片改为左图右文"：原布局图在右，改为 grid 两列（图 200px 占左跨三行，标题/摘要/元信息右列） */
.wp .lewei_le_weil dl.bbda:has(>.atc){display:grid;grid-template-columns:200px minmax(0,1fr);column-gap:16px;align-content:start;}
.wp .lewei_le_weil dl.bbda:has(>.atc)>.atc{float:none;grid-row:1 / span 3;margin:0;}
.wp .lewei_le_weil dl.bbda:has(>.atc)>.atc a{float:none;display:block;width:200px;height:140px;overflow:hidden;border-radius:8px;}
.wp .lewei_le_weil dl.bbda:has(>.atc)>.atc img{width:100% !important;height:100% !important;max-width:none !important;max-height:none !important;padding:0 !important;border:0 !important;object-fit:cover;}
.wp .lewei_le_weil dl.bbda:has(>.atc)>dt.xs2{grid-column:2;max-width:none;}
.wp .lewei_le_weil dl.bbda:has(>.atc)>dd{grid-column:2;min-width:0;}

/* ===== 站主 16:18 反馈：分区清晰 + 卡片间距 + 页码居中 ===== */
/* 列表容器整体卡片化，与各分区拉开 */
.wp .lewei_le_weil .bm_c.xld{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:14px 16px;}
/* 每条目独立卡片，条间留白明确 */
.wp .lewei_le_weil dl.bbda{background:#f8fafc;border:1px solid #eef2f7;border-radius:10px;padding:14px 16px;margin:0 0 12px;}
.wp .lewei_le_weil dl.bbda:last-child{margin-bottom:0;}
/* 相邻分区之间留白 */
.wp .lewei_le_weil .area{margin:14px 0;}
/* 页码居中：取消浮动、整行居中、上下留白 */
.wp .lewei_le_weil .pgs{float:none;clear:both;text-align:center;margin:18px 0 6px;}
.wp .lewei_le_weil .pgs .pg{float:none;display:inline-block;}
/* 页码数字真居中：原主题 block+float+4px 纵内边距+26px 行高，字被挤到底部 */
.wp .lewei_le_weil .pgs .pg a,.wp .lewei_le_weil .pgs .pg strong,.wp .lewei_le_weil .pgs .pgb a{
	float:none;display:inline-flex;align-items:center;justify-content:center;
	min-width:32px;height:32px;padding:0 6px;line-height:1;box-sizing:border-box;
}

/* ===== 详情页批注(2026-10-24)：上一篇/下一篇两行、评论标题、评论按钮 ===== */
/* 频道页 lw_pt 分类链接靠右，右缘与主列卡片内容右缘对齐 */
#wp #lw_pt{padding:5px 17px;text-align:right;}
/* 行尾多余的分隔符隐藏 */
#wp #lw_pt span.pipe:last-child{display:none;}
/* lw_pt 右缘与主列右缘对齐：≥1025 按主列宽度（减边栏325），窄屏通栏 */
@media (min-width:1025px){
	#wp #lw_pt{width:calc(100% - 325px) !important;max-width:880px;}
}
/* 批注② 上一篇/下一篇各占一行 */
.wp .pren em{float:none !important;display:block;width:100%;padding:5px 0;}
/* 批注③ 评论栏目标题：原 31px 高栏字被切，放松行高并垂直居中 */
.wp #comment .bm_h{height:auto;min-height:42px;line-height:1.4;display:flex;align-items:center;padding:10px 16px;overflow:visible;}
.wp #comment .bm_h h3{color:#0f172a;font-size:16px;line-height:1.4;}
/* 批注④ 评论提交按钮：已由 themes.css 按钮三档体系统一（36px 标准档），撤销逐页补丁 2026-10-31 */

/* ===== 登录页重做（站主 16:35：登录界面一言难尽）===== */
/* 整体：居中卡片 */
#ct.ptm.wp{width:100%;max-width:100%;padding-top:40px;}
#ct.ptm.wp .bm{float:none;max-width:440px;margin:0 auto 40px;background:#fff;border:1px solid #e2e8f0;border-radius:14px;box-shadow:0 10px 30px rgba(15,23,42,.08);overflow:hidden;}
/* 头部：标题+注册入口 */
#ct.ptm.wp .bm_h.bbs{height:auto;padding:22px 28px 16px;border-bottom:1px solid #f1f5f9;background:#fff;overflow:visible;}
#ct.ptm.wp .bm_h.bbs h3{font-size:20px;font-weight:700;color:#0f172a;line-height:1.5;margin:0;padding:0;}
#ct.ptm.wp .bm_h.bbs .y{float:right;font-size:13px;line-height:28px;}
#ct.ptm.wp .bm_h.bbs .y a{color:#ea580c;margin-left:4px;}
/* 隐藏弹窗占位标题 */
#ct.ptm.wp .flb{display:none;}
/* 表单区（只作用表单内容层，防止嵌套 div 叠加内边距） */
#ct.ptm.wp .bm form .c.cl{padding:6px 28px 26px;}
#ct.ptm.wp .rfm{border-bottom:1px solid #f8fafc;padding:10px 0;margin:0;width:100%;box-sizing:border-box;}
#ct.ptm.wp .rfm table{width:100%;table-layout:fixed;}
#ct.ptm.wp .rfm th{width:72px;vertical-align:middle;font-weight:500;color:#334155;font-size:14px;padding:0 10px 0 0;}
#ct.ptm.wp .rfm th a,#ct.ptm.wp .rfm th label{color:#334155 !important;font-size:14px;}
#ct.ptm.wp .rfm td{vertical-align:middle;}
#ct.ptm.wp .rfm .px{width:100% !important;max-width:100%;height:42px;padding:0 14px;border:1px solid #cbd5e1;border-radius:8px;font-size:14px;color:#0f172a;background:#fff;box-sizing:border-box;transition:border-color .15s,box-shadow .15s;}
#ct.ptm.wp .rfm .px:focus{border-color:#f97316;box-shadow:0 0 0 3px rgb(249 115 22 / 15%);outline:none;}
#ct.ptm.wp .rfm .tipcol{width:64px;font-size:13px;white-space:nowrap;}
#ct.ptm.wp .rfm .tipcol a{color:#ea580c;}
#ct.ptm.wp select.px{height:42px;}
/* 安全提问/自动登录行 */
#ct.ptm.wp .rfm .login_slct a{display:inline-block;height:42px;line-height:42px;}
/* 主按钮：门户橙（按钮在嵌套 table 的 td 里，td/表一起撑满） */
#ct.ptm.wp form table{width:100%;table-layout:fixed;}
#ct.ptm.wp form td:has(> button.pn){width:100%;}
#ct.ptm.wp button.pn,#ct.ptm.wp .pn.pnc{float:none;display:block;width:100% !important;height:46px;margin:18px 0 4px;border:none;border-radius:10px;background:linear-gradient(135deg,#f97316,#ea580c);color:#fff;font-size:16px;font-weight:600;cursor:pointer;box-shadow:0 4px 14px rgb(249 115 22 / 35%);transition:opacity .15s;}
#ct.ptm.wp button.pn:hover,#ct.ptm.wp .pn.pnc:hover{opacity:.9;}
#ct.ptm.wp button.pn strong,#ct.ptm.wp .pn.pnc strong{display:inline;color:#fff;font-size:16px;line-height:1;padding:0;}
/* 底部杂项行 */
#ct.ptm.wp .f_c.blr.nfl{padding:0 28px 22px;font-size:13px;color:#64748b;}
#ct.ptm.wp .f_c a{color:#ea580c;}
/* 手机端：卡片贴边 */
@media (max-width:768px){
	#ct.ptm.wp{padding-top:16px;}
	#ct.ptm.wp .bm{margin:0 12px 24px;max-width:none;}
}

/* ===== 个人中心（spacecp 等 ct2_a/ct3_a 布局）整饰 ===== */
/* 两栏归位：主区右浮、菜单左浮，宽度收敛防挤压掉落 */
#ct.ct2_a .mn,#ct.ct3_a .mn{float:right;width:calc(100% - 180px);margin:0;min-width:0;}
#ct.ct2_a .appl,#ct.ct3_a .appl{float:left;width:160px;margin:0 20px 0 0;}
/* 左侧菜单：去虚线，条目化 */
#ct.ct2_a .appl li,#ct.ct3_a .appl li{margin:2px 0;border:none !important;}
#ct.ct2_a .appl li a,#ct.ct3_a .appl li a{display:block;padding:9px 14px;border-radius:8px;font-size:14px;color:#334155;line-height:1.5;}
#ct.ct2_a .appl li a:hover,#ct.ct3_a .appl li a:hover{background:#f8fafc;color:#ea580c;}
#ct.ct2_a .appl li.a a,#ct.ct3_a .appl li.a a{background:rgb(249 115 22 / 10%);color:#ea580c;font-weight:600;}
/* 内容卡片化 */
#ct.ct2_a .mn .bm,#ct.ct3_a .mn .bm{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:8px 24px 24px;margin-bottom:16px;}
#ct.ct2_a .mn .bm_h,#ct.ct3_a .mn .bm_h{height:auto;padding:16px 0 12px;border-bottom:1px solid #f1f5f9;background:none;}
#ct.ct2_a .mn .bm_h h3,#ct.ct3_a .mn .bm_h h3{font-size:17px;color:#0f172a;margin:0;}
/* 表单行：去虚线、统一间距 */
#ct.ct2_a .tfm th,#ct.ct3_a .tfm th{padding:12px 10px 12px 0;width:110px;font-weight:500;color:#334155;font-size:14px;border:none;}
#ct.ct2_a .tfm td,#ct.ct3_a .tfm td{padding:12px 4px;border:none;}
#ct.ct2_a .tfm .px,#ct.ct3_a .tfm .px,#ct.ct2_a .tfm select,#ct.ct3_a .tfm select{height:40px;padding:0 12px;border:1px solid #cbd5e1;border-radius:8px;font-size:14px;color:#0f172a;background:#fff;box-sizing:border-box;}
#ct.ct2_a .tfm .px:focus,#ct.ct3_a .tfm .px:focus{border-color:#f97316;box-shadow:0 0 0 3px rgb(249 115 22 / 15%);outline:none;}
/* 保存等按钮：门户橙、文字居中 */
/* 个人中心提交按钮：已由 themes.css 按钮三档体系统一（.pnc=橙色主钮 36px 标准档），撤销逐页补丁 2026-10-31 */
/* 手机端：单栏堆叠 */
@media (max-width:768px){
	#ct.ct2_a .mn,#ct.ct3_a .mn,#ct.ct2_a .appl,#ct.ct3_a .appl{float:none;width:100%;margin:0 0 14px;}
	#ct.ct2_a .mn .bm,#ct.ct3_a .mn .bm{padding:8px 16px 20px;}
	/* 个人中心等表单输入框：固定 330px 在手机屏上撑不满，改通栏 */
	#ct.ct2_a .tfm .px,#ct.ct3_a .tfm .px,#ct.ct2_a .tfm .pt,#ct.ct3_a .tfm .pt{width:100%;min-width:0;box-sizing:border-box;}
}

/* ===== 个人空间页（space）整饰 ===== */
/* 头部资料卡（#uhd 直属 #wp，不在 .mn 内） */
#uhd .h{float:none;background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:18px 24px;margin-bottom:14px;}
#uhd .h h2{font-size:22px;color:#0f172a;margin:0 0 6px;line-height:1.4;}
/* 页签条 */
#uhd ul.tb{height:auto;background:#fff;border:1px solid #e2e8f0;border-bottom:none;border-radius:12px 12px 0 0;padding:10px 16px 0;margin:0;}
#uhd ul.tb li{float:none;display:inline-block;margin:0 6px 0 0;line-height:normal;}
#uhd ul.tb a{display:block;padding:9px 18px;border:none;background:none;font-size:14px;color:#334155;line-height:1.4;border-radius:10px 10px 0 0;}
#uhd ul.tb a:hover{color:#ea580c;}
#uhd ul.tb a.a{color:#ea580c;font-weight:600;background:rgb(249 115 22 / 8%);border:none;}
/* 内容卡：与页签条拼合 */
#ct.ct1 .mn .bm{float:none;background:#fff;border:1px solid #e2e8f0;border-radius:0 0 12px 12px;padding:6px 16px 16px;}
#ct.ct1 .mn .bm_h{height:auto;padding:12px 8px;border-bottom:1px solid #f1f5f9;background:none;}
/* 帖子列表行距 */
#ct.ct1 .tl th{padding:10px 8px;background:#f8fafc;color:#334155;font-weight:600;font-size:13px;}
#ct.ct1 .tl td{padding:11px 8px;border-bottom:1px solid #f8fafc;}
#ct.ct1 .tl .xst{font-size:14px;}
/* 分享表单（批注：不居中/遮挡，全页同类统一；space 的分享页是 ct2_a，故不限 ct1） */
#ct #shareform{margin:0 0 10px;}
#ct #shareform > p.mbn{font-size:15px;color:#0f172a;font-weight:600;margin:0 0 10px;}
#ct #shareform .px{width:calc(100% - 260px);min-width:300px;height:42px;padding:0 14px;border:1px solid #cbd5e1;border-radius:10px;font-size:14px;color:#0f172a;background:#fff;box-sizing:border-box;}
#ct #shareform .px:focus{border-color:#f97316;box-shadow:0 0 0 3px rgb(249 115 22 / 15%);outline:none;}
/* 分享表单提交按钮：模板已改 class="pn pnc"，由按钮三档体系统一，撤销逐页补丁 2026-10-31 */
#ct #shareform .pt{width:100%;padding:10px 14px;border:1px solid #cbd5e1;border-radius:10px;font-size:14px;box-sizing:border-box;resize:vertical;}
#ct #shareform a.xi2{font-size:14px;color:#64748b;vertical-align:middle;}
/* 空间页主按钮：space_wall/space_share_form 模板已加 .pnc，由按钮三档体系统一，撤销逐页补丁 2026-10-31 */
#uhd ~ #ct.ct1 textarea.pt{padding:10px 14px;border:1px solid #cbd5e1;border-radius:10px;font-size:14px;box-sizing:border-box;}
/* 全局错误/成功提示框：themes.css 把 common.css 给图标预留的左内边距覆盖掉，图标压住文字，补回 */
.alert_right,.alert_error,.alert_info{padding-left:58px !important;}
/* 搜索页整饰（原生默认样式：蓝按钮裸表单 → 白卡+门户橙） */
#ct .searchform{display:block;max-width:720px;margin:30px auto 40px;background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:26px 30px;box-sizing:border-box;}
#ct .searchform .hm{margin:0 0 16px !important;padding:0 !important;}
#ct .searchform .searchlogo{max-height:52px;width:auto;}
#scform{width:100%;margin:0 auto;}
#scform_tb{padding:0 0 12px;border-bottom:1px solid #f1f5f9;font-size:14px;}
#scform_tb a{display:inline-block;padding:6px 12px;color:#334155;border-radius:8px;}
#scform_tb a:hover{color:#ea580c;}
#scform_tb a.a{color:#ea580c;font-weight:600;background:rgb(249 115 22 / 8%);}
#scform_tb .y{float:right;}
#scform_tb .y a{color:#94a3b8;font-weight:400;padding:6px 8px;}
#scform_form{width:100%;margin-top:16px;}
#scform_form td{vertical-align:top;}
#scform_form .td_srchtxt{width:100%;}
#scform_srchtxt{width:100%;height:46px;padding:0 16px;border:1px solid #cbd5e1;border-right:none;border-radius:10px 0 0 10px;font-size:15px;color:#0f172a;box-sizing:border-box;}
#scform_srchtxt:focus{border-color:#f97316;box-shadow:0 0 0 3px rgb(249 115 22 / 15%);outline:none;}
#scform_submit{width:112px;height:46px;border:none;border-radius:0 10px 10px 0;background:linear-gradient(135deg,#f97316,#ea580c);color:#fff;font-size:15px;font-weight:600;cursor:pointer;}
@media (max-width:768px){
	#ct .searchform{margin:16px auto 24px;padding:18px 16px;}
	#scform_tb .y{display:none;}
}
/* ===== 发帖页整饰（pg_post，原生无卡+桌面横向溢出） ===== */
body[class*="pg_post"] #wp{overflow-x:clip;}
body[class*="pg_post"] #pt{padding:8px 0;line-height:1.9;}
body[class*="pg_post"] #ct.ct2_a{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:16px 18px 20px;}
body[class*="pg_post"] #editorbox{border:none;background:none;}
body[class*="pg_post"] #editorbox > ul.tb{height:auto;border-bottom:1px solid #f1f5f9;padding:0 0 10px;margin:0 0 14px;}
body[class*="pg_post"] #editorbox > ul.tb li{float:none;display:inline-block;margin:0 4px 0 0;}
body[class*="pg_post"] #editorbox > ul.tb a{display:block;padding:8px 16px;border:none;border-radius:8px;font-size:14px;color:#334155;line-height:1.4;}
body[class*="pg_post"] #editorbox > ul.tb li.a a{color:#ea580c;font-weight:600;background:rgb(249 115 22 / 8%);}
body[class*="pg_post"] #subject{width:100%;max-width:560px;height:44px;padding:0 14px;border:1px solid #cbd5e1;border-radius:10px;font-size:15px;color:#0f172a;box-sizing:border-box;}
body[class*="pg_post"] #subject:focus{border-color:#f97316;box-shadow:0 0 0 3px rgb(249 115 22 / 15%);outline:none;}
/* 相册等 ct2_a 页：.mn 内容不包 .bm 时直接铺灰底，补白卡；左侧 .tbn 标题去虚线 */
#ct.ct2_a .mn.pbm,#ct.ct3_a .mn.pbm{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:16px 24px;margin-bottom:16px;}
#ct.ct2_a .appl .tbn h2,#ct.ct3_a .appl .tbn h2{margin:0 0 10px;padding-bottom:10px;border:none;border-bottom:1px solid #f1f5f9;font-size:17px;color:#0f172a;}

@media (min-width:1025px){
	.wp .lewei_news{float:left;width:100%;min-width:0;}
	.wp .lewei_le_weil{float:left;width:calc(100% - 325px);max-width:880px;}
	/* 详情页 portaln.css 解析为空（0 规则），边栏宽度在这里兜底，频道页同值无害 */
	.wp .lewei_sd{float:right;width:305px;}
}

/* 平板 */
@media (max-width:1024px){
	.ys-side{display:none;}
	.ys-main{flex:1 1 100%;}
	.ys-index-wrap,.ys-fd-wrap,.ys-vt-wrap{display:block;}
	.ys-cat-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));}
	.ys-thread-last{display:none;}
	/* 批注②(2026-10-24)：频道页右侧 DIY 边栏（.lewei_sd 305px 右浮动）在中等宽度下
	   被挤到文章列表下方、悬在分页右侧，视觉错乱。改为整行通栏块，落在内容下方 */
	.lewei_sd{float:none;width:100%;margin:15px 0 0;}
	.lewei_sd .frame,.lewei_sd .frame-1-c,.lewei_sd .column{float:none !important;width:100% !important;margin:0 !important;}
	.lewei_r,.lewei_r2{width:100%;margin:0 0 15px;}
	.wp .lewei_news{float:none;width:100%;}
	.wp .lewei_le_weil{float:none;width:100%;max-width:none;}
}

/* 手机 */
@media (max-width:768px){
	.ys-container{padding:0 10px;}
	.ys-header-inner{min-height:54px;gap:10px;flex-wrap:wrap;padding:8px 0;}
	.ys-logo{font-size:16px;}
	.ys-logo img{max-height:30px;}
	.ys-topbar-inner{height:30px;font-size:12px;}
	.ys-topbar-r a{margin-left:10px;}
	/* 手机版图标宫格导航：替代横滑胶囊导航 */
	.ys-nav-wrap{display:none;}
	.ys-nav-icons{display:grid;grid-template-rows:repeat(2,auto);grid-auto-flow:column;grid-auto-columns:calc((100% - 32px)/5);gap:8px;width:100%;padding:4px 0 8px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;scrollbar-width:none;-webkit-overflow-scrolling:touch;}
	.ys-nav-icons::-webkit-scrollbar{display:none;}
	.ys-nav-icons a{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 2px 6px;border-radius:12px;background:var(--ys-surface-2,#f1f5f9);text-decoration:none;}
	.ys-nav-icons a:active{background:var(--ys-surface-3,#e2e8f0);}
	.ys-nav-icons .ic{font-style:normal;font-size:20px;line-height:1;}
	.ys-nav-icons .tx{font-size:12px;color:var(--ys-text,#1f2937);line-height:1.2;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
	.ys-nav-icons a.ys-nav-cur{background:var(--ys-primary,#2563eb);}
	.ys-nav-icons a.ys-nav-cur .tx{color:#fff;}
	.ys-qmenu-btn{display:none;}
	/* 尾部广告：手机端幻灯轮播（3 张叠放，自动淡入淡出） */
	.pv-ad-slide{position:relative;height:250px;margin-top:20px;}
	.pv-ad-slide .pv-ad-box{position:absolute;left:0;top:0;width:100%;margin:0;opacity:0;transition:opacity .5s;pointer-events:none;}
	.pv-ad-slide .pv-ad-box.is-active{opacity:1;pointer-events:auto;}
	.pv-ad-dots{display:flex;position:absolute;bottom:8px;left:0;right:0;justify-content:center;gap:6px;z-index:2;}
	.pv-ad-dots i{width:6px;height:6px;border-radius:50%;background:#cbd5e1;font-size:0;line-height:0;}
	.pv-ad-dots i.is-active{background:#f97316;}
	.ys-nav-item > a{padding:6px 12px;font-size:13px;}
	.ys-qmenu-btn{padding:6px 12px;font-size:12px;}
	.ys-qmenu-tile{width:56px;height:56px;font-size:11px;}
	.ys-qmenu-tile i{font-size:16px;}
	.ys-cat-grid{grid-template-columns:1fr;}
	.ys-thread{padding:11px 12px;gap:10px;flex-wrap:wrap;}
	.ys-thread-stat{display:none;}
	.ys-vt-title{font-size:17px;}
	.ys-post{display:block;padding:14px;}
	.ys-post-author{display:flex;align-items:center;gap:10px;text-align:left;padding:10px;}
	.ys-post-avatar img{width:40px;height:40px;}
	.ys-post-username{margin-top:0;}
	.ys-fd-head{flex-direction:column;align-items:flex-start;}
	.ys-footer-nav a{margin-right:12px;}
	.ys-footer-cols{grid-template-columns:1fr;gap:0;}
	.ys-fcol summary{list-style:none;cursor:pointer;position:relative;padding:11px 28px 11px 2px;font-size:14px;font-weight:600;color:#f1f5f9;border-bottom:1px solid #1f2937;}
	.ys-fcol details:not([open]) > .ys-fcol-body{display:none;}
	.ys-fcol summary::-webkit-details-marker{display:none;}
	.ys-fcol summary::after{content:'▾';position:absolute;right:6px;top:50%;transform:translateY(-50%);color:#94a3b8;font-size:12px;}
	.ys-fcol details[open] summary::after{content:'▴';}
	.ys-fcol details[open] summary{color:#f97316;border-bottom-color:#f97316;}
	.ys-fcol-body{padding:2px 2px 10px;}
	.ys-fcol-body a{padding:7px 0;}
	.ys-scrolltop{right:12px;bottom:16px;width:36px;height:36px;line-height:34px;}
	/* 批注⑦手机端：主列表卡片图缩至 120px */
	.wp .lewei_le_weil dl.bbda:has(>.atc){grid-template-columns:120px minmax(0,1fr);column-gap:10px;}
	.wp .lewei_le_weil dl.bbda:has(>.atc)>.atc a{width:120px;height:84px;}
	/* 空间页表单手机端通栏 */
	#ct #shareform .px{width:100%;min-width:0;}
	#ct #shareform button.pn{width:100%;margin:10px 0 0;}
	/* 手机版频道页：热门资讯+精选图文上移一行两列（JS 搬移后用此布局） */
	.m-side-top{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%;margin:0 0 4px;}
	.m-side-top .lewei_list_news-header{padding:0 0 6px;margin:0 0 8px;border-bottom:1px solid #f1f5f9;}
	.m-side-top .lewei_list_news-header h3{font-size:14px;color:#0f172a;margin:0;}
	.m-side-top .lewei_fourlist_icon{display:none;}
	.m-hot,.m-hot #portal_block_85,.m-hot #portal_block_85 .dxb_bc{display:flex;flex-direction:column;}
	.m-hot #portal_block_85,.m-hot #portal_block_85 .dxb_bc{flex:1;}
	.m-hot-card{flex:1;position:relative;background:linear-gradient(150deg,#fb923c,#ea580c 75%);border-radius:12px;padding:12px 12px 26px;min-height:172px;box-sizing:border-box;overflow:hidden;}
	.m-hot-slide{display:none;}
	.m-hot-slide.cur{display:flex;flex-direction:column;justify-content:center;height:100%;}
	.m-hot-num{font-style:normal;font-size:36px;font-weight:800;color:rgba(255,255,255,.45);line-height:1;margin-bottom:8px;font-family:Arial,sans-serif;}
	.m-hot-slide a{color:#fff;font-size:14px;line-height:1.6;text-decoration:none;}
	.m-hot-dots{position:absolute;left:0;right:0;bottom:9px;text-align:center;}
	.m-hot-dots i{display:inline-block;width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.45);margin:0 3px;font-size:0;cursor:pointer;}
	.m-hot-dots i.cur{background:#fff;}
	.m-feat .lewei_t1 li{display:flex;gap:8px;padding:6px 0;border-bottom:1px solid #f8fafc;list-style:none;}
	.m-feat .lewei_t1 li:last-child{border-bottom:none;}
	.m-feat .lewei_t1 li>span a img{width:74px;height:54px;object-fit:cover;border-radius:6px;}
	.m-feat .lewei_b1 h3{font-size:12px;font-weight:500;line-height:1.45;margin:0;}
	.m-feat .lewei_b1 h3 a{color:#1f2937;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
	.m-feat .lewei_b1 p{display:none;}
	/* 手机版个人空间页修正 */
	#uhd .h .avt{margin-left:0 !important;margin-right:12px;}
	#uhd .h .avt img{width:52px;height:52px;border-radius:50%;background:#eef2f7;display:block;}
	#uhd .h{padding:14px 16px;}
	#uhd ul.tb{padding:8px 8px 0;overflow-x:auto;white-space:nowrap;-webkit-overflow-scrolling:touch;scrollbar-width:none;}
	#uhd ul.tb::-webkit-scrollbar{display:none;}
	#uhd ul.tb li{margin:0 2px 0 0;}
	#uhd ul.tb a{padding:8px 12px;font-size:13px;}
	#ct.ct1 .mn .bm{padding:6px 10px 12px;}
}
