:root {
  --purple: #7b5cd6;
  --purple-dark: #6743c7;
  --purple-soft: #f3efff;
  --purple-border: #e4dcfb;
  --gold: #c9a227;
  --gold-dark: #b18d1c;
  --gold-soft: #fdf6e3;
  --bg: #faf8fd;
  --card: #ffffff;
  --border: #d6cce8;
  --text: #2f2640;
  --sub: #8a8096;
  --danger: #e05b5b;
  --danger-soft: #fdeeee;
  --ok: #3fa66f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(60, 40, 100, 0.05), 0 4px 14px rgba(60, 40, 100, 0.06);
  --shadow-hover: 0 2px 4px rgba(60, 40, 100, 0.06), 0 10px 26px rgba(60, 40, 100, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--purple-dark); }

.hidden { display: none; }
[hidden] { display: none !important; }

/* ---------- 顶栏 ---------- */
.topbar {
  background: rgba(247, 245, 251, 0.68);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-inner {
  max-width: min(1720px, 93vw);
  margin: 0 auto;
  padding: 14px 19px 14px 33px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  margin-left: -30px;
}
.brand-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--gold));
  display: inline-block;
  flex: none;
}
.brand-seal, .brand-word { height: clamp(30px, 3.4vw, 42px); width: auto; object-fit: contain; flex: none; }
.brand-name { font-size: 21px; font-weight: 800; letter-spacing: .5px; }
/* 站内品牌区复用主页同一套 .nav-lockup 结构，保证与主页逐像素对齐；仅覆盖配色 */
html:not(.landing) .nav-logo,
html:not(.landing) .nav-word { filter: none; }
html:not(.landing) .nav-mark { color: var(--text); }
html:not(.landing) .nav-mark .dash { color: var(--purple); }
/* 主页与站内顶栏统一行高，保证品牌区纵向逐像素对齐 */
@media (min-width: 721px) {
  .nav-inner, .topbar-inner { height: 62px; padding-top: 0; padding-bottom: 0; }
}


.nav { display: flex; gap: 4px; flex: 1; }
.nav a {
  color: var(--sub);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14.5px;
  transition: all 0.15s;
}
.nav a:hover { color: var(--purple); background: var(--purple-soft); }
.nav a.active { color: var(--purple); background: var(--purple-soft); font-weight: 600; }
.nav-link-msg { position: relative; }
.nav-link-msg .badge { top: -6px; right: -8px; }

.nav-right { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav-msg {
  position: relative;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--purple-soft);
  border: 1.5px solid var(--purple-border);
  color: var(--sub);
  font-size: 15px;
  text-decoration: none;
}
.nav-msg:hover { color: var(--purple); border-color: var(--purple); }
.badge {
  position: absolute;
  top: -7px;
  right: -12px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
html:not(.landing) .nav-login { color: var(--sub); font-size: 14.5px; }

.user-menu { position: relative; display: inline-flex; align-items: center; gap: 2px; }
.user-menu summary { list-style: none; cursor: pointer; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--purple-dark);
  font-size: 14px;
  font-weight: 600;
  user-select: none;
  text-decoration: none;
}
.user-chip:hover { background: var(--purple-border); color: var(--purple-dark); }
.user-caret {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--purple-soft);
  border: 1.5px solid var(--purple-border);
  color: var(--purple-dark);
  user-select: none;
}
.user-caret:hover, .user-drop[open] .user-caret { background: var(--purple-border); color: var(--purple-dark); }
.role-owner, .role-admin, .role-mentor {
  font-style: normal;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--gold-soft);
  color: var(--gold-dark);
  font-weight: 600;
}
.role-admin { background: var(--purple-soft); color: var(--purple-dark); }
.role-mentor { background: #fdeaf4; color: #c24a86; }
.user-menu-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-hover);
  min-width: 140px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  z-index: 60;
}
.user-menu-pop a, .user-menu-pop .link-btn {
  padding: 8px 12px;
  border-radius: 8px;
  text-align: left;
  color: var(--text);
  font-size: 14px;
}
.user-menu-pop a:hover, .user-menu-pop .link-btn:hover { background: var(--purple-soft); color: var(--purple); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  background: var(--purple);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 10px;
  transition: all 0.15s;
  text-decoration: none;
  font-family: inherit;
  white-space: nowrap;
}
.btn:hover { background: var(--purple-dark); color: #fff; }
.btn-gold { background: var(--gold); }
.btn-gold:hover { background: var(--gold-dark); color: #fff; }
.btn-gold-outline { background: #fff; color: var(--gold-dark); border: 1.5px solid var(--gold); }
.btn-gold-outline:hover { background: var(--gold); color: #fff; }
html[data-theme="dark"] .btn-gold-outline { background: var(--card); color: #d9bc5e; border-color: var(--gold); }
html[data-theme="dark"] .btn-gold-outline:hover { background: var(--gold); color: #fff; }
.btn-sm { padding: 5px 12px; font-size: 13px; border-radius: 8px; font-weight: 500; }
.btn-outline { background: #fff; color: var(--purple); border: 1.5px solid var(--purple-border); }
.btn-outline:hover { background: var(--purple-soft); color: var(--purple-dark); }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #c94f4f; color: #fff; }
.btn-block { width: 100%; }

.link-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--purple);
  font-size: 13px;
  padding: 2px 6px;
  font-family: inherit;
}
.link-btn:hover { color: var(--purple-dark); text-decoration: underline; }
.link-btn.danger { color: var(--danger); }

/* ---------- 布局 ---------- */
.container { max-width: 1320px; margin: 0 auto; padding: 24px 20px 28px; min-height: calc(100vh - 140px); flex: 1 0 auto; width: 100%; }
.footer {
  position: sticky;
  bottom: 0;
  z-index: 40;
  flex-shrink: 0;
  background: var(--purple);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  padding: 8px 20px 10px;
  line-height: 1.3;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.footer-center { display: flex; align-items: center; justify-content: center; gap: 8px 24px; flex-wrap: wrap; flex: 1; text-align: center; }
.footer-ver, .footer-days { color: rgba(255, 255, 255, 0.75); font-size: 12.5px; white-space: nowrap; }
.footer-brand { color: #fff; }
.footer.footer-hide-brand .footer-brand { display: none; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: rgba(255, 255, 255, 0.85); }
.footer-links a:hover { color: #fff; }
.footer-link-btn { background: none; border: none; padding: 0; font-family: inherit; font-size: inherit; color: rgba(255, 255, 255, 0.85); cursor: pointer; }
.footer-link-btn:hover { color: #fff; }


/* ---------- 静态内容页（关于我们 / 加入我们 / FAQ） ---------- */
.prose { max-width: 760px; margin-left: auto; margin-right: auto; }
.prose-title { font-size: 24px; font-weight: 800; margin-bottom: 16px; }
.prose h2 { font-size: 18px; margin: 18px 0 10px; }
.prose p { margin: 8px 0; line-height: 1.8; }
.prose ul, .prose ol { margin: 8px 0 8px 22px; line-height: 1.9; }
.prose-note { color: var(--sub); font-size: 13px; margin-top: 16px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 12px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { font-size: 15.5px; margin-bottom: 6px; }
.faq-item p { color: var(--sub); }

/* ---------- 消息 / 聊天 / 反馈 ---------- */
.msg-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 16px; }
.msg-tab { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--purple-soft); color: var(--purple-dark); font-size: 13.5px; font-weight: 600; }
.msg-tab.on { background: var(--purple); color: #fff; }
.msg-tab .badge { position: static; top: auto; right: auto; }
.msg-link { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--purple); }
.msg-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 0; align-items: start; }
.msg-side {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 2px 16px 8px 0;
  border-right: 1px solid var(--border);
}
.msg-title { font-size: 24px; font-weight: 800; margin: 0 4px 14px; }
.msg-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--sub);
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  transition: all 0.15s;
}
.msg-nav-item:hover { background: var(--purple-soft); color: var(--purple-dark); }
.msg-nav-item.on { background: var(--purple); color: #fff; }
.msg-nav-icon { font-size: 16px; line-height: 1; }
.msg-nav-label { flex: 1; }
.msg-nav-item .badge { position: static; top: auto; right: auto; }
.msg-readall { margin: 10px 4px 0; }
.msg-panel { padding-left: 20px; min-width: 0; }
.msg-tag { font-size: 11.5px; color: var(--purple-dark); background: var(--purple-soft); border-radius: 6px; padding: 1px 7px; }
html[data-theme="dark"] .msg-tag { color: #c9b8f5; }
.msg-conv-list { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); }
.msg-conv { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 14px; }
.msg-conv:hover { background: var(--purple-soft); }
.msg-conv.on { background: var(--purple-soft); color: var(--purple-dark); font-weight: 700; }
.msg-conv-avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--purple-soft); color: var(--purple-dark); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none; }
.msg-conv-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-conv .badge { position: static; top: auto; right: auto; }
.chat-window { display: flex; flex-direction: column; height: calc(100vh - 200px); min-height: 320px; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.chat-head-title { font-weight: 700; font-size: 15px; }
.chat-window .chat-box { flex: 1; min-height: 0; max-height: none; }
.chat-window .chat-form { flex-shrink: 0; }
.chat-placeholder { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--sub); font-size: 14px; text-align: center; padding: 20px; }
@media (max-width: 720px) {
  .msg-layout { grid-template-columns: 1fr; min-height: 0; }
  .msg-side { flex-direction: row; flex-wrap: wrap; align-items: center; border-right: none; border-bottom: 1px solid var(--border); padding: 0 0 10px; margin-bottom: 12px; }
  .msg-title { width: 100%; margin-bottom: 6px; }
  .msg-nav-item { flex: none; }
  .msg-readall { margin: 0 0 0 auto; }
  .msg-panel { padding-left: 0; }
}

.conv-list { display: flex; flex-direction: column; }
.conv-item { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--border); color: var(--text); }
.conv-item:last-child { border-bottom: none; }
.conv-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--purple-soft); color: var(--purple-dark); display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.conv-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.conv-name { font-weight: 600; font-size: 14px; }
.conv-last { color: var(--sub); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-time { color: var(--sub); font-size: 12px; flex: none; }
.conv-new-title { font-size: 14px; margin: 16px 0 8px; color: var(--sub); }
.conv-new { display: flex; flex-wrap: wrap; gap: 8px; }

.chat-card { display: flex; flex-direction: column; }
.chat-title { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.chat-box { display: flex; flex-direction: column; gap: 10px; max-height: 56vh; overflow-y: auto; padding: 8px 4px; scrollbar-width: thin; scrollbar-color: #cdbdf2 transparent; }
.chat-line { display: flex; flex-direction: column; max-width: 78%; }
.chat-line.other { align-self: flex-start; align-items: flex-start; }
.chat-line.mine { align-self: flex-end; align-items: flex-end; }
.chat-bubble { padding: 8px 12px; border-radius: 12px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.chat-line.other .chat-bubble { background: var(--purple-soft); color: var(--text); }
.chat-line.mine .chat-bubble { background: var(--purple); color: #fff; }
.chat-time { font-size: 11px; color: var(--sub); margin-top: 2px; }
.chat-form { display: flex; gap: 8px; align-items: flex-end; margin-top: 12px; }
.chat-form textarea { flex: 1; border: 1.5px solid var(--border); border-radius: 10px; padding: 9px 12px; font-family: inherit; font-size: 14px; resize: vertical; background: #fff; color: var(--text); outline: none; }
#fb-content, #fb-reply, #report-reason, #reply-edit-content { width: 100%; border: 1.5px solid var(--border); border-radius: 10px; padding: 10px 12px; font-family: inherit; font-size: 14px; resize: vertical; background: #fff; color: var(--text); outline: none; }
#fb-content:focus, #fb-reply:focus, #report-reason:focus, #reply-edit-content:focus { border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-soft); }
#fb-reply { min-height: 150px; }

.feedback-fab { position: fixed; right: 20px; bottom: 56px; z-index: 80; border: none; border-radius: 999px; background: var(--gold); color: #fff; font-family: inherit; font-size: 13.5px; font-weight: 700; padding: 10px 16px; cursor: pointer; box-shadow: var(--shadow-hover); }
.feedback-fab:hover { background: var(--gold-dark); }

/* ---------- AI 助手 ---------- */
.ai-fab { position: fixed; left: 20px; right: auto; bottom: 56px; z-index: 125; border: none; border-radius: 999px; background: var(--purple); color: #fff; font-family: inherit; font-size: 13.5px; font-weight: 700; padding: 10px 16px; cursor: pointer; box-shadow: var(--shadow-hover); touch-action: none; }
.ai-fab:hover { background: var(--purple-dark); }
html[data-theme="dark"] .ai-fab { background: #fff; color: var(--purple-dark); }
html[data-theme="dark"] .ai-fab:hover { background: #efeaff; }
.ai-tip { position: fixed; left: 20px; top: 0; z-index: 124; background: #fff; color: var(--purple-dark); font-size: 12.5px; font-weight: 700; line-height: 1; padding: 7px 11px; border-radius: 12px; white-space: nowrap; pointer-events: none; box-shadow: var(--shadow-hover); opacity: 0; transition: opacity 0.35s ease; }
.ai-tip.show { opacity: 1; }
.ai-tip[hidden] { display: none; }
.ai-tip::after { content: ''; position: absolute; left: 16px; bottom: -3.5px; width: 8px; height: 8px; background: #fff; transform: rotate(45deg); border-radius: 2px; }
.ai-tip.below::after { top: -3.5px; bottom: auto; }
.kbd-hint { background: #ececec; color: #8a8a8a; font-size: 10.5px; font-weight: 700; line-height: 1; padding: 3px 6px; border-radius: 5px; white-space: nowrap; pointer-events: none; }
html[data-theme="dark"] .kbd-hint { background: #3a3546; color: #b5aec6; }
.page-key-badge { position: fixed; top: calc(var(--topbar-h, 56px) + 10px); right: 12px; z-index: 60; }
.search-suggest::after { content: '快捷键 S'; position: absolute; top: 7px; right: 10px; background: #ececec; color: #8a8a8a; font-size: 10.5px; font-weight: 700; line-height: 1; padding: 3px 6px; border-radius: 5px; pointer-events: none; }
html[data-theme="dark"] .search-suggest::after { background: #3a3546; color: #b5aec6; }
.modal-head { position: relative; }
.modal-key { position: absolute; top: 17px; right: 48px; }
.ai-panel { position: fixed; left: 20px; right: auto; bottom: 80px; z-index: 130; width: 340px; max-width: calc(100vw - 32px); height: 470px; max-height: calc(100vh - 190px); background: var(--card); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-hover); display: flex; flex-direction: column; overflow: hidden; animation: pop 0.16s ease; }
.ai-panel[hidden] { display: none; }
.ai-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-bottom: 1px solid #ecdfae; background: var(--gold-soft); font-weight: 700; font-size: 14px; cursor: move; touch-action: none; }
.ai-close { background: none; border: none; font-size: 20px; line-height: 1; color: var(--sub); cursor: pointer; }
.ai-close:hover { color: var(--text); }
.ai-head-btns { display: inline-flex; align-items: center; gap: 4px; }
.ai-fs { background: none; border: none; font-size: 15px; line-height: 1; color: var(--sub); cursor: pointer; padding: 0 4px; }
.ai-fs:hover { color: var(--purple); }
.ai-panel.fullscreen .ai-msgs { font-size: 15px; }
.ai-ask-mask { position: fixed; inset: 0; background: rgba(30, 20, 50, 0.45); z-index: 129; }
.ai-panel.ask-mode {
  left: 50%; top: 50%; right: auto; bottom: auto;
  transform: translate(-50%, -50%);
  width: min(920px, 94vw); height: min(700px, 88vh);
  max-width: none; max-height: none;
  animation: none;
}
.ai-panel.ask-mode .ai-resize { display: none; }
.ai-panel.ask-mode .ai-resize-tl { display: none; }
.ai-resize { position: absolute; right: 2px; bottom: 2px; width: 15px; height: 15px; cursor: nwse-resize; touch-action: none; z-index: 5; }
.ai-resize::before { content: ''; position: absolute; right: 2px; bottom: 2px; width: 9px; height: 9px; border-right: 2px solid var(--sub); border-bottom: 2px solid var(--sub); border-bottom-right-radius: 5px; opacity: .7; }
.ai-resize-tl { position: absolute; left: 2px; top: 2px; width: 15px; height: 15px; cursor: nwse-resize; touch-action: none; z-index: 5; }
.ai-resize-tl::before { content: ''; position: absolute; left: 2px; top: 2px; width: 9px; height: 9px; border-left: 2px solid var(--sub); border-top: 2px solid var(--sub); border-top-left-radius: 5px; opacity: .7; }
.ai-panel.fullscreen .ai-resize-tl { display: none; }
.ai-panel.fullscreen .ai-resize { display: none; }
.ai-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.ai-msg { max-width: 86%; padding: 8px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.ai-msg.assistant { align-self: flex-start; background: var(--purple-soft); color: var(--text); }
.ai-msg.user { align-self: flex-end; background: var(--purple); color: #fff; }
.ai-msg.streaming::after { content: '▍'; margin-left: 1px; opacity: .6; animation: aiBlink 1s steps(2) infinite; }
@keyframes aiBlink { 50% { opacity: 0; } }
.ai-quicks { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 8px; }
.ai-quick { border: 1px solid var(--purple-border); background: var(--purple-soft); color: var(--purple-dark); font-family: inherit; font-size: 12px; border-radius: 999px; padding: 3px 10px; cursor: pointer; }
.ai-quick:hover { border-color: var(--purple); }
html[data-theme="dark"] .ai-quick { color: #fff; }
.ai-inputrow { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--border); }
.ai-input { flex: 1; resize: none; border: 1.5px solid var(--border); border-radius: 10px; padding: 8px 10px; font-family: inherit; font-size: 13.5px; background: #fff; color: var(--text); outline: none; max-height: 90px; }
.ai-input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-soft); }
html[data-theme="dark"] .ai-input { background: #221c33; }

/* ---------- 聊天页：撑满整屏 ---------- */
.page-chat { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.page-chat .flash { flex-shrink: 0; }
.page-chat main.container {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 16px 20px 0;
}
.page-chat .back-link { flex-shrink: 0; }
.page-chat .chat-card { flex: 1; min-height: 0; display: flex; flex-direction: column; margin-bottom: 0; }
.page-chat .chat-box { flex: 1; min-height: 0; max-height: none; }
.page-chat .chat-form { flex-shrink: 0; padding-bottom: 4px; }
.page-chat .footer { flex-shrink: 0; padding: 12px 20px 16px; }
html[data-theme="dark"] .chat-form textarea,
html[data-theme="dark"] #fb-content,
html[data-theme="dark"] #fb-reply { background: #221c33; }

/* ---------- 提示条 ---------- */
.flash {
  position: fixed;
  top: 58px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  max-width: min(1080px, 92vw);
  margin: 0;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: var(--shadow-hover);
  animation: slideDown 0.25s ease;
}
@keyframes slideDown { from { opacity: 0; transform: translateX(-50%) translateY(-6px); } to { opacity: 1; transform: translateX(-50%); } }
.flash-error { background: var(--danger-soft); color: #b34040; border: 1px solid #f6d5d5; }
.flash-success { background: #eef9f2; color: #2f8a58; border: 1px solid #d2eedd; }
.flash-deleted { background: #fdecec; color: #c0392b; border: 1px solid #f3c9c9; font-weight: 600; }
.toast {
  position: fixed;
  top: 58px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: var(--shadow-hover);
  animation: toastIn 0.2s ease;
  transition: opacity 0.4s;
  pointer-events: none;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to { opacity: 1; transform: translateX(-50%); }
}
.toast-ok { background: #eef9f2; color: #2f8a58; border: 1px solid #d2eedd; }
.toast-info { background: var(--purple-soft); color: var(--purple-dark); border: 1px solid var(--purple-border); }
html[data-theme="dark"] .toast-ok { background: #1d3a2a; color: #8fd8ad; border-color: #2c4f3c; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 16px;
}
.card-title { font-size: 17px; font-weight: 700; margin-bottom: 14px; color: var(--text); }

