/* 资源下载模板 - 文章页左侧样式（复刻软件库风格，适配Joe主题变量与夜间模式） */

/* 标题区 */
.joe_res__title{font-weight:700;font-size:24px;position:relative;line-height:1.4;color:var(--main);word-break:break-all}
.joe_res__info{color:var(--minor);font-size:12px;margin-top:10px;padding-top:10px;border-top:1px solid var(--classC);display:flex;flex-wrap:wrap;align-items:center}
.joe_res__info .item{padding:0 20px 0 0;white-space:nowrap}
.joe_res__info .item .link{color:var(--minor);transition:color .3s}
.joe_res__info .item .link:hover{color:var(--theme)}
.joe_res__info .item.edit{margin-left:auto;padding-right:0}

/* 软件信息卡 */
.joe_res__soft{display:flex;align-items:center;height:70px;box-sizing:border-box;padding:15px;background:var(--classC);border-radius:5px;margin:15px 0}
.joe_res__soft .ico{width:40px;height:40px;line-height:0;border-radius:5px;overflow:hidden;flex-shrink:0}
.joe_res__soft .ico img{width:40px;height:40px;object-fit:cover;display:block}
.joe_res__soft .data{line-height:normal;flex:1;display:flex;align-items:center;flex-wrap:wrap;min-width:0;height:40px}
.joe_res__soft .data .tag{margin:0 0 0 20px;padding:5px 10px 4px;font-size:12px;line-height:18px;height:auto;background:var(--background);border-radius:5px;color:var(--routine);white-space:nowrap}
.joe_res__soft .data .down{margin-left:auto;padding:0 20px;height:32px;line-height:32px;cursor:pointer;background:linear-gradient(90deg,var(--theme),#399dff);color:#fff;border-radius:5px;font-size:14px;transition:all .3s;user-select:none;white-space:nowrap}
.joe_res__soft .data .down:hover{opacity:.85;box-shadow:0 5px 15px -5px var(--theme)}

/* 正文与信息卡衔接 */
.joe_res .joe_detail__article{padding-top:0}

/* 下载地址 */
.joe_res__down{padding:0 0 4px;overflow:hidden}
.joe_res__down .title{font-size:18px;border-bottom:1px solid var(--classC);padding-bottom:8px;color:var(--main)}
.joe_res__down ul{margin:15px 0 0;padding:0;list-style:none;display:flex;flex-wrap:wrap}
.joe_res__down ul li{margin:0 15px 15px 0}
.joe_res__down ul li .btn{display:block;min-width:110px;height:40px;line-height:40px;background:var(--classC);border-radius:5px;text-align:center;color:var(--routine);transition:all .3s;padding:0 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.joe_res__down ul li .btn:before{margin-right:5px}
.joe_res__down ul li .btn:hover{background:var(--theme);color:#fff}

/* 免责声明 */
.joe_res__disclaimer{padding:20px;border-radius:5px;color:var(--minor);background-color:var(--classC);margin-bottom:20px}
.joe_res__disclaimer p{display:block;line-height:25px;font-size:14px;text-align:justify;margin:0}

/* 收藏 / 分享 / 点赞 */
.joe_res__foot{display:flex;align-items:center;line-height:30px;padding:0 0 20px;position:relative}
.joe_res__foot>.action,.joe_res__foot .joe_res__agree .agree{display:inline-flex;align-items:center;padding:8px 15px;line-height:20px;background:var(--classC);color:var(--routine);border-radius:5px;margin-right:10px;transition:all .3s;cursor:pointer;user-select:none;font-size:14px}
.joe_res__foot>.action i{margin-right:5px}
.joe_res__foot>.action:hover{color:var(--theme)}
.joe_res__foot>.action.collect.active{color:var(--theme)}
.joe_res__foot .share{position:relative;margin-right:10px}
.joe_res__foot .share .share-btn{color:inherit;display:inline-flex;align-items:center}
.joe_res__foot .share .share-btn i{margin-right:5px}
.joe_res__foot .share .reach{position:absolute;left:0;bottom:calc(100% + 8px);background:var(--background);border-radius:5px;box-shadow:var(--box-shadow);padding:8px;display:none;z-index:9;white-space:nowrap}
.joe_res__foot .share.active .reach{display:flex}
.joe_res__foot .share .reach a{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;margin:0 5px;border-radius:5px;background:var(--classC);color:var(--routine);font-size:15px;transition:all .3s}
.joe_res__foot .share .reach a:hover{background:var(--theme);color:#fff}

/* 点赞：覆盖Joe默认圆形按钮样式为水平条形样式 */
.joe_res .joe_detail__agree{display:block;margin:0}
.joe_res .joe_detail__agree .agree{display:inline-flex;text-align:left;color:var(--routine);font-size:14px}
.joe_res .joe_detail__agree .agree .icon{position:relative;width:auto;height:auto;min-width:20px;background:none;border-radius:0;margin:0 5px 0 0;line-height:20px}
.joe_res .joe_detail__agree .agree .icon svg{display:none}
.joe_res .joe_detail__agree .agree .icon::before{content:"\f087";font-family:FontAwesome;font-size:16px;color:var(--routine);transition:color .3s;display:block}
.joe_res .joe_detail__agree .agree .icon.active::before{color:var(--theme)}
.joe_res .joe_detail__agree .agree:hover .icon::before{color:var(--theme)}

/* 标签 */
.joe_res__tags{padding:20px 0;border-top:1px solid var(--classC);display:flex;flex-wrap:wrap}
.joe_res__tags a{padding:0 10px;background:var(--classC);border-radius:5px;color:var(--minor);transition:all .3s;margin:0 5px 10px 0;display:block;line-height:30px;font-size:14px}
.joe_res__tags a i{margin-right:3px;font-size:12px}
.joe_res__tags a:hover{background:var(--theme);color:#fff}

/* 上下篇卡片 */
.joe_res__page{display:flex;padding:10px 0 25px}
.joe_res__page .card{position:relative;flex:1;height:90px;color:#fff;overflow:hidden;border-radius:5px;padding:16px;box-sizing:border-box;display:flex;flex-direction:column;background-size:cover;background-repeat:no-repeat;background-position:50%;transition:all .3s}
.joe_res__page .card:before{position:absolute;content:"";width:100%;height:100%;left:0;top:0;background:rgba(0,0,0,.35);z-index:1;transition:all .3s}
.joe_res__page .card:hover:before{background:rgba(0,0,0,.5)}
.joe_res__page .card .meta{position:relative;z-index:2;color:#fff;font-size:14px;display:flex;justify-content:space-between;flex:1;align-items:flex-start;text-shadow:var(--text-shadow)}
.joe_res__page .card .meta i{margin:0 3px}
.joe_res__page .card h3{position:relative;z-index:2;color:#fff;margin:0;font-size:14px;line-height:24px;font-weight:400;text-shadow:var(--text-shadow);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.joe_res__page .card.next{margin-left:12px}

/* 移动端适配 */
@media screen and (max-width: 780px){
  .joe_res__title{font-size:20px}
  .joe_res__info .item{padding:0 10px 0 0}
  .joe_res__soft{padding:10px;height:auto}
  .joe_res__soft .data{margin-left:10px;height:auto}
  .joe_res__soft .data .tag{margin:0 8px 8px 0;line-height:20px}
  .joe_res__soft .data .down{margin-left:0;width:100%;text-align:center;margin-top:4px}
  .joe_res__down ul li{flex:1;margin:0 8px 10px 0}
  .joe_res__down ul li .btn{min-width:0}
  .joe_res__foot{flex-wrap:wrap}
  .joe_res__foot>.action,.joe_res__foot .joe_res__agree .agree{margin-bottom:10px}
  .joe_res__page .card{height:75px;padding:12px}
  .joe_res__page .card h3{font-size:12px}
}

/* ===== 二开：下载地址模块优化（间距 + 按钮样式对齐原站） ===== */
.joe_res__down{margin-top:26px;padding:0 0 19px}
.joe_res__down .title{font-weight:600}
.joe_res__down ul{margin:18px 0 0;gap:12px}
.joe_res__down ul li{margin:0}
.joe_res__down ul li .btn{height:40px;line-height:40px;font-size:14px;padding:0 16px;min-width:110px;background:var(--classC);color:var(--main);border-radius:5px;box-shadow:none;transition:all .3s}
.joe_res__down ul li .btn:hover{background:var(--theme);color:#fff;box-shadow:none;transform:none;opacity:1}
@media screen and (max-width:780px){
  .joe_res__down ul li .btn{min-width:0}
}
