/* =========================================================
   AppVault Forum — 论坛专用样式
   ========================================================= */

/* 头部用户区 */
.av-userbox{display:flex;align-items:center;gap:8px;flex:0 0 auto;}
.av-userlink{font-size:14px;font-weight:600;color:var(--av-ink-2);padding:6px 10px;border-radius:8px;transition:color .18s;}
.av-userlink:hover{color:var(--av-primary);}
.av-userbtn{font-size:13px;font-weight:600;background:var(--av-primary);color:#fff;padding:8px 16px;border-radius:999px;transition:opacity .18s;}
.av-userbtn:hover{opacity:.9;}

/* 论坛布局外壳 */
.fx-wrap{display:grid;grid-template-columns:1fr 300px;gap:24px;align-items:start;}
.fx-panel{background:#fff;border-radius:var(--av-radius);box-shadow:var(--av-shadow);overflow:hidden;margin-bottom:20px;}
.fx-panel-head{padding:16px 20px;border-bottom:1px solid var(--av-line);font-weight:700;font-size:15px;display:flex;align-items:center;justify-content:space-between;gap:10px;}
.fx-panel-head .btn{font-size:13px;background:var(--av-primary);color:#fff;padding:8px 16px;border-radius:999px;font-weight:600;}
.fx-panel-body{padding:18px 20px;}

/* 论坛横幅 */
.fx-hero{background:linear-gradient(120deg,var(--av-primary),var(--av-secondary));border-radius:var(--av-radius);padding:30px 28px;color:#fff;margin-bottom:22px;position:relative;overflow:hidden;}
.fx-hero h1{margin:0 0 8px;font-size:25px;}
.fx-hero p{margin:0;opacity:.92;font-size:14px;max-width:640px;}
.fx-hero .fx-stats{display:flex;gap:26px;margin-top:18px;flex-wrap:wrap;}
.fx-hero .fx-stats b{display:block;font-size:20px;}
.fx-hero .fx-stats span{font-size:12px;opacity:.85;}

/* 板块组 */
.fx-group{margin-bottom:22px;}
.fx-group-title{display:flex;align-items:center;gap:10px;font-size:16px;font-weight:800;margin:0 0 12px;padding-left:12px;border-left:4px solid var(--av-primary);}
.fx-group-title small{font-weight:500;color:var(--av-ink-3);font-size:12px;}

/* 板块与子板块 */
.fx-board{display:flex;align-items:center;gap:14px;padding:14px 18px;border-bottom:1px solid var(--av-line);transition:background .16s;}
.fx-board:last-child{border-bottom:0;}
.fx-board:hover{background:#FBFAFF;}
.fx-board-icon{flex:0 0 46px;width:46px;height:46px;border-radius:13px;display:grid;place-items:center;font-size:20px;background:linear-gradient(135deg,#EFEAFE,#DFFBF6);color:var(--av-primary);}
.fx-board-icon img{width:100%;height:100%;object-fit:cover;border-radius:13px;}
.fx-board-main{flex:1;min-width:0;}
.fx-board-name{font-size:15px;font-weight:700;display:block;color:var(--av-ink);}
.fx-board-name:hover{color:var(--av-primary);}
.fx-board-desc{font-size:12.5px;color:var(--av-ink-3);margin-top:3px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;}
.fx-board-counts{flex:0 0 auto;display:flex;gap:20px;text-align:center;}
.fx-board-counts div b{display:block;font-size:15px;color:var(--av-ink);}
.fx-board-counts div span{font-size:11px;color:var(--av-ink-3);}
.fx-child-wrap{padding:6px 18px 14px 78px;background:#FAF9FF;}
.fx-child{display:flex;align-items:center;gap:10px;padding:8px 0;font-size:13.5px;}
.fx-child::before{content:"•";color:var(--av-secondary);font-weight:800;}
.fx-child a{font-weight:600;color:var(--av-ink-2);}
.fx-child a:hover{color:var(--av-primary);}
.fx-child .cnt{margin-left:auto;font-size:12px;color:var(--av-ink-3);}

/* 帖子列表 */
.fx-thread{display:flex;gap:14px;padding:14px 18px;border-bottom:1px solid var(--av-line);transition:background .16s;}
.fx-thread:last-child{border-bottom:0;}
.fx-thread:hover{background:#FBFAFF;}
.fx-thread-avatar{flex:0 0 44px;width:44px;height:44px;border-radius:50%;overflow:hidden;background:linear-gradient(135deg,var(--av-primary),var(--av-secondary));color:#fff;display:grid;place-items:center;font-weight:700;font-size:16px;text-transform:uppercase;}
.fx-thread-avatar img{width:100%;height:100%;object-fit:cover;}
.fx-thread-main{flex:1;min-width:0;}
.fx-thread-title{font-size:15px;font-weight:600;color:var(--av-ink);display:inline-block;margin-bottom:4px;}
.fx-thread-title:hover{color:var(--av-primary);}
.fx-thread-tags{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:5px;}
.fx-tag{font-size:11px;font-weight:700;padding:2px 9px;border-radius:999px;}
.fx-tag.pin{background:#FFF0E6;color:#E8590C;}
.fx-tag.lock{background:#EEF0F3;color:#6A7180;}
.fx-tag.img{background:#E7F5FF;color:#1971C2;}
.fx-tag.video{background:#F3E8FF;color:#7048E8;}
.fx-thread-meta{font-size:12px;color:var(--av-ink-3);display:flex;gap:14px;flex-wrap:wrap;}
.fx-thread-meta a{color:var(--av-ink-2);}
.fx-thread-stat{flex:0 0 auto;text-align:center;min-width:64px;color:var(--av-ink-3);}
.fx-thread-stat b{display:block;font-size:16px;color:var(--av-ink);}
.fx-thread-stat span{font-size:11px;}

/* 帖子详情 */
.fx-post{display:flex;gap:16px;padding:20px;border-bottom:1px solid var(--av-line);}
.fx-post:last-child{border-bottom:0;}
.fx-post-side{flex:0 0 120px;text-align:center;}
.fx-post-side .avatar{width:64px;height:64px;border-radius:50%;margin:0 auto 10px;overflow:hidden;background:linear-gradient(135deg,var(--av-primary),var(--av-secondary));display:grid;place-items:center;color:#fff;font-size:24px;font-weight:700;text-transform:uppercase;}
.fx-post-side .avatar img{width:100%;height:100%;object-fit:cover;}
.fx-post-side .uname{font-weight:700;font-size:14px;display:block;}
.fx-post-side .role{font-size:11px;color:var(--av-ink-3);margin-top:2px;display:block;}
.fx-post-body{flex:1;min-width:0;}
.fx-post-head{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--av-ink-3);margin-bottom:10px;padding-bottom:8px;border-bottom:1px dashed var(--av-line);}
.fx-post-text{font-size:14.5px;color:var(--av-ink);line-height:1.8;word-break:break-word;}
.fx-post-text img{border-radius:var(--av-radius-sm);max-height:420px;margin:8px 0;}
.fx-post-text p{margin:0 0 10px;}
.fx-post-medias{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px;}
.fx-post-medias img{width:120px;height:120px;object-fit:cover;border-radius:var(--av-radius-sm);cursor:zoom-in;}
.av-video{max-width:100%;border-radius:var(--av-radius-sm);margin-top:12px;display:block;}

/* 回复框 */
.fx-reply-form{background:#FAF9FF;border-radius:var(--av-radius-sm);padding:16px;}
.fx-reply-form textarea{width:100%;min-height:110px;border:1.5px solid var(--av-line);border-radius:var(--av-radius-sm);padding:12px;font-family:inherit;font-size:14px;outline:0;resize:vertical;}
.fx-reply-form textarea:focus{border-color:var(--av-primary);}
.fx-reply-form .row{display:flex;justify-content:space-between;align-items:center;margin-top:10px;gap:10px;flex-wrap:wrap;}

/* 表单通用 */
.fx-field{margin-bottom:16px;}
.fx-field label{display:block;font-weight:600;font-size:13px;color:var(--av-ink-2);margin-bottom:6px;}
.fx-input,.fx-select,.fx-textarea{width:100%;border:1.5px solid var(--av-line);border-radius:var(--av-radius-sm);padding:11px 14px;font-size:14px;font-family:inherit;outline:0;background:#fff;color:var(--av-ink);transition:border-color .15s;}
.fx-input:focus,.fx-select:focus,.fx-textarea:focus{border-color:var(--av-primary);}
.fx-textarea{min-height:160px;resize:vertical;}
.fx-hint{font-size:12px;color:var(--av-ink-3);margin-top:5px;}

/* 认证卡 */
.fx-auth{max-width:420px;margin:20px auto;}
.fx-auth .fx-panel-body{padding:30px;}
.fx-auth h1{font-size:20px;text-align:center;margin-bottom:22px;}
.fx-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:var(--av-radius-sm);padding:12px 24px;font-size:14px;font-weight:700;background:linear-gradient(135deg,var(--av-primary),var(--av-secondary));color:#fff;cursor:pointer;transition:opacity .18s;}
.fx-btn:hover{opacity:.92;}
.fx-btn.block{width:100%;}
.fx-btn.ghost{background:#F1EEFC;color:var(--av-primary);}
.fx-btn.sm{padding:7px 14px;font-size:13px;}

.fx-msg{padding:11px 15px;border-radius:var(--av-radius-sm);font-size:13px;margin-bottom:14px;}
.fx-msg.ok{background:#E4FAF6;color:#00836F;}
.fx-msg.err{background:#FDECEC;color:#C0392B;}

/* 分页（复用论坛风格） */
.fx-pager{display:flex;justify-content:center;gap:8px;padding:18px;flex-wrap:wrap;}
.fx-pager a,.fx-pager span{min-width:38px;height:38px;display:grid;place-items:center;padding:0 12px;border-radius:10px;background:#fff;border:1px solid var(--av-line);font-size:13px;font-weight:600;color:var(--av-ink-2);}
.fx-pager .cur{background:var(--av-primary);color:#fff;border-color:var(--av-primary);}
.fx-pager a:hover{color:var(--av-primary);}

/* 侧栏板块导航 */
.fx-side-list a{display:flex;justify-content:space-between;align-items:center;padding:9px 0;font-size:13.5px;border-bottom:1px dashed var(--av-line);color:var(--av-ink-2);}
.fx-side-list a:last-child{border-bottom:0;}
.fx-side-list a:hover{color:var(--av-primary);}
.fx-side-list .n{font-size:11px;background:#F1EEFC;color:var(--av-primary);padding:2px 8px;border-radius:999px;}
.fx-side-sub{padding-left:14px;}
.fx-side-sub a{font-size:12.5px;}

@media(max-width:1000px){
    .fx-wrap{grid-template-columns:1fr;}
}
@media(max-width:720px){
    .fx-post{flex-direction:column;}
    .fx-post-side{display:flex;gap:12px;align-items:center;flex:0 0 auto;text-align:left;}
    .fx-post-side .avatar{margin:0;}
    .fx-board-counts{display:none;}
    .fx-child-wrap{padding-left:18px;}
    .av-userbox{order:4;}
}
