*{margin:0;padding:0;box-sizing:border-box;}
body{font-family:"Microsoft YaHei","PingFang SC",sans-serif;background:#f4f6f9;color:#333;font-size:14px;}
a{text-decoration:none;color:inherit;}
ul,li{list-style:none;}
.container{width:1200px;max-width:96%;margin:0 auto;}
/* ===== 顶部通栏 ===== */
.topbar{background:#fff;padding:14px 0;}
.topbar .container{display:flex;align-items:center;justify-content:space-between;}
.logo{display:flex;align-items:center;gap:8px;font-size:22px;font-weight:bold;color:#3f8af0;}
.logo .logo-ico{width:34px;height:34px;background:#3f8af0;border-radius:8px;display:flex;align-items:center;justify-content:center;}
.logo .logo-ico svg{width:20px;height:20px;fill:#fff;}
.searchbox{display:flex;align-items:center;border:1px solid #3f8af0;border-radius:4px;overflow:hidden;}
.searchbox select{border:0;border-right:1px solid #e5e5e5;padding:9px 8px;font-size:13px;color:#666;outline:none;background:#fff;}
.searchbox input{border:0;outline:none;padding:9px 10px;width:240px;font-size:13px;}
.searchbox button{border:0;background:#3f8af0;color:#fff;padding:9px 22px;cursor:pointer;font-size:14px;}
/* ===== 导航（第三轮 H：二级下拉 1:1 对照目标站 Style.css .header .nav 段） ===== */
.nav{background:#4285f4;position:relative;z-index:999;}
.nav .nav-box{display:flex;align-items:stretch;}
.nav-main{display:flex;flex-wrap:wrap;}
.nav-main > li{position:relative;}
.nav-main > li > a{display:block;color:#fff;font-size:16px;padding:0 26px;line-height:50px;transition:background .5s;}
.nav-main > li > a .icon-below{font-size:12px;line-height:48px;margin-left:2px;}
.nav-main > li > a:hover,.nav-main > li.on > a{background:#256ce2;}
.nav-main li ul{position:absolute;top:50px;left:0;min-width:100%;z-index:9999;float:left;background:#4285f4;display:none;box-shadow:0 6px 14px rgba(0,0,0,.18);}
.nav-main li ul li{display:block;width:100%;float:left;}
.nav-main li ul a{display:block;text-align:center;font-size:12px;padding:0 15px;line-height:45px;color:#fff;white-space:nowrap;transition:background .5s;}
.nav-main li ul a:hover{background:#256ce2;}
.nav-main li ul li.on a{background:#5694fa;font-weight:bold;}
.nav-main > li:hover > ul{display:block;}
.nav-toggle{display:none;}
/* 导航右侧：资源站采集工具下拉（对照目标站 .nav_tool / .webplugin_a） */
.nav-tool{margin-left:auto;position:relative;}
.nav-tool > span{display:block;color:#fff;font-size:16px;line-height:50px;padding:0 20px;cursor:pointer;transition:background .5s;}
.nav-tool > span .icon-cj{font-size:20px;position:relative;top:2px;animation:ysCjColor 5s linear infinite;}
.nav-tool > span .icon-below{font-size:12px;line-height:48px;}
.nav-tool > span:hover{background:#256ce2;}
.nav-tool ul{position:absolute;top:50px;right:0;min-width:100%;z-index:9999;background:#4285f4;display:none;box-shadow:0 6px 14px rgba(0,0,0,.18);}
.nav-tool ul li{display:block;width:100%;}
.nav-tool ul a{display:block;text-align:center;font-size:13px;padding:0 18px;line-height:42px;color:#fff;white-space:nowrap;transition:background .5s;}
.nav-tool ul a:hover{background:#256ce2;}
.nav-tool:hover ul{display:block;}
@keyframes ysCjColor{0%{color:#fff;}50%{color:#ffe08a;}100%{color:#fff;}}
/* ===== 广告位 ===== */
.ys-ad{margin-top:16px;overflow:hidden;}
.ys-ad img{max-width:100%;display:block;margin:0 auto;}
/* ===== 区块头 ===== */
.section{margin-top:26px;}
.sec-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;flex-wrap:wrap;gap:8px;}
.sec-title{display:flex;align-items:center;gap:8px;font-size:19px;font-weight:bold;color:#3f8af0;}
.sec-title .sec-ico{width:26px;height:26px;background:#e8f1fd;border-radius:6px;display:flex;align-items:center;justify-content:center;}
.sec-title .sec-ico svg{width:15px;height:15px;fill:#3f8af0;}
.sec-cats{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
.sec-cats a{background:#fff;border:1px solid #e8e8e8;border-radius:3px;padding:4px 10px;font-size:12px;color:#555;}
.sec-cats a:hover{color:#3f8af0;border-color:#3f8af0;}
/* ===== 模板卡片网格 ===== */
.card-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;}
.card{background:#fff;border-radius:6px;overflow:hidden;position:relative;transition:box-shadow .2s;display:block;}
.card:hover{box-shadow:0 4px 16px rgba(30,80,160,.15);}
.card .thumb{height:150px;background:linear-gradient(135deg,#e9edf2,#dde3ea);display:flex;align-items:center;justify-content:center;overflow:hidden;}
.card .thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.card .thumb .screen{width:78%;height:96px;border-radius:6px 6px 0 0;padding:5px 5px 0;background:#4a4f57;}
.card .thumb .screen-inner{width:100%;height:100%;border-radius:3px 3px 0 0;}
.card .thumb .base{width:92%;height:7px;background:#b8bfc9;border-radius:0 0 6px 6px;margin-top:-1px;}
.sc1{background:linear-gradient(135deg,#8b2f2f,#3d1416);}
.sc2{background:linear-gradient(135deg,#1c2b4a,#0c1428);}
.sc3{background:linear-gradient(135deg,#274a72,#12233a);}
.sc4{background:linear-gradient(135deg,#4a2f6e,#1d1030);}
.sc5{background:linear-gradient(135deg,#2f5e46,#132b1f);}
.sc6{background:linear-gradient(135deg,#6e5a2f,#332a12);}
.card .badge-free{position:absolute;top:10px;left:10px;background:#5fb878;color:#fff;font-size:12px;padding:2px 8px;border-radius:3px;z-index:2;}
.card .badge-fee{position:absolute;top:10px;left:10px;background:#f56c6c;color:#fff;font-size:12px;padding:2px 8px;border-radius:3px;z-index:2;}
.card .card-title{padding:10px 12px 8px;font-size:14px;line-height:1.5;height:62px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:#333;}
.card .card-meta{display:flex;align-items:center;justify-content:space-between;padding:0 12px 12px;}
.card .meta-tag{background:#f2f3f5;color:#8a9099;font-size:12px;padding:3px 8px;border-radius:3px;}
.card .meta-view{color:#a0a6ae;font-size:12px;display:flex;align-items:center;gap:4px;}
.card .meta-view svg{width:13px;height:13px;fill:#b8bec5;}
/* ===== 赞助资源卡 ===== */
.spon-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;}
.spon{background:#fffdea;border:1px solid #f2e6ae;border-radius:6px;padding:12px;display:flex;gap:12px;}
.spon:hover{border-color:#e8c95e;}
.spon .sp-thumb{width:64px;height:52px;background:#f0f0ee;border-radius:4px;flex-shrink:0;}
.spon .sp-body{min-width:0;}
.spon .sp-name{font-size:14px;font-weight:bold;color:#333;display:flex;align-items:center;gap:6px;margin-bottom:5px;}
.spon .sp-badge{background:#f56c6c;color:#fff;font-size:11px;padding:1px 6px;border-radius:3px;font-weight:normal;flex-shrink:0;}
.spon .sp-desc{font-size:12px;color:#8a8a7a;line-height:1.7;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
/* ===== 最新资源双栏 ===== */
.plugin-wrap{display:grid;grid-template-columns:1fr 300px;gap:14px;align-items:start;}
.plugin-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;}
.plugin-cards .card .thumb{height:104px;}
.plugin-cards .card .thumb .screen{height:66px;}
.plugin-cards .card .card-title{height:46px;font-size:13px;padding:8px 10px 4px;}
.plugin-list{background:#fff;border-radius:6px;padding:4px 14px;margin-top:12px;}
.plugin-list li{display:flex;align-items:center;justify-content:space-between;line-height:38px;border-bottom:1px dashed #f0f0f0;font-size:13px;}
.plugin-list li:last-child{border-bottom:0;}
.plugin-list li a{color:#444;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
.plugin-list li a::before{content:"›";color:#c0c0c0;margin-right:6px;}
.plugin-list li a:hover{color:#3f8af0;}
.plugin-list li span{color:#b0b0b0;font-size:12px;flex-shrink:0;margin-left:10px;}
.rank{background:#fff;border-radius:6px;padding:14px 16px;}
.rank .rank-t{font-size:16px;font-weight:bold;color:#333;margin-bottom:10px;}
.rank li{display:flex;align-items:center;gap:8px;line-height:36px;font-size:13px;}
.rank li i{width:18px;height:18px;border-radius:50%;background:#dfe3e8;color:#999;font-size:12px;font-style:normal;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.rank li.top i{background:#3f8af0;color:#fff;}
.rank li a{color:#444;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
.rank li a:hover{color:#3f8af0;}
/* ===== 教程区（第三轮 A②：固定 3 列，删除「网站教程」列后不留空洞） ===== */
.tut-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;}
.tut-col{background:#fff;border-radius:6px;padding:14px 16px;}
.tut-col .tut-t{font-size:15px;font-weight:bold;color:#333;padding-bottom:10px;border-bottom:1px solid #f0f0f0;margin-bottom:6px;}
.tut-col li{display:flex;justify-content:space-between;align-items:center;line-height:36px;font-size:13px;}
.tut-col li a{color:#555;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
.tut-col li a::before{content:"›";color:#c0c0c0;margin-right:6px;}
.tut-col li a:hover{color:#3f8af0;}
.tut-col li span{color:#b0b0b0;font-size:12px;flex-shrink:0;margin-left:10px;}
/* ===== 热门标签 ===== */
.tag-wall{background:#fff;border-radius:6px;padding:18px 20px;display:grid;grid-template-columns:repeat(5,1fr);gap:10px 20px;}
.tag-wall a{text-align:center;line-height:34px;font-size:13px;border-radius:3px;}
.tc1{color:#3f8af0;} .tc2{color:#8a6df0;} .tc3{color:#22b0b0;} .tc4{color:#e6763f;} .tc5{color:#d4546e;}
.tag-wall a:hover{background:#f0f6ff;}
/* ===== 页脚 ===== */
.footer{background:#4285f4;color:#fff;margin-top:30px;padding:20px 0 18px;}
.footer a{color:rgba(255,255,255,.92);}
.footer a:hover{text-decoration:underline;}
.foot-links{font-size:13px;padding-bottom:12px;border-bottom:1px solid rgba(255,255,255,.25);}
.foot-links b{font-weight:normal;margin-right:8px;}
.foot-links li{display:inline;}
.foot-links span{margin:0 8px;}
.foot-nav{display:flex;gap:22px;font-size:13px;padding:14px 0;flex-wrap:wrap;}
.foot-copy{text-align:right;font-size:13px;color:rgba(255,255,255,.85);}
.foot-mid{display:flex;align-items:flex-end;justify-content:space-between;}
/* ===== 响应式 ===== */
@media (max-width:1000px){
.card-grid{grid-template-columns:repeat(3,1fr);}
.plugin-wrap{grid-template-columns:1fr;}
.tag-wall{grid-template-columns:repeat(3,1fr);}
}
@media (max-width:640px){
.nav-main{min-width:0;}
.card-grid{grid-template-columns:repeat(2,1fr);}
.spon-grid{grid-template-columns:1fr;}
.plugin-cards{grid-template-columns:repeat(2,1fr);}
.tut-grid{grid-template-columns:1fr;}
.tag-wall{grid-template-columns:repeat(2,1fr);}
.searchbox input{width:120px;}
.foot-mid{flex-direction:column;align-items:flex-start;gap:8px;}
.foot-copy{text-align:left;}
}

/* ===== 窄屏防溢出（390px 终检修复）：grid 子项 min-width 保护 + 长标题截断 ===== */
.plugin-wrap > *,.tut-grid > *,.spon-grid > *,.card-grid > *,.tag-wall > *{min-width:0;}
.plugin-cards .card,.card-grid .card{min-width:0;overflow:hidden;}
.card-title{word-break:break-all;}
.plugin-list li{min-width:0;}
.plugin-list li a{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:10px;}
.rank li{min-width:0;}
.rank li a{display:inline-block;max-width:calc(100% - 34px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom;}

/* ==================== 第五轮返工追加 ==================== */
/* 1. Logo：图片原尺寸等比显示，禁止裁剪拉伸（目标站 325×55） */
.logo img{display:block;max-width:100%;height:auto;width:auto;}
.logo .logo-txt{white-space:nowrap;}
.topbar .container{min-width:0;}

/* 10'. 广告位测试占位图（开关开+代码空时显示，带编号） */
.ys-ad-test .ys-ad-ph{width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;background:repeating-linear-gradient(45deg,#eef4fc,#eef4fc 14px,#e4eefb 14px,#e4eefb 28px);border:1px dashed #9fc1ec;border-radius:4px;color:#5a86c0;box-sizing:border-box;}
.ys-ad-test .ys-ad-ph b{font-size:16px;color:#3f76c4;}
.ys-ad-test .ys-ad-ph span{font-size:12px;}

/* 5/9. 赞助高亮配色（对照目标站：二级=红粉、一级=黄） */
.isgood_2{background:#ffdcdc !important;border-color:#fb8888;}
.isgood_1{background:#fffbdc !important;border-color:#e0cb25;}
.isgood_2 .ico,.isgood_2 .zy-ico-2,.zy-ico-2{background:#fc5574;}
.isgood_1 .ico,.isgood_1 .zy-ico-1,.zy-ico-1{background:#dcc40b;}
.ico{display:inline-block;height:20px;line-height:20px;margin-right:6px;padding:0 6px;font-size:12px;color:#fff;border-radius:4px 0 4px 0;vertical-align:2px;font-weight:normal;}

/* 首页模块2：资源采集图文列表（对照目标站 list_zy） */
.zy-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;}
.zy-grid .zy-item{min-width:0;}
.zy-grid .zy-item a{display:flex;gap:10px;width:100%;height:100%;background:#fff;border:1px solid #eee;border-radius:6px;padding:10px;transition:all .2s;box-sizing:border-box;}
.zy-grid .zy-item a:hover{box-shadow:0 4px 14px rgba(30,80,160,.14);}
.zy-grid .zy-item.isgood a{border-width:1px;}
.zy-grid .zy-item .pic{flex:none;width:100px;height:70px;background:#f5f7fa;border:1px solid #eee;border-radius:3px;overflow:hidden;display:flex;align-items:center;justify-content:center;}
.zy-grid .zy-item .pic img{width:100%;height:100%;object-fit:cover;}
.zy-grid .zy-item .pic .ph{width:100%;height:100%;display:flex;align-items:center;justify-content:center;}
.zy-grid .zy-item .pic .screen{width:70%;height:50px;border-radius:4px 4px 0 0;padding:3px 3px 0;background:#4a4f57;}
.zy-grid .zy-item .pic .screen-inner{width:100%;height:100%;border-radius:2px 2px 0 0;}
.zy-grid .zy-item .pic .base{width:84%;height:5px;background:#b8bfc9;border-radius:0 0 4px 4px;margin-top:-1px;}
.zy-grid .zy-item .txt{min-width:0;}
.zy-grid .zy-item h4{font-size:15px;color:#333;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.zy-grid .zy-item p{margin-top:8px;font-size:12px;color:#888;line-height:1.7;height:40px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}

/* 首页/侧栏：推荐资源站TOP10（标题+50字摘要，赞助标识+变色） */
.t10-wrap{min-width:0;}
.t10-list{background:#fff;border-radius:6px;padding:4px 16px;}
.t10-list li{display:flex;align-items:flex-start;gap:10px;padding:11px 0;border-bottom:1px dashed #f0f0f0;}
.t10-list li:last-child{border-bottom:0;}
.t10-list li i{flex:none;width:20px;height:20px;border-radius:50%;background:#dfe3e8;color:#999;font-size:12px;font-style:normal;display:flex;align-items:center;justify-content:center;margin-top:2px;}
.t10-list li.top i{background:#3f8af0;color:#fff;}
.t10-list li a{flex:1;min-width:0;}
.t10-list .t10-t{display:block;font-size:14px;font-weight:bold;color:#444;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.t10-list .t10-t.isgood_2{color:#e0446a;}
.t10-list .t10-t.isgood_1{color:#b89a0a;}
.t10-list .t10-d{display:block;margin-top:3px;font-size:12px;color:#999;line-height:1.6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.t10-list li a:hover .t10-t{color:#3f8af0;}
.t10-list .t10-empty{color:#999;font-size:13px;}

/* 侧栏图文「最新信息」+ TOP10（详情页/列表页侧栏通用，保证全站一致） */
.side-latest{display:grid;grid-template-columns:1fr 1fr;gap:12px 12px;padding-top:4px;}
.sl-card{display:block;min-width:0;}
.sl-thumb{aspect-ratio:16/10;background:#f5f7fa;border-radius:3px;overflow:hidden;display:flex;align-items:center;justify-content:center;}
.sl-thumb img{width:100%;height:100%;object-fit:cover;}
.sl-name{display:block;margin-top:6px;font-size:12px;color:#555;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.sl-card:hover .sl-name{color:#3f8af0;}
.side-top10 li{display:flex;align-items:flex-start;gap:8px;padding:9px 0;border-bottom:1px dashed #f3f3f3;}
.side-top10 li:last-child{border-bottom:0;}
.side-top10 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;margin-top:2px;}
.side-top10 li.top i{background:#3f8af0;color:#fff;}
.side-top10 li a{flex:1;min-width:0;}
.side-top10 .t10-t{display:block;font-size:13px;font-weight:bold;color:#555;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.side-top10 .t10-t.isgood_2{color:#e0446a;}
.side-top10 .t10-t.isgood_1{color:#b89a0a;}
.side-top10 .t10-d{display:block;margin-top:2px;font-size:12px;color:#aaa;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.side-top10 li a:hover .t10-t{color:#3f8af0;}
.side-top10 .t10-empty{color:#999;font-size:12px;}

/* 响应式（新模块） */
@media (max-width:1000px){
.zy-grid{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:640px){
.zy-grid{grid-template-columns:1fr;}
}

/* ===== 第六轮返工 ===== */
/* 1. 通栏广告位（11/12/13/14/15）统一 1300x60，宽度同主容器，移动端等比缩放 */
.ys-ad-bn{max-width:1300px;margin-left:auto;margin-right:auto;}
.ys-ad-bn .ys-ad-ph{height:60px !important;flex-direction:row;align-items:center;justify-content:center;gap:14px;}
.ys-ad-bn .ys-ad-ph b{font-size:14px;}
.ys-ad-bn .ys-ad-ph span{font-size:12px;}
.ys-top-adv{margin-top:8px;}
.ys-nav-adv{margin-top:10px;}
/* 8. 顶部真实广告图轮播 */
.ys-ad-slide{line-height:0;}
.ys-ad-slide a{display:block;line-height:0;}
.ys-ad-slide img{width:100%;max-width:1300px;height:auto;display:block;margin:0 auto;}
/* 8. 对联广告（左右悬浮跟随滚动；窄屏与移动端隐藏） */
.ys-ad-dl{position:fixed;top:140px;width:120px;z-index:990;margin:0;}
.ys-ad-dl-l{left:calc(50% - 650px - 132px);}
.ys-ad-dl-r{right:calc(50% - 650px - 132px);}
.ys-ad-dl .ys-ad-ph{width:120px !important;height:300px !important;flex-direction:column;gap:8px;padding:8px;box-sizing:border-box;}
.ys-ad-dl img{width:120px;display:block;}
@media (max-width:1600px){.ys-ad-dl{display:none !important;}}
/* 3. TOP10 赞助颜色只染标题文字：标题不再带背景条，描述与序号保持默认色 */
.t10-list .t10-t.isgood_1,.t10-list .t10-t.isgood_2,.side-top10 .t10-t.isgood_1,.side-top10 .t10-t.isgood_2{background:transparent !important;border:0 !important;}
/* 6. 赞助标题文字颜色三处统一（一级黄 / 二级红粉） */
.zy-grid .zy-item.isgood_1 h4,.zy-row.isgood_1 h2{color:#b89a0a;}
.zy-grid .zy-item.isgood_2 h4,.zy-row.isgood_2 h2{color:#e0466a;}
.zy-grid .zy-item.isgood_1 a:hover h4,.zy-grid .zy-item.isgood_2 a:hover h4,.zy-row.isgood_1 a:hover h2,.zy-row.isgood_2 a:hover h2{color:#3f8af0;}
/* 2. 面包屑全站统一样式：链接主题蓝可点，当前页灰色加粗 */
.crumb{margin:12px 0 2px;padding:0 2px;font-size:13px;color:#888;line-height:1.8;}
.crumb a{color:#3f8af0;}
.crumb a:hover{color:#2c6fd6;text-decoration:underline;}
.crumb em{font-style:normal;margin:0 8px;color:#bbb;}
.crumb .crumb-cur{color:#666;font-weight:bold;}

/* ===== 第七轮返工 ===== */
/* 1. 通栏堆叠（目标站 date_span 式）：1200×70 上下叠放，右下角"广告赞助"角标 */
.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;}
/* 2. logo旁广告位（date_lg 500×60） */
.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;}
.date_lg .ys-ad-ph{height:60px !important;}
.topbar .container{display:flex;align-items:center;justify-content:space-between;gap:10px;}
/* 3+5. 对联 150×300 + 底部关闭条 */
.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 .ys-ad-stack{background:transparent;}
.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;}
.ys-ad-dl .ys-ad-ph{width:150px !important;}
.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);}
/* 4. 首页资源采集列表：复用分类页 zy-row 同款样式（与 ys-list.css 一字不差） */
.zy-rows{list-style:none;margin:0;padding:0;}
.zy-rows .zy-row{border-bottom:1px solid #f4f4f4;}
.zy-rows .zy-row:last-of-type{border-bottom:0;}
.zy-rows .zy-row a{display:flex;gap:14px;padding:16px 0;box-sizing:border-box;}
.zy-rows .zy-row .pic{flex:none;width:150px;height:105px;background:#f5f7fa;border:1px solid #eee;border-radius:3px;overflow:hidden;display:flex;align-items:center;justify-content:center;}
.zy-rows .zy-row .pic img{width:100%;height:100%;object-fit:cover;}
.zy-rows .zy-row .pic .ph{width:100%;height:100%;display:flex;align-items:center;justify-content:center;}
.zy-rows .zy-row .pic .screen{width:78%;height:72px;border-radius:4px 4px 0 0;padding:4px 4px 0;background:#4a4f57;}
.zy-rows .zy-row .pic .screen-inner{width:100%;height:100%;border-radius:2px 2px 0 0;}
.zy-rows .zy-row .pic .base{width:90%;height:6px;background:#b8bfc9;border-radius:0 0 4px 4px;margin-top:-1px;}
.zy-rows .zy-row .txt{flex:1;min-width:0;}
.zy-rows .zy-row .txt h2{font-size:16px;font-weight:bold;color:#333;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.zy-rows .zy-row .txt p{margin-top:8px;font-size:13px;color:#777;line-height:1.8;height:44px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}
.zy-rows .zy-row .txt .m{display:inline-block;margin-right:16px;margin-top:8px;font-size:12px;color:#a0a6af;}
.zy-rows .zy-row .txt .m svg{width:13px;height:13px;fill:#b9c0ca;vertical-align:-2px;margin-right:4px;}
.zy-rows .zy-row.isgood_2 a{background:#ffdcdc;border:1px solid #fb8888;border-radius:4px;padding-left:12px;padding-right:12px;}
.zy-rows .zy-row.isgood_2 .ico{background:#fc5574;}
.zy-rows .zy-row.isgood_1 a{background:#fffbdc;border:1px solid #e0cb25;border-radius:4px;padding-left:12px;padding-right:12px;}
.zy-rows .zy-row.isgood_1 .ico{background:#dcc40b;}
.zy-rows .zy-row a:hover h2{color:#3f8af0;}
@media (max-width:1600px){.ys-ad-dl{display:none !important;}}
@media (max-width:768px){
/* .date_lg 移动端改为显示（见文末媒体查询） */
.zy-rows .zy-row .pic{width:110px;height:78px;}
.zy-rows .zy-row .pic .screen{height:52px;}
.zy-rows .zy-row .txt h2{font-size:15px;}
}


/* 首页赞助标题染色与分类页一致（一级黄/二级红粉），压过 .txt h2 的 #333 */
.zy-rows .zy-row.isgood_1 .txt h2{color:#b89a0a;}
.zy-rows .zy-row.isgood_2 .txt h2{color:#e0466a;}

/* ===== 第七轮补充：首页资源模块恢复目标站首页版式（小图100×70横向条目，isgood挂li，背景色块走全局isgood样式） ===== */
.zy-hlist{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,1fr);gap:10px 14px;}
.zy-hlist li{border:1px solid #f0f0f0;border-radius:4px;background:#fff;overflow:hidden;}
.zy-hlist li a{display:flex;gap:10px;padding:8px;align-items:flex-start;}
.zy-hlist li a:hover h4{color:#3f8af0;}
.zy-hlist .pic{flex:none;width:100px;height:70px;background:#f5f7fa;border-radius:2px;overflow:hidden;line-height:0;display:flex;align-items:center;justify-content:center;}
.zy-hlist .pic img{width:100px;height:70px;object-fit:cover;display:block;}
.zy-hlist .pic .ph{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#e8ecf1;}
.zy-hlist .pic .ph:after{content:"▶";color:#c3cad4;font-size:18px;}
.zy-hlist .txt{flex:1;min-width:0;}
.zy-hlist .txt h4{font-size:14px;line-height:1.6;color:#333;font-weight:bold;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.zy-hlist .txt p{margin-top:4px;font-size:12px;color:#888;line-height:1.7;height:41px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}
.zy-hlist .ico{display:inline-block;vertical-align:1px;margin-right:5px;padding:0 5px;font-size:11px;line-height:18px;color:#fff;border-radius:2px;background:#b9c0ca;font-weight:normal;}
.zy-hlist li.isgood_1 .ico{background:#dcc40b;}
.zy-hlist li.isgood_2 .ico{background:#fc5574;}
.zy-hlist li.isgood_1 h4{color:#b89a0a;}
.zy-hlist li.isgood_2 h4{color:#e0466a;}
.zy-hlist li.isgood_1 a:hover h4,.zy-hlist li.isgood_2 a:hover h4{color:#3f8af0;}
@media (max-width:768px){
.zy-hlist{grid-template-columns:1fr;}
}

/* 位18在顶栏内：去掉通用 .ys-ad 的 16px 上边距，三元素垂直居中 */
.date_lg .ys-ad{margin-top:0;}

/* ===== 移动端广告自适应（通栏 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;}
}

/* ===== 返回顶部按钮（右下角，主题蓝，纯CSS+原生JS，见 footer.php） ===== */
.ys-backtop{position:fixed;right:24px;bottom:16px;width:44px;height:44px;border:2px solid rgba(255,255,255,.9);border-radius:10px;background:#3f8af0;color:#fff;cursor:pointer;z-index:8;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 10px rgba(0,0,0,.22);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .25s ease,visibility .25s ease,background .2s;box-sizing:border-box;}
.ys-backtop.on{opacity:1;visibility:visible;pointer-events:auto;}
.ys-backtop:hover{background:#2f76da;}
.ys-backtop:active{background:#2a6bc7;}
.ys-backtop svg{width:22px;height:22px;fill:none;stroke:#fff;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;}
@media (max-width:768px){
  .ys-backtop{right:12px;bottom:16px;width:40px;height:40px;border-radius:8px;}
  .ys-backtop svg{width:20px;height:20px;}
}

/* ===== 第三轮 H：移动端折叠菜单（390px 实测） ===== */
@media (max-width:768px){
  .nav .nav-box{flex-wrap:wrap;}
  .nav-toggle{display:block;width:100%;background:transparent;border:0;color:#fff;text-align:left;padding:0 16px;height:46px;cursor:pointer;font-size:15px;font-family:inherit;}
  .nav-toggle i{display:block;width:22px;height:2px;background:#fff;margin:4px 0;}
  .nav-toggle span{position:absolute;left:56px;top:0;line-height:46px;}
  .nav-main{display:none;width:100%;flex-direction:column;flex-wrap:nowrap;}
  .nav.is-open .nav-main{display:flex;}
  .nav-main > li{width:100%;border-top:1px solid rgba(255,255,255,.18);}
  .nav-main > li > a{padding:0 16px;line-height:46px;font-size:15px;}
  .nav-main > li:hover > a{background:transparent;}
  .nav-main > li.on > a{background:#256ce2;}
  .nav-main li ul{position:static;display:none;min-width:0;background:#3575dd;box-shadow:none;}
  .nav-main > li.is-open > ul{display:block;}
  .nav-main li ul a{text-align:left;padding:0 34px;line-height:42px;font-size:14px;}
  .nav-tool{width:100%;margin-left:0;border-top:1px solid rgba(255,255,255,.18);}
  .nav-tool > span{padding:0 16px;line-height:46px;}
  .nav-tool ul{position:static;display:none;min-width:0;background:#3575dd;box-shadow:none;}
  .nav-tool.is-open ul{display:block;}
  .nav-tool ul a{text-align:left;padding:0 34px;line-height:42px;}
}

/* ===== 第七轮 I1 返工：导航联系图标（图片素材版：桌面右侧图标组 + 移动端菜单内图文行） ===== */
.nav-icos{display:flex;align-items:center;gap:10px;margin-left:16px;align-self:center;}
.nav-icos a{display:block;line-height:1;}
.nav-icos img{display:block;width:27px;height:27px;opacity:.92;transition:transform .25s ease,opacity .25s ease,filter .25s ease;}
.nav-icos a:hover img{opacity:1;transform:translateY(-2px) scale(1.08);filter:drop-shadow(0 4px 10px rgba(0,0,0,.35));}
.nav-icos a:active img{transform:scale(.95);}
.nav-main > li.nav-ico-m{display:none;}
@media (max-width:768px){
  .nav-icos{display:none;}
  .nav-main > li.nav-ico-m{display:block;}
  .nav-main > li.nav-ico-m > a{display:flex;align-items:center;gap:10px;padding:0 16px;line-height:46px;font-size:15px;}
  .nav-main > li.nav-ico-m > a:hover{background:transparent;}
  .nav-main > li.nav-ico-m img{width:22px;height:22px;flex:none;display:block;}
}
