/* ============================================
   Cloud · 高仿 Claude 风格 + 液态玻璃
   ============================================ */

/* --- 字体定义 --- */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  --font-serif: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Monaco, Consolas, monospace;
}

/* --- 主题：浅色（Claude 浅色配色） --- */
[data-theme="light"] {
  /* 基础 */
  --bg-page: #faf9f5;
  --bg-app: #ffffff;
  --bg-elevated: #ffffff;
  --bg-subtle: #f5f4ed;
  --bg-hover: #efece4;

  /* 文字 */
  --text-primary: #2d2b26;
  --text-secondary: #5e5c56;
  --text-tertiary: #8a8780;
  --text-on-accent: #ffffff;

  /* 边框 */
  --border-default: rgba(45, 43, 38, 0.08);
  --border-strong: rgba(45, 43, 38, 0.16);

  /* 强调色（Claude 橙） */
  --accent: #c96442;
  --accent-hover: #b55738;
  --accent-soft: rgba(201, 100, 66, 0.08);

  /* 玻璃 */
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 8px 32px rgba(45, 43, 38, 0.06);
  --glass-highlight: rgba(255, 255, 255, 0.8);

  /* Ambient 背景模糊光斑 */
  --ambient-1: rgba(255, 192, 165, 0.4);
  --ambient-2: rgba(167, 199, 231, 0.4);
  --ambient-3: rgba(231, 218, 245, 0.3);

  /* 代码块 */
  --code-bg: #f6f5ee;
  --code-border: rgba(45, 43, 38, 0.08);

  --shadow-sm: 0 1px 2px rgba(45, 43, 38, 0.04);
  --shadow-md: 0 4px 16px rgba(45, 43, 38, 0.08);
  --shadow-lg: 0 12px 40px rgba(45, 43, 38, 0.12);
}

/* --- 主题：深色（Claude 深色配色） --- */
[data-theme="dark"] {
  --bg-page: #1f1e1b;
  --bg-app: #262624;
  --bg-elevated: #2c2b28;
  --bg-subtle: #34332f;
  --bg-hover: #3d3c37;

  --text-primary: #f5f3ee;
  --text-secondary: #b8b5ac;
  --text-tertiary: #7d7a72;
  --text-on-accent: #ffffff;

  --border-default: rgba(245, 243, 238, 0.08);
  --border-strong: rgba(245, 243, 238, 0.16);

  --accent: #e8804e;
  --accent-hover: #f08e5e;
  --accent-soft: rgba(232, 128, 78, 0.12);

  --glass-bg: rgba(38, 38, 36, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --glass-highlight: rgba(255, 255, 255, 0.04);

  --ambient-1: rgba(232, 128, 78, 0.18);
  --ambient-2: rgba(80, 120, 180, 0.2);
  --ambient-3: rgba(140, 100, 200, 0.15);

  --code-bg: #1a1a18;
  --code-border: rgba(245, 243, 238, 0.08);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* --- 重置 --- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: var(--font-sans);
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg-page);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.003em;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  font-size: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  border-bottom-width: 2px;
  color: var(--text-secondary);
}

/* --- Ambient 背景（液态光斑） --- */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 1;
  will-change: transform;
}

.blob-1 {
  width: 520px;
  height: 520px;
  background: var(--ambient-1);
  top: -120px;
  left: -120px;
  animation: drift1 24s ease-in-out infinite;
}
.blob-2 {
  width: 460px;
  height: 460px;
  background: var(--ambient-2);
  bottom: -120px;
  right: -120px;
  animation: drift2 28s ease-in-out infinite;
}
.blob-3 {
  width: 380px;
  height: 380px;
  background: var(--ambient-3);
  top: 40%;
  left: 50%;
  animation: drift3 32s ease-in-out infinite;
}

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(80px, 60px) scale(1.1); }
  66% { transform: translate(-40px, 100px) scale(0.95); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-100px, -40px) scale(1.05); }
  66% { transform: translate(-60px, 80px) scale(1.1); }
}
@keyframes drift3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-30%, -60%) scale(1.15); }
}

/* --- 液态玻璃通用类 --- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* 玻璃按钮 */
.glass-btn {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-btn:hover {
  background: var(--bg-hover);
  transform: translateY(-1px);
}
.glass-btn:active {
  transform: translateY(0);
}

/* --- App 主布局 --- */
.app {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* --- 侧边栏 --- */
.sidebar {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  margin: 12px 0 12px 12px;
  padding: 16px;
  gap: 12px;
}

.sidebar-header {
  padding: 4px;
}

.new-chat-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 14px;
}

.sidebar-section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  padding: 8px 12px 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chat-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 4px;
  /* 自定义滚动条 */
}
.chat-list::-webkit-scrollbar { width: 6px; }
.chat-list::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 3px;
}
.chat-list::-webkit-scrollbar-track { background: transparent; }

.chat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
  overflow: hidden;
}
.chat-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.chat-item.active {
  background: var(--accent-soft);
  color: var(--text-primary);
  font-weight: 500;
}
.chat-item-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-item-actions {
  display: none;
  gap: 2px;
}
.chat-item:hover .chat-item-actions { display: flex; }
.chat-item-action {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  transition: all 0.15s;
}
.chat-item-action:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.sidebar-footer {
  padding-top: 8px;
  border-top: 1px solid var(--border-default);
}

.user-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 13px;
  text-align: left;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #e8a87c);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-family: var(--font-serif);
  flex-shrink: 0;
}

.user-info { flex: 1; min-width: 0; }
.user-name { font-weight: 500; color: var(--text-primary); }
.user-plan { font-size: 11.5px; color: var(--text-tertiary); }

/* --- 主区域 --- */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
}

/* 顶部导航 */
.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  margin: 12px 12px 0;
  border-radius: 16px;
  height: 56px;
  flex-shrink: 0;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.15s;
}
.icon-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.icon-btn.ghost {
  background: transparent;
}
.icon-btn.ghost:hover {
  background: var(--bg-hover);
}

.model-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  gap: 4px;
}

/* --- 消息区 --- */
.messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.messages::-webkit-scrollbar { width: 8px; }
.messages::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}
.messages::-webkit-scrollbar-track { background: transparent; }

/* 欢迎屏 */
.welcome {
  max-width: 720px;
  width: 100%;
  padding: 48px 24px 32px;
  text-align: center;
  margin: auto 0;
}
.welcome-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 20px;
}
.welcome-title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.welcome-sub {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.welcome-suggestions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.suggestion-card {
  text-align: left;
  padding: 14px 16px;
  border-radius: 14px;
  transition: all 0.2s;
  cursor: pointer;
}
.suggestion-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.suggestion-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.suggestion-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* --- 消息气泡 --- */
.message {
  max-width: 760px;
  width: 100%;
  padding: 16px 24px;
  display: flex;
  gap: 14px;
  position: relative;
  animation: messageIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes messageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  font-family: var(--font-serif);
}
.message.user .message-avatar {
  background: var(--bg-subtle);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}
.message.assistant .message-avatar {
  background: linear-gradient(135deg, var(--accent), #e8a87c);
  color: white;
}

.message-body { flex: 1; min-width: 0; }
.message-author {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}
.message-content {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-primary);
  word-wrap: break-word;
}

/* Markdown 渲染 */
.message-content p {
  margin: 0 0 12px;
}
.message-content p:last-child { margin-bottom: 0; }
.message-content h1, .message-content h2, .message-content h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  margin: 18px 0 8px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.message-content h1 { font-size: 24px; }
.message-content h2 { font-size: 20px; }
.message-content h3 { font-size: 17px; }

.message-content ul, .message-content ol {
  margin: 0 0 12px 24px;
}
.message-content li { margin-bottom: 4px; }

.message-content blockquote {
  margin: 12px 0;
  padding: 8px 16px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 8px 8px 0;
  color: var(--text-secondary);
}

.message-content code:not(pre code) {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 2px 6px;
  background: var(--bg-subtle);
  border-radius: 5px;
  border: 1px solid var(--border-default);
  color: var(--accent);
}

.message-content pre {
  position: relative;
  margin: 12px 0;
  padding: 14px 16px;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 10px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.55;
}
.message-content pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--code-border);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  font-size: 12px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}
.message-content pre + .code-header,
.code-header + pre {
  border-radius: 0;
  margin-top: 0;
}
.code-header + pre {
  border-radius: 0 0 10px 10px;
  margin-top: 0;
}
.code-copy {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-tertiary);
  transition: all 0.15s;
}
.code-copy:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.message-content table {
  border-collapse: collapse;
  margin: 12px 0;
  width: 100%;
  font-size: 14px;
}
.message-content th, .message-content td {
  padding: 8px 12px;
  border: 1px solid var(--border-default);
  text-align: left;
}
.message-content th {
  background: var(--bg-subtle);
  font-weight: 600;
}

/* 消息操作栏 */
.message-actions {
  display: flex;
  gap: 4px;
  margin-top: 8px;
  opacity: 0;
  transition: opacity 0.2s;
}
.message:hover .message-actions { opacity: 1; }
.message-action {
  padding: 4px 10px;
  font-size: 12px;
  color: var(--text-tertiary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}
.message-action:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.message-action.copied {
  color: var(--accent);
}

/* 打字光标 */
.cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s infinite;
  border-radius: 2px;
}
@keyframes blink { 50% { opacity: 0; } }

/* 思考中动画 */
.thinking {
  display: inline-flex;
  gap: 4px;
  padding: 4px 0;
}
.thinking-dot {
  width: 6px;
  height: 6px;
  background: var(--text-tertiary);
  border-radius: 50%;
  animation: bounce 1.4s infinite;
}
.thinking-dot:nth-child(2) { animation-delay: 0.16s; }
.thinking-dot:nth-child(3) { animation-delay: 0.32s; }
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* --- 输入区 --- */
.composer-wrap {
  padding: 16px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.composer {
  width: 100%;
  max-width: 760px;
  border-radius: 24px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s;
}
.composer:focus-within {
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.composer-input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  resize: none;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--text-primary);
  max-height: 200px;
  min-height: 24px;
  padding: 6px 8px;
  font-family: var(--font-sans);
}
.composer-input::placeholder {
  color: var(--text-tertiary);
}

.composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.composer-tools {
  display: flex;
  gap: 4px;
}

.send-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.send-btn:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: scale(1.05);
}
.send-btn:disabled {
  background: var(--bg-subtle);
  color: var(--text-tertiary);
  cursor: not-allowed;
}
.send-btn.stop {
  background: var(--accent);
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 100, 66, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(201, 100, 66, 0); }
}

.composer-hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-tertiary);
  text-align: center;
}

/* --- 设置弹窗 --- */
[hidden] { display: none !important; }

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  width: 90%;
  max-width: 520px;
  border-radius: 18px;
  background: var(--bg-elevated);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-default);
}
.modal-header h2 {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.modal-body {
  padding: 20px 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.form-row input[type="text"],
.form-row textarea,
.form-row select {
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-default);
  background: var(--bg-app);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  border-color: var(--accent);
}
.form-row .hint {
  font-size: 12px;
  color: var(--text-tertiary);
}

.range-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.range-row input[type="range"] {
  flex: 1;
  accent-color: var(--accent);
}
.range-row span {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  min-width: 32px;
  text-align: right;
}

.seg {
  display: flex;
  gap: 4px;
  background: var(--bg-subtle);
  padding: 4px;
  border-radius: 10px;
  width: fit-content;
}
.seg-btn {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all 0.15s;
}
.seg-btn.active {
  background: var(--bg-elevated);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.modal-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 16px 22px;
  border-top: 1px solid var(--border-default);
}

.btn-primary, .btn-secondary {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
}
.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary {
  background: var(--bg-subtle);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}
.btn-secondary:hover { background: var(--bg-hover); }

/* --- 下拉菜单 --- */
.dropdown {
  position: fixed;
  z-index: 50;
  border-radius: 14px;
  padding: 6px;
  min-width: 240px;
  animation: modalIn 0.15s;
}
.dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background 0.15s;
}
.dropdown-item:hover { background: var(--bg-hover); }
.dropdown-item.active { background: var(--accent-soft); }
.di-title { font-weight: 500; font-size: 14px; }
.di-desc { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }

.dropdown-mask {
  position: fixed;
  inset: 0;
  z-index: 49;
}

/* --- 响应式 --- */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: -300px;
    top: 0;
    bottom: 0;
    margin: 0;
    border-radius: 0;
    width: 280px;
    z-index: 30;
    transition: left 0.25s;
  }
  .sidebar.open { left: 0; }
  .topbar { margin: 8px 8px 0; padding: 8px 12px; }
  .messages { padding: 16px 0 8px; }
  .welcome-suggestions { grid-template-columns: 1fr; }
  .welcome-title { font-size: 28px; }
  .composer-wrap { padding: 12px 12px 16px; }
  .composer { border-radius: 18px; }
  .message { padding: 12px 14px; gap: 10px; }
}

/* --- 隐藏滚动条但保留滚动 --- */
.hide-scroll::-webkit-scrollbar { display: none; }
.hide-scroll { scrollbar-width: none; }