/* ===== 详情页 + 下载中转页（yszzq风格） ===== */
/* 面包屑 */
.crumb{margin-top:14px;padding:10px 2px;font-size:13px;color:#888;}
.crumb a{color:#666;}
.crumb a:hover{color:#3f8af0;}
.crumb em{font-style:normal;margin:0 8px;color:#bbb;}
.crumb span{color:#999;}

/* 详情头区：左缩略图右字段 */
.d-head{display:grid;grid-template-columns:340px 1fr;gap:20px;background:#fff;border:1px solid #eee;border-radius:6px;padding:18px;}
.d-thumb{background:#f5f7fa;border-radius:6px;overflow:hidden;align-self:start;aspect-ratio:16/10;display:flex;align-items:center;justify-content:center;}
.d-thumb img{width:100%;height:100%;object-fit:cover;}
.d-thumb-ph{width:100%;height:100%;display:flex;align-items:center;justify-content:center;}
.d-h1{font-size:22px;font-weight:bold;color:#333;line-height:1.5;margin-bottom:14px;}
/* 属性区（对照目标站 .content_img .txt span：桌面 3 列 33%、13px #666、行距 10px、单行超出省略） */
.d-fields{margin-bottom:16px;overflow:hidden;}
.d-f{float:left;width:33%;display:block;color:#666;font-size:13px;margin-top:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;}
.d-f label{color:#666;font-weight:normal;}
.d-f label:after{content:"：";}
.d-f span{color:#666;}
.d-f a{color:#3f8af0;}
.d-f a:hover{text-decoration:underline;}
/* 按钮区（对照目标站 .down_bt：容器占满+清浮动，桌面按钮自适应宽度贴左排列） */
.d-btns{display:block;margin-top:20px;overflow:hidden;}
.btn-dl{display:inline-block;width:auto;height:40px;line-height:40px;padding:0 25px 0 40px;margin-right:15px;background:#4285f4;border-radius:1px;font-size:14px;color:#fff;float:left;position:relative;transition:all .6s;border:0;cursor:pointer;box-sizing:border-box;}
.btn-dl svg{position:absolute;left:20px;top:12px;width:16px;height:16px;fill:#fff;}
.btn-dl:hover{background:#c0282a;}
.btn-dl.fee{background:#b8c2cc;cursor:not-allowed;}
.btn-dl.fee:hover{background:#b8c2cc;}
.btn-back{display:inline-block;width:auto;height:40px;line-height:40px;padding:0 25px 0 40px;margin-right:15px;background:#fff;border:1px solid #dcdfe4;color:#555;font-size:14px;float:left;position:relative;box-sizing:border-box;}
.btn-back svg{position:absolute;left:20px;top:12px;width:16px;height:16px;fill:#888;}
.btn-back:hover{color:#3f8af0;border-color:#3f8af0;}
.btn-back:hover svg{fill:#3f8af0;}
/* ===== 手机端（≤479px，对照目标站）：属性 2 列 49%、按钮通栏、图标回到文字前 ===== */
@media (max-width:479px){
.d-f{width:49%;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.d-f:nth-child(2n){float:right;}
.btn-dl,.btn-back{width:100% !important;margin-right:0 !important;text-align:center;margin-bottom:10px;padding:0 15px;}
.btn-dl svg,.btn-back svg{position:relative;left:0;top:0;margin-right:6px;vertical-align:-3px;}
.btn-back{background:#fff;border:1px solid #ccc;color:#222;}
}

/* 教程类普通文章头 */
.d-plain-head{background:#fff;border:1px solid #eee;border-radius:6px;padding:20px 22px;}
.d-meta{margin-top:10px;font-size:13px;color:#999;display:flex;flex-wrap:wrap;gap:16px;}
.d-meta a{color:#3f8af0;}

/* 正文 */
.d-body{background:#fff;border:1px solid #eee;border-radius:6px;padding:20px 24px;margin-top:16px;}
.d-content{line-height:2;color:#444;font-size:15px;word-wrap:break-word;}
.d-content a{color:#3f8af0;}
.d-content a:hover{text-decoration:underline;}
.d-content img{max-width:100%;}
.d-content ul,.d-content ol{padding-left:26px;}
/* 正文分节标题：浅蓝灰底色条+蓝左条（对照ref/03） */
.d-content h2,.d-content h3{background:#e9eef6;border-left:4px solid #3f8af0;color:#2b3a55;font-size:16px;font-weight:bold;line-height:1.4;padding:9px 14px;margin:20px 0 12px;border-radius:0 3px 3px 0;}
.d-content h3{font-size:15px;}
.d-content p{margin:8px 0;}
.d-content code{background:#f2f4f7;border:1px solid #e5e8ec;border-radius:3px;padding:1px 6px;font-size:13px;color:#c7461e;}

/* 标签行 */
.d-tags{background:#fff;border:1px solid #eee;border-radius:6px;padding:13px 20px;margin-top:16px;font-size:13px;color:#888;display:flex;flex-wrap:wrap;align-items:center;gap:8px;}
.d-tags svg{width:14px;height:14px;fill:#aaa;}
.d-tags a{background:#f2f6ff;border:1px solid #cbdbfb;color:#666;border-radius:3px;padding:2px 10px;font-size:12px;}
.d-tags a:hover{color:#3f8af0;border-color:#3f8af0;}

/* 上下篇 */
.d-prevnext{background:#fff;border:1px solid #eee;border-radius:6px;padding:6px 20px;margin-top:16px;}
.pn-item{padding:10px 0;font-size:14px;color:#666;border-bottom:1px dashed #f0f0f0;}
.pn-item:last-child{border-bottom:0;}
.pn-item em{font-style:normal;color:#999;}
.pn-item a{color:#3f8af0;}
.pn-item a:hover{text-decoration:underline;}

/* 猜你喜欢 */
.d-rel{background:#fff;border:1px solid #eee;border-radius:6px;padding:16px 20px;margin-top:16px;}
.d-rel-t{font-size:16px;font-weight:bold;color:#333;padding-bottom:10px;border-bottom:1px solid #f0f0f0;}
.d-rel ul{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 30px;margin-top:6px;}
.d-rel li{border-bottom:1px dashed #f3f3f3;min-width:0;}
.d-rel li a{display:block;padding:9px 0;font-size:14px;color:#555;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.d-rel li a:before{content:"›";margin-right:8px;color:#c0c8d2;}
.d-rel li a:hover{color:#3f8af0;}

/* ===== 下载中转页 ===== */
.dl-card{background:#fff;border:1px solid #eee;border-radius:6px;padding:18px;margin-top:14px;}
.dl-grid{display:grid;grid-template-columns:340px 1fr;gap:20px;}
.dl-empty{padding:40px 0;text-align:center;color:#888;font-size:14px;}
.dl-empty a{color:#3f8af0;}
.dl-list{margin-top:18px;border:1px dashed #d8e2f0;border-radius:6px;background:#fafcff;padding:6px 16px;}
.dl-list-t{font-size:13px;color:#8aa0bb;padding:8px 2px 2px;}
.dl-item{display:flex;align-items:center;gap:16px;padding:11px 2px;border-bottom:1px dashed #eef2f8;flex-wrap:wrap;}
.dl-item:last-child{border-bottom:0;}
.dl-i-name{font-size:14px;font-weight:bold;color:#444;}
.dl-i-code{font-size:13px;color:#888;}
.dl-i-code b{color:#e0642f;font-size:14px;letter-spacing:1px;}
.dl-i-go{margin-left:auto;background:#5fb878;color:#fff;font-size:13px;padding:6px 18px;border-radius:3px;}
.dl-i-go:hover{background:#4fa768;}
.dl-notices{background:#fbfcfe;border:1px solid #eef1f5;border-radius:6px;padding:14px 22px;margin-top:14px;}
.dl-notices ol{padding-left:20px;}
.dl-notices li{font-size:13px;color:#666;line-height:2.1;}

/* ===== 详情页两栏布局：左正文 + 右侧栏（仅模板类文章） ===== */
.d-wrap{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px;align-items:start;}
.d-main{min-width:0;}
.d-main .d-body,.d-main .d-head{margin-top:0;}
.d-main .d-body{margin-top:16px;}
.d-main .d-tags,.d-main .d-prevnext,.d-main .d-rel{margin-top:16px;}
/* 侧栏 */
.d-side{min-width:0;}
.side-ad{background:#fff;border:1px solid #eee;border-radius:6px;padding:8px;min-height:250px;display:flex;align-items:center;justify-content:center;overflow:hidden;}
.side-ad .ys-ad{width:100%;}
.side-ad img{max-width:100%;height:auto;display:block;}
.side-box{background:#fff;border:1px solid #eee;border-radius:6px;padding:14px 16px;margin-top:16px;}
.side-t{font-size:15px;font-weight:bold;color:#333;padding:2px 0 9px 10px;border-left:4px solid #3f8af0;margin-bottom:6px;}
.side-rank li,.side-list li{display:flex;align-items:center;gap:8px;border-bottom:1px dashed #f3f3f3;}
.side-rank li:last-child,.side-list li:last-child{border-bottom:0;}
.side-rank li i{flex:none;width:18px;height:18px;border-radius:3px;background:#e6ebf2;color:#8a97a8;font-size:12px;font-style:normal;text-align:center;line-height:18px;}
.side-rank li.top i{background:#3f8af0;color:#fff;}
.side-rank li a,.side-list li a{flex:1;min-width:0;padding:8px 0;font-size:13px;color:#555;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.side-rank li a:hover,.side-list li a:hover{color:#3f8af0;}
.side-list li span{flex:none;font-size:12px;color:#aaa;}
.side-tags{display:flex;flex-wrap:wrap;gap:8px;padding-top:4px;}
.side-tags a{background:#f2f6ff;border:1px solid #cbdbfb;color:#666;border-radius:3px;padding:3px 10px;font-size:12px;}
.side-tags a:hover{color:#3f8af0;border-color:#3f8af0;}

/* ===== 模板截图缩略图墙（对照原站 .gallery） ===== */
.ys-gallery{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0 4px;}
.ysg-item{width:124px;min-width:0;}
.ysg-item img{width:124px;height:124px;object-fit:cover;border:1px solid #e8ebee;border-radius:3px;display:block;cursor:zoom-in;background:#f5f7fa;}
.ysg-item img:hover{border-color:#3f8af0;}
.ysg-item b{display:block;text-align:center;font-size:12px;color:#666;font-weight:normal;line-height:1.4;margin-top:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}

/* ===== 正文图片灯箱 ===== */
.ys-lb-item{cursor:zoom-in;}
.ys-lb{position:fixed;left:0;top:0;right:0;bottom:0;background:rgba(0,0,0,.86);z-index:99999;display:none;}
.ys-lb.on{display:block;}
.ys-lb-stage{position:absolute;left:0;top:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;overflow:hidden;}
.ys-lb-img{max-width:92%;max-height:88%;touch-action:none;user-select:none;-webkit-user-drag:none;box-shadow:0 8px 40px rgba(0,0,0,.5);}
.ys-lb-btn{position:fixed;top:50%;transform:translateY(-50%);z-index:2;background:rgba(255,255,255,.16);border:0;color:#fff;font-size:28px;width:46px;height:46px;border-radius:50%;cursor:pointer;line-height:1;}
.ys-lb-btn:hover{background:rgba(255,255,255,.32);}
.ys-lb-prev{left:16px;}
.ys-lb-next{right:16px;}
.ys-lb-close{position:fixed;top:14px;right:16px;z-index:2;background:none;border:0;color:#fff;font-size:36px;cursor:pointer;line-height:1;opacity:.85;}
.ys-lb-close:hover{opacity:1;}
.ys-lb-count{position:fixed;left:0;right:0;bottom:18px;z-index:2;text-align:center;color:#ccc;font-size:13px;}

/* 响应式 */
@media (max-width:900px){
.d-head,.dl-grid{grid-template-columns:1fr;}
.d-thumb{max-height:260px;}
.d-wrap{grid-template-columns:1fr;}
.d-side{order:2;}
}
/* ===== 移动端（≤768px）：隐藏侧栏、正文满宽（属性列数见 ≤479px 媒体查询，对照目标站） ===== */
@media (max-width:768px){
.d-side{display:none !important;}
.d-wrap{grid-template-columns:1fr;}
}
@media (max-width:640px){
.d-h1{font-size:18px;}
.d-rel{padding:14px 14px;}
.d-rel ul{grid-template-columns:minmax(0,1fr);}
.d-rel ul li a{max-width:100%;}
.ys-lb-btn{width:38px;height:38px;font-size:20px;}
.ys-lb-prev{left:10px;}
.ys-lb-next{right:10px;}
.ys-lb-img{max-width:96%;max-height:82%;}
.ys-gallery{gap:8px;}
.ysg-item{width:calc((100% - 16px) / 3);}
.ysg-item img{width:100%;height:auto;aspect-ratio:1/1;}
}

/* ===== 通用单页（post-page.php）：标题条+正文容器 ===== */
.page-wrap{background:#fff;border:1px solid #e8ecf0;border-radius:4px;padding:0 0 30px;margin-bottom:16px;overflow:hidden;}
.page-head{padding:16px 24px;border-bottom:1px solid #eef1f5;background:#fafbfd;}
.page-h1{font-size:20px;font-weight:bold;color:#333;line-height:1.4;margin:0;}
.page-meta{margin-top:6px;font-size:12px;color:#9aa5b1;}
.page-con{padding:22px 24px 0;font-size:14px;color:#444;line-height:1.9;word-break:break-word;}
.page-con p{margin:0 0 14px;}
.page-con h2,.page-con h3{font-size:16px;color:#333;background:#e9eef6;border-left:3px solid #3f8af0;padding:8px 12px;margin:20px 0 12px;border-radius:0 3px 3px 0;line-height:1.5;}
.page-con h4{font-size:14px;color:#333;margin:16px 0 8px;}
.page-con ul,.page-con ol{margin:0 0 14px;padding-left:24px;}
.page-con li{margin-bottom:6px;}
.page-con b,.page-con strong{color:#333;}
.page-con a{color:#3f8af0;text-decoration:none;}
.page-con a:hover{text-decoration:underline;}
.page-con img{max-width:100%;height:auto;border-radius:3px;}
.page-con table{width:100%;border-collapse:collapse;margin:0 0 16px;font-size:13px;}
.page-con table th,.page-con table td{border:1px solid #e3e8ee;padding:8px 10px;text-align:left;}
.page-con table th{background:#f5f8fc;color:#333;font-weight:bold;}
.page-con table tr:nth-child(even) td{background:#fafbfd;}
.page-con blockquote{margin:0 0 14px;padding:10px 14px;background:#f7f9fc;border-left:3px solid #c9d8ee;color:#666;}
@media (max-width:640px){
.page-head{padding:14px 16px;}
.page-h1{font-size:17px;}
.page-con{padding:16px 16px 0;}
}

/* ==================== 第五轮返工追加 ==================== */
/* 5. 资源采集详情头部（对照目标站 content_zy：左图 + 标题区[推荐资源角标/收录/更新/访问次数] + 立即前往） */
.zy-head{display:grid;grid-template-columns:260px minmax(0,1fr);gap:20px;background:#fff;border:1px solid #eee;border-radius:6px;padding:18px;}
.zy-pic{width:100%;aspect-ratio:220/155;background:#f5f7fa;border:1px solid #ddd;border-radius:4px;overflow:hidden;display:flex;align-items:center;justify-content:center;}
.zy-pic img{width:100%;height:100%;object-fit:cover;}
.zy-pic-ph{width:100%;height:100%;display:flex;align-items:center;justify-content:center;}
.zy-h1{font-size:21px;font-weight:bold;color:#333;line-height:1.5;margin-bottom:10px;}
.zy-ico{display:inline-block;height:26px;line-height:26px;margin-right:10px;padding:0 10px;background:#fc5574;font-size:12px;color:#fff;border-radius:4px 0 4px 0;vertical-align:3px;font-weight:normal;}
.zy-row-m{display:block;width:auto;font-size:13px;color:#666;margin-top:10px;}
.zy-row-m span{color:#999;}
.zy-go{display:inline-flex;align-items:center;gap:7px;background:#4285f4;color:#fff;font-size:14px;padding:9px 26px;border-radius:3px;margin-top:12px;transition:background .3s;}
.zy-go svg{width:15px;height:15px;fill:#fff;}
.zy-go:hover{background:#c0282a;}
/* 底部属性字段（支持程序/资源格式/资源内容 tags 样式 + 交流群） */
.zy-attrs{border-top:1px dashed #eef1f5;margin-top:22px;padding-top:4px;}
.zy-attrs h3{font-size:14px;color:#555;background:none;border-left:0;padding:0;margin:14px 0 8px;}
.zyw_nr{overflow:hidden;}
.zyw_nr li{display:inline-block;padding:3px 15px;line-height:25px;white-space:nowrap;background:#f2f6ff;color:#222;font-size:12px;margin:0 5px 8px 0;border:1px solid #cbdbfb;border-radius:2px;transition:border .6s;}
.zyw_nr li:hover{border-color:#4285F4;}
.zy-qun{font-size:13px;color:#555;}

/* 2. 单页：左二级导航 + 右正文（对照 ref/07 about_l / about_r） */
.about-wrap{display:grid;grid-template-columns:220px minmax(0,1fr);gap:16px;align-items:start;margin-top:14px;}
.about_l{background:#fff;border:1px solid #eee;border-radius:4px;padding:10px 0;min-width:0;}
.about_l li a{display:block;padding:11px 18px;font-size:14px;color:#555;border-left:3px solid transparent;}
.about_l li a:hover{color:#3f8af0;background:#f7faff;}
.about_l li a.hover{color:#3f8af0;background:#eef4fd;border-left-color:#3f8af0;font-weight:bold;}
.about_r{background:#fff;border:1px solid #eee;border-radius:4px;padding:24px 28px;min-width:0;}
.ab-title{font-size:22px;font-weight:bold;color:#333;line-height:1.5;}
.ab-meta{margin-top:8px;padding-bottom:14px;border-bottom:1px solid #f0f0f0;font-size:12px;color:#9aa5b1;}
.about_r .page-con{padding:18px 0 0;}

@media (max-width:900px){
.zy-head{grid-template-columns:1fr;}
.about-wrap{grid-template-columns:1fr;}
.about_l{order:2;}
}
@media (max-width:640px){
.zy-h1{font-size:18px;}
.about_r{padding:16px;}
}

/* ===== 第六轮返工：面包屑链接主题蓝可辨识，当前页灰色 ===== */
.crumb a{color:#3f8af0;}
.crumb a:hover{color:#2c6fd6;text-decoration:underline;}
.crumb .crumb-cur{color:#666;font-weight:bold;}

/* ===== %s ===== */
.ys-ad-stack{line-height:0;}
.ys-ad-stack .date_span{position:relative;height:70px;max-width:1200px;margin:0 auto 5px;background:#f1f1f1;overflow:hidden;line-height:0;}
.ys-ad-stack .date_span:last-child{margin-bottom:0;}
.ys-ad-stack .date_span a{display:block;line-height:0;}
.ys-ad-stack .date_span img{width:100%;height:100%;display:block;}
.ys-ad-stack .date_span .ad-tag{position:absolute;right:0;bottom:0;background:rgba(0,0,0,.4);color:#fff;font-size:12px;line-height:1.4;padding:2px 4px;z-index:2;}
.ys-ad-bn .ys-ad-ph{height:70px !important;}
.date_lg{width:500px;max-width:100%;flex:none;line-height:0;font-size:0;margin:0 10px;}
.date_lg .ys-ad-stack .date_span{height:auto;max-width:500px;margin:0;}
.date_lg .ys-ad-stack .date_span img{width:100%;max-width:500px;height:auto;display:block;}
.ys-ad-dl{width:150px;top:auto;bottom:60px;z-index:9;}
.ys-ad-dl-l{left:10px;}
.ys-ad-dl-r{right:10px;}
.ys-ad-dl .date_span{width:150px;height:300px;max-width:150px;margin:0;}
.ys-ad-dl .date_span img{width:150px;height:300px;display:block;object-fit:cover;}
.dl-close{width:100%;text-align:center;line-height:25px;cursor:pointer;background:rgba(0,0,0,.45);color:#fff;font-size:12px;letter-spacing:4px;user-select:none;}
.dl-close:hover{background:rgba(0,0,0,.65);}
    @media (max-width:1600px){.ys-ad-dl{display:none !important;}}
/* 第七轮：通栏堆叠/logo旁/对联关闭同步 */
/* ===== 移动端广告自适应（通栏 11-15 / logo旁 18 等比缩放，位18窄屏不隐藏） ===== */
@media (max-width:768px){
  /* 所有堆叠广告图：宽100% 等比缩放，不裁剪不溢出；逐条间隙保留 */
  .ys-ad-stack .date_span{height:auto;margin:0 auto 5px;}
  .ys-ad-stack .date_span:last-child{margin-bottom:0;}
  .ys-ad-stack .date_span img{width:100%;max-width:100%;height:auto;}
  /* 位18：移动端不再隐藏，折行显示在 logo/搜索框下方，全宽自适应（最大500px） */
  .date_lg{display:block !important;order:3;width:100%;max-width:500px;margin:8px auto 0 !important;}
  .date_lg .ys-ad-stack .date_span img{width:100%;max-width:500px;height:auto;}
  /* topbar 允许折行：logo+搜索一行，位18第二行 */
  .topbar .container{flex-wrap:wrap;}
  .topbar .container .date_lg{flex:none;}
}

/* ==================== 第三轮追加（B/C/D/F） ==================== */
/* B. 资源采集详情「立即前往」按钮（1:1 对照目标站 .content_img .txt .down） */
.zy-info .down{display:inline-block;height:40px;line-height:40px;padding:0 25px 0 40px;margin-top:12px;background:#4285f4;border-radius:1px;font-size:14px;color:#fff;position:relative;transition:all .6s;}
.zy-info .down i{position:absolute;left:20px;top:12px;font-size:15px;font-style:normal;}
.zy-info .down:hover{background:#c0282a;}

/* D. 模板套图横排（1:1 对照目标站 .gallery：5 张一行、名称浮在图底部居中） */
.d-content .gallery{width:100%;display:block;margin:6px 0 4px;}
.d-content .gallery ul{width:100%;display:flex;flex-wrap:wrap;}
.d-content .gallery ul li{width:20%;height:150px;padding:5px 5px 10px;position:relative;}
.d-content .gallery ul span{width:100%;height:100%;display:block;overflow:hidden;position:relative;z-index:1;border:1px solid #ddd;border-radius:3px;background:#f9f9f9;}
.d-content .gallery ul span img{width:100%;height:auto;display:block;cursor:zoom-in;}
.d-content .gallery ul span b{width:100px;height:22px;text-align:center;font-size:12px;color:#fff;font-style:normal;font-weight:normal;line-height:22px;background:rgba(0,0,0,.2);display:block;position:absolute;bottom:5px;left:50%;margin-left:-50px;z-index:2;border-radius:12px;}
.d-content .gallery ul span:hover{border-color:#4285f4;box-shadow:#4285f4 0 0 8px;}

/* F. 正文末尾标签导航（1:1 对照目标站 .content_txt .tags） */
.d-content .tags{width:100%;display:flex;flex-wrap:wrap;align-items:center;margin-top:30px;line-height:35px;}
.d-content .tags span{line-height:35px;font-size:14px;padding:2px 0;margin-right:5px;color:#888;}
.d-content .tags span .icon-tag{font-size:14px;color:#a8a8a8;position:relative;top:1px;}
.d-content .tags a{display:inline-block;padding:3px 8px;line-height:25px;white-space:nowrap;background:#f7f7f7;color:#222;font-size:12px;margin:0 5px;transition:all .6s;text-decoration:none;border-radius:4px 0 4px 0;}
.d-content .tags a:hover{color:#fff;box-shadow:0 0 3px #4285f4;background-color:#4285f4;}

@media (max-width:640px){
.d-content .gallery ul li{width:50%;height:auto;}
.d-content .gallery ul span{height:auto;}
.d-content .tags{margin-top:20px;}
}

/* D-2. 移动端横向溢出兜底（第三轮修复：.d-rel 网格被 nowrap 标题撑爆） */
@media (max-width:768px){
.d-wrap,.d-main,.d-body,.d-side{min-width:0;}
.d-content{overflow-wrap:anywhere;word-break:break-word;}
.d-content pre{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;}
.d-content table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;}
.d-prevnext .pn-item{min-width:0;}
.d-prevnext .pn-item a{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;max-width:100%;}
}

/* ===== 第七轮 I2：套图 lightbox 增强（loading 态 / +− 缩放按钮 / z-index 最高） ===== */
.ys-lb{z-index:2147483000;}
.ys-lb-img{transition:opacity .18s ease;-webkit-user-drag:none;}
.ys-lb-loading{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:4;display:none;pointer-events:none;}
.ys-lb-loading.on{display:block;}
.ys-lb-loading span{display:block;width:44px;height:44px;border:4px solid rgba(255,255,255,.25);border-top-color:#fff;border-radius:50%;animation:yslbspin .8s linear infinite;}
@keyframes yslbspin{to{transform:rotate(360deg);}}
.ys-lb-zoom{position:fixed;right:16px;bottom:56px;z-index:2;display:flex;flex-direction:column;gap:10px;}
.ys-lb-zi,.ys-lb-zo{width:42px;height:42px;border-radius:50%;border:0;background:rgba(255,255,255,.16);color:#fff;font-size:22px;cursor:pointer;line-height:1;}
.ys-lb-zi:hover,.ys-lb-zo:hover{background:rgba(255,255,255,.32);}
@media (max-width:768px){
  .ys-lb-zoom{right:10px;bottom:64px;}
  .ys-lb-zi,.ys-lb-zo{width:36px;height:36px;font-size:18px;}
}
