/* ============================================================
   PokeHD 社区论坛 · 全新样式（暖色焕新版）
   依赖 style.css 的设计变量，本文件仅作用于 forum.html
   ============================================================ */

/* ==================== Hero 横幅 ==================== */
.forum-hero {
  position: relative;
  overflow: hidden;
  padding: 58px 20px 88px;
  text-align: center;
  background:
    radial-gradient(ellipse at 18% 20%, rgba(224, 93, 68, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse at 82% 15%, rgba(217, 160, 43, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(77, 143, 184, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, #f3ead9 0%, #f7f0e3 100%);
}
.forum-hero::before {
  content: '';
  position: absolute; inset: 0;
  opacity: 0.18;
  background: url("data:image/svg+xml,%3Csvg width='48' height='48' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='24' cy='24' r='18' fill='none' stroke='%23d9b88a' stroke-width='1'/%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
/* 底部圆弧收边，与下方内容形成层叠感 */
.forum-hero::after {
  content: '';
  position: absolute; left: -5%; right: -5%; bottom: -34px; height: 68px;
  background: var(--bg);
  border-radius: 100% 100% 0 0;
  pointer-events: none;
}
.forum-hero-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }

.forum-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 16px; border-radius: 20px;
  background: rgba(255, 253, 250, 0.85);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 0.76rem; font-weight: 600; color: var(--text-soft);
  animation: fcFadeUp 0.6s ease-out both;
}
.forum-hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(61, 155, 110, 0.5);
  animation: fcPing 2s ease-out infinite;
}
.forum-hero h1 {
  font-family: var(--font-title);
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  font-weight: 800;
  letter-spacing: 2px;
  margin: 14px 0 8px;
  background: linear-gradient(135deg, var(--primary) 20%, var(--gold) 90%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 10px rgba(224, 93, 68, 0.25));
  animation: fcFadeUp 0.6s 0.08s ease-out both;
}
.forum-hero-sub {
  font-size: clamp(0.85rem, 2vw, 0.98rem);
  color: var(--text-dim);
  animation: fcFadeUp 0.6s 0.16s ease-out both;
}
.forum-hero-sub b { color: var(--gold); font-weight: 600; }

/* 统计条 */
.hero-stats {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
  margin-top: 22px;
  animation: fcFadeUp 0.6s 0.24s ease-out both;
}
.hero-stat {
  min-width: 118px;
  padding: 10px 22px;
  border-radius: var(--radius);
  background: rgba(255, 253, 250, 0.9);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.hero-stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.hero-stat .num {
  font-size: 1.35rem; font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-stat .lbl { font-size: 0.7rem; color: var(--text-dim); margin-top: 1px; }

/* 漂浮精灵与粒子 */
.fc-sprite {
  position: absolute; z-index: 1;
  pointer-events: none; user-select: none;
  opacity: 0.55;
  filter: drop-shadow(0 4px 8px rgba(92, 74, 56, 0.18));
  animation: fcSpriteFloat var(--d, 6s) ease-in-out infinite;
}
.fc-particle {
  position: absolute; z-index: 1;
  border-radius: 50%;
  pointer-events: none;
  bottom: -12px;
  background: radial-gradient(circle, rgba(217, 160, 43, 0.55), rgba(224, 93, 68, 0.25));
  animation: fcParticleRise var(--d, 9s) linear infinite;
  animation-delay: var(--delay, 0s);
}

/* ==================== 双栏主体 ==================== */
.forum-body {
  position: relative; z-index: 3;
  max-width: var(--max-w);
  margin: -52px auto 56px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: 24px;
  align-items: start;
}
.forum-main { min-width: 0; }

/* ---- 工具栏：分类 tab + 操作按钮 ---- */
.forum-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  margin-bottom: 16px;
  animation: fcFadeUp 0.55s 0.3s ease-out both;
}
.forum-tabs {
  display: flex; gap: 4px; flex-wrap: wrap;
  padding: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow);
}
.cat-btn {
  position: relative;
  padding: 7px 18px;
  border: none; border-radius: 20px;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.84rem; font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: color 0.25s, background 0.25s, transform 0.25s;
}
.cat-btn:hover { color: var(--primary); background: var(--primary-soft); }
.cat-btn.active {
  background: linear-gradient(135deg, var(--primary), #e88a4a);
  color: #fff;
  box-shadow: 0 3px 10px rgba(224, 93, 68, 0.35);
  animation: fcPop 0.35s ease-out;
}
.toolbar-actions { display: flex; gap: 10px; }
.btn-mine {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 18px; border-radius: 20px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text-soft);
  font-size: 0.82rem; font-weight: 600; font-family: var(--font);
  cursor: pointer; transition: all 0.25s;
}
.btn-mine:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-mine.active {
  background: var(--primary-soft); border-color: var(--primary); color: var(--primary);
  animation: fcPop 0.35s ease-out;
}
/* 发帖主按钮：渐变 + 扫光 */
.btn-newpost {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 22px; border: none; border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), #e88a4a);
  color: #fff;
  font-size: 0.84rem; font-weight: 700; font-family: var(--font);
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: transform 0.25s, box-shadow 0.25s;
}
.btn-newpost:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(224, 93, 68, 0.4); }
.btn-newpost::after {
  content: '';
  position: absolute; top: 0; left: -80%;
  width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  animation: fcShine 3.2s ease-in-out infinite;
}
.btn-newpost:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ==================== 帖子卡片列表 ==================== */
.fc-list { display: flex; flex-direction: column; gap: 14px; }

.fc-card {
  position: relative;
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.28s, box-shadow 0.28s, border-color 0.28s;
  animation: fcCardIn 0.5s cubic-bezier(0.22, 0.8, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}
/* 左侧渐变 accent 条，hover 时滑出 */
.fc-card::before {
  content: '';
  position: absolute; left: 0; top: 14px; bottom: 14px;
  width: 4px; border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--primary), var(--gold));
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.28s ease;
}
.fc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(224, 93, 68, 0.3);
  box-shadow: var(--shadow-lg);
}
.fc-card:hover::before { transform: scaleY(1); }

/* 作者首字母头像 */
.fc-avatar {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  color: #fff;
  font-size: 1.05rem; font-weight: 700;
  font-family: var(--font-title);
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.28s;
}
.fc-card:hover .fc-avatar { transform: scale(1.08) rotate(-4deg); }

.fc-body { flex: 1; min-width: 0; }
.fc-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fc-cat-chip {
  padding: 2px 9px; border-radius: 7px;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.5px;
}
.fc-cat-chat    { background: var(--accent-soft); color: var(--accent); }
.fc-cat-trade   { background: var(--gold-soft); color: #a07a1a; }
.fc-cat-guide   { background: var(--primary-soft); color: var(--primary); }
.fc-cat-checkin { background: rgba(61, 155, 110, 0.12); color: var(--success); }
.fc-expire {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 7px;
  background: rgba(217, 160, 43, 0.12); color: #a07a1a;
  font-size: 0.64rem; font-weight: 700;
  animation: fcBlink 2.4s ease-in-out infinite;
}
.fc-title {
  display: block;
  margin-top: 6px;
  font-size: 0.98rem; font-weight: 600;
  color: var(--text); line-height: 1.5;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: color 0.25s;
}
.fc-card:hover .fc-title { color: var(--primary); }
.fc-img-count { font-size: 0.7rem; color: var(--text-faint); font-weight: 500; margin-left: 4px; }
.fc-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 6px;
  font-size: 0.74rem; color: var(--text-dim);
}
.fc-meta .fc-author {
  display: inline-flex; align-items: center; gap: 2px;
  color: var(--text-soft); font-weight: 600;
  max-width: 150px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  transition: color 0.25s;
}
.fc-meta .fc-author:hover { color: var(--primary); }
.fc-meta .hide-mobile { white-space: nowrap; }

/* 右侧：缩略图 + 数据 */
.fc-side {
  align-self: stretch;
  display: flex; flex-direction: column; align-items: flex-end;
  justify-content: space-between; gap: 10px;
  flex-shrink: 0;
}
.fc-thumb {
  width: 84px; height: 58px;
  border-radius: 10px; object-fit: cover;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  transition: transform 0.28s;
}
.fc-card:hover .fc-thumb { transform: scale(1.06); }
.fc-actions { display: flex; align-items: center; gap: 8px; }

.fc-like {
  position: relative;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px;
  border: 1px solid var(--border); border-radius: 16px;
  background: var(--bg-input);
  color: var(--text-dim);
  font-size: 0.76rem; font-weight: 600; font-family: var(--font);
  cursor: pointer;
  transition: all 0.25s;
}
.fc-like:hover { border-color: #e74c3c; color: #e74c3c; background: #fdf0ee; }
.fc-like.liked {
  border-color: transparent;
  background: linear-gradient(135deg, #e74c3c, #ff8a65);
  color: #fff;
}
.fc-like.pop { animation: fcHeartPop 0.45s ease-out; }
.fc-like .heart { display: inline-block; }
/* 点赞粒子迸发 */
.fc-burst {
  position: absolute; left: 50%; top: 50%;
  width: 6px; height: 6px; border-radius: 50%;
  pointer-events: none;
  animation: fcBurst 0.6s ease-out forwards;
}
.fc-reply-chip {
  display: inline-flex; flex-direction: column; align-items: center; line-height: 1.25;
  padding: 3px 12px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 0.8rem; font-weight: 700; color: var(--text-soft);
  white-space: nowrap;
  transition: all 0.25s;
}
.fc-card:hover .fc-reply-chip { border-color: rgba(224, 93, 68, 0.25); color: var(--primary); }
.fc-reply-chip span { font-size: 0.58rem; font-weight: 500; color: var(--text-dim); }

/* ==================== 骨架屏 ==================== */
.fc-skel { pointer-events: none; animation: none; }
.fc-skel .fc-avatar,
.fc-skel .skel-line,
.fc-skel .fc-thumb {
  background: linear-gradient(100deg, var(--bg-soft) 30%, #faf3e6 50%, var(--bg-soft) 70%);
  background-size: 200% 100%;
  animation: fcShimmer 1.4s linear infinite;
  color: transparent; box-shadow: none;
}
.fc-skel .skel-line { height: 12px; border-radius: 6px; margin-top: 8px; }
.fc-skel .skel-line.w60 { width: 60%; }
.fc-skel .skel-line.w40 { width: 40%; }

/* ==================== 空状态 ==================== */
.fc-empty {
  text-align: center;
  padding: 56px 20px 60px;
  background: var(--bg-card);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  animation: fcFadeUp 0.5s ease-out both;
}
.fc-empty .empty-icon {
  display: block;
  font-size: 3rem;
  animation: fcFloatY 2.6s ease-in-out infinite;
}
.fc-empty p { color: var(--text-dim); font-size: 0.9rem; margin: 12px 0 18px; }

/* ==================== 消息提示 ==================== */
.msg {
  display: none;
  align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem; font-weight: 500;
  margin-bottom: 14px;
  border: 1px solid transparent;
}
.msg.show { display: flex; animation: fcMsgIn 0.35s ease-out; }
.msg.ok  { background: rgba(61, 155, 110, 0.08); color: var(--success); border-color: rgba(61, 155, 110, 0.25); }
.msg.err { background: rgba(192, 57, 43, 0.07); color: var(--danger); border-color: rgba(192, 57, 43, 0.25); }

/* ==================== 分页 ==================== */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 6px; flex-wrap: wrap;
  margin-top: 26px;
}
.page-btn {
  min-width: 34px; height: 34px;
  padding: 0 8px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg-card);
  color: var(--text-soft);
  font-size: 0.8rem; font-weight: 600; font-family: var(--font);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.25s;
}
.page-btn:hover:not(:disabled):not(.active) {
  border-color: var(--primary); color: var(--primary);
  transform: translateY(-2px);
}
.page-btn.active {
  background: linear-gradient(135deg, var(--primary), #e88a4a);
  border-color: transparent; color: #fff;
  box-shadow: 0 3px 10px rgba(224, 93, 68, 0.35);
  animation: fcPop 0.3s ease-out;
}
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.page-gap { color: var(--text-faint); font-size: 0.78rem; padding: 0 2px; }

/* ==================== 侧边栏 ==================== */
.forum-aside {
  position: sticky; top: 76px;
  display: flex; flex-direction: column; gap: 16px;
}
.side-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow);
  animation: fcFadeUp 0.55s ease-out both;
}
.side-card:nth-child(1) { animation-delay: 0.36s; }
.side-card:nth-child(2) { animation-delay: 0.44s; }
.side-card:nth-child(3) { animation-delay: 0.52s; }
.side-card:nth-child(4) { animation-delay: 0.6s; }
.side-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.86rem; font-weight: 700; color: var(--text);
  margin-bottom: 14px;
}
.side-title .bar {
  width: 4px; height: 14px; border-radius: 2px;
  background: linear-gradient(180deg, var(--primary), var(--gold));
}

/* ---- 签到积分卡 ---- */
.score-card-main { position: relative; overflow: hidden; }
.score-card-main::before {
  content: '';
  position: absolute; top: -46px; right: -46px;
  width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 160, 43, 0.18), transparent 70%);
}
.score-nums { display: flex; gap: 10px; margin-bottom: 14px; }
.score-box {
  flex: 1;
  text-align: center;
  padding: 12px 8px 10px;
  border-radius: var(--radius);
  background: var(--bg-input);
  border: 1px solid var(--border);
}
.score-value {
  font-size: 1.45rem; font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.score-box:first-child .score-value {
  background: linear-gradient(135deg, var(--primary), var(--gold));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.score-box .fire { font-size: 1.2rem; }
.score-label { font-size: 0.68rem; color: var(--text-dim); margin-top: 2px; }
.fc-checkin-btn {
  position: relative; overflow: hidden;
  width: 100%;
  padding: 11px 0; border: none; border-radius: 22px;
  background: linear-gradient(135deg, var(--primary), #e88a4a);
  color: #fff;
  font-size: 0.9rem; font-weight: 700; font-family: var(--font);
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: transform 0.25s, box-shadow 0.25s, opacity 0.25s;
}
.fc-checkin-btn::after {
  content: '';
  position: absolute; top: 0; left: -80%;
  width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  animation: fcShine 3.2s ease-in-out infinite;
}
.fc-checkin-btn:hover:not(.checked) { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(224, 93, 68, 0.4); }
.fc-checkin-btn.checked {
  background: var(--bg-soft);
  color: var(--text-dim);
  box-shadow: none;
  cursor: default;
  opacity: 0.75;
}
.fc-checkin-btn.checked::after { display: none; }
.score-bonus { display: block; text-align: center; font-size: 0.68rem; color: var(--gold); margin-top: 7px; font-weight: 600; }

/* ---- 快捷入口 ---- */
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.quick-link {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 11px 4px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.25s;
}
.quick-link .qi { font-size: 1.35rem; transition: transform 0.25s; }
.quick-link span { font-size: 0.68rem; color: var(--text-soft); font-weight: 600; }
.quick-link:hover { background: var(--bg-input); border-color: var(--border); transform: translateY(-2px); }
.quick-link:hover .qi { transform: scale(1.18); }

/* ---- 社区公约 ---- */
.rule-list { display: flex; flex-direction: column; gap: 10px; }
.rule-item { display: flex; gap: 8px; font-size: 0.76rem; color: var(--text-soft); line-height: 1.6; }
.rule-item .ri { flex-shrink: 0; }

/* ---- 未登录引导 ---- */
.side-login-tip { text-align: center; }
.side-login-tip .big { font-size: 2rem; display: block; margin-bottom: 6px; animation: fcFloatY 3s ease-in-out infinite; }
.side-login-tip p { font-size: 0.76rem; color: var(--text-dim); margin-bottom: 12px; line-height: 1.7; }
.side-login-btn {
  display: inline-block;
  padding: 8px 26px; border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), #e88a4a);
  color: #fff; font-size: 0.8rem; font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-btn);
  transition: transform 0.25s, box-shadow 0.25s;
}
.side-login-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(224, 93, 68, 0.4); }

/* ==================== 发帖弹窗 ==================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(51, 36, 23, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fcFadeIn 0.25s ease-out;
}
.modal-box {
  width: 100%; max-width: 500px;
  max-height: 86vh; overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  position: relative;
  box-shadow: 0 18px 56px rgba(51, 36, 23, 0.18);
  animation: fcZoomIn 0.32s cubic-bezier(0.22, 0.8, 0.36, 1);
}
.modal-box::-webkit-scrollbar { width: 6px; }
.modal-box::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.modal-box h3 {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.15rem; font-weight: 700; color: var(--text);
  margin-bottom: 20px;
  padding-left: 12px;
  position: relative;
}
.modal-box h3::before {
  content: '';
  position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 4px; border-radius: 2px;
  background: linear-gradient(180deg, var(--primary), var(--gold));
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px;
  border: 1px solid var(--border); border-radius: 50%;
  background: var(--bg-soft); color: var(--text-dim);
  font-size: 0.85rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.modal-close:hover {
  background: var(--danger); border-color: var(--danger); color: #fff;
  transform: rotate(90deg);
}

.form-group { margin-bottom: 15px; }
.form-group label {
  display: flex; align-items: center; gap: 4px;
  color: var(--text-soft); font-size: 0.8rem; font-weight: 600;
  margin-bottom: 6px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 13px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-input); color: var(--text);
  font-size: 0.88rem; font-family: var(--font);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(224, 93, 68, 0.12);
}
.form-group textarea { min-height: 110px; resize: vertical; }

.fc-upload-zone {
  display: block;
  padding: 14px;
  text-align: center;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-dim); font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.25s;
}
.fc-upload-zone:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.fc-upload-zone .up-icon { font-size: 1.3rem; display: block; margin-bottom: 2px; }
.form-group input[type="file"] { display: none; }

.img-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.img-preview .img-cell { position: relative; animation: fcPop 0.3s ease-out; }
.img-preview img { width: 74px; height: 74px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); display: block; }
.img-preview .img-del {
  position: absolute; top: -6px; right: -6px;
  width: 20px; height: 20px;
  border: none; border-radius: 50%;
  background: rgba(51, 36, 23, 0.75); color: #fff;
  font-size: 0.65rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.img-preview .img-del:hover { background: var(--danger); transform: scale(1.15); }

.cat-hint {
  display: none;
  margin-top: 8px; padding: 9px 13px;
  border-radius: var(--radius-sm);
  background: rgba(61, 155, 110, 0.08); color: var(--success);
  border: 1px solid rgba(61, 155, 110, 0.2);
  font-size: 0.74rem; line-height: 1.6;
  animation: fcFadeIn 0.3s ease-out;
}
.cat-hint.show { display: block; }

.btn-submit {
  position: relative; overflow: hidden;
  width: 100%;
  padding: 12px 0;
  border: none; border-radius: 24px;
  background: linear-gradient(135deg, var(--primary), #e88a4a);
  color: #fff;
  font-size: 0.92rem; font-weight: 700; font-family: var(--font);
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: transform 0.25s, box-shadow 0.25s;
}
.btn-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(224, 93, 68, 0.4); }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }
.btn-submit .spin {
  display: inline-block; width: 13px; height: 13px;
  border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff;
  border-radius: 50%;
  animation: fcSpin 0.7s linear infinite;
  vertical-align: -2px; margin-right: 6px;
}

/* ==================== 彩纸 / confetti ==================== */
.fc-confetti { position: fixed; inset: 0; z-index: 3000; pointer-events: none; overflow: hidden; }
.fc-confetti i {
  position: absolute; top: -12px;
  width: 8px; height: 14px; border-radius: 2px;
  animation: fcConfettiFall var(--d, 2.4s) ease-in forwards;
  animation-delay: var(--delay, 0s);
}

/* ==================== 页脚 ==================== */
.forum-footer {
  text-align: center;
  padding: 22px 16px 30px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}
.forum-footer .f-logo { font-weight: 700; color: var(--text-soft); font-size: 0.85rem; }
.forum-footer .f-logo .logo-icon { color: var(--primary); }
.forum-footer p { font-size: 0.7rem; color: var(--text-dim); margin-top: 4px; }

/* ==================== 动画 ==================== */
@keyframes fcFadeUp   { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fcFadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes fcZoomIn   { from { opacity: 0; transform: scale(0.88) translateY(14px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes fcCardIn   { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fcPop      { 0% { transform: scale(0.8); } 55% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes fcShine    { 0%, 55% { left: -80%; } 100% { left: 130%; } }
@keyframes fcShimmer  { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes fcPing     { 0% { box-shadow: 0 0 0 0 rgba(61, 155, 110, 0.5); } 70% { box-shadow: 0 0 0 8px rgba(61, 155, 110, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 155, 110, 0); } }
@keyframes fcSpriteFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-12px) rotate(4deg); }
  75% { transform: translateY(7px) rotate(-4deg); }
}
@keyframes fcParticleRise {
  0%   { transform: translateY(0) scale(1); opacity: 0; }
  8%   { opacity: 0.9; }
  85%  { opacity: 0.6; }
  100% { transform: translateY(-46vh) scale(0.3); opacity: 0; }
}
@keyframes fcHeartPop {
  0% { transform: scale(1); }
  30% { transform: scale(1.25); }
  55% { transform: scale(0.9); }
  100% { transform: scale(1); }
}
@keyframes fcBurst {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0.2); opacity: 0; }
}
@keyframes fcBlink  { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
@keyframes fcFloatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes fcMsgIn  { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fcSpin   { to { transform: rotate(360deg); } }
@keyframes fcConfettiFall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(105vh) rotate(720deg); opacity: 0.4; }
}

/* ==================== 响应式 ==================== */
@media (max-width: 1023px) {
  .forum-body { grid-template-columns: 1fr; margin-top: -44px; gap: 18px; }
  .forum-aside { position: static; order: -1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .side-card { animation-delay: 0.3s; }
  .forum-hero { padding-bottom: 78px; }
}
@media (max-width: 768px) {
  .forum-hero { padding: 56px 14px 72px; }
  .hero-stat { min-width: 96px; padding: 8px 14px; }
  .hero-stat .num { font-size: 1.15rem; }
  .hide-mobile { display: none !important; }
  .fc-card { padding: 14px 12px 14px 16px; gap: 11px; }
  .fc-avatar { width: 38px; height: 38px; font-size: 0.92rem; border-radius: 12px; }
  .fc-title { font-size: 0.9rem; }
  .fc-thumb { width: 68px; height: 50px; }
  .fc-like { padding: 3px 9px; font-size: 0.72rem; }
  .fc-reply-chip { padding: 2px 9px; font-size: 0.74rem; }
  .fc-meta .fc-author { max-width: 110px; }
  .forum-tabs { border-radius: 22px; }
  .cat-btn { padding: 6px 13px; font-size: 0.78rem; }
  .forum-aside { grid-template-columns: 1fr; }
  .fc-sprite { display: none; }
}
@media (max-width: 480px) {
  .forum-body { padding: 0 12px; margin-bottom: 40px; }
  .forum-toolbar { flex-direction: column; align-items: stretch; }
  .forum-tabs { justify-content: center; }
  .toolbar-actions { justify-content: space-between; }
  .btn-mine, .btn-newpost { flex: 1; justify-content: center; }
  .hero-stat { min-width: 84px; padding: 7px 10px; }
  .fc-side { gap: 7px; }
}

/* 动效减弱：尊重系统偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01s !important;
  }
}
