/* =========================================================
   Image2 · 聊天页样式
   ========================================================= */
body.chat-body {
  height: 100dvh;
  overflow: hidden;
  display: flex;
}

.shell {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  height: 100dvh;
  min-width: 0;
}
@media (min-width: 980px) {
  .shell { grid-template-columns: 300px minmax(0, 1fr); }
}

/* ---------------- 侧边栏 ---------------- */
.sidebar {
  position: fixed;
  z-index: 60;
  top: 0; left: 0; bottom: 0;
  width: 300px;
  padding: calc(14px + var(--sat)) 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 0 26px 26px 0;
  transform: translateX(-104%);
  transition: transform 0.44s var(--ease);
  will-change: transform;
}
.sidebar.open { transform: translateX(0); }
@media (min-width: 980px) {
  .sidebar {
    position: relative;
    transform: none !important;
    border-radius: 0 26px 26px 0;
    height: 100dvh;
    box-shadow: 10px 0 40px -30px rgba(60,70,150,0.5);
  }
}
.sb-head { display: flex; align-items: center; gap: 10px; }
.sb-new {
  width: 100%;
  flex: 0 0 auto;
  height: 46px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 14.5px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 14px 26px -14px rgba(106,114,255,0.9), inset 0 1px 0 rgba(255,255,255,0.35);
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.3s, filter 0.2s;
  position: relative;
  overflow: hidden;
}
.sb-new:hover { transform: translateY(-1.5px); filter: brightness(1.05); }
.sb-new:active { transform: scale(0.97); }

.conv-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0 -4px;
  padding: 0 4px 6px;
  -webkit-overflow-scrolling: touch;
}
.conv-group-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.6px;
  padding: 10px 8px 4px;
  text-transform: uppercase;
}
.conv-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border-radius: 14px;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.22s, color 0.22s, transform 0.22s var(--ease-spring);
  position: relative;
  animation: enterUp 0.4s var(--ease) both;
}
.conv-item:hover { background: rgba(255,255,255,0.78); color: var(--ink); }
.conv-item.active {
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(240,238,255,0.9));
  color: var(--ink);
  box-shadow: var(--shadow-sm), inset 0 1px 0 #fff;
  font-weight: 600;
}
.conv-item.active::before {
  content: "";
  position: absolute; left: 0; top: 22%; bottom: 22%;
  width: 3px; border-radius: 99px;
  background: linear-gradient(var(--brand), var(--brand-2));
}
.conv-item .t {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conv-item .x {
  opacity: 0;
  width: 22px; height: 22px;
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--ink-3);
  transition: opacity 0.2s, background 0.2s, color 0.2s;
  flex: none;
}
.conv-item:hover .x { opacity: 1; }
.conv-item .x:hover { background: rgba(255,92,114,0.12); color: var(--danger); }

.sb-foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.7);
}
.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 16px;
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--stroke-soft);
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}
.user-card:hover { background: rgba(255,255,255,0.85); }
.user-card:active { transform: scale(0.98); }
.avatar {
  width: 36px; height: 36px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(140deg, #7f8bff, #a56bff 70%, #5ad4ff);
  box-shadow: 0 8px 16px -10px rgba(106,114,255,0.9);
  flex: none;
}
.user-card .u-info { min-width: 0; flex: 1; }
.user-card .u-name { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-card .u-bal { font-size: 12px; color: var(--ink-3); }
.sb-links { display: flex; gap: 6px; }
.sb-link {
  flex: 1;
  height: 38px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--stroke-soft);
  display: grid; place-items: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  text-decoration: none;
}
.sb-link:hover { background: #fff; color: var(--brand); }
.sb-link:active { transform: scale(0.96); }

.drawer-mask {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(28,32,60,0.22);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.drawer-mask.show { opacity: 1; pointer-events: auto; }
@media (min-width: 980px) { .drawer-mask { display: none; } }

/* ---------------- 聊天主区 ---------------- */
.chat-area {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100dvh;
  position: relative;
}
.chat-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: calc(76px + var(--sat)) 14px 16px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}
@media (min-width: 980px) {
  .chat-scroll { padding: calc(80px + var(--sat)) 26px 16px; }
}
.chat-inner {
  max-width: 880px;
  margin: 0 auto;
  padding-bottom: 8px;
}

/* ---------------- 空状态 Hero ---------------- */
.hero {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 6px 26px;
  gap: 12px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: #5b4bd6;
  background: rgba(255,255,255,0.72);
  border: 1px solid #fff;
  box-shadow: var(--shadow-sm);
  animation: enterUp 0.6s var(--ease) both;
}
.hero h1 {
  margin: 6px 0 0;
  font-size: clamp(27px, 7.4vw, 44px);
  line-height: 1.16;
  letter-spacing: -1.2px;
  font-weight: 850;
  animation: enterUp 0.65s var(--ease) both 0.06s;
}
.hero h1 .grad {
  background: linear-gradient(100deg, #6a72ff 0%, #a06bff 38%, #35c8ff 72%, #ff9166 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradSlide 9s ease infinite;
}
@keyframes gradSlide {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero p {
  margin: 2px auto 8px;
  max-width: 460px;
  color: var(--ink-2);
  font-size: 14.5px;
  animation: enterUp 0.7s var(--ease) both 0.12s;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
  max-width: 620px;
}
.chip {
  padding: 10px 15px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  background: rgba(255,255,255,0.66);
  border: 1px solid rgba(255,255,255,0.95);
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s var(--ease-spring), background 0.24s, color 0.24s, box-shadow 0.24s;
  animation: enterUp 0.5s var(--ease) both;
  position: relative;
  overflow: hidden;
}
.chip:hover {
  transform: translateY(-2.5px) scale(1.02);
  background: #fff;
  color: var(--brand);
  box-shadow: 0 12px 24px -14px rgba(106,114,255,0.75);
}
.chip:active { transform: scale(0.96); }

/* ---------------- 消息 ---------------- */
.msg-row {
  display: flex;
  margin-bottom: 20px;
  animation: msgIn 0.5s var(--ease) both;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(14px) scale(0.985); filter: blur(3px); }
  to { opacity: 1; transform: none; filter: none; }
}
.msg-user { justify-content: flex-end; }
.msg-user .bubble {
  max-width: min(84%, 560px);
  padding: 13px 17px;
  border-radius: 22px 22px 6px 22px;
  color: #fff;
  font-size: 15px;
  line-height: 1.5;
  background: linear-gradient(135deg, #7b83ff 0%, #9a6bff 60%, #7fd0ff 130%);
  background-size: 200% 200%;
  box-shadow: 0 16px 32px -20px rgba(106,114,255,0.95), inset 0 1px 0 rgba(255,255,255,0.32);
  white-space: pre-wrap;
  word-break: break-word;
  animation: gradShift 10s ease infinite;
}
.msg-user .refs {
  display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap;
}
.msg-user .refs img {
  width: 64px; height: 64px; object-fit: cover; border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.7);
  box-shadow: var(--shadow-sm);
}
.msg-bot { gap: 10px; }

.bot-card {
  flex: 1;
  min-width: 0;
  border-radius: 22px;
  padding: 14px;
  max-width: min(100%, 640px);
}
.bot-card.done { padding: 12px 12px 10px; }

.img-shell {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.7);
  box-shadow: 0 14px 30px -20px rgba(60,70,150,0.6);
  cursor: zoom-in;
}
.img-shell img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 62vh;
  margin: 0 auto;
  animation: imgReveal 0.9s var(--ease) both;
}
@media (max-width: 640px) {
  .img-shell img { width: 100%; max-height: none; }
}
@keyframes imgReveal {
  from { opacity: 0; filter: blur(16px) saturate(1.3); transform: scale(1.045); }
  to { opacity: 1; filter: none; transform: none; }
}
.img-shell::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.34), transparent 42%);
  pointer-events: none;
}
.meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-3);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.9);
  font-weight: 600;
  color: var(--ink-2);
  font-size: 11.5px;
}
.pill.cost { color: #b8365e; background: rgba(255,238,244,0.9); }
.actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.act {
  height: 34px;
  padding: 0 12px;
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--stroke-soft);
  display: inline-flex; align-items: center; gap: 5px;
  transition: transform 0.2s var(--ease-spring), background 0.2s, color 0.2s;
}
.act:hover { background: #fff; color: var(--brand); transform: translateY(-1px); }
.act:active { transform: scale(0.94); }

/* ---------------- 生成进度 ---------------- */
.prog-card { width: 100%; }
.prog-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.prog-spark {
  width: 34px; height: 34px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(106,114,255,0.16), rgba(53,200,255,0.16));
  position: relative;
}
.prog-spark::before {
  content: "";
  position: absolute; inset: 0; border-radius: inherit;
  background: conic-gradient(from 0deg, var(--brand), var(--brand-3), var(--brand-2), var(--brand));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
  animation: spin 2.4s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.prog-spark span { font-size: 14px; animation: breathe 2s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.16); opacity: 1; }
}
.prog-title { font-weight: 700; font-size: 14px; }
.prog-stage { font-size: 12.5px; color: var(--ink-3); min-height: 18px; }
.prog-pct { margin-left: auto; font-weight: 800; font-size: 14px; color: var(--brand); font-variant-numeric: tabular-nums; }

.prog-track {
  height: 8px;
  border-radius: 99px;
  background: rgba(120,130,190,0.14);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(70,80,150,0.1);
}
.prog-fill {
  height: 100%;
  border-radius: 99px;
  width: 0%;
  background: linear-gradient(90deg, #7b83ff, #a06bff 45%, #35c8ff);
  background-size: 200% 100%;
  transition: width 0.7s var(--ease);
  position: relative;
  animation: gradShift 3s linear infinite;
  box-shadow: 0 0 12px rgba(122,132,255,0.7);
}
.prog-fill::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,0.7) 50%, transparent 80%);
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
}
.preview-shell {
  margin-top: 12px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: rgba(255,255,255,0.5);
  min-height: 0;
}
.preview-shell img {
  display: block; width: 100%; height: auto;
  filter: blur(10px) saturate(1.15);
  transform: scale(1.03);
  transition: filter 0.6s ease;
  animation: breatheImg 3s ease-in-out infinite;
}
@keyframes breatheImg {
  0%, 100% { transform: scale(1.03); }
  50% { transform: scale(1.055); }
}
.preview-shell::after {
  content: "";
  position: absolute; left: 0; right: 0; height: 34%;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.55), transparent);
  animation: scan 2.1s var(--ease) infinite;
}
@keyframes scan {
  0% { top: -34%; }
  100% { top: 100%; }
}
.typing-dots { display: inline-flex; gap: 4px; align-items: center; }
.typing-dots i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
  animation: dotBounce 1.2s infinite ease-in-out;
}
.typing-dots i:nth-child(2) { animation-delay: 0.15s; }
.typing-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dotBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-5px); opacity: 1; }
}
.err-card {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,238,241,0.85);
  border: 1px solid rgba(255,190,200,0.9);
  color: #b3132c;
  font-size: 13.5px;
  font-weight: 600;
  display: flex; align-items: center; gap: 9px;
}

/* ---------------- 输入区 ---------------- */
.composer-wrap {
  position: sticky;
  bottom: 0;
  z-index: 30;
  padding: 8px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, rgba(240,242,250,0.92) 30%, rgba(240,242,250,0.55) 70%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
@media (min-width: 980px) {
  .composer-wrap { padding: 8px 26px calc(16px + env(safe-area-inset-bottom, 0px)); }
}
.composer {
  max-width: 880px;
  margin: 0 auto;
  border-radius: 24px;
  padding: 10px 10px 8px;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.composer:focus-within {
  box-shadow: 0 22px 50px -24px rgba(106,114,255,0.6), inset 0 1px 0 #fff;
  transform: translateY(-1px);
}
.ref-strip { display: flex; gap: 8px; flex-wrap: wrap; padding: 2px 4px 8px; }
.ref-strip:empty { display: none; }
.ref-thumb {
  position: relative;
  width: 62px; height: 62px;
  border-radius: 13px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.95);
  box-shadow: var(--shadow-sm);
  animation: popIn 0.4s var(--ease-spring);
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.6) rotate(-8deg); }
  to { opacity: 1; transform: none; }
}
.ref-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ref-thumb .rm {
  position: absolute; top: 3px; right: 3px;
  width: 19px; height: 19px; border-radius: 50%;
  background: rgba(20,22,42,0.62);
  color: #fff; font-size: 12px; line-height: 19px; text-align: center;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
#promptInput {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 15.5px;
  color: var(--ink);
  resize: none;
  padding: 8px 10px 4px;
  max-height: 148px;
  min-height: 26px;
  line-height: 1.5;
}
#promptInput::placeholder { color: var(--ink-3); }

.composer-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 0;
}
.chip-btn {
  height: 38px;
  padding: 0 11px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--stroke-soft);
  display: inline-flex; align-items: center; gap: 5px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  flex: none;
}
.chip-btn:hover { background: #fff; color: var(--brand); }
.chip-btn:active { transform: scale(0.94); }

.tier-seg {
  position: relative;
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 13px;
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--stroke-soft);
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.tier-seg .seg-pill {
  position: absolute;
  top: 3px; bottom: 3px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(238,236,255,0.95));
  box-shadow: 0 4px 12px -6px rgba(106,114,255,0.7), inset 0 1px 0 #fff;
  transition: transform 0.4s var(--ease), width 0.4s var(--ease);
  pointer-events: none;
}
.tier-seg button {
  position: relative;
  z-index: 1;
  flex: 1;
  height: 32px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-3);
  transition: color 0.3s;
  white-space: nowrap;
  padding: 0 4px;
}
.tier-seg button.on { color: var(--brand); }
.tier-seg button small { font-weight: 600; opacity: 0.75; font-size: 10.5px; }

.send-btn {
  width: 46px; height: 46px;
  border-radius: 15px;
  flex: none;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(140deg, var(--brand), var(--brand-2) 70%, var(--brand-3));
  box-shadow: 0 14px 26px -14px rgba(106,114,255,0.95), inset 0 1px 0 rgba(255,255,255,0.4);
  transition: transform 0.22s var(--ease-spring), filter 0.2s, opacity 0.2s;
  position: relative;
  overflow: hidden;
}
.send-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.send-btn:active { transform: scale(0.92); }
.send-btn:disabled { opacity: 0.45; filter: grayscale(0.3); cursor: not-allowed; transform: none; }
.send-btn svg { width: 20px; height: 20px; }
.send-btn.loading svg { display: none; }
.send-btn.loading::after {
  content: "";
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  animation: spin 0.75s linear infinite;
}
.hint-line {
  text-align: center;
  font-size: 11px;
  color: var(--ink-3);
  padding: 6px 0 0;
}

/* ---------------- 图片放大器 ---------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(16,18,34,0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  display: grid;
  place-items: center;
  padding: 16px;
  animation: enterFade 0.3s ease;
}
.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 18px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.7);
  animation: lbIn 0.45s var(--ease-spring);
}
@keyframes lbIn {
  from { opacity: 0; transform: scale(0.86); }
  to { opacity: 1; transform: none; }
}
.lightbox .lb-bar {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px;
}
.lb-btn {
  height: 44px; padding: 0 18px;
  border-radius: 999px;
  font-size: 14px; font-weight: 700;
  color: var(--ink);
  background: rgba(255,255,255,0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  display: inline-flex; align-items: center; gap: 6px;
  transition: transform 0.2s var(--ease-spring);
}
.lb-btn:active { transform: scale(0.94); }
.lb-close {
  position: fixed; top: calc(16px + var(--sat)); right: 16px;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.85);
  color: var(--ink);
  display: grid; place-items: center;
  font-size: 20px;
}

/* 浮动提示气泡（首次进入） */
.coach {
  position: fixed;
  z-index: 90;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(112px + env(safe-area-inset-bottom, 0px));
  max-width: min(92vw, 380px);
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  color: #4b3fb8;
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow-lg);
  border: 1px solid #fff;
  animation: coachIn 0.5s var(--ease-spring);
  display: flex; align-items: center; gap: 9px;
}
@keyframes coachIn {
  from { opacity: 0; transform: translate(-50%, 16px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------------- 头部改为流式（非 fixed） ---------------- */
.topbar.in-chat {
  position: relative;
  top: auto; left: auto; right: auto;
  height: 62px;
  flex: none;
  border-radius: 0 0 20px 20px;
}
.chat-scroll { padding-top: 14px; }
@media (min-width: 980px) {
  .chat-scroll { padding-top: 16px; }
}
.coach em { color: var(--brand); font-style: normal; }

/* 公告 */
.announce {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(92%, 560px);
  padding: 10px 16px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  color: #4b3fb8;
  text-align: left;
  animation: enterUp 0.5s var(--ease) both;
}
.announce span { overflow: hidden; text-overflow: ellipsis; }
