/* 子页面（blog / about）共享样式：极光渐变背景 + 毛玻璃卡片 + 入场与悬浮动效 */
:root {
  --bg-0: #060814;
  --bg-1: #0b1024;
  --text: #e6e9f5;
  --muted: #8d95b3;
  --line: rgba(255, 255, 255, 0.08);
  --glass: rgba(18, 24, 48, 0.62);
  --violet: #8b6cff;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --grad: linear-gradient(120deg, #8b6cff 0%, #22d3ee 55%, #f472b6 100%);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg-0);
  color: var(--text);
  padding: 56px 20px 80px;
  line-height: 1.75;
  position: relative;
  overflow-x: hidden;
}

/* ---------- 动态极光背景 ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; background:
  radial-gradient(ellipse at 50% 120%, #101a3d 0%, transparent 60%), var(--bg-0); }
.aurora i {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.45;
  animation: float 18s ease-in-out infinite;
}
.aurora i:nth-child(1) { width: 46vw; height: 46vw; left: -12vw; top: -14vw; background: var(--violet); }
.aurora i:nth-child(2) { width: 38vw; height: 38vw; right: -10vw; top: 10vh; background: var(--cyan); opacity: 0.32; animation-duration: 23s; animation-delay: -6s; }
.aurora i:nth-child(3) { width: 34vw; height: 34vw; left: 25vw; bottom: -16vw; background: var(--pink); opacity: 0.26; animation-duration: 27s; animation-delay: -12s; }
.aurora::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(6vw, 4vh, 0) scale(1.08); }
  66% { transform: translate3d(-4vw, 7vh, 0) scale(0.95); }
}

.container { max-width: 860px; margin: 0 auto; }

/* ---------- 顶部导航 ---------- */
.top-bar {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; margin-bottom: 36px;
  animation: rise 0.7s var(--ease) both;
}
.nav-right { display: flex; gap: 10px; flex-wrap: wrap; }
.module-nav-logo { width: 18px; height: 18px; object-fit: contain; }
.nav-btn {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); text-decoration: none; font-size: 14px;
  padding: 8px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: color 0.25s, background 0.25s, border-color 0.25s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.nav-btn:hover {
  color: #fff; background: rgba(139, 108, 255, 0.18);
  border-color: rgba(139, 108, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(139, 108, 255, 0.6);
}
.nav-btn.accent { color: #fff; border-color: rgba(34, 211, 238, 0.45); background: rgba(34, 211, 238, 0.12); }
.nav-btn.accent:hover { background: rgba(34, 211, 238, 0.22); box-shadow: 0 8px 24px -8px rgba(34, 211, 238, 0.6); }

/* ---------- 入场动画 ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.in { animation: rise 0.8s var(--ease) both; animation-delay: var(--d, 0s); }

/* ---------- 玻璃卡片（渐变描边） ---------- */
.card, .post-card, .article-box {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.7);
}
.card::before, .post-card::before, .article-box::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad); opacity: 0; transition: opacity 0.4s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.card { padding: 30px 34px; margin-bottom: 26px; transition: transform 0.4s var(--ease); }
.card:hover { transform: translateY(-3px); }
.card:hover::before, .post-card:hover::before { opacity: 0.85; }
.article-box::before { opacity: 0.35; }

/* ---------- 页面标题 ---------- */
.page-header { margin-bottom: 34px; animation: rise 0.8s 0.1s var(--ease) both; }
.page-title {
  font-size: clamp(28px, 5vw, 40px); font-weight: 700; letter-spacing: 0.5px; line-height: 1.25;
  background: var(--grad); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shine 8s linear infinite;
}
.module-page-title { display: flex; align-items: center; gap: 12px; }
.module-page-title img { width: 36px; height: 36px; object-fit: contain; flex: none; }
.module-page-title span { min-width: 0; overflow-wrap: anywhere; }
.module-page-header { margin-bottom: 22px; }
@keyframes shine { to { background-position: 200% 0; } }
.page-subtitle { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* ---------- 文章列表 ---------- */
.post-list { display: flex; flex-direction: column; gap: 20px; }
.post-card {
  display: block; text-decoration: none; color: inherit; padding: 26px 30px 26px 34px; overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.post-card::after {
  content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0;
  background: var(--grad); transform: scaleY(0.25); transform-origin: center; opacity: 0.6;
  transition: transform 0.45s var(--ease), opacity 0.3s;
}
.post-card:hover { transform: translateY(-5px); box-shadow: 0 28px 60px -22px rgba(139, 108, 255, 0.45); }
.post-card:hover::after { transform: scaleY(1); opacity: 1; }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.badge {
  color: var(--cyan); background: rgba(34, 211, 238, 0.12); border: 1px solid rgba(34, 211, 238, 0.28);
  padding: 2px 11px; border-radius: 999px; font-weight: 500;
}
.post-card h2 { font-size: 21px; color: #fff; margin-bottom: 8px; transition: color 0.3s; }
.post-card:hover h2 { color: #c9bbff; }
.post-card p { font-size: 14px; color: #b3bad4; }
.post-card .more {
  display: inline-block; margin-top: 12px; font-size: 13px; color: var(--violet);
  transition: transform 0.35s var(--ease), color 0.3s;
}
.post-card:hover .more { transform: translateX(8px); color: var(--cyan); }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }

/* ---------- 文章详情 ---------- */
.progress {
  position: fixed; left: 0; top: 0; height: 3px; width: 0; z-index: 50;
  background: var(--grad); box-shadow: 0 0 12px rgba(34, 211, 238, 0.7);
}
.article-box { padding: 40px 38px; animation: rise 0.8s 0.1s var(--ease) both; }
.article-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; margin-bottom: 14px; }
.article-heading-copy { min-width: 0; flex: 1; }
.article-heading-copy .post-meta { margin-bottom: 10px; }
.article-heading-copy .article-title { margin-bottom: 0; }
.article-title { font-size: clamp(24px, 4vw, 32px); color: #fff; margin-bottom: 14px; line-height: 1.35; }
.article-content {
  margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line);
  font-size: 16.5px; color: #dfe3f4; white-space: pre-line; line-height: 1.95;
}

/* ---------- About ---------- */
.profile-header { display: flex; align-items: center; gap: 22px; margin-bottom: 18px; }
.avatar {
  width: 78px; height: 78px; border-radius: 50%; object-fit: cover; flex: none;
  border: 2px solid transparent;
  background: linear-gradient(var(--bg-1), var(--bg-1)) padding-box, var(--grad) border-box;
  box-shadow: 0 0 0 4px rgba(139, 108, 255, 0.15), 0 10px 30px -8px rgba(139, 108, 255, 0.6);
  animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(139, 108, 255, 0.15), 0 10px 30px -8px rgba(139, 108, 255, 0.6); }
  50% { box-shadow: 0 0 0 9px rgba(34, 211, 238, 0.1), 0 10px 36px -6px rgba(34, 211, 238, 0.6); }
}
.profile-title h1 { font-size: 26px; color: #fff; }
.profile-title p { font-size: 14px; color: var(--muted); }
.card > p { color: #c4cae2; font-size: 15px; }
.section-title { font-size: 18px; font-weight: 600; color: #fff; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--grad); }

.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.tag {
  position: relative; overflow: hidden; font-size: 13px; padding: 4px 14px; border-radius: 999px;
  color: #c9bbff; background: rgba(139, 108, 255, 0.12); border: 1px solid rgba(139, 108, 255, 0.3);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.tag::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-20deg);
}
.tag:hover { transform: translateY(-2px); border-color: var(--cyan); }
.tag:hover::after { animation: sweep 0.8s ease; }
@keyframes sweep { to { left: 140%; } }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.stat-item {
  position: relative; text-align: center; padding: 20px 14px; border-radius: 16px;
  background: rgba(8, 12, 30, 0.55); border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.stat-item:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, 0.5); box-shadow: 0 14px 30px -14px rgba(34, 211, 238, 0.5); }
.stat-value {
  font-size: 32px; font-weight: 800; font-variant-numeric: tabular-nums;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.stat-label { font-size: 13px; color: var(--muted); margin-top: 2px; }

.log-wrap { overflow-x: auto; }
.log-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.log-table th, .log-table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.log-table th { color: var(--muted); font-weight: 500; white-space: nowrap; }
.log-table td { color: #cfd4ea; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-table tbody tr { transition: background 0.25s; }
.log-table tbody tr:hover { background: rgba(139, 108, 255, 0.1); }

@media (max-width: 560px) {
  body { padding: 36px 14px 60px; }
  .card { padding: 24px 20px; }
  .article-box { padding: 28px 22px; }
  .post-card { padding: 22px 20px 22px 26px; }
  .profile-header { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 分类筛选 ---------- */
.cats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; animation: rise 0.8s 0.2s var(--ease) both; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px;
  font-size: 14px; color: var(--muted); text-decoration: none;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  transition: color 0.25s, background 0.25s, border-color 0.25s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.chip em {
  font-style: normal; font-size: 12px; min-width: 20px; text-align: center; padding: 0 6px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); color: #c4cae2; transition: background 0.25s;
}
.chip:hover { color: #fff; border-color: rgba(139, 108, 255, 0.5); transform: translateY(-2px); }
.chip.active {
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, rgba(139, 108, 255, 0.55), rgba(34, 211, 238, 0.4));
  box-shadow: 0 8px 24px -10px rgba(139, 108, 255, 0.8);
}
.chip.active em { background: rgba(255, 255, 255, 0.25); }
a.badge { text-decoration: none; transition: background 0.25s, transform 0.25s var(--ease); }
a.badge:hover { background: rgba(34, 211, 238, 0.24); transform: translateY(-1px); }

/* ---------- 图片 ---------- */
/* Cover dimensions follow the image ratio; only large images are scaled down to fit. */
.post-cover, .article-cover-wrap {
  display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none;
  width: fit-content; height: fit-content; border-radius: 8px;
}
.post-cover { max-width: 120px; max-height: 160px; }
.article-cover-wrap { max-width: min(100%, 640px); max-height: 70vh; margin: 0 auto 26px; }
.post-cover img { display: block; width: auto; height: auto; max-width: 120px; max-height: 160px; object-fit: contain; }
.article-cover { display: block; width: auto; height: auto; max-width: min(100%, 640px); max-height: min(70vh, 720px); object-fit: contain; }

/* 有封面的文章卡片：左缩略图 + 右文字 */
.post-card.has-cover { display: flex; align-items: center; gap: 22px; }
.post-body { flex: 1; min-width: 0; }
.post-card p {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 560px) {
  .post-card.has-cover { gap: 14px; align-items: flex-start; }
  .post-cover { max-width: 84px; max-height: 112px; }
  .post-cover img { max-width: 84px; max-height: 112px; }
  .post-card h2 { font-size: 18px; }
  .article-cover-wrap { max-width: 100%; }
  .article-cover { max-width: 100%; max-height: 60vh; }
  .article-heading-row { display: block; }
}
.article-content img {
  display: block; width: auto; height: auto; margin: 18px auto; border-radius: 12px;
  max-width: min(100%, 520px); max-height: 460px; object-fit: contain;
  border: 1px solid var(--line); box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.8);
}
/* 正文不超出页面边界：长单词、长链接自动换行 */
.container, .article-box, .article-content, .card, .post-card, .post-body { min-width: 0; }
.article-box, .article-content, .article-title, .post-card h2, .post-card p, .card > p {
  overflow-wrap: anywhere; word-break: break-word;
}
.article-box { overflow: hidden; }

/* ---------- 评论区 ---------- */
.comments { margin-top: 30px; min-width: 0; animation: rise 0.8s 0.25s var(--ease) both; }
.cm-form { margin-bottom: 8px; }
.cm-editor {
  position: relative; border-radius: 16px; background: rgba(8, 12, 30, 0.55);
  border: 1px solid var(--line); transition: border-color 0.25s, box-shadow 0.25s;
}
.cm-editor:focus-within { border-color: rgba(160, 173, 211, 0.5); box-shadow: none; }
.cm-input {
  display: block; width: 100%; resize: vertical; min-height: 84px; max-height: 360px;
  padding: 18px 20px 6px; background: transparent; border: 0; outline: 0;
  color: var(--text); font: inherit; font-size: 15px; line-height: 1.7;
}
.cm-input::placeholder { color: var(--muted); }
.cm-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; padding: 4px 12px 10px; }
.cm-tool {
  min-width: 34px; height: 32px; padding: 0 8px; border: 0; border-radius: 8px; cursor: pointer;
  background: transparent; color: #aab2cf; font: inherit; font-size: 16px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.cm-tool:hover { background: rgba(139, 108, 255, 0.18); color: #fff; }
.cm-tool.b { font-weight: 800; }
.cm-tool.i { font-style: italic; font-family: Georgia, serif; }
.cm-tool.u { text-decoration: underline; }
.cm-tool.s { text-decoration: line-through; }
.cm-tool.mono { font-family: Consolas, "SFMono-Regular", monospace; font-size: 14px; font-weight: 600; }
.cm-tool.quote { font-size: 18px; }
.cm-sep { width: 1px; height: 14px; margin: 0 6px; background: var(--line); }
.cm-emoji {
  position: absolute; left: 12px; bottom: 50px; z-index: 5; width: min(320px, calc(100% - 24px));
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 8px;
  background: #11172e; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.8);
}
.cm-emoji[hidden] { display: none; }
.cm-emo { border: 0; background: transparent; border-radius: 8px; padding: 4px 0; font-size: 20px; cursor: pointer; transition: background 0.2s, transform 0.2s; }
.cm-emo:hover { background: rgba(255, 255, 255, 0.1); transform: scale(1.15); }

.cm-info { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.cm-field {
  flex: 1 1 150px; min-width: 0; height: 44px; padding: 0 14px; border-radius: 12px;
  background: rgba(8, 12, 30, 0.55); border: 1px solid var(--line); outline: 0;
  color: var(--text); font: inherit; font-size: 14px; transition: border-color 0.25s, box-shadow 0.25s;
}
.cm-field::placeholder { color: var(--muted); }
.cm-field:focus { border-color: rgba(34, 211, 238, 0.55); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12); }
.cm-hint { font-size: 13px; color: var(--muted); white-space: nowrap; }
.cm-hint a { color: var(--cyan); text-decoration: none; }
.cm-hint a:hover { text-decoration: underline; }
.cm-as { margin-top: 10px; font-size: 13px; color: var(--muted); }

.cm-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 14px; }
.cm-msg { margin-right: auto; font-size: 13px; color: var(--muted); }
.cm-msg.bad { color: #fca5a5; }
.cm-submit, .cm-cancel {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: 10px;
  border: 0; cursor: pointer; font: inherit; font-size: 15px; transition: transform 0.25s var(--ease), box-shadow 0.25s, opacity 0.2s, background 0.2s;
}
.cm-submit { color: #04231a; font-weight: 600; background: linear-gradient(135deg, #34d399, #22d3ee); box-shadow: 0 10px 24px -12px rgba(52, 211, 153, 0.9); }
.cm-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(52, 211, 153, 1); }
.cm-submit:disabled { opacity: 0.6; cursor: wait; transform: none; }
.cm-cancel { color: var(--muted); background: rgba(255, 255, 255, 0.06); }
.cm-cancel:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.cm-form.compact .cm-input { min-height: 64px; padding: 14px 16px 4px; font-size: 14px; }
.cm-form.compact .cm-submit, .cm-form.compact .cm-cancel { height: 36px; font-size: 14px; padding: 0 16px; }

.cm-count { margin: 30px 0 6px; font-size: 16px; color: var(--text); }
.cm-count b { font-weight: 700; margin-right: 2px; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cm-empty { color: var(--muted); text-align: center; padding: 34px 0; font-size: 14px; }

.cm-item { display: flex; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); animation: rise 0.5s var(--ease) both; }
.cm-list > .cm-item:last-child { border-bottom: 0; }
.cm-item.reply { padding: 16px 0 0; border-bottom: 0; }
.cm-avatar {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 600; user-select: none;
}
.cm-item.reply .cm-avatar { width: 34px; height: 34px; font-size: 14px; }
.cm-body { flex: 1; min-width: 0; }
.cm-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; line-height: 1.4; }
.cm-name { font-size: 15px; font-weight: 500; color: #fff; text-decoration: none; }
a.cm-name:hover { color: var(--cyan); }
.cm-badge { font-size: 11px; padding: 1px 8px; border-radius: 999px; color: #04231a; background: linear-gradient(135deg, #34d399, #22d3ee); font-weight: 600; }
.cm-time { font-size: 12.5px; color: var(--muted); }
.cm-content { margin-top: 8px; font-size: 15px; line-height: 1.8; color: #dfe3f4; overflow-wrap: anywhere; word-break: break-word; }
.cm-at { color: var(--cyan); }
.cm-content blockquote { margin: 6px 0; padding: 4px 12px; border-left: 3px solid rgba(139, 108, 255, 0.6); color: #aab2cf; background: rgba(139, 108, 255, 0.08); border-radius: 0 8px 8px 0; }
.cm-content code { padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); font-family: Consolas, "SFMono-Regular", monospace; font-size: 0.9em; }
.cm-content pre { margin: 8px 0; padding: 12px 14px; border-radius: 10px; overflow-x: auto; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); }
.cm-content pre code { padding: 0; background: none; white-space: pre; }
.cm-content a { color: var(--cyan); }

.cm-actions { display: flex; align-items: center; gap: 22px; margin-top: 10px; }
.cm-act {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 0; border: 0; background: transparent; cursor: pointer;
  color: var(--muted); font: inherit; font-size: 14px; transition: color 0.2s, transform 0.25s var(--ease);
}
.cm-act:hover { color: #fff; }
.cm-act.like:hover svg { transform: scale(1.18); }
.cm-act svg { transition: transform 0.25s var(--ease), fill 0.2s, color 0.2s; }
.cm-act.like.on { color: var(--pink); }
.cm-act.like.on svg { fill: var(--pink); }
.cm-act.reply-btn.on { color: var(--cyan); }
.cm-act.danger { margin-left: auto; font-size: 13px; }
.cm-act.danger:hover { color: #fca5a5; }
.cm-reply-slot:not(:empty) { margin-top: 12px; }
.cm-replies { margin-top: 6px; padding-left: 4px; border-left: 2px solid var(--line); margin-left: 2px; padding-left: 16px; }

@media (max-width: 560px) {
  .cm-input { padding: 14px 14px 4px; }
  .cm-item { gap: 10px; }
  .cm-avatar { width: 38px; height: 38px; }
  .cm-replies { padding-left: 10px; }
  .cm-field { flex-basis: 100%; }
  .cm-hint { white-space: normal; }
}

/* 有新消息：导航按钮周围若隐若现的红光 */
.nav-btn.has-msg { border-color: rgba(255, 90, 90, 0.6); animation: msgGlow 2.8s ease-in-out infinite; }
@keyframes msgGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 70, 70, 0), 0 0 6px 0 rgba(255, 70, 70, 0.25); }
  50% { box-shadow: 0 0 0 3px rgba(255, 70, 70, 0.1), 0 0 22px 5px rgba(255, 70, 70, 0.55); }
}
@media (prefers-reduced-motion: reduce) { .nav-btn.has-msg { animation: none; box-shadow: 0 0 14px 3px rgba(255, 70, 70, 0.45); } }
