/* ============================================================
   forum.css — Discuz 论坛模块样式
   适用：forum/ 下所有页面（技术交流/圈友社区/赚钱实战/站务中心）
   ============================================================ */

/* ========== Forum Home: Board Cards Grid ========== */
.forum-home-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
  margin-bottom: 32px;
}
.board-card-large {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 28px 26px;
  transition: all var(--transition-fast); display: flex; gap: 22px; align-items: flex-start;
  box-shadow: var(--shadow-sm); color: inherit; position: relative; overflow: hidden;
}
.board-card-large:hover {
  transform: translateY(-3px);
  border-color: rgba(14,165,233,0.25);
  box-shadow: var(--shadow-hover);
}
.board-card-large::after {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 120px; height: 120px; border-radius: 50%;
  opacity: 0.06; pointer-events: none;
  transition: opacity var(--transition-fast);
}
.board-card-large:hover::after { opacity: 0.12; }
.board-card-large.tech::after  { background: #10b981; }
.board-card-large.comm::after  { background: #ec4899; }
.board-card-large.earn::after  { background: #f43f5e; }
.board-card-large.station::after { background: #6366f1; }

.board-card-icon-lg {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; flex-shrink: 0; color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.board-card-icon-lg.tech  { background: linear-gradient(135deg, #10b981, #34d399); }
.board-card-icon-lg.comm  { background: linear-gradient(135deg, #ec4899, #f472b6); }
.board-card-icon-lg.earn  { background: linear-gradient(135deg, #f43f5e, #fb7185); }
.board-card-icon-lg.station { background: linear-gradient(135deg, #6366f1, #818cf8); }

.board-card-body { flex: 1; min-width: 0; position: relative; z-index: 1; }
.board-card-body h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.board-card-body p  { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
.board-card-stats { display: flex; gap: 20px; }
.board-card-stats span {
  font-size: 12px; color: var(--text-secondary); display: flex; align-items: center; gap: 5px;
}
.board-card-stats strong { font-weight: 700; color: var(--text-primary); }
.board-card-subforums { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.board-card-subforums a {
  font-size: 11px; padding: 3px 10px; border-radius: 10px;
  background: var(--bg-secondary); color: var(--text-muted);
  transition: all var(--transition-fast);
}
.board-card-subforums a:hover { background: rgba(14,165,233,0.08); color: var(--color-accent); }

/* ========== Forum Section Header (板块页共用) ========== */
.forum-section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px; margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}
.forum-section-header .section-left { display: flex; align-items: center; gap: 12px; }
.forum-section-header .section-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; flex-shrink: 0;
}
.forum-section-header h2 { font-size: 22px; font-weight: 800; }
.forum-section-header .section-stats {
  font-size: 12px; color: var(--text-muted); display: flex; gap: 16px;
}

/* ========== Sub-Forum Grid ========== */
.subforum-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-bottom: 24px;
}
.subforum-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 18px 20px;
  display: flex; align-items: center; gap: 14px;
  transition: all var(--transition-fast); color: inherit;
}
.subforum-card:hover {
  border-color: rgba(14,165,233,0.2);
  box-shadow: var(--shadow-md); transform: translateY(-1px);
}
.subforum-icon {
  width: 42px; height: 42px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0; color: #fff;
}
.subforum-icon.agenda  { background: linear-gradient(135deg, #0ea5e9, #38bdf8); }
.subforum-icon.brain   { background: linear-gradient(135deg, #10b981, #34d399); }
.subforum-icon.paper   { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.subforum-icon.commit  { background: linear-gradient(135deg, #f59e0b, #fbbf24); }

.subforum-info { flex: 1; min-width: 0; }
.subforum-info h4 { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.subforum-info p { font-size: 11px; color: var(--text-muted); }
.subforum-meta { font-size: 11px; color: var(--text-muted); text-align: right; flex-shrink: 0; }
.subforum-meta strong { display: block; font-size: 13px; color: var(--text-primary); }

/* ========== Thread Filter Bar ========== */
.thread-filter-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; flex-wrap: wrap; gap: 12px;
}
.thread-filters { display: flex; gap: 4px; }
.thread-filter {
  padding: 7px 16px; border-radius: 8px; font-size: 13px; font-weight: 500;
  color: var(--text-secondary); transition: all var(--transition-fast); cursor: pointer;
}
.thread-filter:hover { color: var(--color-accent); background: rgba(14,165,233,0.05); }
.thread-filter.active {
  background: linear-gradient(135deg, #0ea5e9, #7c3aed);
  color: #fff; font-weight: 600;
}
.thread-sort { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); }
.thread-sort select {
  padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border-color);
  background: var(--bg-card); color: var(--text-primary); font-size: 12px;
  font-family: var(--font-sans); cursor: pointer;
}

/* ========== Thread List Table ========== */
.thread-table-wrap {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm); margin-bottom: 20px;
}
.thread-table { width: 100%; border-collapse: collapse; }
.thread-table thead th {
  padding: 12px 16px; font-size: 12px; font-weight: 600; color: var(--text-muted);
  background: var(--bg-secondary); border-bottom: 2px solid var(--border-color);
  text-align: left; white-space: nowrap;
}
.thread-table thead th:first-child { padding-left: 20px; }
.thread-table thead th:last-child { padding-right: 20px; }
.thread-table tbody td {
  padding: 14px 16px; border-bottom: 1px solid var(--border-light);
  font-size: 13px; vertical-align: middle; color: var(--text-primary);
}
.thread-table tbody td:first-child { padding-left: 20px; }
.thread-table tbody td:last-child { padding-right: 20px; }
.thread-table tbody tr:hover td { background: var(--bg-secondary); }
.thread-table tbody tr:last-child td { border-bottom: none; }

/* Sticky thread row */
.thread-table tbody tr.sticky td { background: rgba(14,165,233,0.03); }
.thread-table tbody tr.sticky:hover td { background: rgba(14,165,233,0.06); }

/* Thread title cell */
.td-title { min-width: 300px; }
.td-title .thread-icon {
  display: inline-block; width: 20px; font-size: 14px; text-align: center;
  margin-right: 6px; flex-shrink: 0;
}
.td-title .thread-type {
  display: inline-block; padding: 1px 7px; border-radius: 8px; font-size: 11px;
  font-weight: 600; margin-right: 8px; vertical-align: middle;
}
.td-title .thread-type.top     { background: rgba(239,68,68,0.08);   color: #ef4444; }
.td-title .thread-type.digest  { background: rgba(245,158,11,0.08);  color: #f59e0b; }
.td-title .thread-type.hot     { background: rgba(239,68,68,0.08);   color: #ef4444; }
.td-title .thread-type.new     { background: rgba(14,165,233,0.08);  color: #0ea5e9; }
.td-title .thread-type.good    { background: rgba(16,185,129,0.08);  color: #10b981; }
.td-title .thread-type.discuss { background: rgba(124,58,237,0.08);  color: #7c3aed; }
.td-title .thread-type.ask     { background: rgba(14,165,233,0.08);  color: #0ea5e9; }
.td-title a {
  font-size: 14px; font-weight: 600; color: var(--text-primary);
  line-height: 1.4; transition: color var(--transition-fast);
}
.td-title a:hover { color: var(--color-accent); }
.td-title .thread-attach { font-size: 12px; color: var(--text-muted); margin-left: 6px; }
.td-title .thread-pages {
  display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: middle;
}
.td-title .thread-pages a {
  font-size: 10px; padding: 1px 5px; border-radius: 3px;
  background: var(--bg-secondary); color: var(--text-muted); font-weight: 400;
  border: 1px solid var(--border-color); line-height: 1.6;
}
.td-title .thread-pages a:hover { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }

/* Author / count / lastpost cells */
.td-author, .td-count, .td-lastpost { white-space: nowrap; }
.td-author { color: var(--text-secondary); }
.td-count { text-align: center; color: var(--text-muted); font-size: 12px; }
.td-count strong { color: var(--text-primary); }
.td-lastpost { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.td-lastpost a { color: var(--text-secondary); transition: color var(--transition-fast); }
.td-lastpost a:hover { color: var(--color-accent); }
.td-lastpost .lastpost-time { color: var(--text-muted); font-size: 11px; }

/* ========== Thread Detail: Post Layout ========== */
.post-list { margin-bottom: 24px; }

/* Post item */
.post-item {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); margin-bottom: 14px;
  overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex;
}
.post-sidebar {
  width: 180px; flex-shrink: 0; padding: 22px 16px;
  background: var(--bg-secondary); border-right: 1px solid var(--border-light);
  text-align: center;
}
.post-sidebar .post-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: #fff; margin: 0 auto 10px;
  box-shadow: 0 3px 10px rgba(14,165,233,0.2);
}
.post-sidebar .post-username {
  font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px;
  display: block;
}
.post-sidebar .post-user-title {
  font-size: 11px; color: var(--color-accent); margin-bottom: 8px;
  display: block;
}
.post-sidebar .post-user-stats {
  display: flex; justify-content: center; gap: 12px;
  font-size: 11px; color: var(--text-muted);
}
.post-sidebar .post-user-stats strong { color: var(--text-primary); }
.post-sidebar .post-user-badges {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 10px;
}
.post-sidebar .post-user-badge {
  width: 22px; height: 22px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; background: var(--bg-card); border: 1px solid var(--border-color);
}

.post-body { flex: 1; min-width: 0; padding: 22px 24px; display: flex; flex-direction: column; }
.post-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px; margin-bottom: 16px;
  border-bottom: 1px dashed var(--border-light);
  flex-wrap: wrap; gap: 8px;
}
.post-header .post-meta { font-size: 12px; color: var(--text-muted); }
.post-header .post-floor {
  font-size: 12px; font-weight: 600; color: var(--color-accent);
  background: rgba(14,165,233,0.06); padding: 2px 10px; border-radius: 10px;
}
.post-header .post-floor.lz {
  background: rgba(239,68,68,0.08); color: #ef4444;
}
.post-content {
  flex: 1; font-size: 15px; line-height: 1.85; color: var(--text-primary);
}
.post-content p { margin-bottom: 14px; }
.post-content blockquote {
  margin: 16px 0; padding: 14px 18px;
  background: var(--bg-secondary); border-left: 3px solid var(--color-accent);
  font-size: 14px; color: var(--text-secondary); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.post-content ul { margin: 12px 0; padding-left: 20px; }
.post-content ul li { list-style: disc; padding: 3px 0; color: var(--text-primary); }
.post-content code {
  background: var(--bg-secondary); padding: 2px 6px; border-radius: 4px;
  font-size: 13px; color: #e11d48;
}
.post-content pre {
  background: var(--bg-secondary); padding: 16px 20px; border-radius: var(--radius-sm);
  font-size: 13px; overflow-x: auto; margin: 14px 0; border: 1px solid var(--border-light);
}
.post-content pre code { background: none; padding: 0; color: var(--text-primary); }

.post-footer {
  margin-top: 20px; padding-top: 14px;
  border-top: 1px solid var(--border-light);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.post-footer .btn-action-small {
  padding: 5px 12px; border-radius: 6px; font-size: 12px; font-weight: 500;
  color: var(--text-muted); transition: all var(--transition-fast);
  border: 1px solid transparent; cursor: pointer; display: flex; align-items: center; gap: 4px;
}
.post-footer .btn-action-small:hover {
  color: var(--color-accent); background: rgba(14,165,233,0.05);
  border-color: rgba(14,165,233,0.15);
}

/* ========== Thread Header (detail page) ========== */
.thread-detail-header {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 24px 28px; margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.thread-detail-header .thread-tags-row { margin-bottom: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.thread-detail-header h1 {
  font-size: 24px; font-weight: 800; line-height: 1.4; margin-bottom: 14px;
}
.thread-detail-meta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--text-muted);
  padding-bottom: 14px; border-bottom: 1px solid var(--border-light);
}
.thread-detail-meta span { display: flex; align-items: center; gap: 4px; }
.thread-detail-actions {
  display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap;
}
.thread-detail-actions .btn-action {
  padding: 6px 14px; border-radius: 7px;
  font-size: 12px; font-weight: 500; color: var(--text-muted);
  border: 1px solid var(--border-color); cursor: pointer;
  transition: all var(--transition-fast); display: flex; align-items: center; gap: 4px;
}
.thread-detail-actions .btn-action:hover {
  border-color: var(--color-accent); color: var(--color-accent);
  background: rgba(14,165,233,0.04);
}
.thread-detail-actions .btn-action.btn-reply {
  background: linear-gradient(135deg, #0ea5e9, #7c3aed);
  color: #fff; border-color: transparent;
}
.thread-detail-actions .btn-action.btn-reply:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(14,165,233,0.25); }

/* ========== Quick Reply ========== */
.quick-reply-wrap {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 24px 28px;
  box-shadow: var(--shadow-sm); margin-top: 10px;
}
.quick-reply-wrap h4 {
  font-size: 16px; font-weight: 700; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.quick-reply-wrap h4::before {
  content: ''; width: 4px; height: 18px; border-radius: 2px;
  background: linear-gradient(180deg, #0ea5e9, #7c3aed);
}
.quick-reply-wrap textarea {
  width: 100%; min-height: 140px; padding: 14px 16px;
  border: 1px solid var(--border-color); border-radius: var(--radius-sm);
  background: var(--bg-secondary); font-size: 14px; color: var(--text-primary);
  font-family: var(--font-sans); resize: vertical; outline: none;
  transition: border-color var(--transition-fast); line-height: 1.6;
}
.quick-reply-wrap textarea:focus { border-color: var(--color-accent); }
.quick-reply-wrap textarea::placeholder { color: var(--text-muted); }
.quick-reply-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; flex-wrap: wrap; gap: 10px;
}
.quick-reply-tools { display: flex; gap: 4px; }
.quick-reply-tools .tool-btn {
  width: 32px; height: 32px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--text-muted); transition: all var(--transition-fast);
  border: 1px solid transparent;
}
.quick-reply-tools .tool-btn:hover {
  background: var(--bg-secondary); color: var(--color-accent);
  border-color: var(--border-color);
}
.quick-reply-submit {
  padding: 9px 24px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #0ea5e9, #7c3aed);
  transition: all var(--transition-fast); box-shadow: 0 2px 8px rgba(14,165,233,0.25);
}
.quick-reply-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(14,165,233,0.35);
}

/* ========== Post Page Navigation ========== */
.post-page-nav {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  margin: 20px 0; flex-wrap: wrap;
}
.post-page-nav a, .post-page-nav span {
  min-width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  border: 1px solid var(--border-color); background: var(--bg-card);
  transition: all var(--transition-fast);
}
.post-page-nav a:hover { border-color: var(--color-accent); color: var(--color-accent); }
.post-page-nav .current {
  background: linear-gradient(135deg, #0ea5e9, #7c3aed);
  color: #fff; border-color: transparent; font-weight: 600;
}

/* ========== Earn: Task Cards Grid ========== */
.task-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.task-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast); color: inherit; display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.task-card:hover {
  transform: translateY(-2px);
  border-color: rgba(14,165,233,0.2);
  box-shadow: var(--shadow-hover);
}
.task-card .task-badge {
  position: absolute; top: 16px; right: 16px;
  padding: 4px 12px; border-radius: 10px; font-size: 11px; font-weight: 700;
}
.task-badge.hot   { background: rgba(239,68,68,0.08);   color: #ef4444; }
.task-badge.high  { background: rgba(245,158,11,0.08);  color: #f59e0b; }
.task-badge.beta  { background: rgba(14,165,233,0.08);  color: #0ea5e9; }
.task-badge.benefit { background: rgba(16,185,129,0.08); color: #10b981; }

.task-card .task-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 12px; color: #fff;
}
.task-icon.task-type  { background: linear-gradient(135deg, #f43f5e, #fb7185); }
.task-icon.recruit-type { background: linear-gradient(135deg, #0ea5e9, #38bdf8); }
.task-icon.review-type { background: linear-gradient(135deg, #10b981, #34d399); }
.task-icon.coupon-type { background: linear-gradient(135deg, #f59e0b, #fbbf24); }

.task-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.task-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; flex: 1; }
.task-card .task-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--border-light);
  font-size: 13px;
}
.task-reward { font-weight: 700; color: #ef4444; }
.task-participants { color: var(--text-muted); font-size: 12px; }
.task-deadline { font-size: 11px; color: var(--text-muted); }
.task-card .task-status-bar {
  margin-top: 10px; height: 6px; border-radius: 3px; background: var(--bg-secondary); overflow: hidden;
}
.task-card .task-status-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #0ea5e9, #7c3aed);
  transition: width var(--transition-normal);
}

/* ========== Task Detail ========== */
.task-detail-header {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 28px 32px; margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.task-detail-header .task-status-row { margin-bottom: 12px; display: flex; gap: 8px; align-items: center; }
.task-status {
  padding: 4px 14px; border-radius: 10px; font-size: 12px; font-weight: 600;
}
.task-status.ongoing { background: rgba(16,185,129,0.08); color: #10b981; }
.task-status.closed  { background: rgba(148,163,184,0.1); color: #94a3b8; }
.task-detail-header h1 { font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.task-detail-header .task-meta-row {
  display: flex; gap: 24px; flex-wrap: wrap; font-size: 13px; margin-bottom: 16px;
}
.task-meta-item { display: flex; align-items: center; gap: 6px; color: var(--text-secondary); }
.task-meta-item strong { color: var(--text-primary); }
.task-meta-item.reward { color: #ef4444; font-weight: 700; }

.task-detail-content {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 28px 32px; margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.task-detail-content h3 {
  font-size: 17px; font-weight: 700; margin: 24px 0 12px;
  padding-left: 12px; border-left: 3px solid var(--color-accent);
}
.task-detail-content h3:first-child { margin-top: 0; }
.task-detail-content p { font-size: 14px; line-height: 1.8; color: var(--text-primary); margin-bottom: 12px; }
.task-detail-content ul { padding-left: 20px; margin-bottom: 16px; }
.task-detail-content ul li { list-style: disc; padding: 4px 0; color: var(--text-primary); font-size: 14px; line-height: 1.7; }
.task-detail-content .task-info-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  margin: 16px 0; padding: 16px; background: var(--bg-secondary);
  border-radius: var(--radius-sm);
}
.task-detail-content .task-info-grid .info-item {
  font-size: 13px; display: flex; gap: 8px;
}
.task-detail-content .task-info-grid .info-item .label { color: var(--text-muted); flex-shrink: 0; }
.task-detail-content .task-info-grid .info-item .value { color: var(--text-primary); font-weight: 500; }

.task-apply-card {
  background: linear-gradient(135deg, #0a1628, #132244);
  border-radius: var(--radius-md); padding: 24px 28px; margin-bottom: 20px;
  position: relative; overflow: hidden;
}
.task-apply-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(14,165,233,0.12) 0%, transparent 60%);
}
.task-apply-card * { position: relative; z-index: 1; }
.task-apply-card h4 { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.task-apply-card p { color: rgba(255,255,255,0.6); font-size: 13px; margin-bottom: 14px; }
.task-apply-card .btn-apply {
  display: inline-block; padding: 10px 28px; border-radius: 8px;
  font-size: 14px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  transition: all var(--transition-fast);
}
.task-apply-card .btn-apply:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(244,63,94,0.3); }

/* ========== Announcement List ========== */
.announce-list-item {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 20px 24px;
  margin-bottom: 12px; transition: all var(--transition-fast);
  display: block; color: inherit;
}
.announce-list-item:hover {
  border-color: rgba(14,165,233,0.2);
  box-shadow: var(--shadow-md); transform: translateY(-1px);
}
.announce-list-item .announce-top-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap;
}
.announce-type {
  padding: 3px 10px; border-radius: 8px; font-size: 11px; font-weight: 600;
}
.announce-type.notice    { background: rgba(239,68,68,0.08);   color: #ef4444; }
.announce-type.rule      { background: rgba(245,158,11,0.08);  color: #f59e0b; }
.announce-type.feedback  { background: rgba(14,165,233,0.08);  color: #0ea5e9; }
.announce-type.recruit   { background: rgba(16,185,129,0.08);  color: #10b981; }
.announce-list-item h4 {
  font-size: 16px; font-weight: 700; margin-bottom: 6px;
  transition: color var(--transition-fast);
}
.announce-list-item:hover h4 { color: var(--color-accent); }
.announce-list-item p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.announce-list-item .announce-meta {
  margin-top: 10px; font-size: 11px; color: var(--text-muted);
  display: flex; gap: 16px; align-items: center;
}

/* ========== Online Users Strip ========== */
.online-strip {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 14px 18px; margin-bottom: 20px;
  font-size: 12px; color: var(--text-muted); display: flex; align-items: center;
  gap: 10px; flex-wrap: wrap; box-shadow: var(--shadow-sm);
}
.online-strip .online-label { font-weight: 600; color: var(--text-secondary); white-space: nowrap; }
.online-strip .online-avatars { display: flex; gap: 2px; }
.online-avatars span {
  width: 18px; height: 18px; border-radius: 50%; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}

/* ========== Forum Sidebar Widgets ========== */
.forum-sidebar-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
.forum-sidebar-stat {
  background: var(--bg-secondary); border-radius: var(--radius-sm);
  padding: 12px 10px; text-align: center;
}
.forum-sidebar-stat strong {
  display: block; font-size: 18px; font-weight: 800; color: var(--color-accent);
}
.forum-sidebar-stat span { font-size: 11px; color: var(--text-muted); }

.mod-list { display: flex; flex-direction: column; gap: 8px; }
.mod-list-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-secondary);
}
.mod-list-item .mod-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; background: linear-gradient(135deg, #0ea5e9, #7c3aed); color: #fff;
}

/* Similar threads card */
.similar-thread-item {
  display: flex; gap: 8px; padding: 8px 0;
  border-bottom: 1px solid var(--border-light); font-size: 13px;
  color: var(--text-secondary); transition: all var(--transition-fast);
}
.similar-thread-item:last-child { border-bottom: none; }
.similar-thread-item:hover { color: var(--color-accent); padding-left: 4px; }
.similar-thread-item .sim-replies { font-size: 11px; color: var(--text-muted); flex-shrink: 0; }

/* ========== Forum Home Banner ========== */
.forum-home-intro {
  background: linear-gradient(135deg, #0a1628, #132244);
  border-radius: var(--radius-xl); padding: 40px 44px; margin-bottom: 32px;
  position: relative; overflow: hidden;
}
.forum-home-intro::after {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,233,0.15) 0%, transparent 70%);
}
.forum-home-intro * { position: relative; z-index: 1; }
.forum-home-intro h2 { font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.forum-home-intro p { color: rgba(255,255,255,0.6); font-size: 14px; max-width: 600px; line-height: 1.7; }
.forum-home-intro .forum-home-stats {
  display: flex; gap: 32px; margin-top: 20px;
}
.forum-home-stats .home-stat strong {
  font-size: 22px; font-weight: 800; color: #38bdf8; display: block;
}
.forum-home-stats .home-stat span { font-size: 12px; color: rgba(255,255,255,0.5); }

/* ========== Responsive: Forum ========== */
@media (max-width: 1199px) {
  .forum-home-grid { grid-template-columns: 1fr; }
  .task-grid { grid-template-columns: 1fr; }
  .subforum-grid { grid-template-columns: repeat(2, 1fr); }
  .post-sidebar { width: 140px; padding: 16px 12px; }
}

@media (max-width: 991px) {
  .post-item { flex-direction: column; }
  .post-sidebar {
    width: 100%; border-right: none; border-bottom: 1px solid var(--border-light);
    padding: 16px; display: flex; align-items: center; gap: 12px; text-align: left;
  }
  .post-sidebar .post-avatar { width: 40px; height: 40px; font-size: 18px; margin: 0; }
  .post-sidebar .post-user-badges, .post-sidebar .post-user-stats { display: none; }
  .post-body { padding: 16px 18px; }
  .task-detail-content .task-info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .board-card-large { flex-direction: column; padding: 20px; }
  .forum-home-intro { padding: 28px 24px; }
  .forum-home-stats { gap: 20px; flex-wrap: wrap; }
  .subforum-grid { grid-template-columns: 1fr; }
  .thread-table-wrap { overflow-x: auto; }
  .thread-detail-header h1 { font-size: 20px; }
  .quick-reply-wrap { padding: 18px; }
  .quick-reply-toolbar { flex-direction: column; align-items: flex-start; }
  .announce-list-item { padding: 16px; }
}
