/* 爱玩社资源库 V1 - 独立作用域，不压其它模块 */
body.pg_forumdisplay #wp,body.pg_forumdisplay #ct{width:100%!important;max-width:none!important;}
#aws-resource-library,#aws-resource-library *{box-sizing:border-box}
#aws-resource-library{background:transparent; width:calc(100% - 28px);max-width:1440px;margin:0 auto;padding:12px 0 30px;color:#dce8f6;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",Arial,sans-serif}
#aws-resource-library a{color:inherit;text-decoration:none}
#aws-resource-library .aws-res-crumb{height:27px;display:flex;align-items:center;gap:7px;color:#8f9aa6;font-size:12px;overflow:hidden;white-space:nowrap}
#aws-resource-library .aws-res-hero{position:relative;height:178px;overflow:hidden;border:1px solid rgba(255,255,255,.075);border-radius:8px;background:#171c22}
#aws-resource-library .aws-res-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(16,19,23,.98) 0%,rgba(16,19,23,.88) 42%,rgba(16,19,23,.38) 72%,rgba(16,19,23,.12) 100%),url('/template/aiwanshe_mod/common/images/hero_reference.png') center 54%/cover no-repeat}
#aws-resource-library .aws-res-hero-inner{position:relative;z-index:2;height:100%;padding:24px 30px}
#aws-resource-library .aws-res-hero h1{margin:0;color:#fff;font-size:31px;line-height:1.18;font-weight:900}
#aws-resource-library .aws-res-hero-desc{margin-top:8px;color:#d4dbe3;font-size:14px;max-width:760px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#aws-resource-library .aws-res-stats{display:flex;gap:10px;margin-top:18px}
#aws-resource-library .aws-res-stat{width:122px;height:54px;padding:8px 12px;border:1px solid rgba(255,255,255,.09);border-radius:6px;background:#1b2128}
#aws-resource-library .aws-res-stat span{display:block;color:#98a5b2;font-size:11px}
#aws-resource-library .aws-res-stat strong{display:block;margin-top:3px;color:#39dd69;font-size:18px;line-height:1;font-weight:900}
#aws-resource-library .aws-res-post{position:absolute;right:28px;bottom:22px;height:40px;padding:0 20px;display:flex;align-items:center;border-radius:6px;background:linear-gradient(180deg,#37d966,#209d43);color:#fff;font-size:14px;font-weight:900;box-shadow:0 10px 24px rgba(31,157,67,.25)}

#aws-resource-library .aws-res-filterbox{margin-top:10px;border:1px solid rgba(255,255,255,.075);border-radius:8px;background:#171c22;overflow:hidden}
#aws-resource-library .aws-res-filterrow{min-height:42px;display:flex;align-items:center;gap:8px;padding:6px 12px;border-bottom:1px solid rgba(255,255,255,.045)}
#aws-resource-library .aws-res-filterrow:last-child{border-bottom:0}
#aws-resource-library .aws-res-filtername{width:58px;flex:0 0 58px;color:#aeb9c4;font-size:13px}
#aws-resource-library .aws-res-filterbtn{height:28px;padding:0 13px;display:inline-flex;align-items:center;border:1px solid rgba(255,255,255,.075);border-radius:5px;background:#1c2229;color:#c2ccd6;font-size:12px;white-space:nowrap}
#aws-resource-library .aws-res-filterbtn:hover{color:#fff;border-color:rgba(57,221,105,.3)}
#aws-resource-library .aws-res-filterbtn.active{color:#fff;background:#173b25;border-color:rgba(67,214,94,.35);font-weight:800}
#aws-resource-library .aws-res-filter-scroll{display:flex;align-items:center;gap:8px;min-width:0;overflow-x:auto;scrollbar-width:none}
#aws-resource-library .aws-res-filter-scroll::-webkit-scrollbar{display:none}

#aws-resource-library .aws-res-hotbox{margin-top:12px;padding:10px 12px 12px;border:1px solid rgba(255,255,255,.075);border-radius:8px;background:#171c22}
#aws-resource-library .aws-res-sectionhd{height:30px;display:flex;align-items:center;justify-content:space-between}
#aws-resource-library .aws-res-sectionhd h2{margin:0;color:#fff;font-size:15px;font-weight:900}
#aws-resource-library .aws-res-sectionhd span{color:#8f9aa6;font-size:11px}

#aws-resource-library .aws-res-library{position:relative;margin-top:12px}
#aws-resource-library .aws-res-listhead{height:38px;display:flex;align-items:center;justify-content:space-between}
#aws-resource-library .aws-res-listhead h2{margin:0;color:#fff;font-size:16px}
#aws-resource-library .aws-res-listhead span{color:#8f9aa6;font-size:11px}
#aws-resource-library .aws-res-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0;padding:0;list-style:none}
#aws-resource-library .aws-res-card{position:relative;min-width:0;overflow:hidden;border:1px solid rgba(255,255,255,.08);border-radius:7px;background:#181d23;transition:.18s ease}
#aws-resource-library .aws-res-card:hover{transform:translateY(-1px);background:#1d232a;border-color:rgba(67,214,94,.28)}
#aws-resource-library .aws-res-cover{position:relative;display:block;aspect-ratio:16/9;overflow:hidden;background:#11161b}
#aws-resource-library .aws-res-cover img{width:100%;height:100%;object-fit:cover}
#aws-resource-library .aws-res-nocover{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#1d232a,#15191e);color:#7f8b96;font-size:13px}
#aws-resource-library .aws-res-badges{position:absolute;z-index:10;top:8px;left:8px;display:flex;gap:5px}
#aws-resource-library .aws-res-badge{height:20px;padding:0 7px;display:inline-flex;align-items:center;border-radius:4px;color:#fff;font-size:10px;font-weight:900;box-shadow:0 3px 10px rgba(0,0,0,.24)}



#aws-resource-library .aws-res-modcheck{position:absolute;z-index:30;top:8px;right:8px;width:25px;height:25px;display:flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.22);border-radius:5px;background:rgba(2,10,17,.78)}
#aws-resource-library .aws-res-modcheck input{width:16px;height:16px;margin:0;accent-color:#2ac55a;cursor:pointer}
#aws-resource-library .aws-res-body{padding:9px 10px 10px}
#aws-resource-library .aws-res-title{min-height:42px;display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:#eef5fb;font-size:15px;line-height:21px;font-weight:850}
#aws-resource-library .aws-res-title:hover{color:#43d65e}
#aws-resource-library .aws-res-tags{height:31px;display:flex;align-items:center;gap:7px;overflow:hidden;min-width:0}
#aws-resource-library .aws-res-tag{height:21px;padding:0 8px;display:inline-flex;align-items:center;border:1px solid rgba(255,255,255,.075);border-radius:3px;background:#20262d;color:#c3ced9;font-size:11px;white-space:nowrap}
#aws-resource-library .aws-res-info{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#98a5b2;font-size:12px;margin-top:2px}
#aws-resource-library .aws-res-count{margin-top:8px;padding-top:8px;display:flex;justify-content:space-between;border-top:1px solid rgba(255,255,255,.045);color:#9aa6b2;font-size:12px}
#aws-resource-library .aws-res-count strong{color:#9aa6b2;font-size:12px;font-weight:400}
#aws-resource-library .aws-res-count strong.normal{color:#aeb9c4}

#aws-resource-library .aws-res-normal{display:flex;flex-direction:column;gap:9px;margin:0;padding:0;list-style:none}
#aws-resource-library .aws-res-row{position:relative;display:grid;grid-template-columns:190px minmax(0,1fr) 170px;gap:14px;min-height:118px;padding:9px;border:1px solid rgba(255,255,255,.08);border-radius:7px;background:#181d23}
#aws-resource-library .aws-res-row:hover{background:#1d232a;border-color:rgba(67,214,94,.28)}
#aws-resource-library .aws-res-rowcover{display:block;width:190px;height:100px;overflow:hidden;border-radius:5px;background:#11161b}
#aws-resource-library .aws-res-rowcover img{width:100%;height:100%;object-fit:cover}
#aws-resource-library .aws-res-rowmain{min-width:0;padding:3px 0}
#aws-resource-library .aws-res-rowbadges{display:flex;gap:5px;min-height:20px;margin-bottom:3px}
#aws-resource-library .aws-res-rowtitle{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#eef5fb;font-size:16px;line-height:24px;font-weight:850}
#aws-resource-library .aws-res-rowmeta{margin-top:8px;color:#98a5b2;font-size:12px}
#aws-resource-library .aws-res-rowside{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:8px;padding-right:7px;color:#98a5b2;font-size:12px}
#aws-resource-library .aws-res-rowside strong{color:#3bd467;font-size:13px}

#aws-resource-library .aws-res-pages{margin-top:15px;text-align:center}
#aws-resource-library .aws-res-pages .pg{float:none!important;display:inline-block!important}

/* 只处理资源页内 Discuz 官方管理层；普通用户没有该节点 */









@media(max-width:1100px){#aws-resource-library .aws-res-grid{grid-template-columns:repeat(3,minmax(0,1fr))}#aws-resource-library .aws-res-hotgrid{grid-template-columns:repeat(3,minmax(0,1fr))}#aws-resource-library .aws-res-row{grid-template-columns:160px minmax(0,1fr) 140px}#aws-resource-library .aws-res-rowcover{width:160px;height:90px}}
@media(max-width:760px){#aws-resource-library{width:calc(100% - 20px)}#aws-resource-library .aws-res-hero{height:auto;min-height:205px}#aws-resource-library .aws-res-hero-inner{padding:22px 18px}#aws-resource-library .aws-res-stats{gap:6px;flex-wrap:wrap}#aws-resource-library .aws-res-stat{width:calc(50% - 3px)}#aws-resource-library .aws-res-post{position:static;width:max-content;margin-top:12px}#aws-resource-library .aws-res-filterrow{align-items:flex-start}#aws-resource-library .aws-res-hotgrid{grid-template-columns:1fr}#aws-resource-library .aws-res-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#aws-resource-library .aws-res-row{grid-template-columns:110px minmax(0,1fr);gap:10px}#aws-resource-library .aws-res-rowcover{width:110px;height:76px}#aws-resource-library .aws-res-rowside{grid-column:2;align-items:flex-start;flex-direction:row;justify-content:flex-start;padding:0}}


/* Discuz 官方帖子管理：不覆盖 #mdly / topicadmin 弹窗样式 */
#aws-resource-library #threadlist{
    position:relative !important;
}
















/* 下载量与浏览量统一显示 */
#aws-resource-library .aws-res-download{
    color:inherit !important;
    font-size:inherit !important;
    font-weight:400 !important;
}

/* FREE：免费资源，低调青灰绿，不抢 HOT / VIP */


/* 免费资源：明亮绿色，和普通灰色标签明显区分 */


/* VIP资源：金色 */


/* 普通横向列表也放在同一行最右 */


/* =========================================================
   资源卡片状态标签 - 中文统一版
   封面：最新 / 热门 / 精品
   信息行右侧：免费资源 / VIP资源
========================================================= */

/* 封面状态标签 */
#aws-resource-library .aws-res-badge{
    height:20px !important;
    padding:0 7px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;

    border-radius:4px !important;

    font-size:10px !important;
    line-height:20px !important;
    font-weight:800 !important;
    letter-spacing:.2px !important;

    box-shadow:none !important;
}

/* 最新：柔和绿色 */
#aws-resource-library .aws-res-badge.new{
    color:#dff9e7 !important;
    background:#238f49 !important;
    border:1px solid rgba(96,208,127,.28) !important;
}

/* 热门：柔和橙色 */
#aws-resource-library .aws-res-badge.hot{
    color:#fff0df !important;
    background:#b96724 !important;
    border:1px solid rgba(224,137,65,.32) !important;
}

/* 精品：柔和红色 */
#aws-resource-library .aws-res-badge.digest{
    color:#ffe9eb !important;
    background:#b94d58 !important;
    border:1px solid rgba(222,104,116,.30) !important;
}


/* -------------------------
   权限标签放在类型/版本行最右侧
------------------------- */

#aws-resource-library .aws-res-access-slot{
    margin-left:auto !important;
    flex:0 0 auto !important;

    display:inline-flex !important;
    align-items:center !important;
}

#aws-resource-library .aws-res-access{
    height:19px !important;
    padding:0 6px !important;

    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;

    border-radius:3px !important;

    font-size:10px !important;
    line-height:19px !important;
    font-weight:700 !important;
    letter-spacing:0 !important;

    white-space:nowrap !important;

    box-shadow:none !important;
}

/* 免费资源：低调绿色，不再像按钮 */
#aws-resource-library .aws-res-access.free{
    color:#76ce90 !important;
    background:rgba(55,145,82,.11) !important;
    border:1px solid rgba(73,172,101,.23) !important;
}

/* VIP资源：低调金色 */
#aws-resource-library .aws-res-access.vip{
    color:#dfb760 !important;
    background:rgba(173,125,38,.11) !important;
    border:1px solid rgba(202,154,61,.24) !important;
}

/* 横向普通列表同样尺寸 */
#aws-resource-library .aws-res-row .aws-res-access{
    height:19px !important;
    line-height:19px !important;
}

