:root {
  --brand: #4d6bfe;
  --brand-deep: #3b55e6;
  --sidebar-w: 260px;
  --sidebar-bg: #f9fbff;
  --sidebar-line: #edf0f5;
  --sidebar-text: #3b4250;
  --sidebar-hover: rgba(77, 107, 254, 0.055);
  --sidebar-active: rgba(77, 107, 254, 0.09);
  --sidebar-active-text: #3b55e6;
  --main-bg: #ffffff;
  --chat-width: 860px;
  --composer-width: 800px;
  --composer-radius: 26px;
  --composer-border: #e1e5ec;
  --composer-shadow: 0 4px 26px rgba(17, 32, 74, 0.055);
  --composer-focus-shadow: 0 0 0 4px rgba(77, 107, 254, 0.09);
  --user-bubble: #eff6ff;
  --user-text: #1f355a;
  --send-bg: #4d6bfe;
  --send-color: #ffffff;
  --avatar-bg: linear-gradient(140deg, #6f8cff, #4d6bfe 60%, #3b55e6);
  --top-link: #5d6472;
  --hrx-link: #3b55e6;
  --hrx-hover: rgba(77, 107, 254, 0.07);
  --icon-color: #5d6470;
  --tool-color: #555e6d;
  --placeholder: #a3a9b4;
  --assistant-avatar-size: 30px;
}

body {
  background: #ffffff;
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
}

button:focus-visible,
a:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(77, 107, 254, 0.5);
  outline-offset: 2px;
}

.composer textarea:focus-visible { outline: none; }

.sidebar {
  background: var(--sidebar-bg);
}

.brand {
  color: #26314d;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.brand-mark {
  width: 30px;
  height: 30px;
}

.brand-mark svg { width: 100%; height: 100%; display: block; }

.side-nav { padding-top: 12px; }

.side-item { border-radius: 10px; }

.side-item-primary { color: #2f3a4d; }

.side-item-primary .icon { color: #4d6bfe; opacity: 1; }

.history-item { border-radius: 9px; }

.main { isolation: isolate; }

.main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(580px 380px at 50% -80px, rgba(77, 107, 254, 0.055), transparent 72%);
}

.topbar,
.chat-region {
  position: relative;
  z-index: 1;
}

.topbar {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
}

.model-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #3f4653;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.model-pill:hover {
  border-color: rgba(77, 107, 254, 0.1);
  background: #f7f9ff;
}

.model-pill .icon { font-size: 14px; color: #97a0ad; }

.topbar-right { gap: 6px; }

.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(140deg, #eaf0ff, #dbe5ff);
  color: #3b55e6;
  font-size: 13px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(77, 107, 254, 0.1);
}

.chat-scroll {
  display: flex;
  flex-direction: column;
}

.welcome {
  flex: 1 0 auto;
  justify-content: center;
  gap: 22px;
  padding: 42px 24px 30px;
}

.hero-logo {
  width: 82px;
  height: 82px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: deepseekFloat 5.5s ease-in-out infinite;
}

@keyframes deepseekFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.hero-logo svg { width: 100%; height: 100%; display: block; }

.welcome-copy { display: flex; flex-direction: column; gap: 11px; }

.welcome h1 {
  color: #1f2733;
  font-size: clamp(24px, 3vw, 31px);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.welcome p {
  color: #8d95a2;
  font-size: 14.5px;
  line-height: 1.7;
}

.prompt-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 720px;
  margin-top: 2px;
}

.prompt-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(77, 107, 254, 0.09);
  border-radius: 999px;
  background: rgba(249, 251, 255, 0.85);
  color: #596274;
  font-size: 12.5px;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.prompt-chip .icon { font-size: 14px; color: #6980f5; }

.prompt-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(77, 107, 254, 0.2);
  background: #f4f7ff;
  color: #3b55e6;
}

.composer-bottom-slot {
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
}

.deepseek-composer {
  border-radius: 26px;
  background: #ffffff;
}

.deepseek-composer textarea {
  min-height: 30px;
  font-size: 15px;
  line-height: 1.7;
}

.composer-tools { margin-top: 10px; }

.attach-btn {
  border-radius: 50%;
  background: #f6f8fc;
}

.deepseek-chip {
  height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  background: #f8fafc;
  color: #596170;
  font-size: 12px;
}

.deepseek-chip .icon { font-size: 14px; }

.deepseek-chip:hover {
  background: #f1f5ff;
  border-color: rgba(77, 107, 254, 0.15);
  color: #3b55e6;
}

.icon-btn:hover { background: rgba(77, 107, 254, 0.06); color: #3b55e6; }

.send-btn {
  width: 34px;
  height: 34px;
  box-shadow: 0 4px 12px rgba(77, 107, 254, 0.2);
}

.send-btn .icon { font-size: 17px; }

.send-btn:disabled {
  background: #e1e5ec;
  box-shadow: none;
  opacity: 1;
}

.ai-note {
  margin: 0;
  color: #a6abb5;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

.messages { padding-top: 30px; padding-bottom: 30px; }

.message.assistant { gap: 12px; }

.assistant-avatar {
  background: linear-gradient(140deg, #6f8cff, #4d6bfe 60%, #3b55e6);
  color: #ffffff;
  box-shadow: 0 4px 11px rgba(77, 107, 254, 0.16);
}

.assistant-head { color: #29313f; }

.model-chip { background: #eef3ff; color: #647bb5; }

.assistant-content { color: #2f3540; }

.assistant-content a { color: #3b55e6; }

.assistant-content blockquote { border-left-color: #6f8cff; }

.message.user .bubble {
  background: #eff6ff;
  color: #1f355a;
  border-radius: 18px 18px 5px 18px;
}

.assistant-actions button:hover,
.user-actions button:hover {
  background: rgba(77, 107, 254, 0.06);
  color: #3b55e6;
}

.message-error {
  background: #fff2f3;
  color: #c33a4a;
}

.typing-indicator i { background: #4d6bfe; }

.user-card {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 7px 8px;
  border-radius: 10px;
  text-align: left;
  transition: background 0.15s ease;
}

.user-card:hover { background: rgba(77, 107, 254, 0.055); }

.user-card-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(140deg, #eaf0ff, #dbe5ff);
  color: #3b55e6;
  font-size: 12px;
  font-weight: 700;
}

.user-card-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}

.user-card-meta strong {
  overflow: hidden;
  color: #3d4654;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.user-card-meta small { color: #9aa3b2; font-size: 10.5px; }

.user-card .icon { color: #9aa3b2; font-size: 15px; }

@media (max-width: 860px) {
  .welcome { padding: 32px 16px 24px; gap: 19px; }
  .hero-logo { width: 66px; height: 66px; padding: 0; }
  .welcome h1 { font-size: 24px; }
  .welcome p { font-size: 13.5px; padding: 0 8px; }
  .prompt-row { gap: 7px; }
  .prompt-chip { height: 32px; padding: 0 10px; font-size: 12px; }
  .topbar { background: rgba(255, 255, 255, 0.9); }
  .user-avatar { display: none; }
  .composer-bottom-slot { padding-bottom: 14px; }
}

@media (max-width: 480px) {
  .brand { font-size: 19px; }
  .model-pill { font-size: 13px; padding: 0 7px; }
  .hrx-link { padding: 6px 5px; font-size: 12px; }
  .prompt-row { flex-direction: column; width: 100%; max-width: 360px; }
  .prompt-chip { width: 100%; justify-content: center; }
  .deepseek-chip span:last-child { max-width: 96px; overflow: hidden; text-overflow: ellipsis; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo { animation: none; }
  .prompt-chip { transition: none; }
}
