/* 南模 Student ID · 用户社区（user.nymf.top）共用样式
   设计语言沿用主站：南模红品牌、卡片圆角、柔和阴影、系统字体、手机友好 */
:root {
  --brand: #b4232c;
  --brand-2: #8f1a22;
  --brand-grad: linear-gradient(120deg, #7d151d 0%, #b4232c 55%, #c92832 100%);
  --fg: #1f2430;
  --muted: #6b7280;
  --border: #e8eaef;
  --bg: #f4f5f9;
  --card: #fff;
  --radius: 18px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 1px 2px rgba(20,24,40,.03), 0 8px 24px rgba(20,24,40,.05);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--fg); background: var(--bg); font-size: 14px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* 顶部导航 */
.topbar {
  height: 60px; background: #fff; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 22px; padding: 0 26px;
  position: sticky; top: 0; z-index: 30;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.brand img { width: 30px; height: 30px; object-fit: contain; }
.brand small { display: block; font-size: 10px; font-weight: 500; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 14px; border-radius: 9px; font-size: 13.5px; color: var(--muted); font-weight: 500; transition: .18s; }
.nav a:hover { background: var(--bg); color: var(--fg); }
.nav a.active { background: #fdecee; color: var(--brand); font-weight: 600; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.self-chip { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.self-chip .avatar { width: 30px; height: 30px; }
.btn-sm { border: 1px solid var(--border); background: #fff; border-radius: 9px; padding: 7px 13px; font-size: 12.5px; font-weight: 600; color: var(--fg); transition: .18s; }
.btn-sm:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-sm.primary:hover { background: var(--brand-2); }

.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--brand-grad); color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* 通用卡片 */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.muted { color: var(--muted); }
.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px; background: var(--bg); color: var(--muted); }
.tag.red { background: #fdecee; color: var(--brand); }
.tag.blue { background: #eff6ff; color: #1d4ed8; }
.tag.green { background: #ecfdf5; color: #047857; }
.tag.amber { background: #fffbeb; color: #b45309; }

.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #1f2430; color: #fff; padding: 11px 20px; border-radius: 11px; font-size: 13px;
  opacity: 0; pointer-events: none; transition: .25s var(--ease); z-index: 100; box-shadow: 0 12px 32px rgba(0,0,0,.2);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 720px) {
  .topbar { padding: 0 14px; gap: 10px; height: 56px; }
  .nav a { padding: 7px 9px; font-size: 12.5px; }
  .brand small { display: none; }
  .self-chip span.name { display: none; }
}
