@charset "utf-8";
/* ============================================================
   应用中心模板（PbootCMS）
   版式：1200 定宽 · 蓝色顶栏 · 橙色搜索按钮 · 卡片式应用列表
   文件：template/addon/css/style.css
   ============================================================ */

:root{
  --color:#333;      --fb:#666;      --fc:#999;     --fd:#ccc;
  --ff:#fff;         --border:#ddd;  --bgb:#f4f4f4; --bgc:#f7f7f7;
  --brand:#237ffd;   --brand-d:#1a63d8;
  --cyan:#02c9de;    --purple:#9f8ede; --green:#86dd68;
  --ahot:#f60;       --link:#09c;    --link-hover:#2596bb;
  --btn:#ff8a65;     --danger:#ed452f;
  --r:4px;
  --shadow:0 1px 4px rgba(35,127,253,.06);
}

*{margin:0;padding:0;box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{background:var(--bgb);color:var(--color);font:14px/1.6 "Microsoft YaHei","PingFang SC",Arial,sans-serif}
a{color:var(--color);text-decoration:none}
a:hover{color:var(--brand-d)}
img{max-width:100%;border:0;vertical-align:middle}
ul,ol{list-style:none}
.cl:after{content:"";display:block;clear:both}
.wi{width:1200px;margin:0 auto}
.mbm{margin-bottom:10px}
.mtm{margin-top:10px}

/* ---------- 顶部 ---------- */
#hd{height:60px;background:var(--brand)}
#hd .wi{height:60px;display:flex;align-items:center}
.logo{display:flex;align-items:center;gap:10px;color:#fff;font-size:20px;font-weight:600;letter-spacing:1px}
.logo img{height:38px;border-radius:4px}
.logo span{white-space:nowrap}
#hd .nav{display:flex;align-items:stretch;margin-left:26px}
#hd .nav li{position:relative}
#hd .nav a{display:block;padding:0 16px;line-height:60px;font-size:15px;color:#a3cfff}
#hd .nav a:hover,#hd .nav a.current{color:#fff}
#hd .nav a:hover em,#hd .nav a.current em{position:absolute;left:0;bottom:0;width:100%;height:3px;border-radius:2px 2px 0 0;background:#fff}
#hd .nav a em{display:block}
#hd .nav a.hot{color:#ffcc00}
#hd .user{margin-left:auto;display:flex;align-items:center;gap:16px;color:#fff;font-size:13px}
#hd .user a{color:#fff;opacity:.9}
#hd .user a:hover{color:#fff;opacity:1}

/* ---------- 广告位 ---------- */
#index_banner{margin-top:10px}
#index_banner img{width:100%;border-radius:var(--r);display:block}
.hero{display:flex;gap:10px;margin:10px 0}
.hero .big{width:260px;height:150px;border-radius:var(--r);overflow:hidden;background:#dbe8ff}
.hero .big img{width:260px;height:150px;object-fit:cover}
.hero .tiles{flex:1;display:grid;grid-template-columns:repeat(4,1fr);grid-auto-rows:70px;gap:10px}
.hero .tiles a{border-radius:var(--r);overflow:hidden;background:#e8effb}
.hero .tiles img{width:100%;height:70px;object-fit:cover;display:block}

/* ---------- 公告 ---------- */
.addon_ann{height:38px;line-height:38px;padding:0 14px;background:#fff;border-radius:var(--r);overflow:hidden;position:relative;margin:10px 0}
.addon_ann b{float:left;color:var(--danger);font-weight:400;margin-right:12px}
.addon_ann ul{overflow:hidden;height:38px}
.addon_ann li{height:38px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--fb)}
.addon_ann a{color:var(--fb)}
.addon_ann a:hover{color:var(--brand)}

/* ---------- 搜索 ---------- */
.search{display:flex;height:50px;margin:10px 0}
.search input{flex:1;height:50px;border:0;border-radius:var(--r) 0 0 var(--r);background:#fff;text-indent:15px;font-size:14px;outline:none}
.search button{width:88px;height:50px;border:0;border-radius:0 var(--r) var(--r) 0;background:var(--btn);color:#fff;font-size:16px;cursor:pointer}
.search button:hover{background:#ff7a52}

/* ---------- 区块标题 ---------- */
.title2{padding:10px 0 14px;display:flex;align-items:center;gap:10px}
.title2 .t{height:40px;line-height:40px;display:flex;align-items:center;gap:10px}
.title2 .t b{display:inline-block;padding-left:30px;font-weight:400;font-size:18px}
.title2 .t span{color:var(--fc);font-size:13px}

/* ---------- 应用卡片（首页 5 列） ---------- */
.cjli{display:flex;gap:10px;margin-bottom:14px}
.cjli .tagcol{width:60px;flex:0 0 60px;border-radius:var(--r);display:flex;align-items:center;justify-content:center;background:var(--cyan);color:#fff;font-size:16px;line-height:20px;text-align:center;padding:8px 0}
.cjli .tagcol.purple{background:var(--purple)}
.cjli .tagcol.green{background:var(--green)}
.cjli ul{flex:1;display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.cjli li{background:#fff;border:1px solid #fff;border-radius:var(--r);padding:10px;display:flex;gap:10px;height:100px}
.cjli li:hover{border-color:var(--border);box-shadow:0 0 10px var(--fd)}
.cjli li .ico{width:80px;height:80px;flex:0 0 80px;border-radius:var(--r);background:var(--bgb);display:flex;align-items:center;justify-content:center;overflow:hidden}
.cjli li .ico img{max-width:80px;max-height:80px;border-radius:var(--r)}
.cjli li .tx{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:space-between}
.cjli li .t{font-size:13px;line-height:20px;height:40px;overflow:hidden}
.cjli li .b{display:block;font-size:12px;line-height:16px;color:var(--ahot);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cjli li .b em{display:block;font-style:normal;font-size:11px;line-height:14px;color:var(--fc)}
.cjli .more{display:flex;align-items:center;justify-content:center;width:60px;flex:0 0 60px;color:var(--fc);font-size:13px}
.cjli .more:hover{color:var(--brand)}

/* ---------- 列表页 ---------- */
.lit{display:flex;align-items:center;height:56px;background:var(--brand);border-radius:var(--r) var(--r) 0 0;padding:0 20px;gap:14px;color:#fff}
.lit h2{font-size:18px;font-weight:400}
.lit h2 span{font-size:13px;opacity:.8;margin-left:6px}
.lit .sform{margin-left:auto;display:flex;height:32px}
.lit .sform input{width:220px;height:32px;border:0;border-radius:3px 0 0 3px;text-indent:10px;font-size:13px;outline:none}
.lit .sform button{height:32px;padding:0 14px;border:0;border-radius:0 3px 3px 0;background:var(--btn);color:#fff;cursor:pointer}

.flbox{margin:10px 0;padding:4px 20px;border-radius:var(--r);background:#fff;box-shadow:var(--shadow)}
.flbox li{display:flex;align-items:flex-start;padding:12px 0;font-size:13px;line-height:24px;border-bottom:1px solid var(--bgb)}
.flbox li:last-child{border-bottom:0}
.flbox li i{flex:0 0 88px;color:var(--fc);font-style:normal}
.flbox li span{flex:1;min-width:0}
.flbox li span a{display:inline-block;margin:0 8px 8px 0;padding:0 12px;border-radius:var(--r);color:var(--fb)}
.flbox li span a:hover{background:var(--bgb);color:var(--brand)}
.flbox li span a.a{background:var(--brand);color:#fff;font-weight:600}

.lib{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:10px 0}
.lib li{background:#fff;border:1px solid #fff;border-radius:var(--r);padding:14px 12px;display:flex;gap:10px;height:138px}
.lib li:hover{border-color:var(--border);box-shadow:0 0 10px var(--fd)}
.lib li .ico{width:80px;height:80px;flex:0 0 80px;border-radius:var(--r);background:var(--bgb);display:flex;align-items:center;justify-content:center;overflow:hidden}
.lib li .ico img{max-width:80px;max-height:80px;border-radius:var(--r)}
.lib li .tx{flex:1;min-width:0;display:flex;flex-direction:column}
.lib li .t{height:24px;line-height:24px;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lib li .price{color:var(--ahot);font-size:13px;line-height:22px}
.lib li .price.free{color:var(--green)}
.lib li .cardtags{display:flex;gap:4px;overflow:hidden;height:22px;line-height:22px}
.lib li .cardtags span{padding:0 5px;border-radius:3px;background:var(--bgb);color:var(--fb);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lib li .b{margin-top:auto;padding-top:7px;border-top:1px dashed var(--border);display:flex;justify-content:space-between;font-size:12px;color:var(--fc);line-height:20px}
.lib li .b em{font-style:normal}

/* ---------- 分页 ---------- */
.pg{margin:20px 0 10px;text-align:center;font-size:13px}
.pg a,.pg span{display:inline-block;margin:0 3px;padding:0 11px;height:30px;line-height:30px;border-radius:3px;background:#fff;color:var(--fb)}
.pg a:hover{background:var(--brand);color:#fff}
.pg span.a{background:var(--brand);color:#fff}
.pg em{color:var(--fc);margin-right:10px;font-style:normal}

/* ---------- 详情页 ---------- */
.tmain{display:flex;gap:10px;margin:10px 0}
.tleft{flex:1;min-width:0;background:#fff;border-radius:6px;padding:16px 20px 22px;box-shadow:var(--shadow)}
.tright{width:250px;flex:0 0 250px}
.tparent{padding-bottom:14px;border-bottom:1px solid var(--bgb)}
.tparent .crumbs{color:var(--fc);font-size:12px;margin-bottom:10px}
.tparent .crumbs a{color:var(--fc)}
.tparent .head{display:flex;gap:16px}
.tparent .head .ico{width:100px;height:100px;flex:0 0 100px;border-radius:6px;background:var(--bgb);display:flex;align-items:center;justify-content:center;overflow:hidden}
.tparent .head .ico img{max-width:100px;max-height:100px}
.tparent .head .info{flex:1;min-width:0}
.tparent .head h1{font-size:22px;line-height:32px;font-weight:600;color:var(--color)}
.tparent .head .desc{color:var(--fb);font-size:13px;margin:8px 0 10px;line-height:22px;max-height:44px;overflow:hidden}
.tparent .head .meta{display:flex;flex-wrap:wrap;gap:18px;color:var(--fc);font-size:12px}
.tparent .head .meta i{font-style:normal}
.tparent .head .meta a{color:var(--link)}
.tparent .head .meta a:hover{color:var(--link-hover)}

.tprice{display:flex;align-items:center;gap:10px;margin:16px 0 0}
.tprice .now{color:var(--ahot);font-size:26px;line-height:1}
.tprice .now small{font-size:14px;margin-right:2px}
.tprice .old{color:var(--fc);text-decoration:line-through;font-size:13px}
.tprice .free{color:var(--green);font-size:26px;line-height:1}
.tbtns{display:flex;gap:10px;margin-top:16px}
.tbtns a{display:inline-block;min-width:132px;height:42px;line-height:42px;padding:0 22px;border-radius:var(--r);text-align:center;font-size:15px;color:#fff}
.tbtns a.buy{background:var(--btn)}
.tbtns a.buy:hover{background:#ff7a52;color:#fff}
.tbtns a.down{background:var(--brand)}
.tbtns a.down:hover{background:var(--brand-d);color:#fff}
.tbtns a.ghost{background:#fff;border:1px solid var(--brand);color:var(--brand);line-height:40px}
.tbtns a.ghost:hover{background:#f2f7ff}

.ttags{display:flex;flex-wrap:wrap;gap:6px;margin-top:16px}
.ttags a{padding:2px 10px;border-radius:3px;background:var(--bgb);color:var(--fb);font-size:12px}
.ttags a:hover{background:#e9f2ff;color:var(--brand)}

.tab{display:flex;gap:26px;margin:20px 0 0;border-bottom:1px solid var(--bgb)}
.tab a{padding:0 2px 12px;font-size:16px;color:var(--fb);position:relative}
.tab a.on{color:var(--brand);font-weight:600}
.tab a.on:after{content:"";position:absolute;left:0;bottom:-1px;width:100%;height:2px;background:var(--brand)}
.tcontent{padding:18px 0 0;font-size:14px;line-height:1.9;color:#444}
.tcontent img{max-width:100%;display:block;margin:10px auto}
.tcontent h3,.tcontent h4{margin:14px 0 8px;font-weight:600}

.tparam{margin:16px 0 0;background:var(--bgc);border-radius:var(--r);padding:4px 16px}
.tparam li{display:flex;padding:9px 0;font-size:13px;border-bottom:1px dashed var(--border)}
.tparam li:last-child{border-bottom:0}
.tparam li i{flex:0 0 100px;color:var(--fc);font-style:normal}
.tparam li span{flex:1;color:var(--fb)}

/* 右侧作者卡 */
.tright .card{background:#fff;border-radius:var(--r);padding:16px;margin-bottom:10px}
.tright .card h3{font-size:14px;font-weight:400;color:var(--fb);padding-bottom:10px;margin-bottom:12px;border-bottom:1px solid var(--bgb)}
.dev{display:flex;gap:10px;align-items:center}
.dev .avatar{width:52px;height:52px;border-radius:50%;background:var(--bgb);overflow:hidden;flex:0 0 52px;display:flex;align-items:center;justify-content:center}
.dev .avatar img{width:52px;height:52px;object-fit:cover}
.dev .n{font-size:14px;color:var(--color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dev .n em{display:inline-block;margin-left:4px;padding:0 5px;border-radius:3px;background:#fff2e8;color:var(--ahot);font-size:11px;font-style:normal}
.dev .s{color:var(--fc);font-size:12px;margin-top:4px}
.devapps li{display:flex;gap:8px;padding:8px 0;border-bottom:1px dashed var(--border)}
.devapps li:last-child{border-bottom:0}
.devapps li .ico{width:36px;height:36px;flex:0 0 36px;border-radius:3px;background:var(--bgb);overflow:hidden;display:flex;align-items:center;justify-content:center}
.devapps li .ico img{max-width:36px;max-height:36px}
.devapps li .tx{flex:1;min-width:0}
.devapps li .t{font-size:12px;line-height:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.devapps li .p{color:var(--ahot);font-size:12px}

/* ---------- 页脚 ---------- */
#ft{margin-top:20px;padding:26px 0 18px;background:#fff;border-top:1px solid var(--border);color:var(--fc);font-size:13px}
#ft .top{display:flex;gap:40px;padding-bottom:18px;border-bottom:1px solid var(--bgb)}
#ft .col{flex:1}
#ft .col h4{font-size:14px;color:var(--fb);font-weight:400;margin-bottom:10px}
#ft .col a{display:block;color:var(--fc);line-height:26px}
#ft .col a:hover{color:var(--brand)}
#ft .col p{line-height:26px}
#ft .copy{text-align:center;padding-top:16px;line-height:24px}
#ft .copy a{color:var(--fc);margin:0 4px}
#ft .copy a:hover{color:var(--brand)}

/* ---------- 响应式 ---------- */
@media (max-width:1230px){
  .wi{width:96%}
  .cjli ul{grid-template-columns:repeat(3,1fr)}
  .lib{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:992px){
  #hd{height:auto}
  #hd .wi{height:auto;flex-wrap:wrap;padding:8px 0}
  #hd .nav{flex-wrap:wrap;margin-left:0}
  #hd .nav a{line-height:44px;padding:0 12px}
  .hero{flex-direction:column}
  .hero .big{width:100%}
  .hero .tiles{grid-template-columns:repeat(2,1fr)}
  .tmain{flex-direction:column}
  .tright{width:100%;flex:auto}
  .cjli ul{grid-template-columns:repeat(2,1fr)}
  .lib{grid-template-columns:repeat(2,1fr)}
  .cjli .tagcol{display:none}
  .cjli ul{width:100%}
}
@media (max-width:560px){
  .cjli ul,.lib{grid-template-columns:1fr}
  .tparent .head{flex-direction:column}
  .tbtns{flex-wrap:wrap}
  .flbox li i{flex:0 0 60px}
}

/* ---------- 首页模块：标签列 + 4 列卡片 + 右侧 300 广告位（对齐参考站） ---------- */
.cjli .tagcol{width:88px;flex:0 0 88px;font-size:15px;line-height:22px;letter-spacing:3px;border-radius:4px}
.cjli .tagcol.cyan{background:linear-gradient(180deg,#3ec8d8,#02c9de)}
.cjli .tagcol.purple{background:linear-gradient(180deg,#a99ce8,#8b78d8)}
.cjli .tagcol.green{background:linear-gradient(180deg,#97e67e,#6fce4f)}
.cjli ul{grid-template-columns:repeat(4,1fr)}
.cjli .adr{width:300px;flex:0 0 300px;border-radius:4px;overflow:hidden;display:flex;background:#fff}
.cjli .adr img{width:100%;height:100%;object-fit:cover;display:block}

/* 模板块：大图卡（图 + 标题/日期一行） */
.cjli.tpl li{flex-direction:column;gap:0;padding:0;height:auto;overflow:hidden;background:#fff}
.cjli.tpl li .pimg{width:100%;aspect-ratio:1.06/1;overflow:hidden;background:var(--bgb);display:block}
.cjli.tpl li .pimg img{width:100%;height:100%;object-fit:cover;display:block}
.cjli.tpl li .pf{display:flex;align-items:center;gap:8px;padding:9px 10px;font-size:13px}
.cjli.tpl li .pf a{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cjli.tpl li .pf em{flex:0 0 auto;font-style:normal;font-size:12px;color:var(--ahot)}

@media (max-width:1100px){.cjli ul{grid-template-columns:repeat(3,1fr)}.cjli .adr{display:none}}
@media (max-width:900px){.cjli ul{grid-template-columns:repeat(2,1fr)}.cjli .tagcol{display:none}}
@media (max-width:560px){.cjli ul{grid-template-columns:1fr}}

/* ---------- 模板频道列表：3 列大图卡 ---------- */
.lib.tpl3{grid-template-columns:repeat(3,1fr)}
.lib.tpl3 li{flex-direction:column;gap:0;padding:0;height:auto;overflow:hidden}
.lib.tpl3 .pimg{width:100%;aspect-ratio:1.35/1;background:var(--bgb);overflow:hidden;display:block}
.lib.tpl3 .pimg img{width:100%;height:100%;object-fit:cover;display:block}
.lib.tpl3 .pf{display:flex;flex-direction:column;gap:4px;padding:10px 12px}
.lib.tpl3 .pf .t{font-size:14px;line-height:22px;height:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lib.tpl3 .pf .cardtags{height:22px;line-height:22px}
.lib.tpl3 .pf .b{display:flex;justify-content:space-between;align-items:center;border-top:1px dashed var(--border);padding-top:8px;margin-top:2px}
.lib.tpl3 .pf .b em{font-style:normal;color:var(--fc);font-size:12px}
.lib.tpl3 .pf .price{font-size:14px;line-height:20px}
@media (max-width:900px){.lib.tpl3{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.lib.tpl3{grid-template-columns:1fr}}

/* ========== 精确对齐 addon.dismall.com 首页尺寸 ==========
   .tl 934 + .tr 256×210 / .tad 260×150 + 8×(158×70)
   .cjli 标签列 60 + 卡区 905（4×196×80）+ 右侧 225×210
   .mbli 模板块：4×214×268 + 右侧 225×270
   ========================================================= */
.topt{display:flex;align-items:flex-start;margin-top:10px}
.topt .tl{width:934px;flex:0 0 934px}
.topt .tr{width:256px;flex:0 0 256px;margin-left:10px}
.topt .tr img{width:256px;height:210px;border-radius:var(--r);display:block}
.topt .search{margin:0;display:block;height:50px}
.topt .search form{display:flex;width:100%;height:50px}
.topt .search input{flex:1;height:50px;border:0;border-radius:var(--r) 0 0 var(--r);background:#fff;text-indent:15px;font-size:14px;outline:none}
.topt .search button{width:88px;height:50px;border:0;border-radius:0 var(--r) var(--r) 0;background:var(--btn);color:#fff;font-size:16px;cursor:pointer}

.tad{display:flex;align-items:flex-start;gap:10px;margin-top:10px;height:150px}
.tad .a0{width:260px;flex:0 0 260px}
.tad .a0 img{width:260px;height:150px;border-radius:var(--r);display:block}
.tad .tiles{display:grid;grid-template-columns:repeat(4,158px);grid-auto-rows:70px;gap:10px}
.tad .tiles a{display:block;line-height:0}
.tad .tiles img{width:158px;height:70px;border-radius:var(--r);display:block}

.cjli{gap:10px;margin-bottom:20px}
.cjli .tagcol{width:60px;flex:0 0 60px;padding:0;font-size:16px;line-height:20px;letter-spacing:0;background:#02c9de}
.cjli .tagcol.purple{background:#9f8ede}
.cjli .tagcol.green{background:#86dd68}
.cjli ul{grid-template-columns:repeat(4,1fr);gap:10px}
.cjli li{height:100px;padding:10px;gap:10px}
.cjli li .ico,.cjli li .ico img{width:80px;height:80px;flex:0 0 80px;max-width:80px;max-height:80px}
.cjli li .t{font-size:13px;line-height:20px;height:40px}
.cjli .adr{width:225px;flex:0 0 225px}
.cjli.tpl ul{grid-auto-rows:auto}
.cjli.tpl li{width:auto;height:auto}
.cjli.tpl li .pimg{aspect-ratio:1/1}
.cjli.tpl li .pf{padding:10px;display:flex;align-items:center}
.cjli.tpl li .pf a{font-size:13px}

@media (max-width:1240px){
  .topt{flex-wrap:wrap}
  .topt .tl{width:100%;flex:auto}
  .topt .tr{display:none}
  .tad{height:auto;flex-wrap:wrap}
  .tad .a0{width:100%;flex:auto}
  .tad .a0 img{width:100%;height:auto}
  .tad .tiles{grid-template-columns:repeat(4,1fr)}
  .tad .tiles img{width:100%;height:auto;aspect-ratio:158/70}
  .cjli .adr{display:none}
}
@media (max-width:900px){
  .cjli ul{grid-template-columns:repeat(2,1fr)}
  .cjli .tagcol{display:none}
  .tad .tiles{grid-template-columns:repeat(2,1fr)}
}

/* 行高与广告位高度对齐参考站 */
.cjli ul{grid-auto-rows:100px}
.cjli .adr{height:210px}
.cjli.tpl ul{grid-auto-rows:auto}
.cjli.tpl li .pimg{aspect-ratio:auto;height:195px}
.cjli.tpl .adr{height:270px}

/* 卡片内只显示日期（与参考站一致，价格移到详情页） */
.cjli li .b{display:block;font-size:12px;line-height:20px;color:var(--ahot);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cjli li .b em{display:inline;font-style:normal;font-size:12px;color:var(--ahot);line-height:20px}
/* 模板块卡片与右侧广告等高（268 / 270） */
.cjli.tpl li{height:268px}
.cjli.tpl li .pf{height:auto}

/* 右侧竖广告随内容行数自适应等高，避免条数少时错位 */
.cjli .adr,.cjli.tpl .adr{height:auto;align-self:stretch;min-height:100px}
.cjli .adr img,.cjli.tpl .adr img{width:100%;height:100%;object-fit:cover;display:block}
.cjli ul{min-height:100px}

/* 模板列表：4 列 293×370（对齐参考站 .lib1），图区 240 居中 */
.lib.tpl3{grid-template-columns:repeat(4,1fr);gap:10px}
.lib.tpl3 li{padding:9px;height:370px}
.lib.tpl3 .pimg{height:240px;display:flex;align-items:center;justify-content:center;background:transparent;overflow:hidden}
.lib.tpl3 .pimg img{width:auto;height:auto;max-width:100%;max-height:240px;object-fit:contain}
.lib.tpl3 .pf{padding:10px 0 0;gap:0}
.lib.tpl3 .pf .t{font-size:13px;line-height:28px;height:28px}
.lib.tpl3 .pf .cardtags{height:18px;line-height:18px;overflow:hidden}
.lib.tpl3 .pf .b{border-top:1px dashed var(--border);margin-top:10px;padding-top:7px;height:20px;line-height:20px}
.lib.tpl3 .pf .price{font-size:12px}
@media (max-width:1240px){.lib.tpl3{grid-template-columns:repeat(3,1fr)}}
@media (max-width:900px){.lib.tpl3{grid-template-columns:repeat(2,1fr);}}
@media (max-width:560px){.lib.tpl3{grid-template-columns:1fr}}

/* 模板列表图片按图区铺满（保持比例不裁切） */
.lib.tpl3 .pimg img{width:100%;height:100%;max-width:none;max-height:none;object-fit:contain}

/* ============================================================
   v3：页脚 / 回到顶部 / 列表页（对齐 addon.dismall.com）
   ============================================================ */
/* 页脚：深色居中单列 */
#ft{margin-top:20px;padding:26px 0 30px;background:#333;border:0;color:#999;font-size:13px;line-height:26px;text-align:center}
#ft .lnks{margin:0 0 8px}
#ft .lnks a{color:#ccc;margin:0 10px}
#ft .lnks a:hover{color:#fff}
#ft .lnks span{color:#555;margin:0 2px}
#ft .cp{color:#999;margin:0}
#ft .cp a{color:#999;margin:0 2px}
#ft .cp a:hover{color:#fff}
#ft .svc{margin:14px 0 0}
#ft .svc a{display:inline-block;height:34px;line-height:34px;padding:0 16px;margin:0 6px;background:#237ffd;color:#fff;border-radius:3px;font-size:14px}
#ft .svc a:hover{background:#1a63d8}
#ft .hot{color:#ff7a2f;font-size:13px;margin:10px 0 0}

/* 回到顶部 */
#backtop{position:fixed;right:24px;bottom:96px;width:44px;height:44px;line-height:44px;text-align:center;background:#ff7a2f;color:#fff;font-size:20px;border-radius:3px;box-shadow:0 2px 8px rgba(0,0,0,.2);display:none;z-index:999;text-decoration:none}
#backtop:hover{background:#f60}

/* 列表页频道标题条 */
.chbar{background:#f7f7f7;margin-top:10px;height:88px;display:flex;align-items:center;padding:0 24px;border-radius:3px}
.chbar h2{font-size:20px;font-weight:700;color:#333}
.chbar .chic{font-size:24px;margin-right:10px;line-height:1}
.chbar .chline{width:76px;height:5px;margin-left:16px;border-radius:3px;background:linear-gradient(90deg,#237ffd,rgba(35,127,253,0))}
.chbar .chsearch{margin-left:auto;display:flex;height:40px;background:#fff;border:1px solid #e2e2e2}
.chbar .chsearch input{width:225px;height:38px;border:0;padding:0 12px;font-size:13px;outline:none;background:#fff}
.chbar .chsearch button{width:46px;height:38px;border:0;background:#ff7a45;color:#fff;font-size:16px;cursor:pointer}

/* 筛选区 */
.fbox{background:#fff;margin-top:10px;padding:0 24px;border:1px solid #f0f0f0}
.frow{display:flex;align-items:flex-start;padding:15px 0;border-bottom:1px solid #f4f4f4;font-size:13px;line-height:26px}
.frow:last-child{border-bottom:0}
.frow i{flex:0 0 88px;width:88px;color:#999;font-style:normal}
.frow span{flex:1;display:flex;flex-wrap:wrap;gap:4px 8px}
.frow span a{display:inline-block;height:26px;line-height:26px;padding:0 12px;color:#666;border-radius:2px}
.frow span a:hover{color:#237ffd}
.frow span a.a{background:#237ffd;color:#fff}

/* 排序条 */
.srtbar{background:#fff;margin-top:10px;height:52px;display:flex;align-items:center;padding:0 24px;border:1px solid #f0f0f0}
.srtbar .srt{display:flex;align-items:center}
.srtbar .srt a{position:relative;font-size:15px;color:#666;line-height:52px;margin-right:30px}
.srtbar .srt a.on{color:#237ffd;font-weight:600}
.srtbar .srt a.on:after{content:"";position:absolute;left:50%;bottom:6px;width:26px;height:2px;margin-left:-13px;background:#237ffd}
.srtbar .cnt{margin-left:auto;color:#999;font-size:13px}

/* 插件列表卡：4 列 */
.aplist{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:10px;list-style:none}
.aplist li{background:#fff;padding:15px;min-height:196px;display:flex;flex-direction:column;border:1px solid #fff;border-radius:3px}
.aplist li:hover{border-color:#e2e2e2;box-shadow:0 0 10px rgba(0,0,0,.06)}
.aplist li .top{display:flex;gap:12px}
.aplist li .ic{width:80px;height:80px;flex:0 0 80px;border-radius:3px;background:#f4f4f4;overflow:hidden;display:flex;align-items:center;justify-content:center}
.aplist li .ic img{max-width:80px;max-height:80px}
.aplist li .m{flex:1;min-width:0}
.aplist li .t{display:block;font-size:15px;line-height:24px;color:#333;height:48px;overflow:hidden}
.aplist li .t:hover{color:#237ffd}
.aplist li .pr{margin:6px 0 6px;font-size:16px;line-height:22px;color:#ff6a00}
.aplist li .pr.free{color:#237ffd}
.aplist li .pr s{margin-left:8px;font-size:12px;color:#bbb;font-weight:400}
.aplist li .tg{display:flex;flex-wrap:wrap;gap:6px;margin:0}
.aplist li .tg span{font-size:12px;line-height:20px;padding:0 6px;color:#888;border:1px solid #e8e8e8;border-radius:2px}
.aplist li .au{margin-top:auto;padding-top:10px;border-top:1px dashed #eee;font-size:12px;color:#999;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.aplist li .au a{color:#999}
.aplist li .au a:hover{color:#237ffd}

@media (max-width:1100px){
  .aplist{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:820px){
  .aplist{grid-template-columns:repeat(2,1fr)}
  .chbar{height:auto;padding:12px 16px;flex-wrap:wrap}
  .chbar .chsearch{margin:8px 0 0}
  .frow i{flex:0 0 76px}
}
@media (max-width:560px){
  .aplist{grid-template-columns:1fr}
}

/* ============ 模板列表卡（大图预览） ============ */
.aplist.tpl li{padding:15px;min-height:0}
.aplist.tpl li .pimg{display:flex;align-items:center;justify-content:center;height:262px;background:#f5f5f5;border-radius:2px;overflow:hidden}
.aplist.tpl li .pimg img{max-width:100%;max-height:100%;object-fit:contain}
.aplist.tpl li .ln{display:flex;align-items:flex-start;gap:10px;margin-top:12px}
.aplist.tpl li .ln .t{flex:1;min-width:0;font-size:15px;line-height:22px;color:#333;height:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.aplist.tpl li .ln .t:hover{color:#237ffd}
.aplist.tpl li .ln .pr{flex:0 0 auto;font-size:15px;line-height:22px;color:#ff6a00;margin:0}
.aplist.tpl li .ln .pr.free{color:#237ffd}
.aplist.tpl li .ln.sub{margin-top:2px;justify-content:flex-end}
.aplist.tpl li .ln .cat{font-size:13px;color:#999}
.aplist.tpl li .au{display:flex;align-items:center;margin-top:12px;padding-top:10px;border-top:1px dashed #eee;font-size:13px;color:#999}
.aplist.tpl li .au a{color:#999}
.aplist.tpl li .au .vfy{margin-left:auto;font-size:15px;color:#c9a227;border:1px solid #e6d9a8;border-radius:50%;width:20px;height:20px;line-height:18px;text-align:center;font-weight:400;background:#fdf8e6}
.aplist li .au .vfy{margin-left:auto;font-size:15px;color:#c9a227;border:1px solid #e6d9a8;border-radius:50%;width:20px;height:20px;line-height:18px;text-align:center;font-weight:400;background:#fdf8e6}

/* 频道条里的图标小一点、更紧 */
.chbar h2{line-height:1.2}
.chbar .chic{font-size:22px;opacity:.95}
.chbar.tpl .chic{color:#c96a2b}

/* ============ 详情页 ============ */
.crumb{padding:10px 0;font-size:13px;color:#999}
.crumb a{color:#999}
.crumb a:hover{color:#237ffd}
.crumb span{margin:0 6px;color:#ccc}

.dwrap{display:flex;gap:21px;align-items:flex-start;padding-bottom:10px}
.dmain{flex:1;min-width:0}
.dside{width:250px;flex:0 0 250px}

.dhead{background:#fff;padding:20px;border-radius:3px}
.dh-top{display:flex;gap:16px}
.dh-top .ic{width:100px;height:100px;flex:0 0 100px;border-radius:4px;background:#f5f5f5;display:flex;align-items:center;justify-content:center;overflow:hidden}
.dh-top .ic img{max-width:100px;max-height:100px}
.dh-m{flex:1;min-width:0}
.dh-m h1{font-size:22px;line-height:30px;color:#222;font-weight:700}
.dh-m .meta{margin-top:8px;font-size:13px;color:#999;line-height:22px}
.dh-m .meta span{margin-right:18px}
.dh-m .meta a{color:#237ffd}
.dh-m .kw{margin-top:8px;display:flex;flex-wrap:wrap;gap:6px}
.dh-m .kw em{font-style:normal;font-size:12px;line-height:20px;padding:0 7px;color:#666;background:#f5f5f5;border-radius:2px}

.dbuy{display:flex;align-items:center;margin-top:18px;padding-top:16px;border-top:1px dashed #eee}
.dbuy .bp{display:flex;align-items:baseline;gap:8px}
.dbuy .px{font-size:26px;line-height:32px;color:#ff6a00;font-weight:700}
.dbuy .px.free{color:#237ffd}
.dbuy .bp s{color:#bbb;font-size:13px}
.dbuy .bp .tip{font-style:normal;font-size:12px;color:#999;margin-left:6px}
.dbuy .bb{margin-left:auto;display:flex;gap:10px}
.dbuy .bb a{display:inline-block;height:40px;line-height:40px;padding:0 26px;border-radius:3px;font-size:15px}
.dbuy .btn-a{background:#ff6a00;color:#fff}
.dbuy .btn-a:hover{background:#f60}
.dbuy .btn-b{background:#fff;border:1px solid #ddd;color:#666}
.dbuy .btn-b:hover{border-color:#237ffd;color:#237ffd}

.dshot{margin-top:10px;background:#fff;padding:15px;border-radius:3px;text-align:center}
.dshot img{max-width:100%;border-radius:2px}
.dshot .noimg{padding:80px 0;color:#bbb;font-size:13px;background:#fafafa;border-radius:2px}

.dtabs{display:flex;background:#fff;margin-top:10px;border-bottom:1px solid #eee;border-radius:3px 3px 0 0}
.dtabs a{height:50px;line-height:50px;padding:0 26px;font-size:15px;color:#666;position:relative}
.dtabs a.on{color:#237ffd;font-weight:600}
.dtabs a.on:after{content:"";position:absolute;left:26px;right:26px;bottom:-1px;height:2px;background:#237ffd}

.dbody{background:#fff;padding:20px;border-radius:0 0 3px 3px;font-size:14px;line-height:26px;color:#333}
.dintro img{max-width:100%;height:auto}
.dintro h4{margin:18px 0 8px;font-size:16px;font-weight:700}
.dcontent p{margin:10px 0}
.dsub{margin:26px 0 12px;padding-left:10px;font-size:16px;font-weight:700;border-left:3px solid #237ffd;line-height:20px}

.dparam{width:100%;border-collapse:collapse;font-size:13px}
.dparam th,.dparam td{border:1px solid #eee;padding:10px 12px;text-align:left}
.dparam th{width:110px;background:#fafafa;color:#888;font-weight:400}

.dcmt .citem{padding:12px 0;border-bottom:1px dashed #eee}
.dcmt .ch{display:flex;font-size:13px;color:#999}
.dcmt .ch b{color:#333;font-weight:400;margin-right:auto}
.dcmt .cc{margin:6px 0 0;font-size:14px;color:#555;line-height:24px}
.dcmt .cmore{padding-top:14px}
.dcmt .cmore a{color:#237ffd;font-size:14px}

.scard{background:#fff;padding:16px;border-radius:3px;margin-bottom:10px}
.scard h4{font-size:15px;color:#333;font-weight:700;margin-bottom:12px}
.scard .dev{display:flex;gap:10px;align-items:flex-start}
.scard .avatar{width:52px;height:52px;flex:0 0 52px;border-radius:50%;overflow:hidden;background:#f5f5f5;display:flex;align-items:center;justify-content:center}
.scard .avatar img{width:52px;height:52px}
.scard .dn{font-size:14px;color:#333}
.scard .ds{font-size:12px;color:#999;line-height:20px;margin-top:2px}
.scard .sbtn{display:block;margin-top:14px;height:34px;line-height:34px;text-align:center;background:#237ffd;color:#fff;border-radius:3px;font-size:13px}
.scard .sbtn:hover{background:#1a63d8}
.snlist li{font-size:13px;color:#888;line-height:22px;padding-left:12px;position:relative}
.snlist li:before{content:"";position:absolute;left:0;top:9px;width:4px;height:4px;background:#ddd;border-radius:50%}
.scard.ad{padding:0;overflow:hidden}
.scard.ad img{width:100%;display:block}
@media (max-width:1000px){
  .dwrap{flex-direction:column}
  .dside{width:100%;flex:auto}
}

/* 作者行徽章靠右 */
.aplist li .au{display:flex;align-items:center;gap:4px}

/* 首页区块标题：图标 + 标题 + 斜线装饰 */
.title2 .t{height:40px}
.title2 .t .tic{font-style:normal;font-size:20px;line-height:40px;margin-right:2px}
.title2 .t b{padding-left:0;font-size:18px}
.title2 .t .sls{display:inline-block;width:96px;height:16px;margin:0 4px 0 10px;background:repeating-linear-gradient(52deg,#dedede 0 2px,rgba(0,0,0,0) 2px 11px)}
.title2 .t span{margin-left:auto;color:#a9a9a9;font-size:13px}

/* 空数据兜底：块内没有内容时也保持标签列与参考站等高（210 / 268），不出现超长色块 */
.cjli ul{min-height:210px;align-content:start}
.cjli.tpl ul{min-height:268px}
.cjli .adr{align-self:stretch}
