:root {
  /* 亮色模式变量 (默认) */
  --bg-primary: #ffffff;
  --bg-secondary: #f9f9fb;
  --bg-sidebar: #f3f4f6;
  --bg-input: #ffffff;
  --bg-user-msg: #eef2ff;
  --bg-ai-msg: #ffffff;
  --bg-button: #4f46e5;
  --bg-button-hover: #4338ca;
  --bg-hover: rgba(0, 0, 0, 0.05);
  
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-tertiary: #9ca3af;
  --text-inverse: #ffffff;
  
  --border-color: #e5e7eb;
  --border-focus: #4f46e5;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 暗色模式变量 */
html.dark {
  --bg-primary: #1f2937;
  --bg-secondary: #111827;
  --bg-sidebar: #111827;
  --bg-input: #374151;
  --bg-user-msg: #3730a3;
  --bg-ai-msg: #1f2937;
  --bg-button: #6366f1;
  --bg-button-hover: #4f46e5;
  --bg-hover: rgba(255, 255, 255, 0.1);
  
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-tertiary: #9ca3af;
  --text-inverse: #ffffff;
  
  --border-color: #374151;
  --border-focus: #6366f1;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  transition: background-color 0.3s, color 0.3s;
}

#app {
  width: 100%;
  height: 100vh;
  height: 100dvh;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.2s;
}

input, textarea {
  font-family: inherit;
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

html.dark ::-webkit-scrollbar-thumb {
  background: #4b5563;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

html.dark ::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}
.app-container[data-v-64e57e5a] {
  display: flex;
  height: 100vh;
}
.main-content[data-v-64e57e5a] {
  flex: 1;
  overflow: auto;
  padding: 20px;
}
.logo[data-v-64e57e5a] {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo[data-v-64e57e5a]:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.vue[data-v-64e57e5a]:hover {
  filter: drop-shadow(0 0 2em #42b883aa);
}

/* 重置浏览器默认样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body, #app {
  height: 100%;
  width: 100%;
  overflow: hidden;
}
.app-container {
  height: 100%;
  width: 100%;
}
