:root {
  --bg0: #0d0e1e;
  --bg1: #181029;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.10);
  --stroke: rgba(255, 255, 255, 0.12);
  --stroke-bright: rgba(255, 255, 255, 0.22);
  --text: #f6f2ff;
  --muted: rgba(246, 242, 255, 0.60);
  --accent: #8b5cf6;
  --accent2: #ec4899;
  --accent3: #f59e0b;
  --grad: linear-gradient(120deg, #8b5cf6, #ec4899 52%, #f59e0b);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 82% -10%, rgba(139, 92, 246, 0.35) 0%, transparent 55%),
    radial-gradient(900px 700px at -12% 110%, rgba(236, 72, 153, 0.28) 0%, transparent 50%),
    linear-gradient(160deg, var(--bg0), var(--bg1));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 动态极光背景 ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
  animation: float 18s ease-in-out infinite;
}

.blob-1 { width: 46vw; height: 46vw; left: -12vw; top: -14vw; background: #7c3aed; }
.blob-2 { width: 38vw; height: 38vw; right: -10vw; top: 16vh; background: #db2777; animation-delay: -6s; }
.blob-3 { width: 34vw; height: 34vw; left: 24vw; bottom: -18vw; background: #f59e0b; animation-delay: -12s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(6vw, 4vh) scale(1.08); }
  66% { transform: translate(-4vw, -5vh) scale(0.94); }
}

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------- 顶部横幅 ---------- */
.banner {
  position: relative;
  z-index: 1;
  padding: 34px 20px 64px;
  overflow: hidden;
}

.banner-inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  animation: riseIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand-mark {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: breathe 3.5s ease-in-out infinite;
}

.brand-text h1 {
  font-size: clamp(28px, 6vw, 40px);
  letter-spacing: 0.12em;
  font-weight: 700;
  background: linear-gradient(100deg, #fff 20%, #fcd9ff 60%, #ffe1b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text p {
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--muted);
}

.banner-glow {
  position: absolute;
  left: 50%;
  top: -90px;
  width: 380px;
  height: 180px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(236, 72, 153, 0.5), transparent);
  filter: blur(10px);
}

/* ---------- 通用卡片 ---------- */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  margin: -44px auto 0;
  padding: 0 16px;
  flex: 1;
}

.glass {
  background: var(--surface);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--shadow);
}

/* ---------- 发布卡片 ---------- */
.post-card {
  border-radius: 22px;
  padding: 22px;
  animation: riseIn 0.7s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 14px rgba(236, 72, 153, 0.9);
}

.card-title {
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--text);
  opacity: 0.92;
}

.field {
  position: relative;
  margin-bottom: 14px;
}

.author-input, textarea {
  width: 100%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s, transform 0.25s;
}

.author-input::placeholder, textarea::placeholder { color: rgba(246, 242, 255, 0.36); }

.author-input:hover, textarea:hover { background: rgba(255, 255, 255, 0.06); }

.author-input:focus, textarea:focus {
  border-color: rgba(236, 72, 153, 0.65);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12), 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.field-hint {
  position: absolute;
  top: -9px;
  left: 12px;
  padding: 0 7px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  background: #1b1530;
  border-radius: 6px;
}

textarea { min-height: 118px; resize: vertical; line-height: 1.7; }

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.counter-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.counter-bar {
  width: 84px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.10);
  overflow: hidden;
}

.counter-bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 4px;
  background: var(--grad);
  transition: width 0.2s ease, background 0.3s ease;
}

.counter {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- 按钮 ---------- */
.post-btn {
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  color: #fff;
  padding: 12px 28px;
  font-size: 15px;
  letter-spacing: 0.15em;
  border-radius: 999px;
  background: var(--grad);
  background-size: 200% 100%;
  box-shadow: 0 10px 28px rgba(236, 72, 153, 0.4);
  transition: transform 0.2s, box-shadow 0.2s, background-position 0.5s;
}

.post-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 38px rgba(236, 72, 153, 0.55);
  background-position: 100% 0;
}

.post-btn:active { transform: translateY(0) scale(0.98); }

.post-btn:disabled { opacity: 0.65; cursor: not-allowed; }

.btn-shine {
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  animation: shine 3.5s ease-in-out infinite;
}

@keyframes shine {
  0% { left: -120%; }
  55% { left: 160%; }
  100% { left: 160%; }
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  animation: ripple 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes ripple {
  to { transform: scale(2.6); opacity: 0; }
}

/* ---------- 列表头 ---------- */
.list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 28px 6px 16px;
  animation: riseIn 0.7s 0.16s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.list-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  letter-spacing: 0.18em;
  color: var(--text);
}

.list-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.9);
}

.refresh-btn {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #d9ccff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.refresh-btn:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--stroke-bright); transform: translateY(-1px); }
.refresh-btn .icon { display: inline-block; transition: transform 0.5s; }
.refresh-btn.spinning .icon { transform: rotate(360deg); }

/* ---------- 留言列表 ---------- */
.message-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 46px;
}

.loading, .empty {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 40px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #ec4899;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.msg-card {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  animation: cardIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}

.msg-card:hover {
  transform: translateY(-4px);
  border-color: rgba(236, 72, 153, 0.35);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}

.msg-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.10), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s;
}

.msg-card:hover::before { opacity: 1; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.avatar {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.msg-body { flex: 1; min-width: 0; }

.msg-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.msg-author { font-weight: 600; font-size: 14px; color: #fff; }

.msg-time { font-size: 12px; color: var(--muted); white-space: nowrap; }

.msg-content {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(246, 242, 255, 0.82);
  word-break: break-word;
  white-space: pre-wrap;
}

/* ---------- 底部 ---------- */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px;
  font-size: 12px;
  letter-spacing: 0.25em;
  color: rgba(246, 242, 255, 0.38);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 54px;
  transform: translateX(-50%) translateY(20px);
  z-index: 20;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  color: #fff;
  background: rgba(24, 16, 41, 0.88);
  border: 1px solid var(--stroke-bright);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 发布成功彩带 ---------- */
.confetti {
  position: fixed;
  top: 46vh;
  left: 50%;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  opacity: 1;
  z-index: 30;
  pointer-events: none;
  animation: confettiFly 1.1s ease-out forwards;
}

@keyframes confettiFly {
  0% { transform: translate(-50%, -50%) rotate(0deg) scale(1); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot)) scale(0.6); opacity: 0; }
}

/* ---------- 通用入场 ---------- */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes breathe {
  0%, 100% { box-shadow: 0 12px 30px rgba(236, 72, 153, 0.45), inset 0 1px 0 rgba(255,255,255,0.35); }
  50% { box-shadow: 0 16px 40px rgba(139, 92, 246, 0.65), inset 0 1px 0 rgba(255,255,255,0.45); }
}

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.28); }

/* ---------- 响应式 ---------- */
@media (max-width: 480px) {
  .post-card { padding: 18px; }
  .post-footer { flex-direction: column; align-items: stretch; }
  .post-btn { width: 100%; }
  .counter-wrap { justify-content: space-between; }
}

/* ---------- 无障碍：减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
/* ---------- 图片上传 ---------- */
.upload-field { margin-bottom: 14px; }

.image-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #d9ccff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: border-color 0.25s, background 0.25s, transform 0.2s, color 0.25s;
}

.image-btn:hover {
  border-color: rgba(236, 72, 153, 0.7);
  background: rgba(236, 72, 153, 0.08);
  color: #fff;
  transform: translateY(-1px);
}

.upload-icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 16px;
  line-height: 1;
}

.image-preview {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.image-preview img {
  display: block;
  max-width: 100%;
  max-height: 220px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}

.remove-image {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(20, 14, 32, 0.92);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s, background 0.15s;
}

.remove-image:hover { transform: scale(1.1); background: #f43f5e; }

/* ---------- 留言图片 ---------- */
.msg-image {
  display: block;
  max-width: 100%;
  max-height: 420px;
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: zoom-in;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.msg-image:hover {
  transform: scale(1.01);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

/* ---------- 图片大图 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(8, 6, 18, 0.86);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.2s ease;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.lightbox-close:hover { transform: rotate(90deg); background: rgba(244, 63, 94, 0.7); }

.hidden { display: none !important; }

.no-scroll { overflow: hidden; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* 修复：banner 在 flex 布局中被压缩，导致标题被卡片遮挡 */
.banner { flex-shrink: 0; }
.footer { flex-shrink: 0; }

@media (max-width: 480px) {
  .banner { padding: 24px 16px 60px; }
  .banner-inner { flex-direction: column; gap: 12px; text-align: center; }
  .brand-mark { width: 56px; height: 56px; font-size: 26px; }
  .brand-text h1 { font-size: 26px; letter-spacing: 0.08em; }
  .brand-text p { font-size: 12px; letter-spacing: 0.16em; }
  .container { margin-top: -38px; padding: 0 12px; }
}

/* ---------- 留言评论 ---------- */
.msg-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.comment-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 7px 13px;
  color: rgba(246, 242, 255, 0.72);
  background: rgba(255, 255, 255, 0.05);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
}

.comment-toggle:hover,
.comment-toggle[aria-expanded="true"] {
  color: #fff;
  background: rgba(236, 72, 153, 0.12);
  border-color: rgba(236, 72, 153, 0.45);
  transform: translateY(-1px);
}

.comment-icon { font-size: 14px; }

.comments-panel {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  animation: commentsIn 0.28s ease both;
}

@keyframes commentsIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-item {
  display: flex;
  gap: 9px;
}

.comment-avatar {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.comment-body {
  flex: 1;
  min-width: 0;
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 3px;
}

.comment-item-author {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.comment-time {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.comment-content {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(246, 242, 255, 0.8);
  white-space: pre-wrap;
  word-break: break-word;
}

.comments-empty {
  padding: 8px 0 4px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.comment-input-row {
  display: flex;
  gap: 8px;
}

.comment-author-input,
.comment-input {
  flex: 1;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  outline: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  font-family: inherit;
  font-size: 13px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.comment-author-input::placeholder,
.comment-input::placeholder {
  color: rgba(246, 242, 255, 0.35);
}

.comment-author-input:focus,
.comment-input:focus {
  border-color: rgba(236, 72, 153, 0.58);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

.comment-submit {
  flex-shrink: 0;
  border: none;
  border-radius: 10px;
  padding: 0 16px;
  color: #fff;
  background: var(--grad);
  background-size: 180% 100%;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(236, 72, 153, 0.28);
  transition: transform 0.18s, box-shadow 0.18s, background-position 0.35s;
}

.comment-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 24px rgba(236, 72, 153, 0.42);
  background-position: 100% 0;
}

.comment-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 480px) {
  .comment-input-row {
    flex-direction: column;
  }

  .comment-submit {
    height: 38px;
  }
}

/* ---------- 置顶徽章(首页与管理后台共用) ---------- */
.pin-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  padding: 2px 9px;
  margin-left: 6px;
  border-radius: 999px;
  background: linear-gradient(120deg, #f59e0b, #ec4899);
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.35);
}

.msg-card.pinned {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 0 24px rgba(245, 158, 11, 0.12);
}