/* ═══════════════════════════════════════════════
   威视界 · 分享软文「城论坛」风格
   配套 share.js（独立文件，避免改动全局 style.css）
   ═══════════════════════════════════════════════ */
.share-forum { --sf-accent: var(--accent-500); }

/* ── 论坛头（嵌入模块容器内，相对定位不吸顶） ── */
.share-forum .forum-top {
  position: relative; display: flex; align-items: center; gap: 18px;
  padding: 14px 20px; border-radius: var(--radius-md); margin-bottom: 14px;
  background: linear-gradient(100deg, var(--brand-600), var(--brand-500) 60%, var(--accent-500));
  color: #fff; box-shadow: var(--shadow-md);
}
.share-forum .forum-top .brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; white-space: nowrap; }
.share-forum .forum-top .brand .logo { font-size: 22px; }
.share-forum .forum-top .brand small { font-size: 11px; font-weight: 500; opacity: .85; display: block; line-height: 1.2; }
.share-forum .forum-top .search { flex: 1; max-width: 520px; position: relative; }
.share-forum .forum-top .search input {
  width: 100%; padding: 9px 14px 9px 38px; border-radius: var(--radius-full);
  border: none; font-size: 14px; background: rgba(255,255,255,.92); color: var(--gray-800);
}
.share-forum .forum-top .search .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); opacity: .6; }
.share-forum .forum-top .top-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.share-forum .forum-top .btn-post {
  background: #fff; color: var(--brand-600); font-weight: 700; padding: 8px 16px;
  border-radius: var(--radius-full); font-size: 14px; display: flex; align-items: center; gap: 6px; box-shadow: var(--shadow-sm);
}
.share-forum .forum-top .btn-post:hover { background: var(--accent-50); }
.share-forum .forum-top .avatar-top {
  width: 36px; height: 36px; border-radius: var(--radius-full); background: rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center; font-weight: 700; border: 2px solid rgba(255,255,255,.5);
}

/* ── 版块导航 ── */
.share-forum .boards {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin-bottom: 6px; position: relative;
}
.share-forum .board-pill {
  padding: 7px 16px; border-radius: var(--radius-full); font-size: 14px; font-weight: 600;
  color: var(--gray-600); white-space: nowrap; background: var(--gray-100); transition: .15s;
}
.share-forum .board-pill:hover { background: var(--brand-50); color: var(--brand-600); }
.share-forum .board-pill.active { background: var(--brand-600); color: #fff; box-shadow: var(--shadow-sm); }

/* ── 主体布局 ── */
.share-forum .layout {
  display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start;
}
@media (max-width: 900px) {
  .share-forum .layout { grid-template-columns: 1fr; }
  .share-forum .sidebar { display: none; }
}

/* ── 排序条 + 平台筛选 ── */
.share-forum .sortbar { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.share-forum .sort-tab { font-size: 14px; font-weight: 700; color: var(--text-tertiary); padding-bottom: 4px; border-bottom: 2px solid transparent; cursor: pointer; }
.share-forum .sort-tab.active { color: var(--brand-600); border-color: var(--brand-600); }
.share-forum .platform-chips { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.share-forum .pchip { font-size: 12px; padding: 4px 12px; border-radius: var(--radius-full); background: var(--gray-100); color: var(--gray-600); cursor: pointer; }
.share-forum .pchip.active { background: var(--accent-50); color: var(--accent-600); font-weight: 700; }

/* ── 帖子列表行 ── */
.share-forum .threads { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.share-forum .thread {
  background: var(--bg-card); border-radius: var(--radius-md); padding: 16px 18px; display: flex; gap: 14px;
  box-shadow: var(--shadow-sm); transition: .15s; border: 1px solid transparent;
}
.share-forum .thread:hover { box-shadow: var(--shadow-lg); border-color: var(--brand-200); transform: translateY(-1px); }
.share-forum .t-avatar {
  width: 46px; height: 46px; border-radius: var(--radius-full); flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand-400), var(--accent-400)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; position: relative;
}
.share-forum .t-avatar .dot { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: var(--success-500); border: 2px solid #fff; }
.share-forum .t-main { flex: 1; min-width: 0; }
.share-forum .t-badges { display: flex; gap: 6px; margin-bottom: 5px; flex-wrap: wrap; }
.share-forum .tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 5px; line-height: 1.6; }
.share-forum .tag.top { background: #fef2f2; color: var(--error-500); }
.share-forum .tag.ess { background: var(--accent-50); color: var(--accent-600); }
.share-forum .tag.hot { background: #fff7ed; color: #ea580c; }
.share-forum .tag.cat { background: var(--brand-50); color: var(--brand-600); }
.share-forum .t-title { font-size: 16px; font-weight: 700; color: var(--gray-900); cursor: pointer; display: block; margin-bottom: 4px; }
.share-forum .t-title:hover { color: var(--brand-600); }
.share-forum .t-excerpt { font-size: 13px; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.share-forum .t-meta { margin-top: 8px; font-size: 12px; color: var(--text-tertiary); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.share-forum .t-meta .author { color: var(--gray-600); font-weight: 600; }
.share-forum .t-stats { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding-left: 14px; border-left: 1px solid var(--gray-100); min-width: 62px; }
.share-forum .t-stats .stat { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.share-forum .t-stats .stat b { font-size: 16px; color: var(--brand-600); }
.share-forum .t-stats .stat span { font-size: 11px; color: var(--text-tertiary); }
.share-forum .t-stats .stat.view b { color: var(--gray-500); }

/* ── 侧边栏 ── */
.share-forum .sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; }
.share-forum .widget { background: var(--bg-card); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-sm); }
.share-forum .widget h4 { font-size: 14px; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; color: var(--gray-800); }
.share-forum .widget h4 .bar { width: 4px; height: 15px; border-radius: 2px; background: var(--brand-500); }
.share-forum .cta-big {
  background: linear-gradient(120deg, var(--brand-600), var(--brand-500)); color: #fff; border-radius: var(--radius-md);
  padding: 16px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-md); cursor: pointer;
}
.share-forum .cta-big .big { font-size: 17px; font-weight: 800; }
.share-forum .cta-big .sub { font-size: 12px; opacity: .85; }
.share-forum .cta-big .plus { margin-left: auto; font-size: 26px; font-weight: 300; }
.share-forum .hot-list { list-style: none; counter-reset: hot; display: flex; flex-direction: column; gap: 10px; }
.share-forum .hot-list li { counter-increment: hot; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--gray-700); cursor: pointer; line-height: 1.5; }
.share-forum .hot-list li:hover { color: var(--brand-600); }
.share-forum .hot-list li::before { content: counter(hot); font-weight: 800; font-size: 13px; color: #fff; background: var(--gray-300); width: 20px; height: 20px; border-radius: 5px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.share-forum .hot-list li:nth-child(1)::before { background: var(--error-500); }
.share-forum .hot-list li:nth-child(2)::before { background: var(--accent-500); }
.share-forum .hot-list li:nth-child(3)::before { background: var(--warning-500); }
.share-forum .ess-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.share-forum .ess-list li { font-size: 13px; display: flex; gap: 7px; align-items: center; color: var(--gray-700); cursor: pointer; }
.share-forum .ess-list li:hover { color: var(--accent-600); }
.share-forum .ess-list .star { color: var(--accent-500); }
.share-forum .user-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.share-forum .user-row .ua { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-400), var(--brand-400)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.share-forum .user-row .un { font-size: 13px; font-weight: 700; }
.share-forum .user-row .ud { font-size: 11px; color: var(--text-tertiary); }
.share-forum .rule-box { font-size: 12px; color: var(--text-secondary); background: var(--gray-50); border-radius: var(--radius-sm); padding: 12px; line-height: 1.7; }
.share-forum .rule-box b { color: var(--brand-600); }

/* ── 帖子详情 ── */
.share-forum .detail-view { max-width: none; margin: 0; }
.share-forum .back-btn { font-size: 14px; color: var(--brand-600); font-weight: 600; margin-bottom: 16px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.share-forum .post-card { background: var(--bg-card); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-sm); }
.share-forum .post-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.share-forum .post-head .pa { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-400), var(--accent-400)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 19px; }
.share-forum .post-head .pn { font-weight: 700; font-size: 15px; }
.share-forum .post-head .pm { font-size: 12px; color: var(--text-tertiary); }
.share-forum .post-title { font-size: 23px; font-weight: 800; margin-bottom: 14px; line-height: 1.4; }
.share-forum .post-body { font-size: 15px; color: var(--gray-700); line-height: 1.9; white-space: pre-wrap; word-break: break-word; }
.share-forum .post-actions { display: flex; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--gray-100); flex-wrap: wrap; }
.share-forum .act-btn { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--gray-600); padding: 8px 16px; border-radius: var(--radius-full); background: var(--gray-100); cursor: pointer; }
.share-forum .act-btn:hover { background: var(--brand-50); color: var(--brand-600); }
.share-forum .act-btn.liked { background: #fef2f2; color: var(--error-500); }
.share-forum .reply-head { margin: 24px 0 14px; font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.share-forum .reply-head .cnt { color: var(--brand-600); }
.share-forum .reply { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--gray-100); }
.share-forum .reply .ra { width: 40px; height: 40px; border-radius: 50%; background: var(--gray-200); color: var(--gray-600); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.share-forum .reply .rc { flex: 1; min-width: 0; }
.share-forum .reply .rmeta { font-size: 12px; color: var(--text-tertiary); margin-bottom: 4px; }
.share-forum .reply .rmeta .rn { color: var(--gray-700); font-weight: 700; font-size: 13px; margin-right: 8px; }
.share-forum .reply .rtext { font-size: 14px; color: var(--gray-700); line-height: 1.7; word-break: break-word; }
.share-forum .reply .rlike { font-size: 12px; color: var(--text-tertiary); margin-top: 6px; display: inline-flex; gap: 5px; align-items: center; }
.share-forum .reply .rlike:hover { color: var(--error-500); }
.share-forum .reply-box { margin-top: 18px; display: flex; gap: 10px; align-items: flex-start; }
.share-forum .reply-box textarea { flex: 1; border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 12px; font-family: inherit; font-size: 14px; resize: vertical; min-height: 60px; }
.share-forum .reply-box .send { align-self: flex-end; background: var(--brand-600); color: #fff; font-weight: 700; padding: 10px 22px; border-radius: var(--radius-full); cursor: pointer; }
.share-forum .reply-box .send:disabled { opacity: .5; cursor: default; }
