        /* ========== 加载骨架屏样式 ========== */
        #app-loading-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #fafafa;
            z-index: 9999;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            transition: opacity 0.3s ease;
        }
        #app-loading-screen.fade-out {
            opacity: 0;
            pointer-events: none;
        }
        body.dark-theme #app-loading-screen {
            background: #1f1f1f;
        }
        .loading-logo {
            width: 60px;
            height: 60px;
            margin-bottom: 24px;
            animation: pulse 1.5s ease-in-out infinite;
        }
        @keyframes pulse {
            0%, 100% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.1); opacity: 0.7; }
        }
        .loading-spinner {
            width: 40px;
            height: 40px;
            border: 3px solid #e0e0e0;
            border-top-color: rgba(26, 115, 232, 0.85);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin-bottom: 16px;
        }
        body.dark-theme .loading-spinner {
            border-color: #333;
            border-top-color: rgba(26, 115, 232, 0.85);
        }
        .loading-text {
            color: #7a8c9e;
            font-size: 14px;
        }
        body.dark-theme .loading-text {
            color: #8a9fb0;
        }
        /* 骨架屏动画 */
        .skeleton {
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
            border-radius: 8px;
        }
        body.dark-theme .skeleton {
            background: linear-gradient(90deg, #2a2a2a 25%, #333 50%, #2a2a2a 75%);
            background-size: 200% 100%;
        }
        @keyframes shimmer {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }
        /* ========== 原有样式保持不变 ========== */
        
        /* 新增样式 */
        /* 登录注册面板 */
        #auth-panel {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            backdrop-filter: blur(5px);
        }
        
        #auth-container {
            background: #fff;
            border-radius: 15px;
            width: 100%;
            max-width: 400px;
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
            overflow: hidden;
        }
        
        body.dark-theme #auth-container {
            background: #1a1f24;
        }
        
        .auth-header {
            background: rgba(26, 115, 232, 0.12);
            padding: 25px;
            text-align: center;
            color: rgba(26, 115, 232, 0.9);
        }
        
        .auth-tabs {
            display: flex;
            background: #f0f8ff;
        }
        
        body.dark-theme .auth-tabs {
            background: #0f1317;
        }
        
        .auth-tab {
            flex: 1;
            padding: 15px;
            text-align: center;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
        }
        
        .auth-tab.active {
            background: #fff;
            color: rgba(26, 115, 232, 0.9);
        }
        
        body.dark-theme .auth-tab.active {
            background: #1a1f24;
        }
        
        .auth-content {
            padding: 25px;
        }
        
        .auth-form {
            display: none;
        }
        
        .auth-form.active {
            display: block;
        }
        
        .auth-form input {
            width: 100%;
            padding: 12px 15px;
            margin: 10px 0;
            border: 1px solid #d0e0f0;
            border-radius: 8px;
            font-size: 16px;
            transition: all 0.3s ease;
        }
        
        body.dark-theme .auth-form input {
            background: #2a3038;
            border-color: #3a4a5a;
            color: #e0e0e0;
        }
        
        .auth-form input:focus {
            outline: none;
            border-color: #bbb;
            box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
        }
        
        .auth-submit {
            width: 100%;
            padding: 14px;
            background: rgba(26, 115, 232, 0.85);
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            font-size: 16px;
            margin-top: 15px;
            transition: all 0.3s ease;
        }

.auth-submit:hover {
            opacity: 0.9;
        }
        
        .auth-footer {
            text-align: center;
            padding: 15px;
            color: #7a8c9e;
            font-size: 14px;
        }
        
        .auth-switch {
            color: rgba(26, 115, 232, 0.9);
            cursor: pointer;
            text-decoration: underline;
        }
        
        .auth-error {
            color: #ff6b6b;
            text-align: center;
            margin-top: 10px;
            font-size: 14px;
            min-height: 20px;
        }
        
        /* 用户信息区域 */
        #user-info {
            padding: 6px 20px 6px 12px;
            border-top: 1px solid #f0f0f0;
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
        }
        
        #user-info:hover {
            background: rgba(26, 115, 232, 0.05);
        }
        
        body.dark-theme #user-info {
            border-top: 1px solid #2a3038;
        }
        
#user-info .user-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: rgba(26, 115, 232, 0.85);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 13px;
            background-size: cover;
            background-position: center;
            flex-shrink: 0;
        }
        
#user-info .token-info {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 2px;
            min-width: 0;
        }
        
        #user-info .token-usage-text {
            font-size: 11px;
            color: #7a8c9e;
            text-align: right;
            white-space: nowrap;
        }
        
        #user-info .login-prompt {
            flex: 1;
            font-size: 12px;
            color: #888;
            text-align: center;
        }
        
        body.dark-theme #user-info .login-prompt {
            color: #8a9fb0;
        }
        
        /* 用户设置面板 */
#user-panel {
            position: absolute;
            bottom: 45px;
            left: 12px;
            width: auto;
            background: #fafafa;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            padding: 10px 12px;
            display: none;
            flex-direction: column;
            gap: 8px;
        }
        
        body.dark-theme #user-panel {
            background: #2a2a2a;
        }
        
.panel-btn {
            width: auto;
            padding: 8px 10px;
            background: transparent;
            border: none;
            color: #333;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 500;
            font-size: 16px;
            transition: all 0.2s ease;
            text-align: center;
            margin-top: 0;
        }
        
        .panel-btn:hover {
            background: rgba(26, 115, 232, 0.08);
        }
        
        body.dark-theme .panel-btn {
            color: #e0e0e0;
        }
        
        body.dark-theme .panel-btn:hover {
            background: rgba(26, 115, 232, 0.12);
        }
        
        .panel-btn.logout {
            background: rgba(255, 107, 107, 0.1);
            border: 1px solid #ff6b6b;
            color: #ff6b6b;
        }
        
        .panel-btn.logout:hover {
            background: rgba(255, 107, 107, 0.2);
        }
        
        /* 登录按钮 */
        #login-btn {
            position: absolute;
            top: 25px;
            right: 80px;
            width: 45px;
            height: 45px;
            background: rgba(255, 255, 255, 0.85);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 100;
            transition: all 0.3s ease;
            border: 1px solid #e0e0e0;
            backdrop-filter: blur(5px);
        }
        
        body.dark-theme #login-btn {
            background: rgba(37, 42, 48, 0.85);
            border-color: #2a3038;
        }
        
        #login-btn::after {
            content: "👤";
            font-size: 22px;
        }
        
        #login-btn:hover {
            opacity: 0.85;
        }
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        
        body {
            font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans CN", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            margin: 0;
            padding: 0;
            background: #fafafa;
            min-height: 100vh;
            display: flex;
            transition: background 0.3s ease;
            color: #333;
        }
        
        body.dark-theme {
            background: #1f1f1f;
            color: #e0e0e0;
        }
        
        /* 侧边栏样式 */
        #sidebar {
            width: 260px;
            background: #ffffff;
            height: 100vh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            transition: all 0.3s ease;
            z-index: 100;
            border-right: 1px solid #e5e5e5;
        }
        
        body.dark-theme #sidebar {
            background: #1a1a1a;
            border-right-color: #2a2a2a;
        }
        
        #sidebar-header {
            padding: 25px 20px 15px;
            border-bottom: 1px solid #f5fdfc;
            position: relative;
        }
        
        #app-title {
            color: #2c3e50;
            font-size: 22px;
            font-weight: 600;
            margin-bottom: 5px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        #app-subtitle {
            color: #7a8c9e;
            font-size: 14px;
            margin-bottom: 25px;
        }
        
        /* 对话按钮布局修改 */
        .chat-action-btns {
            display: flex;
            gap: 8px;
            width: 100%;
        }

        #new-chat-btn {
            flex: 1;
            padding: 8px;
            background: rgba(26, 115, 232, 0.12);
            color: #1a73e8;
            font-weight: 500;
            border: none;
            border-radius: 20px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
        }

        #new-chat-btn:hover {
            background: rgba(26, 115, 232, 0.15);
        }

        #new-chat-btn::before {
            content: "+";
            font-size: 18px;
            font-weight: bold;
        }

        .coordination-badge {
            color: #999;
            font-size: 14px;
            margin-left: 5px;
            font-weight: bold;
        }

        /* 协调器状态指示器 */
        .status-indicator {
            color: #6c86a3;
            font-size: 13px;
            padding: 8px 15px;
            background: rgba(248, 250, 253, 0.8);
            border-radius: 20px;
            align-self: flex-start;
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 15px;
            border: 1px dashed #ccc;
            backdrop-filter: blur(5px);
            margin-left: 10px;
        }

        body.dark-theme .status-indicator {
            background: rgba(30, 34, 39, 0.8);
            color: #a0b0c0;
            border-color: #3a6186;
        }

        .dot-flash {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background-color: #bbb;
            animation: flash 1s infinite;
        }

        @keyframes flash {
            0% { opacity: 0.2; }
            50% { opacity: 1; }
            100% { opacity: 0.2; }
        }
        
        #conversation-list {
            flex: 1;
            overflow-y: auto;
            padding: 15px 10px;
            background: #ffffff;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        #conversation-list::-webkit-scrollbar {
            display: none;
            width: 0;
            height: 0;
        }

        #conversation-list {
            scrollbar-width: auto !important;
            -ms-overflow-style: auto !important;
        }

        #conversation-list::-webkit-scrollbar {
            display: block !important;
            width: 10px !important;
            height: 10px !important;
        }

        #conversation-list::-webkit-scrollbar-thumb {
            background: rgba(120, 120, 120, 0.24);
            border-radius: 999px;
        }

        #conversation-list::-webkit-scrollbar-track {
            background: transparent;
        }
        
        body.dark-theme #conversation-list {
            background: #1a1a1a;
        }
        
        .conversation-item {
            padding: 10px 15px;
            border-radius: 20px;
            margin: 4px 0;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.2s ease;
            background: transparent;
            color: #333;
            position: relative;
            overflow: hidden;
            border: none;
            height: 40px;
        }
        
        body.dark-theme .conversation-item {
            color: #e0e0e0;
        }
        
        .conversation-item::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .conversation-item:hover {
            background: rgba(26, 115, 232, 0.08);
        }
        
        .conversation-item.active {
            background: rgba(26, 115, 232, 0.15);
        }
        
        .conversation-item.active::before {
            opacity: 1;
        }
        
        .conversation-title {
            flex: 1;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-right: 10px;
            font-size: 15px;
            font-weight: 500;
        }
        
        /* 三个点菜单按钮 */
        .conversation-menu-btn {
            color: #666;
            font-size: 18px;
            cursor: pointer;
            opacity: 0;
            transition: all 0.2s ease;
            padding: 5px 8px;
            border-radius: 15px;
            display: none;
            user-select: none;
        }
        
        body.dark-theme .conversation-menu-btn {
            color: #9ca3af;
        }
        
        /* 悬停或选中时显示三个点 */
        .conversation-item:hover .conversation-menu-btn,
        .conversation-item.active .conversation-menu-btn {
            opacity: 1;
            display: block;
        }
        
        .conversation-menu-btn:hover {
            background: rgba(0, 0, 0, 0.05);
        }
        
        body.dark-theme .conversation-menu-btn:hover {
            background: rgba(255, 255, 255, 0.05);
        }
        
        /* 弹出菜单 */
        .conversation-menu {
            position: fixed;
            background: #fff;
            border: 1px solid #e0e0e0;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
            padding: 8px 0;
            display: none;
            z-index: 1000;
            min-width: 120px;
        }
        
        .conversation-menu.show {
            display: block;
            animation: menuFadeIn 0.2s ease;
        }
        
        @keyframes menuFadeIn {
            from { opacity: 0; transform: scale(0.95); }
            to { opacity: 1; transform: scale(1); }
        }
        
        body.dark-theme .conversation-menu {
            background: #1a1f24;
            border-color: #2a3038;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        }
        
        /* 菜单项 */
        .conversation-menu-item {
            padding: 10px 15px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.2s ease;
            color: #333;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .conversation-menu-item:hover {
            background: rgba(26, 115, 232, 0.08);
        }
        
        body.dark-theme .conversation-menu-item {
            color: #e0e0e0;
        }
        
        /* 重命名项 - 黑色 */
        .conversation-menu-item.rename {
            color: #333;
        }
        
        body.dark-theme .conversation-menu-item.rename {
            color: #e0e0e0;
        }
        
        /* 删除项 - 红色 */
        .conversation-menu-item.delete {
            color: #ff6b6b;
        }
        
        .conversation-menu-item.delete:hover {
            background: rgba(255, 107, 107, 0.1);
        }
        
        .conversation-info {
            flex: 1;
            min-width: 0;
        }
        
        #sidebar-footer {
            padding: 15px 20px;
            border-top: 1px solid #f5fdfc;
            color: #7a8c9e;
            font-size: 13px;
            text-align: center;
        }
        
        /* 主聊天区域 */
        #chat-container {
            flex: 1;
            display: flex;
            flex-direction: column;
            padding: 20px;
            max-width: calc(100% - 280px);
            height: 100vh;
            position: relative;
            transition: max-width 0.3s ease, margin-left 0.3s ease;
        }
        
        #main-chat-area {
            flex: 1;
            display: flex;
            flex-direction: column;
            background-color: transparent;
            border-radius: 0;
            box-shadow: none;
            overflow: hidden;
            transition: all 0.3s ease;
            max-width: 900px;
            width: 100%;
            margin: 0 auto;
            position: relative;
        }
        
#chat-header {
            position: absolute;
            top: 20px;
            left: 20px;
            z-index: 120;
            padding: 0;
            border-bottom: none;
            display: flex;
            justify-content: flex-start;
            align-items: center;
            background: transparent;
}
        
        #chat-messages {
            position: relative;
            flex: 1;
            min-height: 0;
            overflow-y: auto;
            padding: 20px 15px;
            transition: background-color 0.3s ease;
            background: transparent;
            display: flex;
            flex-direction: column;
        }
        
#load-more-container {
            position: sticky;
            top: 0;
            z-index: 10;
            padding: 15px;
            text-align: center;
            background: linear-gradient(to bottom, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 100%);
        }
        
        .load-more-btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 10px 25px;
            border-radius: 20px;
            cursor: pointer;
            font-size: 14px;
            transition: opacity 0.2s;
        }
        
        .load-more-btn:hover {
            opacity: 0.9;
        }
        
        .load-more-btn:disabled {
            background: #999;
            cursor: not-allowed;
        }
        
        .welcome-screen.show + #chat-messages,
        #chat-messages:empty {
            display: none;
        }
        
        .message {
            margin-bottom: 24px;
            padding: 12px 16px;
            border-radius: 12px;
            display: flex;
            align-items: flex-start;
            line-height: 1.6;
            position: relative;
            transition: all 0.2s ease;
            animation: fadeIn 0.3s ease;
            background: #ffffff;
            max-width: 90%;
            width: fit-content;
        }
        
        body.dark-theme .message {
            background: #2f2f2f;
            box-shadow: none;
        }
        
        .message { position: relative; }
        
        .message-actions {
            position: absolute;
            display: flex;
            align-items: center;
            gap: 4px;
            opacity: 0;
            z-index: 20;
            transition: opacity 0.2s ease;
        }

        .user-message .message-actions {
            bottom: -28px;
            right: 8px;
        }

        .bot-message .message-actions {
            bottom: -28px;
            left: 73px;
        }
        
        .message:hover .message-actions,
        .message-actions:hover {
            opacity: 1;
        }
        
        .message-actions button {
            background: transparent;
            border: none;
            padding: 4px;
            cursor: pointer;
            border-radius: 4px;
            color: #666;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .message-actions button:hover {
            background: rgba(0, 0, 0, 0.1);
        }
        
        .message-actions svg {
            width: 16px;
            height: 16px;
        }

        .message-variant-nav {
            display: inline-flex;
            align-items: center;
            gap: 0;
            color: #666;
            font-size: 12px;
            line-height: 1;
            margin-right: 2px;
        }

        .message-variant-nav button {
            padding: 2px 1px;
        }

        .message-variant-nav button:disabled {
            opacity: 0.35;
            cursor: default;
        }

        .message-variant-count {
            min-width: 24px;
            text-align: center;
            font-variant-numeric: tabular-nums;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(8px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .user-message {
            background: rgba(26, 115, 232, 0.08);
            margin-left: auto;
            margin-right: 0;
            border-radius: 12px;
        }
        
        body.dark-theme .user-message {
            background: rgba(26, 115, 232, 0.18);
        }

        /* 文件消息（独立显示在用户消息上方） */
        .file-message {
            background: transparent;
            margin-left: auto;
            margin-right: 0;
            border: none;
            box-shadow: none;
            padding: 0;
        }

        body.dark-theme .file-message {
            background: transparent;
        }

        .file-message .message-attachments {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            padding: 0;
        }

        .file-message .attachment-card {
            display: flex;
            align-items: center;
            gap: 4px;
            padding: 4px 6px;
            background: #ffffff;
            border: none;
            border-radius: 4px;
            font-size: 11px;
            box-shadow: none;
        }

        body.dark-theme .file-message .attachment-card {
            background: rgba(37, 42, 48, 0.9);
        }

        .file-message .attachment-card .attachment-icon {
            font-size: 14px;
        }

        .file-message .attachment-card .attachment-info {
            display: flex;
            flex-direction: column;
            gap: 0;
        }

        .file-message .attachment-card .attachment-name {
            color: #333;
            font-weight: 400;
            max-width: 100px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        body.dark-theme .file-message .attachment-card .attachment-name {
            color: #e0e0e0;
        }

        .file-message .attachment-card .attachment-ext {
            font-size: 9px;
            color: #888;
            text-transform: uppercase;
        }

        body.dark-theme .file-message .attachment-card .attachment-ext {
            color: #999;
        }

        .bot-message {
            background: #ffffff;
            margin-right: auto;
            margin-left: 0;
            border-radius: 12px;
        }
        
        body.dark-theme .bot-message {
            background: #2f2f2f;
        }
        
        /* Markdown 渲染后的基础优化样式 */
        .markdown-body {
            width: 100%;
            overflow-wrap: break-word;
            word-wrap: break-word;
            hyphens: auto;
        }
        .markdown-body p { margin-bottom: 10px; line-height: 1.6; }
        .markdown-body p:last-child { margin-bottom: 0; }

        /* Markdown 表格样式优化 */
        .markdown-table {
            border-collapse: collapse;
            width: 100%;
            margin-bottom: 15px;
            overflow-x: auto;
            display: block;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }
        .markdown-table th, .markdown-table td {
            border: 1px solid #d0e0f0;
            padding: 10px 14px;
            text-align: left;
        }
        .markdown-table th {
            background-color: rgba(26, 115, 232, 0.12);
            font-weight: bold;
        }
        .markdown-table tr:nth-child(even) {
            background-color: rgba(26, 115, 232, 0.04);
        }
        .markdown-table tr:hover {
            background-color: rgba(26, 115, 232, 0.08);
        }
        body.dark-theme .markdown-table th,
        body.dark-theme .markdown-table td {
            border-color: #3a4a5a;
        }
        body.dark-theme .markdown-table th {
            background-color: rgba(26, 115, 232, 0.18);
        }
        body.dark-theme .markdown-table tr:nth-child(even) {
            background-color: rgba(26, 115, 232, 0.06);
        }
        body.dark-theme .markdown-table tr:hover {
            background-color: rgba(26, 115, 232, 0.12);
        }

        /* 引用样式优化 */
        .markdown-blockquote {
            border-left: 4px solid #ccc;
            padding: 10px 15px;
            margin: 0 0 15px 0;
            color: #666;
            background: rgba(0, 0, 0, 0.02);
            border-radius: 0 8px 8px 0;
        }
        body.dark-theme .markdown-blockquote {
            color: #aaa;
            background: rgba(26, 115, 232, 0.08);
        }

        /* 列表优化 */
        .markdown-list {
            padding-left: 20px;
            margin-bottom: 15px;
        }
        .markdown-listitem {
            margin-bottom: 5px;
        }

        /* 行内代码优化 */
        .inline-code {
            background-color: rgba(26, 115, 232, 0.08);
            color: #d81b60;
            padding: 2px 5px;
            border-radius: 4px;
            font-family: "SF Mono", "Fira Code", "Cascadia Code", "JetBrains Mono", Consolas, monospace;
            font-size: 0.9em;
            white-space: pre-wrap;
        }
        body.dark-theme .inline-code {
            background-color: rgba(26, 115, 232, 0.12);
            color: #ff80ab;
        }

        /* 数学公式样式 */
        .katex-display {
            margin: 1em 0;
            overflow-x: auto;
            padding: 10px 0;
        }
        .math-error {
            color: #d32f2f;
            background: #ffebee;
            padding: 2px 4px;
            border-radius: 3px;
            font-family: "SF Mono", "Fira Code", "Cascadia Code", "JetBrains Mono", Consolas, monospace;
        }
        body.dark-theme .math-error {
            background: #3d1414;
            color: #ef5350;
        }

        /* 标题样式 */
        .markdown-heading {
            margin-top: 20px;
            margin-bottom: 10px;
            font-weight: 600;
            line-height: 1.25;
        }
        
        /* Markdown 表格样式优化 */
        .markdown-body table {
            border-collapse: collapse;
            width: 100%;
            margin-bottom: 15px;
            overflow-x: auto;
            display: block;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }
        .markdown-body th, .markdown-body td {
            border: 1px solid #d0e0f0;
            padding: 10px 14px;
            text-align: left;
        }
        .markdown-body th {
            background-color: rgba(26, 115, 232, 0.12);
            font-weight: bold;
        }
        .markdown-body tr:nth-child(even) {
            background-color: rgba(26, 115, 232, 0.04);
        }
        .markdown-body tr:hover {
            background-color: rgba(26, 115, 232, 0.08);
        }
        body.dark-theme .markdown-body table th,
        body.dark-theme .markdown-body table td {
            border-color: #3a4a5a;
        }
        body.dark-theme .markdown-body table th {
            background-color: rgba(26, 115, 232, 0.18);
        }
        body.dark-theme .markdown-body tr:nth-child(even) {
            background-color: rgba(26, 115, 232, 0.06);
        }
        body.dark-theme .markdown-body tr:hover {
            background-color: rgba(26, 115, 232, 0.12);
        }

        /* 引用样式优化 */
        .markdown-body blockquote {
            border-left: 4px solid #ccc;
            padding: 10px 15px;
            margin: 0 0 15px 0;
            color: #666;
            background: rgba(0, 0, 0, 0.02);
            border-radius: 0 8px 8px 0;
        }
        body.dark-theme .markdown-body blockquote {
            color: #aaa;
            background: rgba(26, 115, 232, 0.08);
        }

        /* 水平线样式 */
        .markdown-hr {
            border: none;
            height: 2px;
            background: linear-gradient(to right, transparent, #d0e0f0, transparent);
            margin: 20px 0;
        }
        body.dark-theme .markdown-hr {
            background: linear-gradient(to right, transparent, #3a4a5a, transparent);
        }

        /* 列表优化 */
        .markdown-body ul, .markdown-body ol {
            padding-left: 20px;
            margin-bottom: 15px;
        }

        /* 行内代码优化 */
        .markdown-body code:not(.line-contents code, pre code) {
            background-color: rgba(26, 115, 232, 0.08);
            color: #d81b60;
            padding: 2px 5px;
            border-radius: 4px;
            font-family: "SF Mono", "Fira Code", "Cascadia Code", "JetBrains Mono", Consolas, monospace;
            font-size: 0.9em;
        }
        body.dark-theme .markdown-body code:not(.line-contents code, pre code) {
            background-color: rgba(26, 115, 232, 0.12);
            color: #ff80ab;
        }

        /* 代码块基础样式 */
        .code-block-wrapper { position: relative; margin-bottom: 15px; width: 100%; }
        .code-block {
            margin: 0;
            border-radius: 8px;
            overflow: hidden;
            background-color: #282c34;
            color: #abb2bf;
            position: relative;
            display: flex;
        }
        .code-block .code-language {
            position: absolute;
            top: 5px;
            right: 60px;
            padding: 3px 10px;
            font-size: 12px;
            background-color: #ddd;
            color: #555;
            border-radius: 3px;
            font-family: "SF Mono", "Fira Code", "Cascadia Code", "JetBrains Mono", Consolas, monospace;
            z-index: 2;
        }
        
        .code-block .copy-btn {
            position: absolute;
            top: 5px;
            right: 5px;
            padding: 3px 10px;
            font-size: 12px;
            background-color: #ddd;
            color: #555;
            border-radius: 3px;
            cursor: pointer;
            transition: all 0.2s ease;
            border: none;
            font-family: Arial, sans-serif;
            z-index: 2;
        }
        
        .code-block .copy-btn:hover {
            background-color: #ccc;
        }
        
        .code-block .line-numbers {
            flex-shrink: 0;
            min-width: 40px;
            user-select: none;
            color: #7d7d7d;
            padding: 35px 10px 15px 10px;
            border-right: 1px solid #444;
            text-align: right;
            font-family: "SF Mono", "Fira Code", "Cascadia Code", "JetBrains Mono", Consolas, monospace;
            font-size: 14px;
            line-height: 1.5;
            background-color: rgba(0, 0, 0, 0.2);
        }
        
        .code-block .line-contents {
            flex: 1;
            overflow-x: auto;
            padding: 35px 10px 15px 10px;
            font-family: "SF Mono", "Fira Code", "Cascadia Code", "JetBrains Mono", Consolas, monospace;
            font-size: 14px;
            line-height: 1.5;
            white-space: pre;
        }
        .code-block .line-contents code {
            white-space: pre;
        }

        .avatar {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            margin-right: 15px;
            background-color: #f0f0f0;
            flex-shrink: 0;
            background-size: cover;
        }
        
.crux-avatar { background-image: url("https://i.ibb.co/HfGSQmCp/i.png"); }
.gemini-avatar { background-image: url("https://i.ibb.co/TDKdSh09/g.png"); }
.chatgpt-avatar { background-image: url("https://i.ibb.co/spK4jwPq/c.png"); }
.claude-avatar { background-image: url("https://i.ibb.co/6RjqsgwG/cla.png"); }
.glm-avatar { background-image: url("https://i.ibb.co/dw8Hv6yX/z.png"); }
.minimax-avatar { background-image: url("https://i.ibb.co/zwf38Zt/mm.png"); }
.mimo-avatar { background-image: url("https://i.ibb.co/TBvsxsm0/mi.png"); }
.grok-avatar { background-image: url("https://i.ibb.co/zhD0Zp79/gr.png"); }
.kimi-avatar { background-image: url("https://i.ibb.co/Zp1ZHBv8/k.png"); }
.qwen-avatar { background-image: url("https://i.ibb.co/svJ8bWJ8/q.png"); }
.deepseek-avatar { background-image: url("https://i.ibb.co/LDwCdZHF/d.png"); }
.seedream-avatar { background-image: url("https://i.ibb.co/prBhCs0P/do.png"); }
.gpt_image-avatar { background-image: url("https://i.ibb.co/spK4jwPq/c.png"); }
.gemini_image-avatar { background-image: url("https://i.ibb.co/TDKdSh09/g.png"); }
.cruxcomp-avatar { background-image: url("https://i.ibb.co/HfGSQmCp/i.png"); }
        
        /* 欢迎屏幕样式 */
        .welcome-screen {
            display: none;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 24px 5px;
            text-align: center;
            background: #fafafa;
            z-index: 10;
        }
        
        body.dark-theme .welcome-screen {
            background: #1f1f1f;
        }
        
        .welcome-screen.show {
            display: flex;
        }
        
.welcome-content {
            max-width: 768px;
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100%;
            text-align: center;
            padding: 20px 0;
        }
        
        .welcome-logo {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            margin-bottom: 24px;
        }
        
        .welcome-icon {
            width: 40px;
            height: 40px;
        }
        
        .welcome-title-img {
            height: 36px;
        }
        
        .welcome-title {
            font-size: 28px;
            font-weight: 600;
            color: #1a1a1a;
            margin-bottom: 8px;
        }
        
        body.dark-theme .welcome-title {
            color: #e0e0e0;
        }
        
        .welcome-subtitle {
            font-size: 16px;
            color: #8e8ea0;
            margin-bottom: 32px;
        }
        
        body.dark-theme .welcome-subtitle {
            color: #8e8ea0;
        }
        
        /* Crux+ 欢迎界面样式 */
        .crux-plus-screen {
            display: none;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 40px 24px;
            text-align: center;
            background: #fafafa;
            z-index: 10;
        }
        
        body.dark-theme .crux-plus-screen {
            background: #1f1f1f;
        }
        
        .crux-plus-screen.show {
            display: flex;
        }
        
        .crux-plus-header {
            margin-bottom: 48px;
        }
        
        .crux-plus-logo {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            margin-bottom: 16px;
        }
        
        .crux-plus-logo img {
            width: 48px;
            height: 48px;
        }
        
        .crux-plus-title {
            font-size: 32px;
            font-weight: 600;
            color: #1a1a1a;
            margin-bottom: 8px;
        }
        
        body.dark-theme .crux-plus-title {
            color: #e0e0e0;
        }
        
        .crux-plus-subtitle {
            font-size: 16px;
            color: #8e8ea0;
        }
        
        .crux-plus-mode-buttons {
            display: flex;
            gap: 12px;
            margin-bottom: 32px;
            justify-content: flex-start;
            max-width: 680px;
            width: 100%;
        }
        
        .crux-plus-mode-btn {
            padding: 10px 20px;
            background: #ffffff;
            border: 1px solid #d1d5db;
            border-radius: 20px;
            font-size: 14px;
            color: #333;
            cursor: pointer;
            transition: all 0.2s ease;
            font-weight: 500;
        }
        
        body.dark-theme .crux-plus-mode-btn {
            background: #2f2f2f;
            border-color: #3a3a3a;
            color: #e0e0e0;
        }
        
        .crux-plus-mode-btn:hover {
            border-color: rgba(26, 115, 232, 0.5);
            background: rgba(26, 115, 232, 0.05);
        }
        
        .crux-plus-mode-btn.selected {
            background: rgba(26, 115, 232, 0.12);
            border-color: rgba(26, 115, 232, 0.85);
            color: rgba(26, 115, 232, 0.9);
        }
        
        body.dark-theme .crux-plus-mode-btn.selected {
            background: rgba(26, 115, 232, 0.15);
        }
        
        .crux-plus-input-area {
            max-width: 680px;
            width: 100%;
        }
        
        .crux-plus-input-area.hidden {
            display: none;
        }
        
        .crux-plus-input-box {
            display: flex;
            align-items: center;
            background: #ffffff;
            border: 1px solid #d1d5db;
            border-radius: 24px;
            padding: 12px 16px;
            transition: all 0.2s ease;
        }
        
        body.dark-theme .crux-plus-input-box {
            background: #2f2f2f;
            border-color: #3a3a3a;
        }
        
        .crux-plus-input-box:focus-within {
            border-color: #d1d5db;
            box-shadow: none;
        }
        
        .crux-plus-input {
            flex: none;
            display: block;
            width: 100%;
            border: none;
            outline: none;
            font-size: 15px;
            line-height: 1.5;
            resize: none;
            min-height: 24px;
            max-height: calc(1.5em * 12);
            height: auto;
            background: transparent;
            font-family: inherit;
            box-sizing: border-box;
            overflow-x: hidden;
            overflow-y: hidden;
            overflow-wrap: anywhere;
            word-break: break-word;
            white-space: pre-wrap;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .crux-plus-input::-webkit-scrollbar {
            display: none;
            width: 0;
            height: 0;
        }

        .crux-plus-input {
            scrollbar-width: auto !important;
            -ms-overflow-style: auto !important;
        }

        .crux-plus-input::-webkit-scrollbar {
            display: block !important;
            width: 8px !important;
            height: 8px !important;
        }

        .crux-plus-input::-webkit-scrollbar-thumb {
            background: rgba(120, 120, 120, 0.24);
            border-radius: 999px;
        }

        .crux-plus-input::-webkit-scrollbar-track {
            background: transparent;
        }
        
        body.dark-theme .crux-plus-input {
            color: #e0e0e0;
        }
        
        .crux-plus-input::placeholder {
            color: #9ca3af;
        }
        
        .crux-plus-send-btn {
            width: 32px;
            height: 32px;
            background: #1a73e8;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            transition: background 0.2s ease;
            margin-left: 8px;
        }
        
        body.dark-theme .crux-plus-send-btn {
            background: #5a7a8c;
        }
        
        .crux-plus-send-btn:hover:not(:disabled) {
            background: #4a7ab5;
        }
        
        body.dark-theme .crux-plus-send-btn:hover:not(:disabled) {
            background: #4a6a7c;
        }
        
        .crux-plus-send-btn:disabled {
            background: #d1d5db;
            cursor: not-allowed;
        }
        
        .crux-plus-controls {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 0;
            margin-top: 8px;
        }
        
        .crux-plus-image-selector {
            display: none;
            position: relative;
            align-items: center;
            gap: 6px;
            padding: 4px 12px;
            background: rgba(255, 255, 255, 0.85);
            border: 1px solid #d0d0d0;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            backdrop-filter: blur(5px);
            height: 30px;
            font-size: 12px;
            font-weight: 500;
            z-index: 100;
        }
        
        body.dark-theme .crux-plus-image-selector {
            background: rgba(37, 42, 48, 0.85);
            border-color: #2a3038;
            color: #d0d0d0;
        }
        
        .crux-plus-image-selector:hover {
            border-color: #bbb;
            box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
        }
        
        .crux-plus-image-selector.show {
            display: inline-flex;
        }
        
        .crux-plus-image-selector .model-avatar {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background-size: cover;
            background-position: center;
            flex-shrink: 0;
        }
        
        .crux-plus-image-selector .model-name {
            color: inherit;
            max-width: 80px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        
        .crux-plus-image-selector .dropdown-arrow {
            font-size: 10px;
            color: #7a8c9e;
            transition: transform 0.3s ease;
        }
        
        .crux-plus-image-selector.open .dropdown-arrow {
            transform: rotate(180deg);
        }
        
        .crux-plus-image-dropdown {
            display: none;
            position: absolute;
            bottom: 100%;
            left: 0;
            min-width: 180px;
            max-height: 300px;
            overflow-y: auto;
            background: #fff;
            border: 1px solid #d0d0d0;
            border-radius: 12px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            margin-bottom: 8px;
            z-index: 1000;
            padding: 5px 0;
        }
        
        body.dark-theme .crux-plus-image-dropdown {
            background: #1a1f24;
            border-color: #2a3038;
        }
        
        .crux-plus-image-dropdown.show {
            display: block;
            animation: dropdownFadeIn 0.2s ease;
        }
        
        .crux-plus-image-dropdown .dropdown-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 15px;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .crux-plus-image-dropdown .dropdown-item:hover {
            background: rgba(26, 115, 232, 0.08);
        }
        
        .crux-plus-image-dropdown .dropdown-item.selected {
            background: rgba(26, 115, 232, 0.15);
        }
        
        .crux-plus-image-dropdown .dropdown-item .item-avatar {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background-size: cover;
            background-position: center;
            flex-shrink: 0;
        }
        
        .crux-plus-image-dropdown .dropdown-item .item-name {
            font-size: 13px;
            color: #2c3e50;
            flex: 1;
        }
        
        body.dark-theme .crux-plus-image-dropdown .dropdown-item .item-name {
            color: #e0e0e0;
        }
        
        .crux-plus-image-dropdown .dropdown-item .check-icon {
            opacity: 0;
            color: #666;
            font-size: 14px;
        }
        
        .crux-plus-image-dropdown .dropdown-item.selected .check-icon {
            opacity: 1;
        }
        
        .center-input-wrapper {
            max-width: 768px;
            margin: 0 auto;
            width: 100%;
        }
        
        .user-input.large {
            font-size: 16px;
        }
        
        .input-box.centered {
            max-width: 768px;
            width: 100%;
            margin: 0 auto;
            padding: 12px 16px;
        }
        
        .attach-btn {
            width: 36px;
            height: 36px;
            background: transparent;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #6b7280;
            transition: all 0.2s ease;
            flex-shrink: 0;
        }
        
        .attach-btn:hover:not(:disabled) {
            background: #f3f4f6;
            color: #374151;
        }
        
        .attach-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        
        body.dark-theme .attach-btn {
            color: #9ca3af;
        }
        
        body.dark-theme .attach-btn:hover:not(:disabled) {
            background: #333333;
            color: #d1d5db;
        }
        
        .send-btn {
            width: 36px;
            height: 36px;
            background: #1a73e8;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            transition: background 0.2s ease;
        }
        
        .send-btn:hover:not(:disabled) {
            background: #4a7ab5;
        }
        
        .send-btn:disabled {
            background: #d1d5db;
            cursor: not-allowed;
        }
        
        body.dark-theme .send-btn {
            background: #5a7a8c;
        }
        
        body.dark-theme .send-btn:hover:not(:disabled) {
            background: #4a6a7c;
        }

        /* 文件预览区域（输入框上方） */
        #file-preview-container {
            display: none;
            flex-wrap: wrap;
            gap: 6px;
            padding: 6px 0;
            margin-bottom: 6px;
            background: transparent;
            border: none;
            border-radius: 0;
        }

        body.dark-theme #file-preview-container {
            background: transparent;
        }

        .file-preview-card {
            display: flex;
            align-items: center;
            gap: 5px;
            padding: 4px 8px;
            background: #ffffff;
            border: none;
            border-radius: 4px;
            font-size: 11px;
            color: #333;
            max-width: 140px;
            box-shadow: none;
        }

        body.dark-theme .file-preview-card {
            background: rgba(37, 42, 48, 0.9);
            color: #e0e0e0;
        }

        .file-preview-card .file-icon {
            font-size: 16px;
            flex-shrink: 0;
        }

        .file-preview-card .file-info {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .file-preview-card .file-name {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            font-weight: 500;
        }

        .file-preview-card .file-ext {
            font-size: 11px;
            color: #888;
            text-transform: uppercase;
        }

        body.dark-theme .file-preview-card .file-ext {
            color: #999;
        }

        .file-preview-card .remove-file {
            cursor: pointer;
            color: #999;
            font-size: 16px;
            padding: 2px;
            flex-shrink: 0;
        }

        .file-preview-card .remove-file:hover {
            color: #ff4444;
        }

        /* 解析中的加载动画 */
        .file-preview-card .file-loading {
            display: none;
            width: 16px;
            height: 16px;
            border: 2px solid rgba(26, 115, 232, 0.3);
            border-top-color: #1a73e8;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            flex-shrink: 0;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        .file-preview-card.loading .file-loading {
            display: block;
        }

        .file-preview-card.loading .file-icon,
        .file-preview-card.loading .file-info {
            opacity: 0.5;
        }

        #user-input, .user-input {
            width: 100%;
            flex: none;
            display: block;
            border: none;
            outline: none;
            font-size: 15px;
            line-height: 1.5;
            resize: none;
            min-height: 24px;
            max-height: calc(1.5em * 12);
            height: auto;
            background: transparent;
            font-family: inherit;
            box-sizing: border-box;
            overflow-x: hidden;
            overflow-y: hidden;
            overflow-wrap: anywhere;
            word-break: break-word;
            white-space: pre-wrap;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        #user-input::-webkit-scrollbar,
        .user-input::-webkit-scrollbar {
            display: none;
            width: 0;
            height: 0;
        }

        #user-input,
        .user-input {
            scrollbar-width: auto !important;
            -ms-overflow-style: auto !important;
        }

        #user-input::-webkit-scrollbar,
        .user-input::-webkit-scrollbar {
            display: block !important;
            width: 8px !important;
            height: 8px !important;
        }

        #user-input::-webkit-scrollbar-thumb,
        .user-input::-webkit-scrollbar-thumb {
            background: rgba(120, 120, 120, 0.24);
            border-radius: 999px;
        }

        #user-input::-webkit-scrollbar-track,
        .user-input::-webkit-scrollbar-track {
            background: transparent;
        }
        
        body.dark-theme #user-input, body.dark-theme .user-input {
            color: #e0e0e0;
        }
        
        #user-input::placeholder, .user-input::placeholder {
            color: #9ca3af;
        }
        
        #input-container {
            position: relative;
            flex-shrink: 0;
            padding: 0 24px 24px;
            background: #fafafa;
        }
        
        body.dark-theme #input-container {
            background: #1f1f1f;
        }
        
        .input-wrapper {
            max-width: 768px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
        }
        
.input-box {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            background: #ffffff;
            border: 1px solid #d1d5db;
            border-radius: 24px;
            padding: 12px 16px;
            transition: all 0.2s ease;
            width: 100%;
        }
        
        body.dark-theme .input-box {
            background: #2f2f2f;
            border-color: #3a3a3a;
        }
        
        .input-box:focus-within {
            border-color: #d1d5db;
        }
        .input-main-area {
            display: flex;
            flex-direction: column;
            width: 100%;
            flex: 1;
            min-height: 0;
            align-items: flex-start;
            gap: 8px;
        }

        .input-actions {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 12px;
            padding-top: 8px;
        }
        
        .input-spacer {
            flex: 1;
        }
        
        body.dark-theme .input-box {
            background: #2f2f2f;
            border-color: #3a3a3a;
        }
        
        .input-box:focus-within {
            border-color: #d1d5db;
            box-shadow: none;
        }

        .button-container {
            display: none;
        }
        
        .input-actions {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 12px;
            padding-top: 8px;
        }
        
        .input-controls {
            display: flex;
            gap: 8px;
            align-items: center;
            margin-top: 0;
            flex-wrap: wrap;
            justify-content: flex-start;
        }
        
        .input-controls > * {
            flex-shrink: 0;
        }
        
        .model-select {
            padding: 6px 12px;
            border: 1px solid #d0d0d0;
            border-radius: 20px;
            background: rgba(255, 255, 255, 0.85);
            font-size: 12px;
            transition: all 0.3s ease;
            cursor: pointer;
            font-weight: 500;
            backdrop-filter: blur(5px);
            height: 30px;
        }
        
/* 思考模式选择器样式 */
        .thinking-mode-selector {
            padding: 6px 12px;
            border-radius: 20px;
            background: rgba(255, 255, 255, 0.85);
            border: 1px solid transparent;
            font-size: 14px;
            transition: all 0.3s ease;
            cursor: pointer;
            font-weight: 500;
            backdrop-filter: blur(5px);
            height: 30px;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            position: relative;
            width: 95px;
            min-width: 95px;
            justify-content: space-between;
            margin-right: 8px;
            color: #666;
            outline: none;
        }
        
        .thinking-mode-selector:hover {
            border-color: transparent;
            box-shadow: none;
        }

        .thinking-mode-selector:focus,
        .thinking-mode-selector:focus-visible,
        .thinking-mode-selector.open {
            border-color: transparent;
            box-shadow: none;
            outline: none;
        }
        
        .thinking-mode-selector .dropdown-arrow {
            font-size: 10px;
            color: #7a8c9e;
            transition: transform 0.3s ease;
        }
        
        .thinking-mode-selector.open .dropdown-arrow {
            transform: rotate(180deg);
        }
        
        .thinking-mode-label {
            max-width: 90px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            flex-shrink: 0;
            color: #666;
        }

        body.dark-theme .thinking-mode-selector,
        body.dark-theme .thinking-mode-label {
            color: #d0d0d0;
        }
        
        .thinking-mode-dropdown {
            display: none;
            position: absolute;
            bottom: 100%;
            top: auto;
            left: 0;
            min-width: 140px;
            background: #fff;
            border-radius: 12px;
            margin-bottom: 8px;
            margin-top: auto;
            z-index: 1000;
            padding: 5px 0;
        }
        
        body.dark-theme .thinking-mode-dropdown {
            background: #1a1f24;
        }
        
        .thinking-mode-dropdown.show {
            display: block;
            animation: dropdownFadeIn 0.2s ease;
        }
        
        /* 欢迎界面下拉框向下展开 */
        #thinking-mode-dropdown-welcome {
            bottom: auto;
            top: 100%;
            margin-top: 8px;
            margin-bottom: auto;
        }
        
        .thinking-option {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 15px;
            cursor: pointer;
            transition: all 0.2s ease;
            gap: 10px;
        }
        
        .thinking-option:hover {
            background: rgba(26, 115, 232, 0.08);
        }
        
        .thinking-option.selected {
            background: transparent;
        }
        
        .thinking-option .option-text {
            font-size: 13px;
            color: #2c3e50;
        }
        
        body.dark-theme .thinking-option .option-text {
            color: #e0e0e0;
        }
        
        .thinking-option .option-check {
            opacity: 0;
            color: #666;
            font-size: 14px;
        }
        
        .thinking-option.selected .option-check {
            opacity: 0;
        }
        
        .thinking-option.web-search-option {
            justify-content: space-between;
            padding: 8px 15px;
            cursor: default;
        }
        
        .thinking-option.web-search-option:hover {
            background: transparent;
        }
        
        .thinking-switch {
            position: relative;
            display: inline-block;
            width: 40px;
            height: 22px;
        }
        
        .thinking-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        
        .thinking-switch .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: 0.3s;
            border-radius: 22px;
        }
        
        .thinking-switch .slider:before {
            position: absolute;
            content: "";
            height: 16px;
            width: 16px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: 0.3s;
            border-radius: 50%;
        }
        
        .thinking-switch input:checked + .slider {
            background-color: rgba(26, 115, 232, 0.85);
        }
        
        .thinking-switch input:checked + .slider:before {
            transform: translateX(18px);
        }

        /* 工具下拉按钮样式 */
        .tool-dropdown-btn {
            padding: 6px 12px;
            border-radius: 20px;
            background: rgba(255, 255, 255, 0.85);
            font-size: 14px;
            transition: all 0.3s ease;
            cursor: pointer;
            font-weight: 500;
            backdrop-filter: blur(5px);
            height: 30px;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            position: relative;
            min-width: 80px;
            justify-content: space-between;
            margin-right: 8px;
            border: 1px solid transparent;
        }

        .tool-dropdown-btn:hover {
            border-color: transparent;
            box-shadow: none;
        }

        .tool-dropdown-btn:focus,
        .tool-dropdown-btn:focus-visible,
        .tool-dropdown-btn:active,
        .tool-dropdown-btn.open,
        .tool-dropdown-btn.active {
            border-color: transparent;
            box-shadow: none;
            outline: none;
        }

        .tool-dropdown-btn .tool-icon {
            width: 18px;
            height: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .tool-dropdown-btn .tool-icon svg {
            width: 16px;
            height: 16px;
            stroke: #666;
            fill: none;
            stroke-width: 2;
        }

        .tool-dropdown-btn.active .tool-icon svg {
            stroke: #1a73e8;
        }

        .tool-dropdown-btn .tool-label {
            font-size: 13px;
            color: #666;
            max-width: 100px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .tool-dropdown-btn.active .tool-label {
            color: #1a73e8;
            font-weight: 600;
        }

        .tool-dropdown-btn .dropdown-arrow {
            font-size: 10px;
            color: #7a8c9e;
            transition: transform 0.3s ease;
        }

        .tool-dropdown-btn.open .dropdown-arrow {
            transform: rotate(180deg);
        }

        .tool-dropdown-btn .close-icon {
            display: none;
            font-size: 14px;
            color: #1a73e8;
            margin-left: 4px;
            cursor: pointer;
        }

        .tool-dropdown-btn.active .close-icon {
            display: inline-block;
        }

        .tool-dropdown-btn.active .dropdown-arrow {
            display: none;
        }

        body.dark-theme .tool-dropdown-btn {
            background: rgba(37, 42, 48, 0.85);
            border-color: transparent;
        }

        body.dark-theme .tool-dropdown-btn .tool-label {
            color: #d0d0d0;
        }

        body.dark-theme .tool-dropdown-btn .tool-icon svg {
            stroke: #aaa;
        }

        body.dark-theme .tool-dropdown-btn.active .tool-icon svg {
            stroke: #4da3ff;
        }

        body.dark-theme .tool-dropdown-btn.active .tool-label {
            color: #4da3ff;
        }

        body.dark-theme .tool-dropdown-btn .close-icon {
            color: #4da3ff;
        }

        /* 工具下拉菜单 */
        .tool-dropdown-menu {
            display: none;
            position: absolute;
            bottom: 100%;
            top: auto;
            left: 0;
            min-width: 160px;
            background: #fff;
            border-radius: 12px;
            margin-bottom: 8px;
            margin-top: auto;
            z-index: 1000;
            padding: 5px 0;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .tool-dropdown-menu.show {
            display: block;
            animation: dropdownFadeIn 0.2s ease;
        }

        /* 欢迎界面工具菜单向下展开 */
        .tool-dropdown-menu.welcome-tool-menu {
            bottom: auto;
            top: 100%;
            margin-top: 8px;
            margin-bottom: auto;
        }

        body.dark-theme .tool-dropdown-menu {
            background: #1a1f24;
        }

        .tool-dropdown-item {
            display: flex;
            align-items: center;
            padding: 10px 15px;
            cursor: pointer;
            transition: all 0.2s ease;
            gap: 10px;
        }

        .tool-dropdown-item:hover {
            background: rgba(26, 115, 232, 0.08);
        }

        .tool-dropdown-item.selected {
            background: rgba(26, 115, 232, 0.08);
        }

        .tool-dropdown-item .item-icon {
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .tool-dropdown-item .item-icon svg {
            width: 16px;
            height: 16px;
            stroke: #666;
            fill: none;
            stroke-width: 2;
        }

        .tool-dropdown-item .item-text {
            font-size: 13px;
            color: #2c3e50;
        }

        body.dark-theme .tool-dropdown-item .item-text {
            color: #e0e0e0;
        }

        body.dark-theme .tool-dropdown-item .item-icon svg {
            stroke: #aaa;
        }

        body.dark-theme .model-select {
            background: rgba(37, 42, 48, 0.85);
            border-color: #2a3038;
            color: #d0d0d0;
        }
        
        .model-select:focus { outline: none; border-color: #bbb; }
        
        .reason-button {
            padding: 6px 12px;
            border: 1px solid transparent;
            border-radius: 20px;
            background: rgba(255, 255, 255, 0.85);
            color: #666;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
            backdrop-filter: blur(5px);
            height: 30px;
            outline: none;
        }
        
        body.dark-theme .reason-button {
            background: rgba(37, 42, 48, 0.85);
            border-color: #2a3038;
            color: #d0d0d0;
        }
        
        .reason-button:hover, .reason-button.active {
            border-color: transparent;
            color: #666;
            box-shadow: none;
        }
        
        body.dark-theme .reason-button:hover,
        body.dark-theme .reason-button.active {
            border-color: transparent;
            color: #aaa;
            box-shadow: none;
        }
        
        .reason-button.active { background: rgba(26, 115, 232, 0.12); border-color: rgba(26, 115, 232, 0.5); color: rgba(26, 115, 232, 0.9); }
        body.dark-theme .reason-button.active { background: rgba(26, 115, 232, 0.15); }

        .reason-button:focus,
        .reason-button:focus-visible,
        .reason-button:active {
            border-color: transparent;
            box-shadow: none;
            outline: none;
        }
        
        #reason-toggle { display: none; margin-left: 8px; }
        
        .send-button {
            width: 36px;
            height: 36px;
            background: #1a73e8;
            color: white;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s ease;
        }
        
        body.dark-theme .send-button {
            background: #5a7a8c;
        }


        .send-button:hover {
            background: #4a7ab5;
        }
        
        body.dark-theme .send-button:hover {
            background: #4a6a7c;
        }
        
        .send-button:disabled {
            background: #d1d5db;
            cursor: not-allowed;
        }
        
        .send-button.loading {
            opacity: 0.95;
            cursor: pointer;
        }
        
        .file-upload-label {
            width: 36px;
            height: 36px;
            background: transparent;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #6b7280;
            transition: all 0.2s ease;
            flex-shrink: 0;
        }
        
        .file-upload-label:hover {
            background: #f3f4f6;
            color: #374151;
        }
        
        body.dark-theme .file-upload-label {
            color: #9ca3af;
        }
        
        body.dark-theme .file-upload-label:hover {
            background: #333333;
            color: #d1d5db;
        }
        
        /* 自定义模型选择器样式 */
.custom-model-selector {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px 8px 5px;
            background: transparent;
            border: none;
            border-radius: 20px;
            cursor: pointer;
            position: relative;
            transition: all 0.2s ease;
        }
        
        .custom-model-selector:hover {
            background: rgba(0, 0, 0, 0.05);
        }
        
        body.dark-theme .custom-model-selector:hover {
            background: rgba(255, 255, 255, 0.05);
        }
        
        .custom-model-selector .model-avatar {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background-size: cover;
            background-position: center;
        }
        
        .custom-model-selector .model-name {
            font-size: 15px;
            font-weight: 500;
            color: #2c3e50;
        }
        
        body.dark-theme .custom-model-selector .model-name {
            color: #e0e0e0;
        }

        body.dark-theme .custom-model-selector {
            background: rgba(37, 42, 48, 0.85);
            border-color: #2a3038;
            color: #d0d0d0;
        }

        .custom-model-selector:hover { border-color: #bbb; box-shadow: 0 0 8px rgba(0, 0, 0, 0.1); }

        .custom-model-selector .model-avatar {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background-size: cover;
            background-position: center;
            flex-shrink: 0;
        }

        .custom-model-selector .model-name {
            color: inherit;
            max-width: 80px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .custom-model-selector .dropdown-arrow {
            font-size: 10px;
            color: #7a8c9e;
            transition: transform 0.3s ease;
        }

        .custom-model-selector.open .dropdown-arrow { transform: rotate(180deg); }

        .custom-model-dropdown {
            position: absolute;
            bottom: auto;
            top: 100%;
            margin-top: 8px;
            margin-bottom: 0;
            left: 0;
            min-width: 180px;
            max-height: 300px;
            overflow-y: auto;
            background: #fff;
            border: 1px solid #d0d0d0;
            border-radius: 12px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            display: none;
            z-index: 1000;
            padding: 5px 0;
        }

        .custom-model-dropdown.show { display: block; animation: dropdownFadeIn 0.2s ease; }

        #chat-header #chat-image-selector,
        #mobile-model-slot #chat-image-selector {
            align-items: center;
            gap: 8px;
            padding: 8px 12px 8px 5px;
            background: transparent;
            border: none;
            border-radius: 20px;
            cursor: pointer;
            position: relative;
            height: auto;
            font-size: 15px;
            font-weight: 500;
            transition: all 0.2s ease;
        }

        #chat-header #chat-image-selector:hover,
        #mobile-model-slot #chat-image-selector:hover {
            background: rgba(0, 0, 0, 0.05);
            border-color: #bbb;
            box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
        }

        body.dark-theme #chat-header #chat-image-selector,
        body.dark-theme #mobile-model-slot #chat-image-selector {
            background: rgba(37, 42, 48, 0.85);
            border-color: #2a3038;
            color: #d0d0d0;
        }

        body.dark-theme #chat-header #chat-image-selector:hover,
        body.dark-theme #mobile-model-slot #chat-image-selector:hover {
            background: rgba(255, 255, 255, 0.05);
        }

        #chat-header #chat-image-selector .model-avatar,
        #mobile-model-slot #chat-image-selector .model-avatar {
            width: 18px;
            height: 18px;
        }

        #chat-header #chat-image-selector .model-name,
        #mobile-model-slot #chat-image-selector .model-name {
            max-width: 80px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        #chat-header #chat-image-dropdown {
            top: 100%;
            bottom: auto;
            left: 0;
            margin-top: 8px;
            margin-bottom: 0;
        }

        @keyframes dropdownFadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        body.dark-theme .custom-model-dropdown { background: #1a1f24; border-color: #2a3038; }

        .custom-model-dropdown .dropdown-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 15px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .custom-model-dropdown .dropdown-item:hover { background: rgba(26, 115, 232, 0.08); }
        .custom-model-dropdown .dropdown-item.selected { background: rgba(26, 115, 232, 0.15); }

        .custom-model-dropdown .dropdown-item .item-avatar {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background-size: cover;
            background-position: center;
            flex-shrink: 0;
        }

        .custom-model-dropdown .dropdown-item .item-name { font-size: 13px; color: #2c3e50; flex: 1; }
        body.dark-theme .custom-model-dropdown .dropdown-item .item-name { color: #e0e0e0; }

        .custom-model-dropdown .dropdown-item .check-icon { opacity: 0; color: #666; font-size: 14px; }
        .custom-model-dropdown .dropdown-item.selected .check-icon { opacity: 1; }
        
        /* 开关区域样式 */
        .model-dropdown-switches {
            padding: 12px 15px;
        }
        
        .switch-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 0;
        }
        
        .switch-label {
            font-size: 13px;
            color: #2c3e50;
            font-weight: 500;
        }
        
        body.dark-theme .switch-label {
            color: #e0e0e0;
        }
        
        .dropdown-divider {
            height: 1px;
            background: #e0e0e0;
            margin: 5px 0;
        }
        
        body.dark-theme .dropdown-divider {
            background: #3a3a3a;
        }
        
        /* 开关样式 */
        .switch {
            position: relative;
            display: inline-block;
            width: 44px;
            height: 24px;
        }
        
        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        
        .switch .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: 0.3s;
            border-radius: 24px;
        }
        
        .switch .slider:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: 0.3s;
            border-radius: 50%;
        }
        
        .switch input:checked + .slider {
            background-color: rgba(26, 115, 232, 0.85);
        }
        
        .switch input:checked + .slider:before {
            transform: translateX(20px);
        }
        
        body.dark-theme .switch .slider {
            background-color: #555;
        }
        
        body.dark-theme .switch input:checked + .slider {
            background-color: rgba(26, 115, 232, 0.85);
        }

        /* 自定义操作按钮样式 */
        .custom-action-btn {
            padding: 4px 12px;
            height: 30px;
            border-radius: 20px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 1px solid #e0e0e0;
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(5px);
            flex-shrink: 0;
        }

        body.dark-theme .custom-action-btn { background: rgba(37, 42, 48, 0.85); border-color: #2a3038; }

        /* 思考按钮样式 - 关闭状态：黑色图标和文字 */
        .custom-action-btn.think-btn {
            background: rgba(255, 255, 255, 0.95);
            border-color: #d0d0d0;
        }
        .custom-action-btn.think-btn .btn-icon {
            color: #333;
            font-size: 16px;
            filter: none;
        }
        .custom-action-btn.think-btn .btn-text {
            color: #333;
        }
        /* 思考按钮 - 开启状态：白色图标和文字，蓝底 */
        .custom-action-btn.think-btn.active {
            background: rgba(26, 115, 232, 0.85);
            border-color: rgba(26, 115, 232, 0.6);
        }
        .custom-action-btn.think-btn.active .btn-icon {
            filter: brightness(0) invert(1);
        }
        .custom-action-btn.think-btn.active .btn-text {
            color: #fff;
        }
        body.dark-theme .custom-action-btn.think-btn {
            background: rgba(255, 255, 255, 0.95);
            border-color: #d0d0d0;
        }
        body.dark-theme .custom-action-btn.think-btn .btn-icon {
            filter: none;
        }
        body.dark-theme .custom-action-btn.think-btn .btn-text {
            color: #333;
        }
        body.dark-theme .custom-action-btn.think-btn.active {
            background: rgba(26, 115, 232, 0.6);
        }
        body.dark-theme .custom-action-btn.think-btn.active .btn-icon {
            filter: brightness(0) invert(1);
        }
        .custom-action-btn.think-btn .btn-icon { font-size: 16px; }

        /* 搜索按钮样式 - 关闭状态：黑色图标和文字 */
        .custom-action-btn.search-btn {
            background: rgba(255, 255, 255, 0.95);
            border-color: #d0d0d0;
        }
        .custom-action-btn.search-btn .btn-icon {
            color: #333;
            font-size: 14px;
            filter: none;
        }
        .custom-action-btn.search-btn .btn-text {
            color: #333;
        }
        /* 搜索按钮 - 开启状态：白色图标和文字，蓝底 */
        .custom-action-btn.search-btn.active {
            background: rgba(26, 115, 232, 0.85);
            border-color: rgba(26, 115, 232, 0.6);
        }
        .custom-action-btn.search-btn.active .btn-icon {
            filter: brightness(0) invert(1);
        }
        .custom-action-btn.search-btn.active .btn-text {
            color: #fff;
        }
        body.dark-theme .custom-action-btn.search-btn {
            background: rgba(255, 255, 255, 0.95);
            border-color: #d0d0d0;
        }
        body.dark-theme .custom-action-btn.search-btn .btn-icon {
            filter: none;
        }
        body.dark-theme .custom-action-btn.search-btn .btn-text {
            color: #333;
        }
        body.dark-theme .custom-action-btn.search-btn.active {
            background: rgba(26, 115, 232, 0.6);
        }
        body.dark-theme .custom-action-btn.search-btn.active .btn-icon {
            filter: brightness(0) invert(1);
        }
        .custom-action-btn.search-btn .btn-icon { font-size: 14px; }

        /* 按钮文字样式 */
        .custom-action-btn .btn-text {
            font-size: 12px;
            font-weight: 500;
            margin-left: 5px;
            white-space: nowrap;
        }

        #model-select-hidden { display: none; }
        .reason-button-hidden { display: none !important; }
        .custom-action-btn { display: inline-flex; }
        #kimi-reason-toggle, #chatgpt-reason-toggle, #deepseek-reason-toggle { display: none; }
        #web-search-toggle { display: inline-flex; }
        #file-input { display: none; }

        /* 深色主题样式 */
        body.dark-theme { background: linear-gradient(135deg, #232526 0%, #414345 100%); color: #e0e0e0; }
        body.dark-theme #sidebar { background: linear-gradient(to bottom, #1a1f24, #0f1317); }
        body.dark-theme #sidebar-header { border-bottom: 1px solid #1a1f24; }
        body.dark-theme #conversation-list { background: linear-gradient(to bottom, #1a1f24, #0f1317); }
        body.dark-theme .conversation-item { border: 1px solid #1a1f24; }
        body.dark-theme #sidebar-footer { border-top: 1px solid #1a1f24; }
        body.dark-theme #app-title { color: #e0f0ff; }
        body.dark-theme #app-subtitle { color: #8a9fb0; }
        body.dark-theme .conversation-item { background: rgba(255, 255, 255, 0.05); color: #c0d0e0; }
        body.dark-theme .conversation-item:hover { background: rgba(255, 255, 255, 0.1); }
        body.dark-theme .conversation-item.active { background: rgba(255, 255, 255, 0.15); }
        body.dark-theme .conversation-time { color: #7a8c9e; }
        body.dark-theme #main-chat-area { background-color: transparent; box-shadow: none; }
        body.dark-theme #chat-header { background: transparent; border-bottom: none; }
        body.dark-theme #chat-messages { background-color: transparent; }
        body.dark-theme .message { color: #e0e0e0; background: rgba(30, 34, 39, 0.85); }
        body.dark-theme .user-message { background: rgba(26, 115, 232, 0.18); }
        body.dark-theme .bot-message { background: rgba(37, 42, 48, 0.85); border: 1px solid rgba(42, 48, 56, 0.3); }
        body.dark-theme .code-block { background-color: rgba(22, 26, 31, 0.7); color: #e0e0e0; }
        body.dark-theme .code-block .code-language { background-color: #3a6186; }
        body.dark-theme .code-block .copy-btn { background-color: #3a6186; }

        ::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
        * { scrollbar-width: none !important; -ms-overflow-style: none !important; }

        .theme-toggle {
            position: absolute;
            top: 25px;
            right: 25px;
            width: 45px;
            height: 45px;
            background: rgba(255, 255, 255, 0.85);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 100;
            transition: all 0.3s ease;
            border: 1px solid #e0e0e0;
            backdrop-filter: blur(5px);
        }
        body.dark-theme .theme-toggle { background: rgba(37, 42, 48, 0.85); border-color: #2a3038; }
        .theme-toggle:hover { opacity: 0.85; }
        .theme-toggle::after { content: "🌙🌙"; font-size: 22px; }
        body.dark-theme .theme-toggle::after { content: "☀☀️"; }

        .category-header {
            padding: 12px 15px 8px;
            font-size: 13px;
            font-weight: 600;
            color: #7a8c9e;
            text-transform: uppercase;
            letter-spacing: 1px;
            position: sticky;
            top: 0;
            background: rgba(255, 255, 255, 0.95);
            z-index: 5;
            border-bottom: 1px solid #e0e0e0;
        }
        body.dark-theme .category-header { background: rgba(26, 31, 36, 0.95); color: #8a9fb0; border-bottom: 1px solid #2a3038; }

        .collapse-sidebar {
            position: absolute;
            top: 20px;
            right: 15px;
            width: 35px;
            height: 35px;
            background: transparent;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 110;
        }
        .collapse-sidebar img { width: 35px; height: 35px; transition: all 0.3s ease; }
        .collapse-sidebar:hover img { transform: scale(1.1); }

        #vertical-toolbar {
            position: fixed;
            left: 0;
            top: 0;
            height: 100vh;
            width: 70px;
            display: flex;
            flex-direction: column;
            align-items: center;
            background: #f5fdfc;
            z-index: 90;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            padding-top: 20px;
        }
        #vertical-toolbar.visible { opacity: 1; visibility: visible; }
        #vertical-toolbar .toolbar-btn { width: auto; height: auto; border-radius: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; margin: 20px 0; background: none; box-shadow: none; border: none; padding: 5px; }
        #vertical-toolbar .toolbar-btn:hover { transform: scale(1.1); opacity: 0.8; }
        #vertical-toolbar .toolbar-btn img { width: 33px; height: 33px; }
        #vertical-toolbar .app-icon { width: auto; height: auto; border-radius: 0; display: flex; align-items: center; justify-content: center; margin-bottom: 30px; background: none; box-shadow: none; }
        #vertical-toolbar .app-icon img { width: 50px; height: 50px; }
        body.dark-theme #vertical-toolbar { background: linear-gradient(to bottom, #1a1f24, #0f1317); box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3); }
        body.dark-theme #vertical-toolbar .toolbar-btn { background: none; }
        body.dark-theme #vertical-toolbar .toolbar-btn:hover { background: none; }

        .sidebar-collapsed #sidebar { transform: translateX(-100%); opacity: 0; width: 0; }
        .sidebar-collapsed #chat-container { max-width: 100%; margin-left: 0; }
        .sidebar-collapsed #vertical-toolbar { opacity: 1; visibility: visible; }

        #mobile-navbar {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 60px;
            display: none;
            justify-content: space-between;
            align-items: center;
            padding: 10px 15px;
            background: rgba(255, 255, 255, 0.95);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            backdrop-filter: blur(5px);
        }
        body.dark-theme #mobile-navbar { background: rgba(26, 31, 36, 0.95); }
        .mobile-nav-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: none; background: none; cursor: pointer; font-size: 24px; color: #333; padding: 0; }
        body.dark-theme .mobile-nav-btn { color: #e0e0e0; }
        #mobile-model-slot {
            display: none;
            align-items: center;
            justify-content: center;
            min-width: 0;
        }
        #mobile-menu-btn::after { content: "☰"; }
        #mobile-new-chat-btn::after { content: "+"; font-weight: bold; }
        #mobile-sidebar-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 900; display: none; opacity: 0; transition: opacity 0.3s ease; }
        .mobile-sidebar-open #mobile-sidebar-overlay { display: block; opacity: 1; }
        .mobile-sidebar-open #sidebar { transform: translateX(0); opacity: 1; width: 75%; }

        @media (max-width: 900px) {
            #sidebar { width: 220px; }
            #chat-container { max-width: calc(100% - 220px); }
            .sidebar-collapsed #chat-container { max-width: 100%; }
        }

        @media (max-width: 768px) {
            html, body { height: 100%; overflow: hidden; }
            body { flex-direction: column; }
            #mobile-navbar { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 10px; }
            #mobile-model-slot { display: flex; width: 100%; max-width: 180px; justify-self: center; }
            #mobile-model-slot .custom-model-selector,
            #mobile-model-slot #chat-image-selector { width: 100%; max-width: 100%; min-width: 0; height: 40px; justify-content: center; padding: 6px 10px 6px 8px; }
            #mobile-model-slot .custom-model-selector .model-name,
            #mobile-model-slot #chat-image-selector .model-name { max-width: 100px; font-size: 14px; }
            #mobile-model-slot .custom-model-dropdown,
            #mobile-model-slot #chat-image-dropdown { top: calc(100% + 8px); bottom: auto; left: 50%; transform: translateX(-50%); min-width: 180px; max-width: calc(100vw - 24px); max-height: min(320px, calc(100vh - 90px)); margin-top: 0; margin-bottom: 0; z-index: 1200; }
            #mobile-model-slot .custom-model-dropdown.show,
            #mobile-model-slot #chat-image-dropdown.show { animation: mobileDropdownFadeIn 0.2s ease; }
            #sidebar { position: fixed; top: 0; left: 0; width: 0; height: 100vh; max-height: none; transform: translateX(-100%); opacity: 0; transition: transform 0.3s ease, opacity 0.3s ease; z-index: 950; box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1); }
            #chat-container { position: fixed; inset: 0; max-width: 100%; padding: 0; padding-top: 70px; height: auto; margin-left: 0 !important; overflow: hidden; }
            #main-chat-area { display: flex; flex-direction: column; height: 100%; min-height: 0; width: 100%; max-width: 100%; margin: 0; padding: 0; }
            #chat-messages { flex: 1; height: auto !important; min-height: 0 !important; width: 100%; max-width: 100%; padding: 15px 15px 180px; }
            #input-container { position: fixed; left: 0; right: 0; bottom: 0; z-index: 850; padding: 0 12px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, #fafafa 85%, rgba(250,250,250,0)); }
            body.show-verification-banner #chat-container { padding-top: 114px; }
            .message { max-width: 90%; width: auto; }
            .user-message { margin-left: auto !important; margin-right: 5% !important; max-width: 85%; width: fit-content; }
            .bot-message { margin-right: auto; margin-left: 5%; max-width: 85%; width: fit-content; }
            .sidebar-collapsed #sidebar { transform: translateX(-100%); width: 0; }
            .sidebar-collapsed #chat-container { max-width: 100%; margin-left: 0; }
            .message { font-size: 14px; padding: 12px; }
            .input-box { padding: 10px 14px; }
            #user-input, .user-input { font-size: 14px; min-height: 24px; }
            .input-controls { justify-content: flex-start; }
            body.dark-theme #input-container { background: linear-gradient(to top, #1f1f1f 85%, rgba(31,31,31,0)); }
            .collapse-sidebar { display: none; }
            #vertical-toolbar { display: none; }
            .theme-toggle { top: 15px; right: 15px; width: 40px; height: 40px; }
            /* 移动端隐藏按钮文字，恢复圆形按钮 */
            .custom-action-btn .btn-text { display: none; }
            .custom-action-btn { width: 36px; height: 36px; padding: 6px; border-radius: 50%; }
            .thinking-mode-selector { height: 32px; padding: 4px 8px; width: 75px; min-width: 75px; margin-right: 4px; }
            .thinking-mode-label { max-width: 45px; font-size: 11px; }
            .thinking-mode-dropdown { min-width: 110px; }
        }

        @keyframes mobileDropdownFadeIn {
            from { opacity: 0; transform: translate(-50%, 6px); }
            to { opacity: 1; transform: translate(-50%, 0); }
        }

        @media (max-width: 480px) {
            #chat-container { padding-top: 60px; height: auto; }
            #chat-messages { padding: 10px 10px 170px; }
            body.show-verification-banner #chat-container { padding-top: 104px; }
            .message { max-width: 95%; padding: 10px; margin: 5px; }
            .user-message { margin-right: 3% !important; max-width: 90%; }
            .bot-message { margin-left: 3%; max-width: 90%; }
            .input-box { padding: 8px 12px; }
            #user-input, .user-input { font-size: 13px; min-height: 24px; }
            .input-controls { gap: 6px; }
            .custom-action-btn { width: 32px; height: 32px; padding: 4px; }
        }

        .pulse { animation: pulse 2s infinite; }
        .typing-cursor { display: inline-block; width: 8px; height: 18px; background-color: #666; vertical-align: middle; margin-left: 3px; animation: blink 1s infinite; }
        @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
        .streaming-message { white-space: normal; }
        .streaming-message p { margin-bottom: 8px; line-height: 1.6; }
        .streaming-message p:last-child { margin-bottom: 0; }
        .input-focus-indicator { position: absolute; top: -5px; right: -5px; width: 10px; height: 10px; background: #ccc; border-radius: 50%; opacity: 0; transition: opacity 0.3s ease; }
        #input-container:focus-within .input-focus-indicator { opacity: 1; }
        .model-select { transition: transform 0.2s ease, box-shadow 0.2s ease; }
        .model-select:active { transform: scale(0.98); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
        .reason-button { transition: transform 0.2s ease, box-shadow 0.2s ease; }
        .reason-button:active { transform: scale(0.95); }

        #user-management-panel, #token-limits-panel {
            background: #fff; border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            max-width: 500px; width: 90%;
        }
        body.dark-theme #user-management-panel, body.dark-theme #token-limits-panel { background: #1a1f24; color: #e0e0e0; }
        .user-management-item { border-bottom: 1px solid #eee; }
        body.dark-theme .user-management-item { border-bottom: 1px solid #333; }
        .user-management-item:last-child { border-bottom: none; }
        .user-management-item select { background: #f5f5f5; border: 1px solid #ddd; border-radius: 5px; }
        body.dark-theme .user-management-item select { background: #2a3038; border: 1px solid #3a4a5a; color: #e0e0e0; }
        
        #token-limits-panel { max-width: 600px; max-height: 80vh; overflow-y: auto; }
        .token-limit-item { padding: 15px; border-bottom: 1px solid #eee; }
        body.dark-theme .token-limit-item { border-bottom: 1px solid #333; }
        .token-limit-item:last-child { border-bottom: none; }
        .token-limit-controls { display: flex; gap: 10px; margin-top: 10px; align-items: center; }
        .token-input { width: 100px; padding: 8px; border: 1px solid #ddd; border-radius: 5px; }
        body.dark-theme .token-input { background: #2a3038; border: 1px solid #3a4a5a; color: #e0e0e0; }
        .update-btn { padding: 8px 15px; background: rgba(26, 115, 232, 0.85); color: white; border: none; border-radius: 5px; cursor: pointer; }
        .update-btn:hover { background: rgba(26, 115, 232, 0.6); }
        .token-info { font-size: 14px; color: #666; margin-top: 5px; }
        body.dark-theme .token-info { color: #aaa; }

        .reasoning-content { 
            font-size: 14px; margin-bottom: 12px; padding: 0; 
            border-left: 3px solid rgba(26, 115, 232, 0.85); 
            background-color: rgba(26, 115, 232, 0.05); border-radius: 8px; 
            overflow: hidden;
        }
        body.dark-theme .reasoning-content { 
            background-color: rgba(26, 115, 232, 0.12); 
        }
        .reasoning-header { 
            display: flex; align-items: center; gap: 8px; padding: 10px 15px; 
            cursor: pointer; user-select: none; color: rgba(26, 115, 232, 0.9); 
            font-weight: 500; font-size: 13px;
        }
        .reasoning-header:hover { background: rgba(26, 115, 232, 0.08); }
        .reasoning-arrow { 
            width: 0; height: 0; border-left: 5px solid transparent; 
            border-right: 5px solid transparent; border-top: 6px solid rgba(26, 115, 232, 0.6);
            transition: transform 0.2s ease;
        }
        .reasoning-content.collapsed .reasoning-arrow { transform: rotate(-90deg); }
        .reasoning-body { padding: 0 15px 12px; color: #666; line-height: 1.7; }
        body.dark-theme .reasoning-body { color: #aaa; }
        .reasoning-content.collapsed .reasoning-body { display: none; }
        .token-usage-bar { height: 5px; background: #e0e0e0; border-radius: 2px; margin: 0; overflow: hidden; }
        .token-usage-fill { height: 100%; background: rgba(26, 115, 232, 0.85); border-radius: 2px; transition: width 0.3s ease; }
        body.dark-theme .token-usage-bar { background: #2a3038; }
        body.dark-theme .token-usage-text { color: #8a9fb0; }

        .settings-panel { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); display: flex; align-items: center; justify-content: center; z-index: 3000; backdrop-filter: blur(5px); display: none; }
        .settings-container { background: #fff; border-radius: 15px; width: 100%; max-width: 700px; box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3); overflow: hidden; display: flex; flex-direction: column; max-height: 80vh; }
        body.dark-theme .settings-container { background: #1a1f24; }
        .settings-header { background: rgba(26, 115, 232, 0.12); padding: 20px 25px; display: flex; justify-content: space-between; align-items: center; }
        .settings-header h2 { color: rgba(26, 115, 232, 0.9); margin: 0; font-size: 18px; font-weight: 600; }
        .settings-close-btn { background: none; border: none; color: rgba(26, 115, 232, 0.6); font-size: 24px; cursor: pointer; padding: 0; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; }
        .settings-close-btn:hover { color: #1a73e8; }
        .settings-content { display: flex; flex: 1; overflow: hidden; }
        .settings-sidebar { width: 120px; background: #fafafa; padding: 15px 0; border-right: 1px solid #e0e0e0; display: flex; flex-direction: column; flex-shrink: 0; }
        body.dark-theme .settings-sidebar { background: #151920; border-right: 1px solid #252a33; }
        .settings-sidebar-item { padding: 12px 15px; cursor: pointer; transition: all 0.2s ease; font-weight: 500; font-size: 14px; color: #666; }
        body.dark-theme .settings-sidebar-item { color: #888; }
        .settings-sidebar-item:hover { background: rgba(26, 115, 232, 0.08); color: rgba(26, 115, 232, 0.9); }
        .settings-sidebar-item.active { background: rgba(26, 115, 232, 0.85); color: #fff; }
        
        .settings-section { display: none; flex: 1; }
        .settings-section.active { display: flex; }
        
        .settings-main-content { flex: 1; padding: 25px; overflow-y: auto; }
        .sub-section { display: none; }
        .sub-section.active { display: block; min-height: 480px; }
        .sub-section-title { font-size: 15px; font-weight: 600; color: #2c3e50; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #f0f0f0; }
        body.dark-theme .sub-section-title { color: #e0f0ff; border-bottom: 1px solid #2a3038; }
        
        .settings-form-group { margin-bottom: 15px; }
        .settings-form-group label { display: block; margin-bottom: 6px; font-weight: 500; color: #2c3e50; font-size: 14px; }
        body.dark-theme .settings-form-group label { color: #e0f0ff; }
        .settings-form-group input { width: 100%; padding: 10px 12px; border: 1px solid #d0e0f0; border-radius: 6px; font-size: 14px; transition: all 0.2s ease; }
        body.dark-theme .settings-form-group input { background: #2a3038; border-color: #3a4a5a; color: #e0e0e0; }
        .settings-form-group input:focus { outline: none; border-color: rgba(26, 115, 232, 0.5); }
        .settings-btn { width: 100%; padding: 10px; background: rgba(26, 115, 232, 0.85); color: white; border: none; border-radius: 6px; cursor: pointer; font-weight: 500; font-size: 14px; margin-top: 10px; transition: all 0.2s ease; }
        .settings-btn:hover { background: rgba(26, 115, 232, 0.75); }
        .settings-btn.danger { background: #ff6b6b; }
        .settings-btn.danger:hover { background: #ff5252; }
        
        .avatar-preview-container { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
        .avatar-preview { width: 60px; height: 60px; border-radius: 50%; background: rgba(26, 115, 232, 0.85); display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; font-size: 24px; background-size: cover; background-position: center; }
        .avatar-upload-btn { background: rgba(26, 115, 232, 0.08); border: 1px solid rgba(26, 115, 232, 0.3); color: rgba(26, 115, 232, 0.9); padding: 6px 12px; border-radius: 6px; font-size: 13px; cursor: pointer; transition: all 0.2s ease; }
        .avatar-upload-btn:hover { background: rgba(26, 115, 232, 0.15); }
        
        .theme-toggle-container { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
        .theme-toggle-label { font-weight: 500; color: #2c3e50; font-size: 14px; }
        body.dark-theme .theme-toggle-label { color: #e0f0ff; }
        
        .email-verification-status { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f0f0f0; margin-bottom: 15px; }
        body.dark-theme .email-verification-status { border-bottom: 1px solid #2a3038; }
        .email-verification-status .status-label { font-weight: 500; color: #2c3e50; font-size: 14px; }
        body.dark-theme .email-verification-status .status-label { color: #e0f0ff; }
        .email-verification-status .status-value { font-size: 13px; font-weight: 500; }
        .email-verification-status .status-value.verified { color: #22c55e; }
        .email-verification-status .status-value.unverified { color: #f97316; }
        .email-verification-status .send-verify-btn { background: rgba(255, 152, 0, 0.1); border: 1px solid rgba(255, 152, 0, 0.3); color: #f97316; padding: 4px 10px; border-radius: 4px; cursor: pointer; font-size: 12px; transition: all 0.2s ease; }
        .email-verification-status .send-verify-btn:hover { background: rgba(255, 152, 0, 0.2); }
        
        .user-list-container { max-height: 400px; overflow-y: auto; }
        .user-list-item { display: flex; align-items: center; justify-content: space-between; padding: 12px; border-bottom: 1px solid #f0f0f0; }
        body.dark-theme .user-list-item { border-bottom: 1px solid #2a3038; }
        .user-list-item:last-child { border-bottom: none; }
        .user-info-text { flex: 1; }
        .user-info-text .username { font-weight: 500; color: #2c3e50; }
        body.dark-theme .user-info-text .username { color: #e0f0ff; }
        .user-info-text .email { font-size: 12px; color: #888; margin-top: 2px; }
        .user-group-select { padding: 5px 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 13px; background: #fff; }
        body.dark-theme .user-group-select { background: #2a3038; border-color: #3a4a5a; color: #e0e0e0; }
        
        .token-limit-item { padding: 12px; border-bottom: 1px solid #f0f0f0; }
        body.dark-theme .token-limit-item { border-bottom: 1px solid #2a3038; }
        .token-limit-item:last-child { border-bottom: none; }
        .token-limit-label { font-weight: 500; color: #2c3e50; font-size: 14px; margin-bottom: 8px; }
        body.dark-theme .token-limit-label { color: #e0f0ff; }
        .token-limit-controls { display: flex; gap: 10px; align-items: center; }
        .token-limit-input { width: 100px; padding: 6px 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 13px; }
        body.dark-theme .token-limit-input { background: #2a3038; border-color: #3a4a5a; color: #e0e0e0; }
        .token-limit-btn { padding: 6px 12px; background: rgba(26, 115, 232, 0.85); color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 13px; }
        .token-limit-btn:hover { background: rgba(26, 115, 232, 0.75); }
        
        .risk-stats { display: flex; gap: 15px; margin-bottom: 20px; }
        .risk-stat-card { flex: 1; background: #fafafa; border-radius: 8px; padding: 15px; text-align: center; }
        body.dark-theme .risk-stat-card { background: #2a3038; }
        .risk-stat-value { font-size: 24px; font-weight: 600; color: rgba(26, 115, 232, 0.9); }
        .risk-stat-label { font-size: 12px; color: #888; margin-top: 5px; }
        
        .risk-table { width: 100%; border-collapse: collapse; }
        .risk-table th, .risk-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
        body.dark-theme .risk-table th, body.dark-theme .risk-table td { border-bottom: 1px solid #2a3038; }
        .risk-table th { font-weight: 600; color: #2c3e50; background: #fafafa; }
        body.dark-theme .risk-table th { color: #e0f0ff; background: #2a3038; }
        .risk-table td { color: #666; }
        body.dark-theme .risk-table td { color: #aaa; }
        
        .member-comparison-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 14px; }
        .member-comparison-table th, .member-comparison-table td { padding: 12px 15px; border: 1px solid #e0e0e0; text-align: center; }
        .member-comparison-table th { background: rgba(26, 115, 232, 0.08); font-weight: 600; color: #2c3e50; }
        .member-comparison-table td:first-child { text-align: left; font-weight: 500; color: #333; }
        body.dark-theme .member-comparison-table th, body.dark-theme .member-comparison-table td { border-color: #2a3038; }
        body.dark-theme .member-comparison-table th { background: rgba(26, 115, 232, 0.12); color: #e0f0ff; }
        body.dark-theme .member-comparison-table td:first-child { color: #e0e0e0; }
        
        .risk-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 500; }
        .risk-badge.high { background: rgba(255, 107, 107, 0.15); color: #ff6b6b; }
        .risk-badge.medium { background: rgba(255, 152, 0, 0.15); color: #f97316; }
        .risk-badge.low { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
        
        .risk-action-btn { padding: 4px 10px; border-radius: 4px; font-size: 12px; cursor: pointer; border: none; transition: all 0.2s ease; }
        .risk-action-btn.danger { background: rgba(255, 107, 107, 0.1); color: #ff6b6b; }
        .risk-action-btn.danger:hover { background: rgba(255, 107, 107, 0.2); }
        .risk-action-btn.primary { background: rgba(26, 115, 232, 0.08); color: rgba(26, 115, 232, 0.9); }
        .risk-action-btn.primary:hover { background: rgba(26, 115, 232, 0.15); }
        
        .risk-form-row { display: flex; gap: 10px; margin-bottom: 15px; align-items: flex-end; }
        .risk-form-row .form-group { flex: 1; }
        .risk-form-row .form-group label { display: block; font-size: 13px; color: #666; margin-bottom: 5px; }
        body.dark-theme .risk-form-row .form-group label { color: #aaa; }
        .risk-form-row .form-group input, .risk-form-row .form-group select { width: 100%; padding: 8px 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 13px; }
        body.dark-theme .risk-form-row .form-group input, body.dark-theme .risk-form-row .form-group select { background: #2a3038; border-color: #3a4a5a; color: #e0e0e0; }
        
        .risk-tabs { display: flex; gap: 10px; margin-bottom: 20px; border-bottom: 1px solid #f0f0f0; padding-bottom: 10px; }
        body.dark-theme .risk-tabs { border-bottom: 1px solid #2a3038; }
        .risk-tab { padding: 8px 16px; border-radius: 6px; font-size: 13px; cursor: pointer; color: #666; transition: all 0.2s ease; }
        body.dark-theme .risk-tab { color: #aaa; }
        .risk-tab:hover { background: rgba(26, 115, 232, 0.08); }
        .risk-tab.active { background: rgba(26, 115, 232, 0.85); color: #fff; }
        
        #verification-banner {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 44px;
            background: rgba(255, 152, 0, 0.92);
            color: #fff;
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 1100;
            font-size: 14px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        }
        body.show-verification-banner { padding-top: 44px; }
        body.show-verification-banner #mobile-navbar { top: 44px; }
        body.show-verification-banner #vertical-toolbar { padding-top: 64px; }
        #verification-banner .banner-text { display: flex; align-items: center; gap: 8px; }
        #verification-banner .banner-btn {
            background: rgba(255, 255, 255, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.4);
            color: #fff;
            padding: 5px 12px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 13px;
            margin-left: 15px;
            transition: all 0.2s ease;
        }
        #verification-banner .banner-btn:hover { background: rgba(255, 255, 255, 0.3); }
        #verification-banner .banner-close {
            position: absolute;
            right: 15px;
            background: none;
            border: none;
            color: rgba(255, 255, 255, 0.8);
            font-size: 20px;
            cursor: pointer;
            padding: 0 5px;
        }
        #verification-banner .banner-close:hover { color: #fff; }
        
        .email-verification-status {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 0;
            border-bottom: 1px solid #f0f0f0;
        }
        body.dark-theme .email-verification-status { border-bottom: 1px solid #2a3038; }
        .email-verification-status .status-label {
            font-weight: 500;
            color: #2c3e50;
        }
        body.dark-theme .email-verification-status .status-label { color: #e0f0ff; }
        .email-verification-status .status-value {
            font-size: 14px;
            font-weight: 500;
        }
        .email-verification-status .status-value.verified { color: #22c55e; }
        .email-verification-status .status-value.unverified { color: #f97316; }
        .email-verification-status .send-verify-btn {
            background: rgba(255, 152, 0, 0.1);
            border: 1px solid rgba(255, 152, 0, 0.3);
            color: #f97316;
            padding: 5px 12px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 13px;
            transition: all 0.2s ease;
        }
        .email-verification-status .send-verify-btn:hover { background: rgba(255, 152, 0, 0.2); }
        body.dark-theme .email-verification-status .send-verify-btn {
            background: rgba(255, 152, 0, 0.15);
            border-color: rgba(255, 152, 0, 0.4);
        }
