* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
body { background-color: #f0f2f5; color: #333; display: flex; height: 100vh; overflow: hidden; }

/* 侧边栏 */
aside { width: 280px; background: #1e293b; color: #fff; display: flex; flex-direction: column; padding: 20px; }
aside h2 { font-size: 18px; margin-bottom: 24px; color: #38bdf8; display: flex; align-items: center; gap: 8px; }
.nav-item { padding: 12px 16px; border-radius: 8px; cursor: pointer; margin-bottom: 8px; color: #94a3b8; transition: all 0.2s; font-size: 14px; }
.nav-item:hover, .nav-item.active { background: #334155; color: #fff; }

/* 主体区域 */
main { flex: 1; display: flex; flex-direction: column; background: #fff; height: 100vh; overflow: hidden; }
header { padding: 16px 24px; border-bottom: 1px solid #e2e8f0; font-weight: 600; font-size: 16px; background: #fff; }

/* 视图容器 */
.view-section { display: none; flex: 1; flex-direction: column; height: calc(100vh - 60px); overflow: hidden; }
.view-section.active { display: flex; }

/* 聊天窗口样式 */
.chat-container { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.message { max-width: 80%; padding: 14px 18px; border-radius: 12px; line-height: 1.6; font-size: 15px; white-space: pre-wrap; word-break: break-all; }
.message.user { background: #2563eb; color: #fff; align-self: flex-end; border-bottom-right-radius: 2px; }
.message.ai { background: #f1f5f9; color: #1e293b; align-self: flex-start; border-bottom-left-radius: 2px; border: 1px solid #e2e8f0; }

/* 输入控制区 */
.input-panel { border-top: 1px solid #e2e8f0; padding: 16px; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.input-row { display: flex; gap: 12px; align-items: center; }
textarea { flex: 1; padding: 12px; border: 1px solid #cbd5e1; border-radius: 8px; resize: none; height: 50px; font-size: 14px; outline: none; }
textarea:focus { border-color: #2563eb; }
.file-upload-label { cursor: pointer; background: #f8fafc; border: 1px dashed #cbd5e1; padding: 10px 14px; border-radius: 8px; font-size: 13px; color: #64748b; display: flex; align-items: center; gap: 6px; }
.file-upload-label:hover { background: #f1f5f9; color: #2563eb; border-color: #2563eb; }
input[type="file"] { display: none; }
button.send-btn { background: #2563eb; color: #fff; border: none; padding: 0 24px; height: 50px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
button.send-btn:hover { background: #1d4ed8; }

/* 辅助卡片 */
.card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 20px; margin-bottom: 20px; }
.card h3 { font-size: 15px; margin-bottom: 12px; color: #0f172a; }