/* 私人聊天 · 仿 QQ 的浅色界面 */
:root {
  --bg-1: #dfe7f0;
  --bg-2: #eef3f8;
  --panel: #ffffff;
  --side: #f6f8fb;
  --side-hover: #edf2f7;
  --side-active: #e3f4fd;
  --line: #e7ecf2;
  --text: #1d232b;
  --text-2: #5c6875;
  --muted: #8e99a6;
  --accent: #12b7f5;
  --accent-deep: #0b9fd6;
  --accent-soft: #e3f5fd;
  --bubble-other: rgba(255, 255, 255, 0.74);
  --bubble-other-line: rgba(120, 160, 190, 0.28);
  --bubble-me: rgba(20, 150, 200, 0.80);
  --bubble-me-text: #ffffff;
  --chat-bg: #f2f5f9;
  --shadow: 0 18px 60px rgba(20, 40, 70, 0.16);
  --shadow-sm: 0 2px 8px rgba(20, 40, 70, 0.07);
  --radius: 14px;
  --font: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* 深色主题 = 守岸人配色（冰蓝 + 深海蓝） */
body[data-theme="dark"] {
  --bg-1: #12222f;
  --bg-2: #172b3a;
  --panel: #14232f;
  --side: #101d28;
  --side-hover: #1a2e3d;
  --side-active: #1f4258;
  --line: #24404f;
  --text: #e8f4fb;
  --text-2: #a8c4d6;
  --muted: #7593a8;
  --accent: #7fd4ff;
  --accent-deep: #4bb8ea;
  --accent-soft: #12303f;
  --bubble-other: rgba(12, 30, 44, 0.62);
  --bubble-other-line: rgba(127, 212, 255, 0.16);
  --bubble-me: rgba(43, 142, 192, 0.76);
  --bubble-me-text: #ffffff;
  --chat-bg: #12222f;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.50);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.30);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(18, 183, 245, 0.18), transparent 60%),
    radial-gradient(900px 500px at 100% 110%, rgba(120, 150, 255, 0.14), transparent 60%),
    linear-gradient(160deg, var(--bg-1), var(--bg-2));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; }

.app {
  width: min(1180px, 100vw);
  height: min(880px, 100vh);
  display: flex;
  background: var(--panel);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

/* ---------------- 侧栏 ---------------- */
.sidebar {
  width: 300px;
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  background: var(--side);
  border-right: 1px solid var(--line);
  min-width: 0;
}

.me {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 14px 10px;
}

.me-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(140deg, #5b7cfa, #12b7f5);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  box-shadow: var(--shadow-sm);
}

.me-meta { flex: 1; min-width: 0; }
.me-name { font-size: 14.5px; font-weight: 600; letter-spacing: 0.2px; }
.me-sub { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; margin-top: 2px; }

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b9c3ce;
  display: inline-block;
  transition: background 0.2s;
}
.dot.on { background: #3ecf8e; box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.14); }
.dot.off { background: #f0a020; }

.icon-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, transform 0.16s;
  flex: 0 0 auto;
}
.icon-btn:hover { background: var(--side-hover); color: var(--text); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn.active { color: var(--accent); background: var(--accent-soft); }

.search {
  margin: 6px 12px 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  height: 34px;
  border-radius: 9px;
  background: var(--side-hover);
  color: var(--muted);
  flex: 0 0 auto;
}
.search input {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  width: 100%;
  font-family: inherit;
}
.search input::placeholder { color: var(--muted); }

.room-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 8px 10px;
  min-height: 0;
}

.room {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 32px 10px 10px;
  border-radius: 11px;
  cursor: pointer;
  position: relative;
  transition: background 0.15s;
  margin-bottom: 2px;
}
.room:hover { background: var(--side-hover); }
.room.active { background: var(--side-active); }
.room.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 3px;
  background: var(--accent);
}

.room-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  flex: 0 0 42px;
  background: #0d1622;
  box-shadow: var(--shadow-sm);
}

.room-body { flex: 1; min-width: 0; }
.room-top { display: flex; align-items: baseline; gap: 8px; }
.room-top .name { font-size: 14px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-top .time { font-size: 10.5px; color: var(--muted); flex: 0 0 auto; }
.room-last {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.room.busy .room-last { color: var(--accent); }

.badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #ff5b57;
  color: #fff;
  font-size: 10.5px;
  line-height: 18px;
  text-align: center;
  flex: 0 0 auto;
}

.room-more {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s;
}
.room:hover .room-more, .room.active .room-more { opacity: 1; }
.room-more:hover { background: var(--panel); color: var(--text); }

.side-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 12px;
  border-top: 1px solid var(--line);
  flex: 0 0 auto;
}
.foot-note { font-size: 10.5px; color: var(--muted); letter-spacing: 0.3px; }
.link-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
}
.link-btn:hover { color: var(--accent); background: var(--side-hover); }

/* ---------------- 聊天区 ---------------- */
.chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--chat-bg);
  position: relative;
}

.chat-head {
  height: 62px;
  flex: 0 0 62px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 18px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  z-index: 3;
}

.head-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  background: #0d1622;
}

.chat-title { flex: 1; min-width: 0; }
.room-name { font-size: 15px; font-weight: 600; letter-spacing: 0.2px; }
.room-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.head-actions { display: flex; gap: 2px; }

.messages {
  overflow-anchor: none;
  flex: 1;
  overflow-y: auto;
  padding: 18px 26px 10px;
  min-height: 0;
  scroll-behavior: smooth;
}

.day {
  display: flex;
  justify-content: center;
  margin: 14px 0 18px;
}
.day span {
  font-size: 11px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 3px 10px;
  border-radius: 20px;
}

.msg {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  align-items: flex-start;
  animation: msg-in 0.22s ease-out;
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.msg .avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex: 0 0 34px;
  object-fit: cover;
  background: #0d1622;
  box-shadow: var(--shadow-sm);
  margin-top: 2px;
}
.msg .avatar.me {
  border-radius: 50%;
  background: linear-gradient(140deg, #5b7cfa, #12b7f5);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.msg .stack { max-width: min(72%, 640px); display: flex; flex-direction: column; min-width: 0; }
.msg.me { flex-direction: row-reverse; }
.msg.me .stack { align-items: flex-end; }

.bubble {
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.66;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  background: var(--bubble-other);
  border: 1px solid var(--bubble-other-line);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  position: relative;
}
.msg.me .bubble {
  background: var(--bubble-me);
  color: var(--bubble-me-text);
  border-color: transparent;
  border-top-right-radius: 3px;
}
.msg:not(.me) .bubble { border-top-left-radius: 3px; }

.bubble.streaming::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 14px;
  margin-left: 3px;
  vertical-align: -2px;
  border-radius: 2px;
  background: var(--accent);
  animation: blink 0.9s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.bubble pre {
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: 9px;
  background: rgba(15, 30, 50, 0.06);
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.55;
}
body[data-theme="dark"] .bubble pre { background: rgba(0, 0, 0, 0.3); }
.msg.me .bubble pre { background: rgba(0, 0, 0, 0.16); }
.bubble pre code { font-family: "Cascadia Code", "Consolas", "JetBrains Mono", monospace; white-space: pre; }
.bubble code {
  font-family: "Cascadia Code", "Consolas", "JetBrains Mono", monospace;
  font-size: 0.92em;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(18, 183, 245, 0.1);
}
.msg.me .bubble code { background: rgba(255, 255, 255, 0.18); }
.bubble a { color: var(--accent-deep); text-decoration: none; border-bottom: 1px solid currentColor; }
.msg.me .bubble a { color: #fff; }

.meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 0 3px;
  color: var(--muted);
  font-size: 10.5px;
  opacity: 0;
  transition: opacity 0.18s;
}
.msg:hover .meta, .msg .meta.always { opacity: 1; }
.msg.me .meta { justify-content: flex-end; }

.tts-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.tts-btn:hover { color: var(--accent); background: var(--side-hover); }
.tts-btn.loading { animation: pulse 0.9s ease-in-out infinite; }
.tts-btn.playing { color: var(--accent); }
@keyframes pulse { 50% { opacity: 0.35; } }

.system {
  display: flex;
  justify-content: center;
  margin: 10px 0 16px;
}
.system span {
  max-width: 82%;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 11px;
  text-align: center;
}
.system.error span { color: #d9534f; border-color: rgba(217, 83, 79, 0.3); background: rgba(217, 83, 79, 0.06); }
body[data-theme="dark"] .system.error span { color: #ff8b87; }

.empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
}
.empty img { width: 74px; height: 74px; border-radius: 20px; opacity: 0.85; }
.empty b { color: var(--text-2); font-weight: 500; font-size: 14px; }
.empty p { margin: 0; font-size: 12px; }

.typing {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 4px 0 12px;
  animation: msg-in 0.2s ease-out;
}
.typing .avatar { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; background: #0d1622; }
.typing .dots {
  background: var(--bubble-other);
  border: 1px solid var(--bubble-other-line);
  border-radius: 12px;
  border-top-left-radius: 3px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: var(--shadow-sm);
}
.typing .dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: bounce 1.2s infinite;
}
.typing .dots i:nth-child(2) { animation-delay: 0.15s; }
.typing .dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
.typing .label { font-size: 11px; color: var(--muted); margin-left: 2px; white-space: nowrap; }

.stop-btn {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 20px;
  cursor: pointer;
  margin-left: 2px;
  transition: color 0.15s, border-color 0.15s;
}
.stop-btn:hover { color: #d9534f; border-color: rgba(217, 83, 79, 0.4); }
.stop-btn:disabled { opacity: 0.4; cursor: default; }

.jump-bottom {
  position: absolute;
  right: 22px;
  bottom: 104px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text-2);
  font-size: 12px;
  padding: 6px 11px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  z-index: 4;
}
.jump-bottom:hover { color: var(--accent); }

.composer {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 12px 16px 14px;
  background: var(--panel);
  border-top: 1px solid var(--line);
}

.composer textarea {
  flex: 1;
  resize: none;
  border: 1px solid var(--line);
  background: var(--chat-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.55;
  padding: 9px 12px;
  border-radius: 10px;
  outline: none;
  max-height: 132px;
  min-height: 40px;
  transition: border-color 0.16s, box-shadow 0.16s;
}
.composer textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(18, 183, 245, 0.12); }
.composer textarea::placeholder { color: var(--muted); }

.send-btn {
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.16s, transform 0.12s, opacity 0.16s;
  flex: 0 0 auto;
}
.send-btn:hover:not(:disabled) { background: var(--accent-deep); }
.send-btn:active:not(:disabled) { transform: scale(0.97); }
.send-btn:disabled { opacity: 0.4; cursor: default; }

/* ---------------- 浮层 ---------------- */
.backdrop {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 30, 0.35);
  z-index: 8;
}
.backdrop.show { display: block; }

.popmenu {
  position: absolute;
  z-index: 30;
  min-width: 116px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 5px;
  animation: pop 0.14s ease-out;
}
@keyframes pop { from { opacity: 0; transform: scale(0.96); } }
.popmenu button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 12.5px;
  padding: 8px 10px;
  border-radius: 7px;
  cursor: pointer;
}
.popmenu button:hover { background: var(--side-hover); }
.popmenu button.danger { color: #d9534f; }
.popmenu button:disabled { opacity: 0.4; cursor: default; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: rgba(25, 35, 46, 0.92);
  color: #fff;
  font-size: 12.5px;
  padding: 9px 15px;
  border-radius: 10px;
  z-index: 100;
  animation: toast-in 0.2s ease-out;
  max-width: 80vw;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 30, 0.4);
  display: grid;
  place-items: center;
  z-index: 90;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal-card {
  width: min(360px, 100%);
  background: var(--panel);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 20px;
  animation: pop 0.16s ease-out;
}
.modal-card h3 { margin: 0 0 6px; font-size: 15px; }
.modal-card p { margin: 0 0 14px; font-size: 12.5px; color: var(--text-2); line-height: 1.6; }
.modal-card input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--chat-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  padding: 0 11px;
  outline: none;
  margin-bottom: 14px;
}
.modal-card input:focus { border-color: var(--accent); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.modal-actions button {
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 12.5px;
  cursor: pointer;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-2);
}
.modal-actions button.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.modal-actions button.danger { background: #e25b56; border-color: #e25b56; color: #fff; font-weight: 600; }

/* ---------------- 登录 ---------------- */
.login {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 500px at 20% 0%, rgba(18, 183, 245, 0.2), transparent 60%),
    linear-gradient(160deg, var(--bg-1), var(--bg-2));
  display: grid;
  place-items: center;
  z-index: 200;
  padding: 20px;
}
.login[hidden] { display: none; }
.login-card {
  width: min(320px, 100%);
  background: var(--panel);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 28px 24px 22px;
  text-align: center;
}
.login-card img { width: 62px; height: 62px; border-radius: 18px; }
.login-card h1 { font-size: 18px; margin: 12px 0 4px; letter-spacing: 1px; }
.login-card p { font-size: 12px; color: var(--muted); margin: 0 0 16px; }
.login-card input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--chat-bg);
  color: var(--text);
  font-family: inherit;
  text-align: center;
  letter-spacing: 2px;
  font-size: 14px;
  outline: none;
  margin-bottom: 10px;
}
.login-card input:focus { border-color: var(--accent); }
.login-card button {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.login-card button:hover { background: var(--accent-deep); }
.login-err { display: block; min-height: 18px; margin-top: 8px; font-size: 11.5px; color: #d9534f; }

.only-mobile { display: none; }

@media (hover: none) {
  .msg .meta { opacity: 1; }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 820px) {
  body { display: block; }
  .app { width: 100vw; height: 100dvh; border-radius: 0; }
  .sidebar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 10;
    transform: translateX(-102%);
    transition: transform 0.22s ease;
    width: 82vw;
    max-width: 320px;
    box-shadow: var(--shadow);
  }
  .sidebar.open { transform: none; }
  .only-mobile { display: grid; }
  .head-avatar { display: none; }
  .messages {
  overflow-anchor: none; padding: 14px 28px 8px 14px; }
  .msg .stack { max-width: 78%; }
  .chat-head { padding: 0 12px; }
  .composer { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .send-btn span { display: none; }
  .send-btn { width: 44px; padding: 0; justify-content: center; }
  .jump-bottom { bottom: 92px; right: 14px; }
  .room-more { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- 聊天区背景：守岸人 ---------- */
.chat {
  background-image:
    linear-gradient(180deg, rgba(246, 250, 253, 0.58) 0%, rgba(244, 248, 252, 0.66) 45%, rgba(240, 245, 250, 0.74) 100%),
    url("bg-shorekeeper.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

body[data-theme="dark"] .chat {
  background-image:
    linear-gradient(180deg, rgba(2, 10, 18, 0.10) 0%, rgba(2, 10, 18, 0.24) 45%, rgba(2, 10, 18, 0.46) 100%),
    url("bg-shorekeeper.jpg");
}

/* ---------- 聊天气泡透气（不加毛玻璃，免得挡住背景） ---------- */
.bubble {
  box-shadow: 0 1px 6px rgba(20, 50, 80, 0.07);
}
/* ---------- 图片消息 ---------- */
.img-btn {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: 6px;
}
.img-btn:hover { color: var(--accent); border-color: var(--accent); }

.msg-image {
  display: block;
  max-width: min(320px, 68vw);
  max-height: 320px;
  border-radius: 12px;
  margin: 2px 0 4px;
  cursor: zoom-in;
  box-shadow: 0 2px 12px rgba(6, 20, 34, 0.28);
}
/* ---------- 原图开关 ---------- */
.img-btn.orig {
  width: 34px;
  font-size: 12px;
  letter-spacing: 0;
  margin-right: 6px;
  opacity: 0.72;
}
.img-btn.orig.active {
  color: var(--accent);
  border-color: var(--accent);
  opacity: 1;
}
/* ---------- 往上翻更早的记录 ---------- */
.load-more {
  display: block;
  margin: 6px auto 14px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--text-2);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  opacity: 0.85;
}
.load-more:hover { color: var(--accent); border-color: var(--accent); }