* { box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: #F8FAFC; color: #0f172a; margin: 0; padding: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; }

/* ── Header ──────────────────────────────────── */
.app-header { background: #fff; padding: 0 20px; height: 56px; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 100; }

.brand { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: #0f172a; letter-spacing: -0.02em; margin-left: 12px; user-select: none; }
.brand-icon { width: 26px; height: 26px; background: linear-gradient(135deg, #2563EB 0%, #7c3aed 100%); border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-icon svg { display: block; }

.header-right { display: flex; align-items: center; gap: 10px; }

.usage { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #64748b; background: #f8fafc; border: 1px solid #e9ecef; padding: 5px 12px; border-radius: 20px; font-weight: 500; white-space: nowrap; }
.usage::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #22c55e; flex-shrink: 0; box-shadow: 0 0 0 2px #dcfce7; }

.lang-switch { display: flex; align-items: center; gap: 6px; background: #f1f5f9; padding: 4px; border-radius: 8px; }
.lang-btn { border: none; background: transparent; color: #64748b; font-size: 12px; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-weight: 500; }
.lang-btn.active { background: #2563EB; color: white; }

/* ── Avatar menu ──────────────────────────────── */
.avatar-menu { position: relative; }
.avatar-btn { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; height: 36px; background: #fff; border: 1px solid #e4e4e7; border-radius: 999px; cursor: pointer; transition: all 0.15s ease; color: #18181b; outline: none; }
.avatar-btn:hover { background: #f4f4f5; border-color: #d4d4d8; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.avatar-btn:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2563EB; }
.avatar-circle { width: 28px; height: 28px; border-radius: 50%; background: #f4f4f5; border: 1px solid #e4e4e7; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #71717a; }
.avatar-initial { line-height: 1; }
.avatar-username { font-size: 13px; font-weight: 600; color: #18181b; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1; }
.avatar-chevron { color: #a1a1aa; flex-shrink: 0; transition: transform 0.2s ease; margin-left: 2px; }
.avatar-btn[aria-expanded="true"] .avatar-chevron { transform: rotate(180deg); }

.avatar-dropdown { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid #e4e4e7; border-radius: 14px; min-width: 220px; box-shadow: 0 8px 30px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06); padding: 6px; display: none; z-index: 200; transform-origin: top right; }
.avatar-dropdown.open { display: block; animation: dropdownIn 0.15s ease; }
@keyframes dropdownIn { from { opacity:0; transform:scale(0.95) translateY(-4px);} to { opacity:1; transform:scale(1) translateY(0);} }

.avatar-user-card { padding: 10px 12px 12px; margin-bottom: 4px; border-bottom: 1px solid #f4f4f5; }
.avatar-user-card .card-name { font-size: 14px; font-weight: 600; color: #18181b; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar-user-card .card-meta { font-size: 11px; color: #71717a; }

.avatar-dropdown-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 12px; font-size: 13px; font-weight: 500; color: #3f3f46; background: none; border: none; border-radius: 8px; cursor: pointer; text-align: left; text-decoration: none; transition: background 0.12s; }
.avatar-dropdown-item:hover { background: #f4f4f5; color: #18181b; }
.avatar-dropdown-item svg { color: #a1a1aa; flex-shrink: 0; }
.avatar-dropdown-item.danger { color: #dc2626; }
.avatar-dropdown-item.danger:hover { background: #fef2f2; }
.avatar-dropdown-item.danger svg { color: #dc2626; }
.avatar-dropdown-sep { height: 1px; background: #f4f4f5; margin: 4px 0; }

/* 山 keep compat */
.avatar-name { font-size: 13px; color: #0f172a; font-weight: 500; padding: 8px 10px; border-bottom: 1px solid #f1f5f9; margin-bottom: 8px; }
.avatar-action button { width: 100%; padding: 10px 12px; border: none; background: #2563EB; color: white; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 500; }

/* 公告栏 */
.announcement-bar { display: flex; align-items: center; gap: 10px; padding: 10px 20px; font-size: 13px; font-weight: 500; border-bottom: 1px solid transparent; flex-shrink: 0; animation: slideDown 0.3s ease; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: translateY(0); } }
.announcement-bar.type-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.announcement-bar.type-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.announcement-bar.type-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.announcement-bar.type-danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.announcement-icon { font-size: 15px; flex-shrink: 0; }
.announcement-text { flex: 1; line-height: 1.5; }
.announcement-close { flex-shrink: 0; background: none; border: none; cursor: pointer; font-size: 18px; line-height: 1; opacity: 0.45; padding: 0 4px; transition: opacity 0.15s; }
.announcement-close:hover { opacity: 1; }

/* 模型维护状态 */
.model-card.maintenance { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.model-maintenance-badge { display: inline-block; margin-top: 4px; font-size: 10px; font-weight: 600; color: #b45309; background: #fef3c7; border: 1px solid #fde68a; padding: 1px 6px; border-radius: 999px; }
.model-card.maintenance .model-cost { display: none; }

/* 聊天容器 */
.chat-container { display: flex; flex: 1; min-height: 0; width: 100%; max-width: none; margin: 0; gap: 0; padding: 0; }

/* 模型侧边栏 */
.model-sidebar { width: 290px; background: white; border-right: 1px solid #e2e8f0; padding: 20px 18px; overflow-y: auto; }
.model-sidebar::-webkit-scrollbar { width: 4px; }
.model-sidebar::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 99px; }
.sidebar-section { margin-bottom: 18px; }
.section-title { font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.section-title.with-action { gap: 8px; }
.icon-btn { background: none; border: none; font-size: 15px; color: #94a3b8; cursor: pointer; padding: 3px 6px; border-radius: 5px; }
.icon-btn:hover { background: #f1f5f9; color: #2563EB; }
.model-list { display: flex; flex-direction: column; gap: 10px; }
.model-card { display: flex; align-items: flex-start; gap: 10px; padding: 14px 14px; background: #f8fafc; border: 1.5px solid #e8ecf0; border-radius: 12px; cursor: pointer; transition: all 0.18s ease; text-align: left; width: 100%; }
.model-card:hover { background: #f1f5f9; border-color: #c7d2fe; }
.model-card.active { background: #eff6ff; border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,0.08); }
.model-card.active .model-name { color: #2563EB; }
.model-card.active .model-desc { color: #475569; }
.model-card.active .model-cost { background: white; }
.model-icon { font-size: 22px; margin-top: 1px; flex-shrink: 0; }
.model-info { flex: 1; min-width: 0; }
.model-name { font-weight: 700; font-size: 15px; color: #0f172a; margin-bottom: 4px; }
.model-desc { font-size: 12px; color: #64748b; line-height: 1.5; }
.model-cost { display: inline-block; margin-top: 7px; font-size: 11px; font-weight: 600; color: #2563EB; background: #eff6ff; border: 1px solid #dbeafe; padding: 3px 9px; border-radius: 999px; }

/* Recent projects */
.recent-list { display: flex; flex-direction: column; gap: 10px; max-height: 360px; overflow-y: auto; }
.recent-item { padding: 12px 14px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; cursor: pointer; transition: all 0.2s ease; }
.recent-item:hover { background: #f1f5f9; border-color: #cbd5e1; }
.recent-title { font-size: 13px; color: #0f172a; font-weight: 600; margin-bottom: 4px; }
.recent-sub { font-size: 12px; color: #64748b; margin-bottom: 6px; font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-meta { font-size: 11px; color: #94a3b8; display: flex; justify-content: space-between; align-items: center; }
.recent-link { color: #2563EB; text-decoration: none; margin-left: 8px; font-weight: 500; }
.recent-link:hover { text-decoration: underline; }
.recent-status { font-size: 11px; color: #0f172a; font-weight: 500; }
.recent-status.success { color: #2563EB; }
.recent-status.refunded { color: #64748b; }
.recent-loading, .recent-empty { text-align: center; padding: 16px; color: #94a3b8; font-size: 12px; }

/* 聊天主区域 */
.chat-main { flex: 1; display: flex; flex-direction: column; background: #f8fafc; }
.chat-main.model-switch-animate { animation: modelSwitchIn 0.35s ease; }
@keyframes modelSwitchIn { from { opacity: 0.7; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.chat-messages { flex: 1; overflow-y: auto; padding: 28px 36px 24px; display: flex; flex-direction: column; gap: 20px; scroll-behavior: smooth; }
.chat-messages::-webkit-scrollbar { width: 5px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 99px; }
.chat-messages::-webkit-scrollbar-thumb:hover { background: #cbd5e1; }

/* 空状态 */
.empty-state { text-align: left; padding: 48px 16px 0; max-width: 600px; margin: 0 auto; width: 100%; }
.empty-state h2 { font-size: 26px; font-weight: 700; color: #0f172a; margin: 0 0 10px 0; letter-spacing: -0.02em; }
.empty-state p { font-size: 15px; color: #64748b; margin: 0 0 6px 0; line-height: 1.65; }

/* 消息气泡 */
.message { display: flex; gap: 10px; max-width: 76%; animation: slideUp 0.25s ease; }
.message.user { margin-left: auto; flex-direction: row-reverse; }
.message.assistant { margin-right: auto; }
@keyframes slideUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.message-avatar { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.message.user .message-avatar { background: #f4f4f5; border: 1px solid #e4e4e7; color: #52525b; }
.message.assistant .message-avatar { background: #18181b; border: 1px solid #18181b; color: #fff; }

.message-content { flex: 1; min-width: 0; }
.message-bubble { padding: 11px 15px; border-radius: 18px; font-size: 14px; line-height: 1.65; word-wrap: break-word; }
.message.user .message-bubble { background: #2563EB; color: white; border-bottom-right-radius: 5px; box-shadow: 0 1px 3px rgba(37,99,235,0.22); }
.message.assistant .message-bubble { background: white; color: #1e293b; border: 1px solid #e8ecf0; border-bottom-left-radius: 5px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }

/* 视频结果卡片 */
.video-result { margin-top: 10px; padding: 14px; background: white; border: 1px solid #e2e8f0; border-radius: 12px; max-width: 460px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.video-status { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.status-title { font-size: 13px; color: #0f172a; font-weight: 600; }
.status-sub { font-size: 12px; color: #64748b; }
.status-id { font-size: 11px; color: #94a3b8; word-break: break-all; }
.status-steps { list-style: none; padding: 0; margin: 6px 0 0 0; display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: #94a3b8; }
.status-steps li { position: relative; padding-left: 14px; }
.status-steps li::before { content: "\2022"; position: absolute; left: 0; color: #94a3b8; }
.status-steps li.active { color: #2563EB; font-weight: 500; }
.status-steps li.active::before { color: #2563EB; }
.status-steps li.done { color: #94a3b8; text-decoration: line-through; }
.video-result.failed .status-title { color: #dc2626; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.video-preview { width: 100%; border-radius: 8px; overflow: hidden; background: #0f172a; margin-bottom: 10px; max-height: 260px; }
.video-preview video { width: 100%; height: 100%; max-height: 260px; display: block; object-fit: contain; }
.video-preview img.result-image { width: 100%; max-height: 260px; display: block; object-fit: contain; }
.video-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.video-btn { padding: 7px 14px; background: #2563EB; color: white; border: none; border-radius: 7px; font-size: 12px; font-weight: 500; cursor: pointer; transition: all 0.18s ease; }
.video-btn:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 3px 7px rgba(37, 99, 235, 0.25); }
.video-btn.secondary { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.video-btn.secondary:hover { background: #e8ecf0; border-color: #cbd5e1; transform: translateY(-1px); }
.video-btn.ghost { background: white; color: #2563EB; border: 1px solid #dbeafe; }
.video-btn.ghost:hover { background: #eff6ff; border-color: #bfdbfe; transform: translateY(-1px); }

/* 进度条 */
.progress-wrap { margin-top: 8px; }
.progress-bar { height: 5px; background: #e2e8f0; border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #2563EB, #60a5fa); width: 0%; transition: width 350ms ease; border-radius: 99px; }

/* 参数面板 */
.params-panel { padding: 14px 16px; background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 12px; margin-bottom: 10px; }
.params-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 12px; }
.param-item { display: flex; flex-direction: column; gap: 6px; }
.param-item label { font-size: 13px; font-weight: 600; color: #475569; }
.param-item select { padding: 8px 12px; border: 1px solid #e2e8f0; border-radius: 8px; background: white; font-size: 14px; cursor: pointer; }
.params-extra { display: flex; gap: 12px; }
.params-extra input { flex: 1; padding: 8px 12px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 14px; }

/* 输入区域 */
.chat-input-area { border-top: 1px solid #e2e8f0; background: #f8fafc; padding: 14px 20px 18px; position: relative; }
.composer { display: flex; flex-direction: column; gap: 0; border: 1.5px solid #e2e8f0; border-radius: 14px; background: white; overflow: hidden; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.composer:focus-within { border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08); }
.prompt-box textarea { width: 100%; padding: 14px 16px 10px; border: none; border-radius: 0; font-size: 14px; font-family: inherit; resize: none; min-height: 84px; max-height: 200px; overflow-y: auto; background: transparent; line-height: 1.7; color: #0f172a; }
.prompt-box textarea::placeholder { color: #94a3b8; }
.prompt-box textarea:focus { outline: none; box-shadow: none; }
.image-preview-chip { display: none; align-items: center; gap: 8px; padding: 6px 12px 8px; background: #eff6ff; border-top: 1px solid #dbeafe; font-size: 12px; color: #1e40af; }
.image-preview-chip.visible { display: flex; }
.image-preview-chip img { width: 30px; height: 30px; object-fit: cover; border-radius: 5px; border: 1px solid #bfdbfe; flex-shrink: 0; }
.image-preview-chip span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.image-preview-remove { background: none; border: none; color: #93c5fd; cursor: pointer; font-size: 16px; line-height: 1; padding: 0; flex-shrink: 0; }
.image-preview-remove:hover { color: #ef4444; }
.image-uploading { animation: pulse 1s ease infinite; }
@keyframes pulse { 0%,100%{ opacity:1 } 50%{ opacity:.5 } }
.quick-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { background: #f1f5f9; border: 1px solid #e2e8f0; color: #475569; font-size: 12px; padding: 5px 12px; border-radius: 999px; cursor: pointer; transition: all 0.18s ease; font-weight: 500; }
.tag:hover { background: #eff6ff; color: #2563EB; border-color: #bfdbfe; }
.composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px 10px; border-top: 1px solid #f1f5f9; background: #fafbfc; }
.footer-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.footer-right { display: flex; align-items: center; gap: 8px; }
.footer-field { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #6b7280; }
.footer-field select { padding: 4px 6px; border: 1px solid #e2e8f0; border-radius: 6px; background: white; font-size: 12px; color: #374151; cursor: pointer; font-weight: 500; }
.params-toggle { width: 28px; height: 28px; border: 1px solid #e2e8f0; background: white; border-radius: 7px; font-size: 13px; cursor: pointer; transition: all 0.18s ease; flex-shrink: 0; color: #64748b; display: flex; align-items: center; justify-content: center; }
.params-toggle:hover { background: #f1f5f9; border-color: #cbd5e1; color: #374151; }
.params-toggle.active { background: #eff6ff; border-color: #2563EB; color: #2563EB; }
.send-btn { min-width: 120px; height: 38px; border: none; background: linear-gradient(135deg, #2563EB, #1d4ed8); color: white; border-radius: 9px; cursor: pointer; transition: all 0.2s ease; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; padding: 0 18px; box-shadow: 0 1px 4px rgba(37,99,235,0.2); }
.send-btn:hover:not(:disabled) { background: linear-gradient(135deg, #1d4ed8, #1e40af); box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35); transform: translateY(-1px); }
.send-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; background: #2563EB; }
.send-icon { font-size: 15px; display: block; }

.auto-toggle-btn { min-width: 108px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid #e5e7eb; background: #ffffff; color: #4b5563; font-size: 12px; font-weight: 500; cursor: pointer; transition: all 0.18s ease; }
.auto-toggle-btn:hover { background: #f3f4f6; border-color: #d1d5db; }
.auto-toggle-btn.on { background: #ecfdf3; border-color: #22c55e; color: #15803d; }

/* 响应式 */
@media (max-width: 768px) {
  .chat-container { flex-direction: column; }
  .model-sidebar { width: 100%; height: auto; max-height: 150px; border-right: none; border-bottom: 1px solid #e2e8f0; overflow-y: visible; }
  .model-list { flex-direction: row; overflow-x: auto; }
  .model-card { min-width: 180px; }
  .params-grid { grid-template-columns: repeat(2, 1fr); }
  .sidebar-section:last-child { display: none; }
  .send-btn { min-width: 88px; }
}

/* 旧样式保留（用于登录等页面） */
.auth-page { background: #F8FAFC; padding: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; }
.auth-page::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.03) 0%, transparent 40%), radial-gradient(circle at 80% 70%, rgba(37, 99, 235, 0.02) 0%, transparent 40%); pointer-events: none; }
.auth-shell { display: flex; width: 100%; max-width: 1100px; margin: 20px; gap: 40px; align-items: stretch; position: relative; z-index: 1; }
.auth-hero { flex: 1; color: #0f172a; display: flex; flex-direction: column; justify-content: center; padding: 44px; background: rgba(255, 255, 255, 0.7); border-radius: 20px; border: 1px solid rgba(148, 163, 184, 0.35); position: relative; overflow: hidden; backdrop-filter: blur(16px); box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08); }
.auth-hero::before { content: ""; position: absolute; inset: -40% 30% auto -30%; height: 280px; background: radial-gradient(circle, rgba(56, 189, 248, 0.25), transparent 60%); z-index: 0; }
.auth-hero::after { content: ""; position: absolute; right: -80px; bottom: -60px; width: 220px; height: 220px; background: radial-gradient(circle, rgba(59, 130, 246, 0.18), transparent 65%); z-index: 0; }
.auth-hero > * { position: relative; z-index: 1; }
.auth-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: rgba(15, 23, 42, 0.06); border-radius: 999px; font-size: 12px; font-weight: 600; margin-bottom: 22px; width: fit-content; color: #0f172a; border: 1px solid rgba(148, 163, 184, 0.4); letter-spacing: 0.08em; text-transform: uppercase; }
.auth-hero h1 { font-size: 44px; font-weight: 700; margin: 0 0 14px 0; line-height: 1.15; color: #0f172a; letter-spacing: -0.03em; }
.auth-hero > p { font-size: 16px; margin: 0 0 28px 0; color: #475569; line-height: 1.7; max-width: 420px; }
.hero-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 26px; }
.metric { padding: 12px 14px; background: rgba(255, 255, 255, 0.65); border-radius: 14px; border: 1px solid rgba(148, 163, 184, 0.3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
.metric-value { font-size: 20px; font-weight: 700; color: #0f172a; letter-spacing: -0.02em; }
.metric-label { font-size: 12px; color: #64748b; margin-top: 4px; }
.auth-benefits { list-style: none; padding: 0; margin: 0 0 26px 0; display: grid; gap: 10px; }
.auth-benefits li { padding: 10px 12px 10px 40px; position: relative; font-size: 15px; color: #475569; background: rgba(255, 255, 255, 0.6); border-radius: 12px; border: 1px solid rgba(148, 163, 184, 0.28); }
.auth-benefits li:before { content: ""; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle, rgba(14, 165, 233, 0.9), rgba(59, 130, 246, 0.6)); box-shadow: 0 0 10px rgba(56, 189, 248, 0.45); }
.hero-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hero-mini-card { padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(148, 163, 184, 0.3); background: rgba(15, 23, 42, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
.hero-mini-title { font-size: 14px; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.hero-mini-sub { font-size: 12px; color: #64748b; }
.hero-glass-orb { position: absolute; border-radius: 999px; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(148, 163, 184, 0.2)); border: 1px solid rgba(255, 255, 255, 0.6); box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08); z-index: 0; }
.hero-glass-orb.orb-one { width: 120px; height: 120px; top: -30px; right: 20px; }
.hero-glass-orb.orb-two { width: 160px; height: 160px; bottom: -60px; left: 40px; opacity: 0.8; }
.auth-card { background: white; border-radius: 16px; padding: 40px; box-shadow: 0 4px 6px rgba(0,0,0,0.04); flex: 0 0 440px; animation: slideIn 0.5s ease-out; border: 1px solid #e2e8f0; }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 32px; border-bottom: 2px solid #f1f5f9; padding-bottom: 0; }
.auth-tab { flex: 1; padding: 12px 24px; background: transparent; border: none; border-bottom: 3px solid transparent; font-size: 16px; font-weight: 600; color: #64748b; cursor: pointer; transition: all 0.3s ease; position: relative; bottom: -2px; }
.auth-tab.active { color: #2563EB; border-bottom-color: #2563EB; }
.auth-tab:hover { color: #2563EB; }
.auth-panel { display: none; animation: fadeIn 0.3s ease; }
.auth-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.auth-panel h2 { font-size: 28px; margin: 0 0 8px 0; color: #0f172a; font-weight: 600; letter-spacing: -0.01em; }
.auth-sub { color: #64748b; font-size: 15px; margin: 0 0 28px 0; }
.auth-form label { display: block; margin-bottom: 20px; font-size: 14px; font-weight: 500; color: #475569; }
.auth-form input { width: 100%; padding: 12px 16px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 15px; margin-top: 6px; transition: all 0.3s ease; background: #f8fafc; }
.auth-form input:focus { outline: none; border-color: #2563EB; background: white; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
.auth-primary { width: 100%; padding: 14px; background: #2563EB; color: white; border: none; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; margin-top: 8px; }
.auth-primary:hover:not(:disabled) { background: #1d4ed8; box-shadow: 0 4px 8px rgba(37, 99, 235, 0.2); }
.auth-primary:active:not(:disabled) { transform: translateY(0); }
.auth-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-footer { margin-top: 24px; text-align: center; color: #64748b; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.auth-link { background: none; border: none; color: #2563EB; font-weight: 600; cursor: pointer; padding: 0; text-decoration: none; font-size: 14px; }
.auth-link:hover { text-decoration: underline; }
.auth-error { background: #fee2e2; color: #dc2626; padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; border-left: 4px solid #dc2626; }
.auth-success { background: #dcfce7; color: #166534; padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; border-left: 4px solid #16a34a; }
.password-field { position: relative; margin-top: 6px; }
.password-field input { margin-top: 0; padding-right: 44px; }
.pw-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: #94a3b8; padding: 4px; display: flex; align-items: center; justify-content: center; transition: color 0.2s ease; border-radius: 4px; }
.pw-toggle:hover { color: #2563EB; }
@media (max-width: 960px) { 
  .auth-shell { flex-direction: column; max-width: 500px; }
  .auth-hero { padding: 32px 22px; text-align: left; }
  .auth-hero h1 { font-size: 32px; }
  .hero-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-card-grid { grid-template-columns: 1fr; }
  .auth-benefits li { padding-left: 40px; text-align: left; display: block; width: 100%; }
  .auth-card { flex: 1; padding: 32px 24px; }
}
@media (max-width: 600px) { 
  .auth-shell { margin: 0; border-radius: 0; }
  .auth-card { border-radius: 0; padding: 24px 20px; }
  .auth-hero { display: none; }
}

/* index.html - 左侧导航栏样式 */
.chat-main-wrapper { flex: 1; display: flex; }
.header-left { display: flex; align-items: center; gap: 0; }

/* 导航侧栏（index.html中使用） */
.chat-container .dashboard-sidebar { width: 260px; background: white; border-right: 1px solid #e2e8f0; padding: 18px; overflow-y: auto; transition: all 0.3s ease; position: relative; z-index: 5; }
.chat-container .dashboard-sidebar.collapsed { width: 0; padding: 0; border-right: none; overflow: hidden; }

/* 导航项样式 */
.nav-section { margin-bottom: 20px; }
.nav-title { font-size: 12px; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 12px; display: block; }
.nav-menu { display: flex; flex-direction: column; gap: 8px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #f7fafc; border: 2px solid transparent; border-radius: 12px; cursor: pointer; transition: all 0.3s ease; text-align: left; width: 100%; border: none; font-size: 15px; color: #4b5563; font-weight: 500; }
.nav-item:hover { background: #f8fafc; }
.nav-item.active { background: #2563EB; color: white; box-shadow: 0 1px 2px rgba(37, 99, 235, 0.1); }
.nav-icon { width: 20px; text-align: center; flex-shrink: 0; }

/* 侧边栏切换按钮 */
.sidebar-toggle-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: none; background: none; cursor: pointer; padding: 0; margin-right: 12px; color: #6b7280; font-size: 20px; transition: all 0.3s ease; }
.sidebar-toggle-btn:hover { color: #2563EB; background: #f1f5f9; border-radius: 8px; }

/* 侧边栏折叠状态 */
.chat-container.sidebar-collapsed .dashboard-sidebar { width: 0; padding: 0; border-right: none; }

@media (max-width: 768px) { 
  .chat-container { flex-direction: column; }
  .chat-container .dashboard-sidebar { width: 100%; max-height: 120px; border-right: none; border-bottom: 1px solid #e2e8f0; padding: 12px; }
  .chat-container .model-sidebar { width: 100%; max-height: 150px; border-right: none; border-bottom: 1px solid #e2e8f0; padding: 12px; }
  .model-list { flex-direction: row; overflow-x: auto; }
  .model-card { min-width: 180px; white-space: nowrap; }
}
