/* DevPicks 站点基础样式（零构建依赖，替代 Tailwind）
   命名采用 Tailwind 常用类名以贴近原 UI，页面模板直接引用 */
:root {
  --primary: #2563eb;
  --primary-dark: #60a5fa;
  --bg: #f9fafb;
  --bg-dark: #111827;
  --card: #ffffff;
  --card-dark: #1f2937;
  --border: #e5e7eb;
  --border-dark: #374151;
  --text: #111827;
  --text-dark: #f9fafb;
  --muted: #6b7280;
  --muted-dark: #9ca3af;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }

@media (prefers-color-scheme: dark) {
  body { background: var(--bg-dark); color: var(--text-dark); }
  .card { background: var(--card-dark); border-color: var(--border-dark); }
}

/* 布局容器 */
.min-h-screen { min-height: 100vh; }
.max-w-7xl { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
.max-w-5xl { max-width: 64rem; margin: 0 auto; padding: 0 1rem; }
.max-w-3xl { max-width: 48rem; margin: 0 auto; padding: 0 1rem; }
.max-w-xl { max-width: 36rem; margin: 0 auto; padding: 0 1rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.ml-auto { margin-left: auto; }

/* 文本 */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.text-gray-500 { color: var(--muted); }
.text-gray-600 { color: var(--muted); }
.text-gray-400 { color: var(--muted); }
.text-blue-600 { color: var(--primary); }
.text-blue-500 { color: var(--primary); }
.text-yellow-500 { color: #eab308; }
.whitespace-nowrap { white-space: nowrap; }

@media (prefers-color-scheme: dark) {
  .text-gray-500, .text-gray-600, .text-gray-400 { color: var(--muted-dark); }
  .text-blue-600, .text-blue-500 { color: var(--primary-dark); }
}

/* 布局 */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.min-w-0 { min-width: 0; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }

/* 网格 */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (min-width: 768px) { .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } .lg\:grid-cols-9 { grid-template-columns: repeat(9, minmax(0, 1fr)); } }
@media (min-width: 640px) { .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sm\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* 卡片 */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 0.5rem; padding: 1rem; transition: box-shadow 0.15s; }
.card:hover { box-shadow: 0 4px 6px rgba(0,0,0,0.07); }
.p-0 { padding: 0; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.border-0 { border: 0; }
.shadow-none { box-shadow: none; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }
.bg-white { background: var(--card); }
.bg-gray-50 { background: var(--bg); }
.hover\:shadow-md:hover { box-shadow: 0 8px 16px rgba(0,0,0,0.1); }
.transition-shadow { transition: box-shadow 0.15s; }
.transition-colors { transition: color 0.15s, background-color 0.15s, border-color 0.15s; }

/* 头像 */
.avatar { border-radius: 9999px; object-fit: cover; flex-shrink: 0; }
.avatar-fallback { border-radius: 9999px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: linear-gradient(135deg, #60a5fa, #6366f1); color: #fff; font-weight: 600; user-select: none; }
.w-10 { width: 2.5rem; height: 2.5rem; }
.h-10 { width: 2.5rem; height: 2.5rem; }
.w-16 { width: 4rem; height: 4rem; }
.h-16 { width: 4rem; height: 4rem; }
.w-2 { width: 0.5rem; }
.h-2 { height: 0.5rem; }
.w-3 { width: 0.75rem; }
.h-3 { height: 0.75rem; }
.w-full { width: 100%; }
.h-64 { height: 16rem; }
.w-10 { width: 2.5rem; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.375rem 1rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 500; cursor: pointer; border: 1px solid var(--border); background: var(--card); color: var(--text); transition: all 0.15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0,0,0,0.08); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-sm { padding: 0.25rem 0.75rem; font-size: 0.75rem; }
.btn-lg { padding: 0.625rem 1.5rem; font-size: 1rem; }
.sticky { position: sticky; }
.top-4 { top: 1rem; }
.btn-active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* 输入框 */
.input { width: 100%; padding: 0.5rem 0.875rem; border: 1px solid var(--border); border-radius: 0.5rem; background: var(--card); color: var(--text); font-size: 0.875rem; outline: none; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(37,99,235,0.15); }
.input-sm { padding: 0.375rem 0.75rem; }
.input-lg { padding: 0.75rem 1rem; font-size: 1rem; }
select.input { appearance: auto; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: var(--card); border-bottom: 1px solid var(--border); }
.header-inner { max-width: 80rem; margin: 0 auto; padding: 0 1rem; height: 4rem; display: flex; align-items: center; justify-content: space-between; }
.header-logo { font-size: 1.25rem; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 0.5rem; }
.header-search { flex: 1; max-width: 32rem; margin: 0 2rem; }
.header-nav { display: none; gap: 1.5rem; font-size: 0.875rem; color: var(--muted); }
@media (min-width: 768px) { .header-nav { display: flex; } }
.header-nav a:hover { color: var(--primary); }
.header-nav a.active { color: var(--primary); font-weight: 600; }

/* Footer */
.footer { background: var(--card); border-top: 1px solid var(--border); margin-top: 3rem; }
.footer-inner { max-width: 80rem; margin: 0 auto; padding: 2rem 1rem; text-align: center; font-size: 0.875rem; color: var(--muted); }
.footer p + p { margin-top: 0.25rem; }

/* 标签 chip */
.chip { display: inline-block; padding: 0.125rem 0.625rem; border-radius: 9999px; font-size: 0.75rem; background: #eff6ff; color: var(--primary); }
.chip:hover { background: #dbeafe; }
@media (prefers-color-scheme: dark) { .chip { background: #1e3a8a; color: var(--primary-dark); } .chip:hover { background: #1e40af; } }

/* 热度角标（今日 Star 增长） */
.surge-badge { flex-shrink: 0; padding: 0.0625rem 0.5rem; border-radius: 9999px; font-size: 0.6875rem; font-weight: 600; background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
@media (prefers-color-scheme: dark) { .surge-badge { background: #450a0a; color: #f87171; border-color: #7f1d1d; } }

/* 列表行指标列（榜单维度数值，靠右） */
.list-metric { text-align: right; flex-shrink: 0; min-width: 5.5rem; }
.list-metric .metric-value { font-weight: 700; font-size: 1rem; color: var(--primary); }
.list-metric .metric-label { font-size: 0.6875rem; color: var(--muted); margin-top: 0.125rem; }

/* 统计网格（项目详情页） */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
@media (min-width: 768px) { .stat-grid { grid-template-columns: repeat(6, 1fr); } }
.stat-cell { background: var(--card); border: 1px solid var(--border); border-radius: 0.5rem; padding: 0.75rem 0.5rem; text-align: center; }
.stat-cell .stat-value { font-size: 1.125rem; font-weight: 700; }
.stat-cell .stat-label { font-size: 0.6875rem; color: var(--muted); margin-top: 0.25rem; }

/* 评分进度条 */
.score-bar { height: 0.5rem; border-radius: 9999px; background: var(--border); overflow: hidden; }
.score-bar > span { display: block; height: 100%; border-radius: 9999px; background: linear-gradient(90deg, var(--primary), #a855f7); }

/* 首页数据总览条 */
.stats-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stats-bar .stat { text-align: center; }
.stats-bar .stat b { font-size: 1.75rem; font-weight: 700; color: var(--primary); }
.stats-bar .stat span { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 0.25rem; }

/* 首页主标题：品牌渐变文字 */
.hero-title { background: linear-gradient(90deg, var(--primary), #a855f7); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 区块标题：左侧渐变竖条 + 标题 + 右侧更多链接（hover 箭头右移） */
.section-head { display: flex; align-items: center; gap: 0.625rem; margin-bottom: 1rem; }
.section-head::before { content: ''; flex-shrink: 0; width: 0.375rem; height: 1.375rem; border-radius: 9999px; background: linear-gradient(180deg, var(--primary), #a855f7); }
.section-head h2 { margin: 0; font-size: 1.375rem; font-weight: 700; }
.section-head .section-more { margin-left: auto; font-size: 0.875rem; color: var(--primary); white-space: nowrap; }
.section-head .section-more::after { content: '→'; display: inline-block; margin-left: 0.25rem; transition: transform 0.15s ease; }
.section-head .section-more:hover::after { transform: translateX(3px); }
/* 小号变体：tab 面板内标题 */
.section-head-sm h2 { font-size: 1.125rem; font-weight: 600; }
.section-head-sm::before { width: 0.3125rem; height: 1.125rem; }

/* 首页 tab 切换（今日热门/周飙升/新秀） */
.home-tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.home-tab { padding: 0.375rem 1rem; border-radius: 9999px; font-size: 0.875rem; border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer; }
.home-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.home-tab-panel[hidden] { display: none; }

/* README 目录 */
.toc { border: 1px solid var(--border); border-radius: 0.5rem; padding: 0.75rem 1rem; background: var(--card); font-size: 0.8125rem; }
.toc a { display: block; padding: 0.1875rem 0; color: var(--text); }
.toc a:hover { color: var(--primary); }
.toc a.toc-h3 { padding-left: 1.25rem; color: var(--muted); }

/* 对比页胜出项高亮 */
.compare-win { color: var(--primary); font-weight: 700; }
.compare-bar-wrap { height: 0.75rem; border-radius: 9999px; background: var(--border); overflow: hidden; }
.compare-bar-wrap > span { display: block; height: 100%; border-radius: 9999px; }

/* 对比页项目选择器 */
.compare-picker { position: relative; }
.compare-suggest { position: absolute; z-index: 30; top: 100%; left: 0; right: 0; margin-top: 0.25rem; background: var(--card); border: 1px solid var(--border); border-radius: 0.5rem; max-height: 18rem; overflow-y: auto; box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.compare-suggest-item { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.5rem 0.75rem; cursor: pointer; font-size: 0.875rem; }
.compare-suggest-item:hover { background: #eff6ff; }
@media (prefers-color-scheme: dark) { .compare-suggest-item:hover { background: #1e3a8a; } }

/* 对比页头部 VS 区：双方头像 + 名称 + VS 徽章 */
.compare-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: 1.5rem 0 1rem; }
.compare-vs-side { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-align: center; min-width: 0; }
.compare-vs-side .compare-vs-name { font-weight: 700; font-size: 1.05rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compare-vs-side .compare-vs-sub { font-size: 0.75rem; color: var(--muted); }
.compare-vs-badge { width: 3rem; height: 3rem; border-radius: 9999px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.875rem; color: #fff; background: linear-gradient(135deg, var(--primary), #a855f7); flex-shrink: 0; }

/* 对比表：三列（项目A值 / 指标名 / 项目B值）+ 相对差距条 */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 0.75rem 0.5rem; border-top: 1px solid var(--border); vertical-align: middle; }
.compare-table td:first-child { text-align: right; font-weight: 600; width: 33%; }
.compare-table td:last-child { text-align: left; font-weight: 600; width: 33%; }
.compare-table td.compare-metric { text-align: center; font-size: 0.8125rem; color: var(--muted); width: 34%; white-space: nowrap; }
.compare-table td.compare-bar-cell { padding-top: 0; border-top: 0; }
.compare-table tr.compare-row:first-child th, .compare-table tr.compare-row:first-child td { border-top: 0; }

/* 差距条：中间向两侧延伸，蓝=项目A 紫=项目B */
.compare-diff { display: flex; height: 0.375rem; gap: 0.125rem; }
.compare-diff > span { border-radius: 9999px; transition: width 0.3s; }
.compare-diff .diff-a { margin-left: auto; background: var(--primary); }
.compare-diff .diff-b { margin-right: auto; background: #a855f7; }

/* 关于页：hero 区与图标条目 */
.about-hero { text-align: center; padding: 2.5rem 1rem; margin-bottom: 2rem; background: linear-gradient(180deg, #eff6ff, transparent); border-radius: 0.75rem; }
@media (prefers-color-scheme: dark) { .about-hero { background: linear-gradient(180deg, #1e3a8a33, transparent); } }
.about-hero h1 { font-size: 2rem; font-weight: 700; }
.about-hero p { margin-top: 0.75rem; color: var(--muted); }
.about-item { display: flex; gap: 0.875rem; padding: 0.625rem 0; line-height: 1.6; }
.about-item .about-item-icon { flex-shrink: 0; width: 1.75rem; text-align: center; }
.about-item p { margin: 0; color: var(--muted); }

/* 项目详情页：版本动态条目 */
.release-item { padding: 0.75rem 0; border-top: 1px solid var(--border); }
.release-item:first-of-type { border-top: 0; padding-top: 0; }
.release-head { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.release-tag { font-weight: 600; font-size: 0.9375rem; color: var(--primary); }
.release-time { margin-left: auto; font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.release-notes { margin: 0.375rem 0 0; font-size: 0.8125rem; color: var(--muted); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* 项目详情页：安全公告警示条与级别标签 */
.advisory-banner { padding: 0.75rem 1rem; border-radius: 0.5rem; font-size: 0.875rem;
  background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.advisory-banner a { color: #991b1b; font-weight: 600; text-decoration: underline; }
.advisory-sev { display: inline-flex; align-items: center; padding: 0.125rem 0.5rem; border-radius: 9999px;
  font-size: 0.75rem; font-weight: 600; text-transform: capitalize; color: #fff; background: var(--muted); }
.advisory-sev.sev-critical { background: #dc2626; }
.advisory-sev.sev-high { background: #ea580c; }
.advisory-sev.sev-medium { background: #d97706; }
.advisory-sev.sev-low { background: #2563eb; }
@media (prefers-color-scheme: dark) {
  .advisory-banner { background: #7f1d1d33; border-color: #dc262666; color: #fca5a5; }
  .advisory-banner a { color: #fca5a5; }
}

/* 资讯流页：日期分隔条与条目卡 */
.news-date-divider { display: flex; align-items: center; gap: 0.75rem; margin: 1.5rem 0 0.75rem;
  font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.news-date-divider::before, .news-date-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.news-item { padding: 0.875rem 1rem; margin-bottom: 0.75rem; background: var(--card);
  border: 1px solid var(--border); border-radius: 0.5rem; transition: box-shadow 0.15s; }
.news-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.news-item-head { display: flex; align-items: flex-start; gap: 0.625rem; }
.news-title { flex: 1; min-width: 0; font-weight: 600; font-size: 0.9375rem; line-height: 1.5; color: var(--text); }
.news-title:hover { color: var(--primary); }
.news-summary { margin: 0.5rem 0 0; font-size: 0.8125rem; color: var(--muted); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.875rem; margin-top: 0.5rem;
  font-size: 0.75rem; color: var(--muted); }
.news-badge { flex-shrink: 0; display: inline-flex; align-items: center; padding: 0.125rem 0.5rem;
  border-radius: 9999px; font-size: 0.6875rem; font-weight: 600; color: #fff; background: var(--muted); }
.news-badge.src-hn { background: #ff6600; }
.news-badge.src-devto { background: #3b49df; }
.news-badge.src-devpicks { background: var(--primary); }
.news-project { display: inline-flex; align-items: center; gap: 0.375rem; margin-left: auto;
  padding: 0.125rem 0.625rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 500;
  color: var(--primary); background: #eff6ff; border: 1px solid #bfdbfe; }
.news-project:hover { background: #dbeafe; }
.news-project img { width: 1.125rem; height: 1.125rem; border-radius: 9999px; object-fit: cover; }

/* 首页：今日要闻单行条目 */
.digest-item { display: flex; align-items: center; gap: 0.625rem; padding: 0.5rem 0.75rem;
  border-radius: 0.375rem; font-size: 0.875rem; }
.digest-item + .digest-item { border-top: 1px solid var(--border); }
.digest-item:hover { background: #f3f4f6; }
.digest-title { flex: 1; min-width: 0; color: var(--text); }
.digest-title:hover { color: var(--primary); }
.digest-item .news-project { max-width: 40%; flex-shrink: 0; }
@media (prefers-color-scheme: dark) {
  .digest-item:hover { background: #37415155; }
}
@media (prefers-color-scheme: dark) {
  .news-project { background: #1e3a8a33; border-color: #3b82f666; }
  .news-project:hover { background: #1e3a8a66; }
}

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 0.375rem; margin-top: 2rem; flex-wrap: wrap; }
.page-btn { min-width: 2rem; height: 2rem; padding: 0 0.5rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 9999px; font-size: 0.875rem; border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer; transition: all 0.15s; }
.page-btn:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0,0,0,0.08); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.page-btn.disabled { opacity: 0.4; pointer-events: none; }
.pagination-info { text-align: center; font-size: 0.75rem; color: var(--muted); margin-top: 0.5rem; }

/* 排行/列表条 */
.list-item { display: flex; align-items: center; gap: 1rem; background: var(--card); border: 1px solid var(--border); border-radius: 0.5rem; padding: 1rem; }
.rank-num { font-size: 1.5rem; font-weight: 700; width: 2.5rem; text-align: center; flex-shrink: 0; }
.rank-num.top { color: #eab308; }
.rank-num.normal { color: var(--muted); }

/* 项目详情 README 内容（Markdown 渲染后） */
.prose { max-width: none; line-height: 1.7; font-size: 0.95rem; word-break: break-word; }
.prose h1, .prose h2, .prose h3, .prose h4 { margin-top: 1.5em; margin-bottom: 0.5em; font-weight: 700; }
.prose h1 { font-size: 1.5em; }
.prose h2 { font-size: 1.3em; }
.prose h3 { font-size: 1.1em; }
.prose p { margin: 0.75em 0; }
.prose ul, .prose ol { margin: 0.75em 0; padding-left: 1.5em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: 0.25em 0; }
.prose a { color: var(--primary); text-decoration: underline; }
.prose pre { background: #0f172a; color: #e2e8f0; padding: 0.875rem; border-radius: 0.5rem; overflow-x: auto; font-size: 0.85em; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }
.prose p code, .prose li code, .prose td code { background: rgba(0,0,0,0.06); padding: 0.125rem 0.375rem; border-radius: 0.25rem; }
.prose blockquote { border-left: 3px solid var(--border); padding-left: 1rem; color: var(--muted); margin: 1em 0; }
.prose img { max-width: 100%; height: auto; border-radius: 0.375rem; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; }
.prose th, .prose td { border: 1px solid var(--border); padding: 0.5rem 0.75rem; text-align: left; }
.prose th { background: rgba(0,0,0,0.04); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 1.5em 0; }
.prose details { margin: 0.75em 0; }
.prose summary { cursor: pointer; font-weight: 600; }

/* 标签页 */
.tabs { display: flex; border-bottom: 1px solid var(--border); }
.tab { padding: 0.75rem 1rem; font-size: 0.875rem; font-weight: 500; cursor: pointer; color: var(--muted); border: 0; background: transparent; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-bottom: 2px solid var(--primary); }

/* 加载/空状态 */
.empty { text-align: center; padding: 2rem 0; color: var(--muted); }
.loading { text-align: center; padding: 2rem 0; color: var(--muted); }

/* HTMX 刷新指示 */
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { display: inline-block; }
