:root{
  --bg:#070b14;
  --panel:#0c1426;
  --panel2:#0b1220;
  --line:rgba(255,255,255,.12);
  --text:#e8eefc;
  --muted:rgba(232,238,252,.70);
  --accent:#66e3a5;
  --accent2:#7bb6ff;
  --warn:#ffcc66;
  --shadow: 0 18px 55px rgba(0,0,0,.45);
  --radius: 18px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--sans);
  color:var(--text);
  background:
    radial-gradient(1100px 700px at 20% 10%, rgba(123,182,255,.18), transparent 55%),
    radial-gradient(900px 600px at 80% 20%, rgba(102,227,165,.14), transparent 55%),
    linear-gradient(180deg, #050812, var(--bg));
}
code{font-family:var(--mono); color:#d5e1ff}

.topbar{
  position:sticky; top:0; z-index:20;
  display:flex; justify-content:space-between; gap:14px;
  padding:14px 16px;
  background: rgba(5,8,18,.72);
  border-bottom:1px solid var(--line);
  backdrop-filter: blur(10px);
}
.topbar-left{display:flex; flex-direction:column; gap:10px; min-width:0}
.brand-title{font-size:18px; font-weight:900; letter-spacing:.6px}
.brand-sub{margin-top:4px; color:var(--muted); font-size:12px}
.notice{display:flex; gap:10px; align-items:flex-start; min-width:0}
.notice-badge{
  flex:0 0 auto;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,204,102,.30);
  background: rgba(255,204,102,.12);
  color:#ffe6b0;
  font-weight:900;
  font-size:12px;
}
.notice-text{color:var(--muted); font-size:12px; line-height:1.7; min-width:0}
.copy-btn{
  margin:0 6px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(102,227,165,.35);
  background: rgba(102,227,165,.10);
  color: var(--text);
  cursor:pointer;
  font-weight:900;
}
.copy-btn:hover{background: rgba(102,227,165,.18)}
.copy-hint{margin-left:8px; font-size:12px; color:var(--accent)}
.topbar-right{display:flex; gap:10px; align-items:flex-start; flex:0 0 auto}
.pill{
  padding:9px 12px;
  border-radius:999px;
  border:1px solid rgba(123,182,255,.35);
  background: rgba(123,182,255,.12);
  color:#d9e8ff;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
}
.pill.ghost{
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  cursor:default;
}

.wrap{
  max-width: 1200px;
  margin: 0 auto;
  padding:16px;
  display:grid;
  grid-template-columns: 360px 1fr;
  gap:14px;
}
@media (max-width: 980px){
  .wrap{grid-template-columns:1fr}
  .topbar{flex-direction:column; align-items:flex-start}
  .topbar-right{width:100%}
}

.card{
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
}
.sidebar .card{padding:14px}
.content .card{padding:0}

.card-title{font-weight:900}
.card-sub{margin-top:6px; color:var(--muted); font-size:12px; line-height:1.6}

.cat-list{margin-top:10px; display:flex; flex-direction:column; gap:10px}
.cat-btn{
  width:100%;
  text-align:left;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(11,18,32,.38);
  color:var(--text);
  cursor:pointer;
  font-weight:900;
}
.cat-btn:hover{border-color: rgba(102,227,165,.35); background: rgba(11,18,32,.52)}
.cat-btn.active{
  border-color: rgba(102,227,165,.55);
  background: rgba(102,227,165,.10);
}

.ops{margin-top:12px; display:flex; gap:10px; flex-wrap:wrap}
.btn{
  padding:9px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor:pointer;
  font-weight:900;
  font-size:12px;
}
.btn:hover{border-color: rgba(123,182,255,.35); background: rgba(123,182,255,.10)}
.btn.ghost{background: transparent}

.footnote{
  margin-top:12px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(11,18,32,.26);
  color:var(--muted);
  font-size:12px;
  line-height:1.7;
}

.head{
  padding:16px;
  border-bottom:1px solid var(--line);
  display:flex; justify-content:space-between; gap:12px; align-items:flex-start;
}
.h1{font-size:16px; font-weight:900}
.h2{margin-top:6px; color:var(--muted); font-size:12px; line-height:1.7}
.meta{display:flex; flex-direction:column; gap:8px; color:var(--muted); font-size:12px}
.wechat-inline{
  display:inline-block;
  padding:2px 8px;
  border-radius:999px;
  border:1px solid rgba(102,227,165,.35);
  background: rgba(102,227,165,.10);
  color: var(--text);
  font-weight:900;
  cursor:pointer;
}

.body{padding:16px}

.empty{
  padding:18px;
  border-radius:14px;
  border:1px dashed rgba(255,255,255,.14);
  background: rgba(11,18,32,.24);
}
.empty-title{font-weight:900}
.empty-sub{margin-top:8px; color:var(--muted); font-size:12px; line-height:1.7}

.accordion{
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  overflow:hidden;
  background: rgba(11,18,32,.25);
  margin-bottom:12px;
}
.ac-head{
  display:flex; justify-content:space-between; align-items:center;
  padding:12px 12px;
  cursor:pointer;
  user-select:none;
}
.ac-name{font-weight:900}
.ac-meta{color:var(--muted); font-size:12px}
.ac-body{
  display:none;
  border-top:1px solid rgba(255,255,255,.08);
  padding:12px;
}
.accordion.open > .ac-body{display:block}

.item{
  padding:10px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(7,11,20,.48);
  margin-bottom:10px;
}
.item:last-child{margin-bottom:0}
.item-title{font-weight:900}
.item-desc{margin-top:6px; color:var(--muted); font-size:12px; line-height:1.7}
