/*
 * laolicms 网站综合管理系统 v1.0.0
 * 作者：丿king　　联系 QQ：1735737677
 * 本文件作用：各子系统模板共用的版式组件样式（两栏布局、三栏推荐面板、右侧栏、图标格子、分组面板），
 *            laoli.css 是旧站原有样式，这一份只补新骨架里公共片段用到的类，命名统一以 sub- 开头避免撞车
 * 文件路径：application/template/laoli/public/pc/css/sub_common.css
 */

/* 主栏 + 侧栏两栏布局 */
.sub-layout{display:flex;gap:20px;align-items:flex-start;}
.sub-layout .sub-main{flex:1 1 auto;min-width:0;max-width:100%;}
.sub-layout .sub-aside{flex:0 0 300px;width:300px;max-width:100%;}
@media (max-width:900px){.sub-layout{flex-direction:column;}.sub-layout .sub-aside{flex:1 1 auto;width:100%;}}
/* 窄屏里长标题/长英文串不许把主栏顶宽：弹性子项允许收缩到 0 */
.sub-text-list li{min-width:0;}
.sub-text-list li a{min-width:0;}

/* 三栏推荐面板（旧站 tool-three-wrap / recommend-three-wrap） */
.sub-three-wrap{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:20px;}
.sub-three-card{background:var(--bg-color,#fff);border-radius:6px;box-shadow:0 2px 8px rgba(0,0,0,.08);overflow:hidden;}
.sub-three-header{display:flex;justify-content:space-between;align-items:center;padding:12px 15px;border-bottom:1px solid #f0f0f0;font-size:15px;color:var(--text-color,#333);}
.sub-three-header b{font-weight:600;}
.sub-three-more{font-size:12px;color:var(--sub-text-color,#999);text-decoration:none;}
.sub-three-more:hover{color:var(--chengb,#ff7200);}
.sub-three-list{list-style:none;margin:0;padding:8px 15px;}
.sub-three-list li+li{margin-top:2px;}
.sub-three-list a{display:flex;align-items:center;gap:8px;padding:6px 0;font-size:14px;color:var(--text-color,#444);text-decoration:none;}
.sub-three-list a:hover{color:var(--chengb,#ff7200);}
.sub-three-ico{flex:none;width:24px;height:24px;border-radius:4px;overflow:hidden;background:rgba(128,128,128,.1);}
.sub-three-ico img{width:100%;height:100%;object-fit:cover;}
.sub-three-name{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.sub-three-time{flex:none;font-size:12px;color:#bbb;}
@media (max-width:768px){.sub-three-wrap{grid-template-columns:minmax(0,1fr);}}

/* 右侧栏 */
.sub-side{display:flex;flex-direction:column;gap:15px;}
.sub-side-card{background:var(--bg-color,#fff);border-radius:6px;box-shadow:0 2px 8px rgba(0,0,0,.08);padding:15px;}
.sub-side-title{font-size:15px;font-weight:600;color:var(--text-color,#333);margin-bottom:10px;padding-bottom:8px;border-bottom:1px solid #f0f0f0;}
.sub-side-title i{color:var(--chengb,#ff7200);}
.sub-side-rank{list-style:none;margin:0;padding:0;counter-reset:sid;}
.sub-side-rank li a{display:flex;align-items:center;gap:8px;padding:6px 0;font-size:14px;color:var(--text-color,#444);text-decoration:none;}
.sub-side-rank li a:hover{color:var(--chengb,#ff7200);}
.sub-side-num{flex:none;width:20px;height:20px;line-height:20px;text-align:center;font-size:12px;border-radius:3px;background:#f2f3f5;color:#888;}
.sub-side-rank li:nth-child(-n+3) .sub-side-num{background:var(--chengb,#ff7200);color:#fff;}
.sub-side-text{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.sub-side-count{flex:none;font-size:12px;color:#bbb;}
.sub-side-list{list-style:none;margin:0;padding:0;}
.sub-side-list li{padding:6px 0;font-size:14px;border-bottom:1px dashed #f2f2f2;}
.sub-side-list li:last-child{border-bottom:none;}
.sub-side-list a{color:var(--text-color,#444);text-decoration:none;}
.sub-side-list a:hover{color:var(--chengb,#ff7200);}
.sub-side-tags{display:flex;flex-wrap:wrap;gap:8px;}
.sub-side-tags a{padding:5px 10px;border:1px solid #eee;border-radius:4px;font-size:13px;color:var(--sub-text-color,#666);text-decoration:none;}
.sub-side-tags a:hover{border-color:var(--chengb,#ff7200);color:var(--chengb,#ff7200);}

/* 分组面板：一个分类一块，标题 + 内容网格 + 更多链接（频道首页按分类铺区块时用） */
.sub-group{background:var(--bg-color,#fff);border-radius:6px;box-shadow:0 2px 8px rgba(0,0,0,.08);margin-bottom:20px;}
.sub-group-header{display:flex;justify-content:space-between;align-items:center;padding:13px 15px;border-bottom:1px solid #f0f0f0;}
.sub-group-header h3{margin:0;font-size:16px;font-weight:600;color:var(--text-color,#333);}
.sub-group-header h3 a{color:inherit;text-decoration:none;}
.sub-group-header .sub-group-more{font-size:13px;color:#999;text-decoration:none;}
.sub-group-header .sub-group-more:hover{color:var(--chengb,#ff7200);}
.sub-group-body{padding:15px;}
.sub-group-none{padding:24px;text-align:center;color:#aaa;font-size:14px;}

/* 纯图标格子（软件/游戏/公众号那种「图标+名称」） */
.sub-icon-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:12px;}
.sub-icon-grid a{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 4px;border-radius:6px;text-decoration:none;color:var(--text-color,#444);font-size:13px;text-align:center;}
.sub-icon-grid a:hover{background:#fff8f2;color:var(--chengb,#ff7200);}
.sub-icon-grid img{width:44px;height:44px;border-radius:8px;object-fit:cover;background:rgba(128,128,128,.1);}

/* 文字链列表（首页双列那种「标题 + 日期」） */
.sub-text-list{list-style:none;margin:0;padding:0;}
.sub-text-list li{display:flex;align-items:center;gap:10px;padding:7px 0;border-bottom:1px dashed #f3f3f3;}
.sub-text-list li:last-child{border-bottom:none;}
.sub-text-list a{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;color:var(--text-color,#444);text-decoration:none;}
.sub-text-list a:hover{color:var(--chengb,#ff7200);}
.sub-text-list .sub-text-date{flex:none;font-size:12px;color:#bbb;}

/* 带图卡片（壁纸 / 大图列表） */
.sub-photo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
.sub-photo-grid a{display:block;position:relative;border-radius:6px;overflow:hidden;background:#f2f3f5;}
.sub-photo-grid img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;transition:transform .3s;}
.sub-photo-grid a:hover img{transform:scale(1.04);}
.sub-photo-grid .sub-photo-name{position:absolute;left:0;right:0;bottom:0;padding:6px 8px;font-size:12px;color:#fff;background:linear-gradient(transparent,rgba(0,0,0,.6));white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
@media (max-width:768px){.sub-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
