/* ===== 论坛 ===== */
.bbs-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;padding:34px 0 18px;flex-wrap:wrap}
.bbs-h1{margin:0;font-size:28px;font-weight:800;letter-spacing:-.5px}
.bbs-sub{margin:6px 0 0;color:var(--muted);font-size:14px}

.thread-list{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:var(--shadow)}
.thread-item{display:flex;align-items:center;gap:13px;padding:15px 18px;border-bottom:1px solid var(--line);transition:.15s}
.thread-item:last-child{border-bottom:0}
.thread-item:hover{background:#fafcfb}
.ti-avatar{width:38px;height:38px;border-radius:11px;color:#fff;display:grid;place-items:center;font-weight:700;font-size:16px;flex-shrink:0}
.ti-main{flex:1;min-width:0}
.ti-title{font-size:15.5px;font-weight:600;line-height:1.5;display:flex;align-items:center;gap:7px}
.ti-meta{color:var(--muted);font-size:12.5px;margin-top:3px;display:flex;gap:7px;flex-wrap:wrap}
.ti-go{color:#c3cad3;font-size:20px}
.pin{background:#fff1e6;color:#c2410c;font-size:11.5px;font-weight:700;padding:1px 7px;border-radius:5px;flex-shrink:0}

/* 帖子详情 */
.thread-head{padding:22px 0 4px}
.th-title{margin:0 0 8px;font-size:24px;font-weight:800;line-height:1.45;letter-spacing:-.3px;display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.th-meta{color:var(--muted);font-size:13px;display:flex;gap:8px;flex-wrap:wrap}
.floors{margin-top:16px;display:flex;flex-direction:column;gap:12px}
.floor{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px 18px;box-shadow:var(--shadow)}
.fu{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.avatar{width:34px;height:34px;border-radius:10px;color:#fff;display:grid;place-items:center;font-weight:700;font-size:15px;flex-shrink:0}
.fu-info{display:flex;flex-direction:column;line-height:1.35}
.fu-info b{font-size:14px}
.fu-info small{color:var(--muted);font-size:12px}
.floor-no{margin-left:auto;color:#aab3bd;font-size:12px}
.fc{font-size:15px;line-height:1.85;color:#2b3138;word-break:break-word}
.fc a{color:var(--brand);text-decoration:underline}
.fc .sticker{display:inline-block;height:64px;width:auto;vertical-align:middle;margin:-6px 2px}

/* 回复框 / 发帖 */
.reply-box,.compose{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px;margin-top:22px;box-shadow:var(--shadow)}
.compose{max-width:820px}
.rb-title,.cp-title{margin:0 0 14px;font-size:17px;font-weight:700}
.bbs-form{display:flex;flex-direction:column;gap:12px}
.bbs-row{display:flex;gap:10px;flex-wrap:wrap}
.nick-in{width:220px}
.title-in{font-size:16px;font-weight:600}
.bbs-form input[type=text],.bbs-form textarea{
  width:100%;border:1px solid var(--line);border-radius:10px;padding:10px 13px;
  font:inherit;font-size:14.5px;color:var(--text);background:#fff;outline:none;transition:.15s}
.bbs-form input[type=text]:focus,.bbs-form textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-l)}
.bbs-form textarea{resize:vertical;line-height:1.8}
.hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.bbs-actions{display:flex;gap:10px}
.form-msg{padding:10px 14px;border-radius:9px;font-size:13.5px;margin-bottom:12px}
.form-msg.err{background:#fdeaea;color:#a92020;border:1px solid #f6d5d5}

/* 表情包 */
.emoji-bar{position:relative}
.emoji-toggle{border:1px solid var(--line);background:#fff;border-radius:9px;padding:5px 14px;font-size:13.5px;cursor:pointer;color:var(--muted)}
.emoji-toggle:hover{border-color:var(--brand);color:var(--brand)}
.emoji-panel{
  display:none;position:absolute;bottom:38px;left:0;z-index:30;width:320px;max-height:250px;overflow:auto;
  background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 32px rgba(17,24,39,.14);
  padding:10px;grid-template-columns:repeat(6,1fr);gap:6px}
.emoji-panel.open{display:grid}
.emoji-panel img{width:100%;height:auto;cursor:pointer;border-radius:6px;padding:3px;transition:.12s}
.emoji-panel img:hover{background:var(--brand-l);transform:scale(1.06)}

@media (max-width:760px){
  .bbs-head{padding:22px 0 14px;align-items:flex-start}
  .bbs-h1{font-size:22px}
  .bbs-sub{font-size:13px}
  .thread-item{padding:13px 13px;gap:10px}
  .ti-avatar{width:34px;height:34px;border-radius:9px;font-size:14px}
  .ti-title{font-size:14.5px}
  .ti-meta{font-size:12px;gap:5px}
  .ti-go{display:none}
  .thread-head{padding:16px 0 2px}
  .th-title{font-size:18px;line-height:1.5;gap:6px}
  .th-meta{font-size:12.5px}
  .floor{padding:13px 14px;border-radius:12px}
  .fu{gap:9px;margin-bottom:8px}
  .avatar{width:30px;height:30px;border-radius:9px;font-size:13px}
  .fc{font-size:14.5px;line-height:1.8}
  .fc .sticker{height:48px}
  .reply-box,.compose{padding:14px;border-radius:12px;margin-top:16px}
  .rb-title,.cp-title{font-size:15.5px}
  .nick-in{width:100%}
  .bbs-form textarea{min-height:110px}
  .bbs-actions{flex-direction:column}
  .bbs-actions .btn{width:100%;justify-content:center}
  .emoji-panel{width:min(88vw,300px);grid-template-columns:repeat(5,1fr)}
}
