/* ==========================================================
   轻语 QingYu · 用户名片卡 / 个人主页
   ========================================================== */
.msg-avatar { cursor: pointer; transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
.msg-avatar:hover { transform: translateY(-2px) scale(1.06); box-shadow: 0 8px 20px rgba(59, 108, 246, .24); }

/* ---------- 名片 ---------- */
.ucard {
  width: min(384px, 100%); border-radius: 22px; overflow: hidden; background: #fff;
  box-shadow: var(--shadow-lg); animation: modalIn .38s var(--ease) both; display: flex; flex-direction: column;
}
.ucard-cover {
  position: relative; height: 118px; flex: none;
  background:
    radial-gradient(120% 140% at 12% 0%, #6b8dff 0%, transparent 55%),
    radial-gradient(130% 130% at 92% 8%, #b07bff 0%, transparent 58%),
    linear-gradient(120deg, #3b6cf6, #6a5cff 55%, #46b2ff);
  background-size: cover; background-position: center;
}
.ucard-cover::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(16, 26, 50, .34));
}
.ucard-x {
  position: absolute; right: 10px; top: 10px; z-index: 2; color: #fff; background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .26); backdrop-filter: blur(6px);
}
.ucard-x:hover { background: rgba(255, 255, 255, .3); color: #fff; transform: scale(1.08); }

.ucard-body { position: relative; padding: 0 22px 20px; }
.uc-head { display: flex; gap: 14px; align-items: flex-start; margin-top: -40px; }
.uc-main { flex: 1; min-width: 0; padding-top: 46px; }
.ucard-av {
  width: 78px; height: 78px; border-radius: 24px; display: grid; place-items: center;
  font-size: 28px; font-weight: 700; color: #fff; letter-spacing: 1px;
  background: linear-gradient(140deg, hsl(var(--hue, 210) 78% 62%), hsl(calc(var(--hue, 210) + 34) 82% 55%));
  border: 3px solid #fff; box-shadow: 0 12px 28px rgba(26, 43, 86, .22);
}
.ucard-name-row { display: flex; align-items: center; gap: 9px; margin-top: 0; }
.ucard-name-row h3 { font-size: 18px; letter-spacing: .2px; }
.uc-state { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ink-3); }
.uc-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.uc-state.on i { background: var(--ok); animation: pulse 2s infinite; }
.uc-state.on b { color: var(--ok); font-weight: 600; }
.uc-state b { font-weight: 500; }
.uc-id { margin-top: 5px; font-size: 12px; color: var(--ink-3); letter-spacing: .3px; }
.uc-sign { margin-top: 11px; font-size: 13px; line-height: 1.6; color: var(--ink-2); min-height: 20px; }
.uc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.uc-chips span {
  font-size: 10.5px; padding: 3px 9px; border-radius: 999px; letter-spacing: .4px;
  background: rgba(59, 108, 246, .1); color: #3b6cf6; border: 1px solid rgba(59, 108, 246, .16);
}
.uc-chips span.gold { background: rgba(245, 158, 11, .12); color: #b4780a; border-color: rgba(245, 158, 11, .22); }
.uc-chips span.violet { background: rgba(124, 92, 255, .12); color: #6b4ddb; border-color: rgba(124, 92, 255, .2); }

.uc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 15px; }
.uc-stats > div { padding: 10px 6px; text-align: center; border-radius: 12px; background: #f5f8fe; border: 1px solid #eef2fb; }
.uc-stats b { display: block; font-size: 17px; color: #26356a; font-variant-numeric: tabular-nums; }
.uc-stats span { font-size: 10.5px; color: var(--ink-3); }

.uc-rows { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 12px; display: grid; gap: 9px; }
.uc-row { display: flex; gap: 12px; align-items: flex-start; }
.uc-k { flex: none; width: 38px; font-size: 11.5px; color: var(--ink-3); padding-top: 2px; }
.uc-v { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; word-break: break-word; }
.uc-actions { display: flex; gap: 10px; margin-top: 17px; }
.uc-actions button { flex: 1; }

/* ---------- 个人主页 ---------- */
.home-panel {
  width: min(760px, 100%); max-height: min(88vh, 860px); display: flex; flex-direction: column;
  background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg);
  animation: modalIn .4s var(--ease) both;
}
.home-cover {
  position: relative; height: 178px; flex: none;
  background:
    radial-gradient(110% 150% at 8% 0%, #6b8dff 0%, transparent 52%),
    radial-gradient(120% 140% at 95% 5%, #b07bff 0%, transparent 55%),
    linear-gradient(118deg, #2f5be0, #6a5cff 48%, #46b2ff);
  background-size: cover; background-position: center;
}
.home-cover::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 80% at 82% 18%, rgba(255, 255, 255, .22), transparent 70%),
    linear-gradient(180deg, rgba(0, 0, 0, .06), rgba(12, 20, 42, .42));
}
.home-x {
  position: absolute; right: 12px; top: 12px; z-index: 3; color: #fff; background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .26); backdrop-filter: blur(6px);
}
.home-x:hover { background: rgba(255, 255, 255, .3); color: #fff; }
.cover-btn {
  position: absolute; right: 12px; bottom: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; padding: 7px 12px; border-radius: 999px; color: #fff;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(8px);
  transition: all .2s var(--ease);
}
.cover-btn:hover { background: rgba(255, 255, 255, .32); transform: translateY(-1px); }

.home-head { display: flex; gap: 16px; padding: 0 26px; margin-top: -46px; position: relative; align-items: flex-start; z-index: 2; }
.home-av {
  width: 96px; height: 96px; border-radius: 28px; display: grid; place-items: center; flex: none;
  font-size: 34px; font-weight: 700; color: #fff;
  background: linear-gradient(140deg, hsl(var(--hue, 210) 78% 62%), hsl(calc(var(--hue, 210) + 34) 82% 55%));
  border: 3px solid #fff; box-shadow: 0 16px 34px rgba(20, 32, 64, .26);
}
.home-meta { flex: 1; min-width: 0; padding-top: 54px; }
.home-meta h2 { font-size: 20px; letter-spacing: .3px; color: var(--ink); }
.home-meta p#hm-id { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; letter-spacing: .3px; }
.home-meta p#hm-sign { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; line-height: 1.6; }
.home-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.home-chips span {
  font-size: 10.5px; padding: 3px 9px; border-radius: 999px;
  background: rgba(59, 108, 246, .1); color: #3b6cf6; border: 1px solid rgba(59, 108, 246, .16);
}
.home-chips span.gold { background: rgba(245, 158, 11, .12); color: #b4780a; border-color: rgba(245, 158, 11, .24); }
.home-chips span.violet { background: rgba(124, 92, 255, .12); color: #6b4ddb; border-color: rgba(124, 92, 255, .22); }
.home-actions { display: flex; gap: 8px; padding-top: 54px; }
.home-actions .btn-main { box-shadow: 0 10px 24px rgba(59, 108, 246, .26); }
.home-actions .btn-soft { background: #f2f6ff; color: var(--brand); border: 1px solid #dbe6ff; }
.home-actions .btn-soft:hover { background: #e9f0ff; }

.home-tabs { display: flex; gap: 6px; padding: 16px 26px 0; border-bottom: 1px solid var(--line); }
.htab {
  position: relative; padding: 9px 16px 13px; font-size: 13px; color: var(--ink-3); font-weight: 500;
  transition: color .2s var(--ease);
}
.htab:hover { color: var(--ink-2); }
.htab.active { color: var(--brand); font-weight: 600; }
.htab.active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  animation: tabIn .28s var(--ease) both;
}
@keyframes tabIn { from { transform: scaleX(.3); opacity: 0; } to { transform: none; opacity: 1; } }

.home-body { flex: 1; overflow-y: auto; padding: 20px 26px 26px; }
.home-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hc { padding: 14px 16px; border-radius: 14px; background: #f6f9ff; border: 1px solid #edf2fc; }
.hc span { font-size: 10.5px; color: var(--ink-3); letter-spacing: .4px; }
.hc p { margin-top: 6px; font-size: 13px; color: var(--ink); line-height: 1.6; word-break: break-word; }

.hm-moment-list { display: grid; gap: 12px; }
.hm-m { display: flex; gap: 12px; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.hm-m .hm-t { font-size: 13px; line-height: 1.65; color: var(--ink); word-break: break-word; }
.hm-m .hm-time { font-size: 11px; color: var(--ink-3); margin-top: 6px; }
.hm-m img { width: 92px; height: 92px; border-radius: 12px; object-fit: cover; }

.hm-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hst { padding: 16px; border-radius: 16px; background: linear-gradient(160deg, #f7faff, #eef3ff); border: 1px solid #e9effb; }
.hst b { display: block; font-size: 22px; color: #2b3a72; font-variant-numeric: tabular-nums; }
.hst span { font-size: 11px; color: var(--ink-3); }

.home-edit { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
.he-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.he-foot { display: flex; justify-content: flex-end; gap: 10px; }
.field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; font-size: 13px; line-height: 1.6; resize: vertical; transition: all .2s var(--ease);
}
.field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(59, 108, 246, .13); }

/* ---------- 通讯录：好友分组 ---------- */
.ct-tabs { display: flex; gap: 8px; padding: 0 24px 14px; flex: none; }
.ct-tab {
  font-size: 13px; padding: 8px 15px; border-radius: 999px; color: var(--ink-2);
  background: rgba(255, 255, 255, .72); border: 1px solid var(--line);
  transition: all .22s var(--ease); cursor: pointer;
}
.ct-tab:hover { color: var(--brand); border-color: rgba(59, 108, 246, .35); transform: translateY(-1px); }
.ct-tab.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  border-color: transparent; box-shadow: 0 10px 22px rgba(59, 108, 246, .28);
}
.ct-tab em { font-style: normal; font-size: 11px; margin-left: 3px; opacity: .85; }
.ct-tab em.on {
  display: inline-block; min-width: 17px; padding: 0 5px; border-radius: 999px;
  background: #ef4444; color: #fff; opacity: 1; animation: pulse 1.8s infinite;
}
.ct-sec {
  grid-column: 1 / -1; font-size: 12px; font-weight: 600; letter-spacing: .6px;
  color: var(--ink-3); margin: 8px 2px -4px;
}
.member-card .m-actions button[disabled] { opacity: .55; cursor: default; transform: none !important; }
.member-card .m-actions .ghost-btn { background: #fff; color: var(--ink-2); border: 1px solid var(--line); }
.member-card .m-actions .ghost-btn:hover { color: var(--danger, #ef4444); border-color: rgba(239, 68, 68, .35); }

@media (max-width: 900px) {
  .home-panel { max-height: 92vh; border-radius: 18px; }
  .home-head { flex-wrap: wrap; }
  .home-cards, .he-grid { grid-template-columns: 1fr; }
  .hm-stat-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================
   举报 / 风纪系统（v5）
   ========================================================== */

/* ---------- 消息操作按钮 ---------- */
.msg-tools {
  display: flex; gap: 6px; margin-top: 5px; opacity: 0; transition: opacity .2s var(--ease);
}
.msg-row:hover .msg-tools { opacity: 1; }
.msg-row.me .msg-tools { justify-content: flex-end; }
.msg-tool {
  font-size: 11px; line-height: 1; padding: 4px 8px; border-radius: 8px; cursor: pointer;
  color: var(--ink-3, #8a93a6); background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line, #e5e8ef); transition: all .18s var(--ease);
}
.msg-tool:hover { color: var(--brand); border-color: rgba(59, 108, 246, .4); background: #fff; transform: translateY(-1px); }
.msg-tool.danger:hover { color: #ef4444; border-color: rgba(239, 68, 68, .45); }

/* ---------- 举报弹窗 ---------- */
.report-card {
  width: min(430px, 100%); background: #fff; border-radius: 20px; padding: 20px 22px 18px;
  box-shadow: var(--shadow-lg); animation: modalIn .34s var(--ease) both;
}
.report-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.report-head h2 { font-size: 17px; font-weight: 700; margin: 0 0 4px; }
.report-head p { font-size: 12.5px; color: var(--ink-3, #8a93a6); margin: 0; }
.report-quote {
  margin: 14px 0 16px; padding: 11px 13px; border-radius: 12px; font-size: 13px; line-height: 1.5;
  color: var(--ink-2, #4a5468); background: #f5f7fc; border-left: 3px solid var(--brand, #3b6cf6);
  max-height: 96px; overflow: auto; white-space: pre-wrap; word-break: break-all;
}
.reason-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.reason-item {
  padding: 10px 12px; border-radius: 12px; font-size: 13px; text-align: left; cursor: pointer;
  color: var(--ink-2, #4a5468); background: #f7f9fd; border: 1px solid var(--line, #e5e8ef);
  transition: all .18s var(--ease);
}
.reason-item:hover { border-color: rgba(59, 108, 246, .38); transform: translateY(-1px); }
.reason-item.active {
  background: linear-gradient(135deg, var(--brand, #3b6cf6), var(--brand-2, #6a5cff));
  color: #fff; border-color: transparent; box-shadow: 0 8px 18px rgba(59, 108, 246, .26);
}
.report-card .field { margin-top: 14px; }
.report-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* ---------- 管理台 tab ---------- */
.admin-tabs { display: flex; gap: 8px; padding: 0 22px; margin: 2px 0 6px; flex: none; }
.admin-tab {
  padding: 8px 16px; border-radius: 10px 10px 0 0; font-size: 13.5px; font-weight: 600; cursor: pointer;
  color: var(--ink-3, #8a93a6); background: transparent; border: none; border-bottom: 2px solid transparent;
  transition: all .18s var(--ease); display: inline-flex; align-items: center; gap: 6px;
}
.admin-tab:hover { color: var(--brand, #3b6cf6); }
.admin-tab.active { color: var(--brand, #3b6cf6); border-bottom-color: var(--brand, #3b6cf6); background: rgba(59, 108, 246, .06); }
.admin-rep-badge {
  font-style: normal; font-size: 11px; min-width: 17px; text-align: center; padding: 1px 5px;
  border-radius: 999px; background: #ef4444; color: #fff; line-height: 1.4;
  animation: pulse 1.8s infinite;
}
.admin-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; }

/* ---------- 风纪列表 ---------- */
.disc-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 22px 12px;
}
.disc-sum { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--ink-2, #4a5468); }
.disc-sum b { color: var(--brand, #3b6cf6); font-size: 15px; }
.disc-tip { font-size: 11.5px; color: var(--ink-3, #8a93a6); }
.disc-list { display: flex; flex-direction: column; gap: 10px; padding: 0 22px 12px; }
.disc-list .empty-tip { padding: 26px 0; text-align: center; color: var(--ink-3, #8a93a6); font-size: 13px; }
.disc-item {
  border-radius: 14px; padding: 13px 15px; background: #fff; border: 1px solid var(--line, #e5e8ef);
  box-shadow: 0 2px 10px rgba(20, 32, 60, .04); transition: all .2s var(--ease);
}
.disc-item.pending { border-left: 3px solid #f59e0b; }
.disc-item.done { border-left: 3px solid #cbd5e1; opacity: .92; }
.disc-item:hover { box-shadow: 0 8px 22px rgba(20, 32, 60, .09); transform: translateY(-1px); }
.di-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.di-reason {
  font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  color: #b45309; background: #fef3c7; border: 1px solid #fde68a;
}
.di-when { font-size: 11.5px; color: var(--ink-3, #8a93a6); }
.di-line { font-size: 12.5px; color: var(--ink-2, #4a5468); line-height: 1.7; }
.di-line b { color: var(--ink-1, #1e2532); margin-right: 4px; font-weight: 600; }
.di-line.muted { color: var(--ink-3, #8a93a6); }
.di-quote {
  margin: 8px 0 2px; padding: 9px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.55;
  color: var(--ink-2, #4a5468); background: #f6f8fc; word-break: break-all; max-height: 84px; overflow: auto;
  white-space: pre-wrap;
}
.di-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.di-btn {
  font-size: 12px; padding: 6px 11px; border-radius: 9px; cursor: pointer;
  color: var(--ink-2, #4a5468); background: #f7f9fd; border: 1px solid var(--line, #e5e8ef);
  transition: all .17s var(--ease);
}
.di-btn:hover { color: var(--brand, #3b6cf6); border-color: rgba(59, 108, 246, .38); background: #fff; transform: translateY(-1px); }
.di-btn.ghost { opacity: .9; }
.di-btn.danger { color: #dc2626; }
.di-btn.danger:hover { background: #fef2f2; border-color: rgba(220, 38, 38, .4); color: #b91c1c; }
.di-btn:disabled { opacity: .5; cursor: default; transform: none; }
.di-result {
  margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--line, #e5e8ef);
  font-size: 12px; color: var(--ink-3, #8a93a6); display: flex; justify-content: space-between; gap: 8px;
}
.disc-history h3 {
  font-size: 13px; font-weight: 700; color: var(--ink-2, #4a5468); margin: 4px 22px 8px;
  display: flex; align-items: center; gap: 8px;
}
.disc-history h3::after { content: ''; flex: 1; height: 1px; background: var(--line, #e5e8ef); }

/* ---------- 群主徽章 ---------- */
.tag-owner {
  background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #fff;
  border-color: transparent; box-shadow: 0 4px 12px rgba(245, 158, 11, .34);
  font-weight: 700;
}
.member-card h4 .tag, .ph-tags .tag-owner { font-size: 10px; padding: 1px 6px; vertical-align: middle; }

/* ---------- 我的风纪档案 ---------- */
.credit-box { display: flex; align-items: center; gap: 14px; margin: 4px 0 14px; }
.credit-ring {
  width: 62px; height: 62px; flex: none; border-radius: 50%; display: grid; place-items: center;
  font-size: 21px; font-weight: 800; color: #16a34a;
  background: radial-gradient(circle at 50% 50%, #ecfdf5 0 58%, transparent 59%), conic-gradient(#22c55e 0 100%, #e5e8ef 0);
  box-shadow: 0 6px 16px rgba(34, 197, 94, .22);
  transition: all .3s var(--ease);
}
.credit-ring.warn { color: #b45309; background: radial-gradient(circle at 50% 50%, #fffbeb 0 58%, transparent 59%), conic-gradient(#f59e0b 0 100%, #e5e8ef 0); box-shadow: 0 6px 16px rgba(245, 158, 11, .24); }
.credit-ring.bad { color: #dc2626; background: radial-gradient(circle at 50% 50%, #fef2f2 0 58%, transparent 59%), conic-gradient(#ef4444 0 100%, #e5e8ef 0); box-shadow: 0 6px 16px rgba(239, 68, 68, .24); }
.credit-info b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.credit-info p { font-size: 12px; color: var(--ink-3, #8a93a6); margin: 0; }
.disc-stats { display: flex; gap: 10px; margin-bottom: 12px; }
.disc-stats span {
  flex: 1; text-align: center; font-size: 12px; color: var(--ink-3, #8a93a6);
  padding: 8px 6px; border-radius: 10px; background: #f7f9fd; border: 1px solid var(--line, #e5e8ef);
}
.disc-stats b { display: block; font-size: 16px; color: var(--ink-1, #1e2532); margin-bottom: 2px; }
.my-punish { display: flex; flex-direction: column; gap: 7px; max-height: 170px; overflow: auto; }
.my-punish .empty-tip { font-size: 12px; color: var(--ink-3, #8a93a6); padding: 8px 0; }
.mp-row {
  display: flex; align-items: center; gap: 9px; font-size: 12px; padding: 8px 10px;
  border-radius: 9px; background: #f9fafc; border: 1px solid var(--line, #e5e8ef);
}
.mp-type {
  font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px;
  color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; flex: none;
}
.mp-reason { flex: 1; color: var(--ink-2, #4a5468); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-row em { font-style: normal; font-size: 11px; color: var(--ink-3, #8a93a6); flex: none; }

/* ==========================================================
   风纪委员会（v6）
   ========================================================== */
.jury-panel {
  width: min(760px, 100%); max-height: min(88vh, 780px); display: flex; flex-direction: column;
  background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg);
  animation: modalIn .42s var(--ease) both;
}
.jury-head {
  display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; flex: none;
  background: linear-gradient(120deg, #14532d, #15803d 55%, #22c55e); color: #fff;
}
.jury-title { display: flex; align-items: center; gap: 13px; }
.jury-emblem {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3);
}
.jury-emblem .ico { color: #fff; }
.jury-title h2 { font-size: 16.5px; letter-spacing: .5px; }
.jury-title p { margin-top: 3px; font-size: 11px; color: rgba(255, 255, 255, .75); }
.jury-head .icon-btn { color: rgba(255, 255, 255, .88); }
.jury-head .icon-btn:hover { background: rgba(255, 255, 255, .18); color: #fff; }

.jury-me { display: flex; align-items: center; gap: 14px; padding: 14px 22px; flex: none; background: #f4f9f5; border-bottom: 1px solid #e6f2e8; }
.jury-badge-big {
  flex: none; padding: 9px 15px; border-radius: 12px; font-size: 13px; font-weight: 800; letter-spacing: .5px;
  color: #4b5563; background: #eef1f5; border: 1px solid #dfe4ea;
}
.jury-badge-big.trainee { color: #15803d; background: #e9f9ee; border-color: #b7ebc6; box-shadow: 0 6px 16px rgba(34, 197, 94, .18); }
.jury-badge-big.member { color: #1d4ed8; background: #e8efff; border-color: #c3d5fb; box-shadow: 0 6px 16px rgba(59, 108, 246, .18); }
.jury-badge-big.admin { color: #b45309; background: #fff7e6; border-color: #fcd9a2; box-shadow: 0 6px 16px rgba(245, 158, 11, .18); }
.jury-me-info { flex: 1; min-width: 0; }
.jury-me-info b { display: block; font-size: 14px; color: #16261b; margin-bottom: 3px; }
.jury-me-info p { font-size: 12px; color: #6b7a70; margin: 0; }
.jury-term { flex: none; font-size: 12px; color: #15803d; background: #fff; border: 1px solid #d7ecdc; padding: 6px 11px; border-radius: 9px; }

.jury-tabs { padding: 4px 22px 0; margin: 0; }
.jury-tabs .admin-tab.active { color: #15803d; border-bottom-color: #22c55e; background: rgba(34, 197, 94, .08); }
.jury-tabs .admin-tab:hover { color: #15803d; }
.jury-pane { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; }
.jury-pane .disc-toolbar { padding: 12px 22px 10px; }

/* 考试 */
.jury-exam-intro { padding: 16px 22px 6px; font-size: 12.5px; color: var(--ink-2, #4a5468); line-height: 1.65; }
.jury-exam-intro p { margin: 0; }
.jury-quiz { padding: 6px 22px 8px; display: flex; flex-direction: column; gap: 12px; }
.quiz-card {
  border: 1px solid var(--line, #e5e8ef); border-radius: 14px; padding: 14px 16px; background: #fbfcfe;
  transition: all .2s var(--ease);
}
.quiz-card:has(.quiz-opt.active) { border-color: rgba(34, 197, 94, .45); background: #fbfefc; }
.quiz-card.quiz-ok { border-color: #86efac; background: #f0fdf4; box-shadow: 0 6px 16px rgba(34, 197, 94, .12); }
.quiz-card.quiz-bad { border-color: #fca5a5; background: #fef2f2; }
.quiz-q { font-size: 13.5px; color: var(--ink-1, #1e2532); line-height: 1.6; margin: 0 0 10px; }
.quiz-q b { color: #15803d; margin-right: 4px; }
.quiz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quiz-opt {
  display: flex; align-items: center; gap: 8px; text-align: left; cursor: pointer;
  padding: 9px 11px; border-radius: 10px; font-size: 12.5px; line-height: 1.45;
  color: var(--ink-2, #4a5468); background: #fff; border: 1px solid var(--line, #e5e8ef);
  transition: all .16s var(--ease);
}
.quiz-opt:hover { border-color: rgba(34, 197, 94, .45); transform: translateY(-1px); }
.quiz-opt em {
  font-style: normal; flex: none; width: 19px; height: 19px; border-radius: 6px; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #15803d; background: #eef8f1; border: 1px solid #d6ecdb;
}
.quiz-opt.active { color: #fff; background: linear-gradient(135deg, #16a34a, #22c55e); border-color: transparent; box-shadow: 0 8px 18px rgba(34, 197, 94, .26); }
.quiz-opt.active em { color: #15803d; background: #fff; border-color: transparent; }
.jury-exam-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 22px 18px;
  border-top: 1px solid var(--line, #e5e8ef); flex: none; background: #fff;
}
.jury-exam-bar #jury-exam-score { font-size: 13px; font-weight: 700; color: #15803d; }

/* 规则 */
.jury-rules { padding: 16px 24px 22px; font-size: 13px; color: var(--ink-2, #4a5468); line-height: 1.85; }
.jury-rules h3 { font-size: 13.5px; color: #15803d; margin: 14px 0 6px; display: flex; align-items: center; gap: 8px; }
.jury-rules h3::before { content: ''; width: 4px; height: 14px; border-radius: 2px; background: #22c55e; }
.jury-rules ul { margin: 0; padding-left: 18px; }
.jury-rules li { margin-bottom: 6px; }
.jury-rules b { color: var(--ink-1, #1e2532); }

/* 头衔徽章 */
.tag.jury-trainee-flag {
  background: linear-gradient(135deg, #16a34a, #34d399); color: #fff; border-color: transparent;
  box-shadow: 0 4px 12px rgba(34, 197, 94, .32); font-weight: 700;
}
.tag.jury-member-flag, .tag.jury-admin-flag {
  background: linear-gradient(135deg, #2563eb, #60a5fa); color: #fff; border-color: transparent;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .28); font-weight: 700;
}
.jury-flag.jury-trainee-flag { background: #e9f9ee; color: #15803d; border: 1px solid #b7ebc6; padding: 1px 6px; border-radius: 6px; font-size: 10.5px; font-weight: 700; }
.jury-flag.jury-member-flag, .jury-flag.jury-admin-flag { background: #e8efff; color: #1d4ed8; border: 1px solid #c3d5fb; padding: 1px 6px; border-radius: 6px; font-size: 10.5px; font-weight: 700; }
.uc-chips .jury, .ph-tags .jury { color: #1d4ed8; }
.uc-chips .jury.trainee { color: #15803d; }

/* 管理台风纪列 */
.jury-select {
  padding: 6px 8px; border-radius: 8px; font-size: 12px; color: var(--ink-2, #4a5468);
  background: #f8fafc; border: 1px solid var(--line, #e5e8ef); cursor: pointer;
}
.jury-select:hover { border-color: rgba(34, 197, 94, .45); }
.jury-chip {
  display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700;
  color: #1d4ed8; background: #e8efff; border: 1px solid #c3d5fb;
}
.jury-chip.admin { color: #b45309; background: #fff7e6; border-color: #fcd9a2; }
.jury-chip-note { font-size: 10.5px; color: var(--ink-3, #8a93a6); margin-left: 5px; }

@media (max-width: 900px) {
  .jury-panel { max-height: 92vh; border-radius: 18px; }
  .jury-me { flex-wrap: wrap; }
  .quiz-opts { grid-template-columns: 1fr; }
}


/* ==========================================================
   群聊系统（群设置 / 建群 / 邀请）
   ========================================================== */
.group-panel {
  width: min(760px, 100%); max-height: min(88vh, 780px); display: flex; flex-direction: column;
  background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden;
  animation: modalIn .42s var(--ease) both;
}
.group-panel.narrow { width: min(520px, 100%); }
.group-head {
  display: flex; align-items: center; justify-content: space-between; padding: 18px 22px;
  background: linear-gradient(120deg, #0f766e, #14a085 60%, #2b6cb0); color: #fff;
}
.group-title { display: flex; align-items: center; gap: 12px; }
.group-badge {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
  font-weight: 800; letter-spacing: .5px; font-size: 13px;
}
.group-badge .ico { color: #fff; }
.group-title h2 { font-size: 16px; letter-spacing: .4px; }
.group-title p { margin-top: 3px; font-size: 11px; color: rgba(255,255,255,.75); }
.group-head .icon-btn { color: rgba(255,255,255,.85); }
.group-head .icon-btn:hover { background: rgba(255,255,255,.16); color: #fff; }

.group-body { flex: 1; overflow-y: auto; padding: 18px 22px 8px; display: flex; flex-direction: column; gap: 14px; }
.group-panel.narrow .group-body { overflow-y: auto; }

.group-hero { display: flex; gap: 14px; align-items: center; }
.gavatar {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  font-size: 22px; font-weight: 800; color: #0f766e; background: #e6fbf5; border: 1px solid #c9f0e4;
  flex: none;
}
.ghero-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.gname-row { display: flex; gap: 8px; align-items: center; }
.ginput {
  width: 100%; padding: 11px 14px; border-radius: 11px; border: 1.5px solid #e7ecf7; background: #f8fafe;
  font-size: 13px; font-family: inherit;
}
.ginput:focus { border-color: rgba(20,160,133,.45); background: #fff; outline: none; }
.ginput.flush { padding: 6px 2px; border: none; background: transparent; font-size: 18px; font-weight: 700; color: #1f2a44; }
.ginput.flush:focus { background: #f5fbf8; padding: 6px 10px; border-radius: 9px; }
.gmeta { font-size: 11.5px; color: var(--ink-3, #8a93a6); }
.gtags { display: flex; flex-wrap: wrap; gap: 6px; }

.gnote { background: #f8fafe; border: 1px solid #eef2fb; border-radius: 14px; padding: 11px 13px; }
.gnote-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.gnote-head label { font-size: 11.5px; font-weight: 700; color: #43506e; }
.gnote textarea {
  width: 100%; border: none; background: transparent; resize: vertical; min-height: 44px;
  font-size: 12.5px; line-height: 1.6; color: #2c3550; font-family: inherit; outline: none;
}

.gtools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.switch-line { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: #43506e; cursor: pointer; }
.switch-line input { width: 16px; height: 16px; accent-color: #14a085; }
.gtools-tip { font-size: 11px; color: var(--ink-3, #8a93a6); }

.gmembers-head { display: flex; align-items: baseline; justify-content: space-between; }
.gmembers-head h3 { font-size: 13px; color: #26356a; }
.gmembers-head h3 b { color: #0f766e; }
.gmembers-head span { font-size: 11px; color: var(--ink-3, #8a93a6); }

.gmembers { display: flex; flex-direction: column; gap: 2px; padding-bottom: 6px; }
.gm-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 12px;
  transition: background .2s;
}
.gm-row:hover { background: #f6fbf9; }
.gm-avatar {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none;
  font-size: 13px; font-weight: 700; background: hsl(var(--hue, 200) 70% 93%); color: hsl(var(--hue, 200) 60% 40%);
}
.gm-main { flex: 1; min-width: 0; }
.gm-name { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #26304a; flex-wrap: wrap; }
.gm-sub { font-size: 10.5px; color: var(--ink-3, #8a93a6); margin-top: 2px; }
.gm-role { font-size: 10px; padding: 2px 7px; border-radius: 999px; font-weight: 700; }
.gm-role.owner { color: #b45309; background: #fff7e6; border: 1px solid #fcd9a2; }
.gm-role.admin { color: #0f766e; background: #e6fbf5; border: 1px solid #c9f0e4; }
.gm-role.muted { color: #b91c1c; background: #fff1f2; border: 1px solid #fecdd3; }
.gm-ops { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.gbtn {
  padding: 5px 9px; border-radius: 8px; font-size: 10.5px; color: #43506e; background: #fff;
  border: 1px solid #e3e9f6; cursor: pointer; transition: all .18s; font-family: inherit;
}
.gbtn:hover { color: #0f766e; border-color: #bfe9db; background: #f4fbf8; }
.gbtn.danger:hover { color: #b91c1c; border-color: #fecdd3; background: #fff5f5; }
.gmembers-empty { text-align: center; padding: 26px 0; font-size: 12px; color: var(--ink-3, #8a93a6); }

.group-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 22px; border-top: 1px solid #eff3fa; background: #fcfdff;
}
.gf-info { font-size: 11px; color: var(--ink-3, #8a93a6); }
.gf-actions { display: flex; gap: 8px; }
.danger-btn {
  padding: 8px 15px; border-radius: 10px; font-size: 12px; font-family: inherit; cursor: pointer;
  color: #b91c1c; background: #fff1f2; border: 1px solid #fecdd3; transition: all .18s;
}
.danger-btn:hover { background: #ffe4e6; border-color: #fda4af; }

.gsearch { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 11px; background: #f4f7fd; border: 1px solid #eaeffa; }
.gsearch input { flex: 1; border: none; background: transparent; font-size: 12.5px; outline: none; font-family: inherit; }
.gsearch .ico { color: #8a93a6; }

.picks { display: flex; flex-direction: column; gap: 2px; max-height: 46vh; overflow-y: auto; }
.pick-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 11px; cursor: pointer; }
.pick-row:hover { background: #f4fbf8; }
.pick-row.on { background: #e9fbf5; }
.pick-avatar { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 12.5px; font-weight: 700;
  background: hsl(var(--hue, 200) 70% 93%); color: hsl(var(--hue, 200) 60% 40%); flex: none; }
.pick-main { flex: 1; min-width: 0; }
.pick-name { font-size: 12.5px; font-weight: 600; color: #26304a; display: flex; align-items: center; gap: 6px; }
.pick-sub { font-size: 10.5px; color: var(--ink-3, #8a93a6); }
.pick-check {
  width: 19px; height: 19px; border-radius: 6px; border: 1.5px solid #d8e0f0; display: grid; place-items: center;
  color: #fff; font-size: 11px; background: #fff; flex: none;
}
.pick-row.on .pick-check { background: #14a085; border-color: #14a085; }

@media (max-width: 900px) {
  .group-panel { max-height: 92vh; border-radius: 18px; }
  .gm-ops { justify-content: flex-start; }
}

/* ==========================================================
   鼠标大厅
   ========================================================== */
.page-lobby { padding: 0; display: none; }
.page.active.page-lobby { display: block; }
.lobby-stage {
  position: absolute; inset: 0; overflow: hidden; background: #ffffff;
  background-image:
    linear-gradient(to right, rgba(29, 55, 110, .055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(29, 55, 110, .055) 1px, transparent 1px);
  background-size: 26px 26px;
  cursor: crosshair;
}
.lobby-hud {
  position: absolute; top: 14px; left: 14px; z-index: 12;
  display: flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.94); border: 1px solid #e6ecf6;
  box-shadow: 0 10px 28px rgba(30, 55, 100, .08);
  font-size: 11.5px; color: #4a5573; white-space: nowrap;
}
.lh-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.15); }
.lh-sep { color: #ccd6e8; }
.lh-kbd { padding: 1px 5px; border-radius: 5px; background: #f3f6fc; border: 1px solid #e3e9f4;
  font-size: 10.5px; font-weight: 600; color: #5b6785; }
.lh-plus { color: #b9c4d8; font-size: 10px; }

.lobby-empty {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  font-size: 13px; color: #b3bdce; letter-spacing: .3px; user-select: none;
}
.lobby-layer { position: absolute; inset: 0; pointer-events: none; z-index: 8; }
.lobby-cursor {
  position: absolute; left: 0; top: 0; width: 0; height: 0;
  transition: left .1s linear, top .1s linear;
}
.lobby-cursor .cur-ico {
  width: 19px; height: 19px; display: block; color: #334155;
  transform: translate(-1px, -1px); filter: drop-shadow(0 2px 4px rgba(30,55,100,.25));
}
.lobby-cursor .cur-tag {
  position: absolute; left: 15px; top: 11px; white-space: nowrap;
  padding: 4px 10px; border-radius: 999px;
  background: #ef4444; color: #fff; font-size: 11.5px; font-weight: 700;
  box-shadow: 0 6px 18px rgba(239, 68, 68, .28); max-width: 180px;
  overflow: hidden; text-overflow: ellipsis;
}
.lobby-cursor .cur-bubble {
  position: absolute; left: 15px; top: 40px; z-index: 3;
  max-width: 230px; padding: 7px 11px; border-radius: 12px;
  background: #fff; border: 1px solid #e4eaf6; color: #2c3550;
  font-size: 12px; line-height: 1.5; word-break: break-word;
  box-shadow: 0 12px 26px rgba(30, 55, 100, .14);
  animation: bubbleIn .18s ease both;
}
@keyframes bubbleIn { from { opacity: 0; transform: translateY(4px) scale(.98); } to { opacity: 1; transform: none; } }
.lobby-cursor.me .cur-ico { color: #ef4444; }
.lobby-cursor.me .cur-bubble { border-color: #fecdd3; }

.lobby-composer {
  position: absolute; z-index: 20; left: 0; top: 0;
  transform: translate(18px, 14px);
  animation: bubbleIn .16s ease both;
}
.lobby-composer input {
  width: min(280px, 42vw); padding: 9px 12px; border-radius: 11px;
  border: 1.5px solid #cfdcf0; background: #fff; outline: none;
  font-size: 12.5px; color: #23304f; font-family: inherit;
  box-shadow: 0 14px 34px rgba(30, 55, 100, .16);
}
.lobby-composer input:focus { border-color: #93b4ea; }

@media (max-width: 900px) {
  .lobby-hud { font-size: 10.5px; padding: 7px 11px; gap: 5px; }
}
.lobby-cursor { pointer-events: none; }
.lobby-composer, .lobby-composer input { pointer-events: auto; }
