:root {
  --bg: #0b0f19;
  --bg0: #0b0f19;
  --bg1: #111827;
  --card: #111827;
  --card2: rgba(17,24,39,.85);
  --border: rgba(51,65,85,.55);
  --nav-bg: rgba(11,15,25,.85);
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --muted: #9ca3af;
  --pri: #2563eb;
  --primary: #2563eb;
  --danger: #dc2626;
  --ok: #16a34a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a{color:#93c5fd;text-decoration:none}
a:hover{text-decoration:underline}

/* “标题”工具（## 等 Markdown 标题）仅在正文内容中显示为绿色 */
.topic-content h1,.topic-content h2,.topic-content h3,.topic-content h4,.topic-content h5,.topic-content h6,
.post-content h1,.post-content h2,.post-content h3,.post-content h4,.post-content h5,.post-content h6{color:var(--ok)}
.topic-content h1 a,.topic-content h2 a,.topic-content h3 a,.topic-content h4 a,.topic-content h5 a,.topic-content h6 a,
.post-content h1 a,.post-content h2 a,.post-content h3 a,.post-content h4 a,.post-content h5 a,.post-content h6 a{color:var(--ok)}

.container{
  max-width:1100px;
  margin:0 auto;
  padding:16px
}

.nav{
  background:var(--nav-bg);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid var(--border);
  box-shadow:0 2px 8px rgba(0,0,0,.1);
  position:sticky;
  top:0;
  z-index:1000
}

.nav .row{
  display:flex;
  align-items:center;
  gap:16px;
  justify-content:space-between;
  padding:12px 20px
}

.brand{font-weight:700}

.btn{
  display:inline-block;
  padding:8px 12px;
  border-radius:10px;
  border:1px solid #334155;
  background:#111827;
  color:var(--text);
  cursor:pointer
}
.btn:hover{filter:brightness(1.1)}
.btn-primary{background:var(--pri);border-color:var(--pri)}
.btn-danger{background:var(--danger);border-color:var(--danger)}
.btn-ghost{background:transparent}

.badge{
  display:inline-block;
  padding:2px 8px;
  border-radius:999px;
  font-size:12px;
  background:#1f2937;
  color:var(--text)
}

/* 首页主题卡片 */
.topic-cat-badge{
  display:inline-block;
  padding:3px 10px;
  border-radius:999px;
  font-size:11px;
  background:rgba(96,165,250,.12);
  color:#60a5fa;
  border:1px solid rgba(96,165,250,.2);
  text-decoration:none;
  white-space:nowrap;
  flex-shrink:0;
  line-height:1.3;
}
.topic-cat-badge:hover{
  background:rgba(96,165,250,.2);
  text-decoration:none;
}
.topic-card-title{
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  word-break:break-word;
}
.topic-card-meta{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  font-size:13px;
  color:#64748b;
}
.topic-meta-sep{ color:#94a3b8; }
@media(max-width:480px){
  .topic-card-meta{ font-size:12px; gap:6px; }
  .topic-cat-badge{ font-size:10px; padding:2px 8px; }
}

/* 用户前缀 / 联系方式 / 签名 */
.badge-prefix{
  background:rgba(96,165,250,.15);
  border:1px solid rgba(96,165,250,.3);
}
.user-contact{margin-left:6px;}
.user-signature{
  margin-top:8px;
  padding-top:8px;
  border-top:1px solid #1f2937;
}
.user-signature p{margin:0;}

.card{
  background:var(--card);
  border:1px solid #1f2937;
  border-radius:16px;
  padding:12px;
  margin:10px 0
}

.grid{
  display:grid;
  grid-template-columns:280px 1fr;
  gap:12px
}
@media (max-width:900px){
  .grid{grid-template-columns:1fr}
}

.input,.textarea,.select{
  width:100%;
  padding:10px;
  border-radius:12px;
  border:1px solid #334155;
  background:#0b1220;
  color:var(--text)
}

.textarea{min-height:160px}

.small{
  font-size:13px;
  color:var(--muted)
}

.table{
  width:100%;
  border-collapse:collapse
}

.table th,.table td{
  padding:8px;
  border-bottom:1px solid #1f2937;
  text-align:left;
  font-size:13px
}

.kbd{
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  background:#0b1220;
  border:1px solid #334155;
  border-radius:8px;
  padding:2px 6px;
  font-size:12px
}

hr{
  border:0;
  border-top:1px solid #1f2937;
  margin:18px 0
}

.user-link{
  text-decoration: underline;
  cursor: pointer;
}
.user-link:hover{
  opacity:.85;
}


/* cache-bust: v1776242946 */
