/* 前台 AI 界面样式 */
.zero-ai-wrapper { max-width: 1600px; margin: 0 auto; }
.zero-ai-container {
  display: flex; flex-direction: row; height: 80vh; min-height: 600px;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.5); border-radius: 16px; overflow: hidden;
  margin: 20px 0; font-family: system-ui, sans-serif; box-shadow: 0 20px 40px -12px rgba(0,0,0,0.12);
}
.dark-theme .zero-ai-container { background: rgba(26,26,46,0.85); border-color: rgba(255,255,255,0.08); }
.zero-chat-sidebar { width: 260px; background: rgba(255,255,255,0.4); backdrop-filter: blur(10px); border-right: 1px solid rgba(0,0,0,0.05); display: flex; flex-direction: column; padding: 16px 0; overflow-y: auto; }
.zero-sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 0 16px 16px; font-weight: 600; border-bottom: 1px solid rgba(0,0,0,0.05); }
.zero-new-chat-btn { background: #0b3b5c; color: white; border: none; border-radius: 16px; padding: 4px 12px; font-size: 13px; cursor: pointer; }
.zero-session-list { flex: 1; padding: 12px 8px; }
.zero-session-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; margin-bottom: 4px; border-radius: 12px; cursor: pointer; }
.zero-session-item.active { background: rgba(11,59,92,0.1); border-left: 3px solid #0b3b5c; }
.zero-session-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.zero-session-time { font-size: 11px; color: #999; }
.zero-session-delete { opacity: 0; color: #999; padding: 0 4px; }
.zero-session-item:hover .zero-session-delete { opacity: 1; }
.zero-sidebar-tips--fixed { padding: 16px; border-bottom: 1px solid rgba(0,0,0,0.05); }
.zero-tips-title { font-weight: 600; margin-bottom: 8px; color: #0b3b5c; }
.zero-tips-list { list-style: none; padding: 0; margin: 0; }
.zero-tips-list li { margin-bottom: 8px; font-size: 13px; line-height: 1.5; }
.zero-chat-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.zero-header { padding: 18px 24px; border-bottom: 1px solid rgba(0,0,0,0.05); background: rgba(255,255,255,0.4); backdrop-filter: blur(8px); display: flex; justify-content: space-between; align-items: center; }
.zero-messages { flex: 1; overflow-y: auto; padding: 24px; }
.zero-message { margin-bottom: 20px; max-width: 90%; }
.zero-message.user { margin-left: auto; }
.zero-bubble { padding: 12px 18px; border-radius: 24px; line-height: 1.6; background: #f1f3f5; border: 1px solid #dee2e6; }
.zero-message.user .zero-bubble { background: #e3f2fd; border-color: #90caf9; }
.zero-input-area { padding: 20px 24px; border-top: 1px solid rgba(0,0,0,0.05); background: rgba(255,255,255,0.4); backdrop-filter: blur(8px); display: flex; gap: 12px; align-items: flex-end; }
.zero-input-area textarea { flex: 1; padding: 14px 18px; border: 1px solid rgba(0,0,0,0.08); border-radius: 24px; font-size: 16px; resize: none; min-height: 60px; max-height: 200px; }
.zero-input-area button { background: #0b3b5c; color: white; border: none; border-radius: 30px; padding: 12px 28px; font-size: 16px; cursor: pointer; }
.zero-upload-file-btn { background: transparent; border: 1px dashed #ccc; border-radius: 30px; padding: 12px 16px; cursor: pointer; margin-right: 8px; display: flex; align-items: center; justify-content: center; color: #666; transition: 0.2s; }
.zero-upload-file-btn:hover { border-color: #0b3b5c; color: #0b3b5c; background: rgba(11,59,92,0.05); }
.zero-upload-file-btn input { display: none; }
.zero-bubble pre { background: #0d1117; color: #e6edf3; padding: 16px; border-radius: 8px; overflow-x: auto; }
.zero-model-switch { position: relative; display: inline-block; width: 48px; height: 24px; }
.zero-model-switch input { opacity: 0; width: 0; height: 0; }
.zero-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; border-radius: 24px; transition: .3s; }
.zero-slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 2px; bottom: 2px; background-color: white; border-radius: 50%; transition: .3s; }
input:checked + .zero-slider { background-color: #0b3b5c; }
input:checked + .zero-slider:before { transform: translateX(24px); }
.zero-vip-tip { color: #bf7fe6; margin-left: 8px; }
.zero-quota-info { color: #2ecc71; margin-left: 12px; }
.zero-clear-history-btn, .zero-export-btn { cursor: pointer; margin-left: 12px; opacity: 0.7; }
.zero-clear-history-btn:hover, .zero-export-btn:hover { opacity: 1; }

/* 彩色标签 */
.zero-header span:first-of-type { color: #e85d5d !important; }
.zero-header span:last-of-type { color: #4a9eff !important; }

/* 加载动画 */
.zero-loading-bubble { display: flex; align-items: center; gap: 4px; background: #f0f0f0 !important; color: #555 !important; }
.dark-theme .zero-loading-bubble { background: #2a2a40 !important; color: #aaa !important; }
.zero-loading-dots { display: inline-flex; }
.zero-dot { animation: blink 1.4s infinite both; font-size: 20px; line-height: 1; }
.zero-dot:nth-child(2) { animation-delay: 0.2s; }
.zero-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 20% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 0; } }

/* 代码块复制按钮与语言标签 */
.zero-bubble pre { position: relative; padding-top: 38px !important; }
.zero-copy-btn { position: absolute; right: 10px; top: 10px; background: #30363d; color: #e6edf3; border: none; border-radius: 6px; padding: 4px 10px; font-size: 12px; cursor: pointer; z-index: 10; }
.zero-code-lang { position: absolute; left: 10px; top: 10px; background: #30363d; color: #e6edf3; font-size: 11px; padding: 2px 8px; border-radius: 12px; text-transform: uppercase; }

/* 彻底隐藏原生文件上传按钮的文字 */
.zero-upload-file-btn input[type="file"] {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}
.zero-upload-file-btn {
    position: relative;
    overflow: hidden;
}
.zero-tips-list li strong {
    color: #0b3b5c;
    font-weight: 600;
}
.dark-theme .zero-tips-list li strong {
    color: #7aafff;
}