/* BBS — Twitter feed + compact comment replies */
.page-bbs main.container {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}
.bbs-shell {
  width: min(600px, 100%);
  margin: 0 auto;
  min-height: calc(100vh - 120px);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: var(--bg);
}
.bbs-topbar {
  position: sticky;
  top: 52px;
  z-index: 50;
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.bbs-topbar-inner { padding: 12px 16px 4px; }
.bbs-topbar-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
}
.bbs-topbar-desc {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}
.bbs-tabs {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border);
}
.bbs-tabs::-webkit-scrollbar { display: none; }
.bbs-tab {
  flex: 1;
  min-width: 0;
  padding: 14px 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: color 0.15s, background 0.15s;
}
.bbs-tab:hover { background: rgba(255, 255, 255, 0.03); color: var(--text); }
.bbs-tab.is-active { color: var(--text); font-weight: 700; }
.bbs-tab.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 56px;
  height: 4px;
  border-radius: 4px 4px 0 0;
  background: var(--accent);
}
.bbs-topbar-foot {
  padding: 6px 16px 8px;
  border-bottom: 1px solid var(--border);
}
.bbs-status { font-size: 12px; color: var(--text-muted); }
.bbs-feed { display: flex; flex-direction: column; }
.bbs-thread {
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}
.bbs-thread:hover { background: rgba(255, 255, 255, 0.02); }

/* —— 主贴：推文样式 —— */
.bbs-post {
  display: flex;
  gap: 12px;
  padding: 12px 16px 8px;
  align-items: flex-start;
}
.bbs-post-avatar { flex-shrink: 0; width: 40px; }
.bbs-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}
.bbs-post-body { flex: 1; min-width: 0; }
.bbs-post-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
  line-height: 1.3;
}
.bbs-post-name { font-size: 15px; font-weight: 700; color: var(--text); }
.bbs-post-handle,
.bbs-post-time { font-size: 14px; color: var(--text-muted); }
.bbs-post-dot { color: var(--text-muted); font-size: 14px; }
.bbs-badge {
  margin-left: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--bbs-badge, var(--accent));
  background: color-mix(in srgb, var(--bbs-badge, var(--accent)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--bbs-badge, var(--accent)) 28%, transparent);
}
.bbs-post-text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 10px;
}
.bbs-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 360px;
  margin: 0 -8px 4px;
}
.bbs-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 13px;
}
.bbs-action svg { width: 18px; height: 18px; fill: currentColor; }
.bbs-action--like { color: #ec4899; }

/* —— 回复区：紧凑评论样式 —— */
.bbs-comments {
  margin: 0 16px 14px 52px;
  padding-top: 4px;
  border-top: 1px solid rgba(96, 165, 250, 0.08);
}
.bbs-comments-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 10px 0 8px;
  letter-spacing: 0.02em;
}
.bbs-comments-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bbs-comment {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.bbs-comment.is-hidden { display: none; }
.bbs-comment-avatar {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  margin-top: 2px;
}
.bbs-comment-bubble {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--bg-panel);
  border: 1px solid rgba(96, 165, 250, 0.1);
}
.bbs-comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
  line-height: 1.2;
}
.bbs-comment-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.bbs-comment-tag {
  font-size: 11px;
  color: var(--text-muted);
}
.bbs-comment-dot { font-size: 11px; color: var(--text-muted); }
.bbs-comment-time { font-size: 11px; color: var(--text-muted); }
.bbs-comment-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  word-break: break-word;
}
.bbs-comment-like {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  color: #ec4899;
}
.bbs-more-replies {
  display: inline-block;
  margin-top: 10px;
  padding: 0;
  border: none;
  background: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.bbs-more-replies:hover,
.bbs-more-replies:focus-visible {
  color: var(--cyan);
  text-decoration: underline;
  outline: none;
}
.bbs-more-replies--collapse { color: var(--text-muted); font-weight: 500; }
.bbs-more-replies--collapse:hover { color: var(--text); }
.bbs-retry {
  margin-top: 12px;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-panel);
  color: var(--accent);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
}
.bbs-retry:hover { border-color: var(--accent); }

.bbs-loading,
.bbs-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 24px;
  color: var(--text-muted);
  font-size: 15px;
  text-align: center;
}
.bbs-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: bbs-spin 0.7s linear infinite;
}
@keyframes bbs-spin { to { transform: rotate(360deg); } }
.bbs-foot {
  padding: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.bbs-foot p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
@media (max-width: 640px) {
  .bbs-shell { border-left: none; border-right: none; }
  .bbs-topbar { top: 48px; }
  .bbs-post { padding-left: 12px; padding-right: 12px; }
  .bbs-comments { margin-left: 44px; margin-right: 12px; }
  .bbs-avatar { width: 36px; height: 36px; font-size: 14px; }
  .bbs-post-avatar { width: 36px; }
}
