* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --sidebar-bg: #f8fafc;
    --sidebar-width: 260px;
    --header-height: 60px;
    --bg-color: #f8fafc;
    --chat-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --hover-bg: #f1f5f9;
    --user-bg: #2563eb;
    --user-text: #ffffff;
    --ai-bg: #f1f5f9;
    --ai-text: #1e293b;
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --sidebar-bg: #1e293b;
        --bg-color: #0f172a;
        --chat-bg: #1e293b;
        --text-primary: #f1f5f9;
        --text-secondary: #94a3b8;
        --border-color: #334155;
        --hover-bg: #334155;
        --ai-bg: #334155;
        --ai-text: #f1f5f9;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    height: 100vh;
    overflow: hidden;
}

.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.sidebar.collapsed {
    transform: translateX(-100%);
    width: 0;
}

.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.new-chat-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background-color: var(--chat-bg);
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.new-chat-btn:hover {
    background-color: var(--hover-bg);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.sessions-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.session-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 0.25rem;
    position: relative;
}

.session-item:hover {
    background-color: var(--hover-bg);
}

.session-item.active {
    background-color: rgba(37, 99, 235, 0.1);
    border-left: 3px solid var(--primary-color);
}

.session-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--ai-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.session-icon svg {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

.session-info {
    flex: 1;
    min-width: 0;
}

.session-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.session-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.session-delete {
    opacity: 0;
    padding: 0.25rem;
    border: none;
    background: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 0.25rem;
    transition: all 0.2s;
}

.session-item:hover .session-delete {
    opacity: 1;
}

.session-delete:hover {
    background-color: #fee2e2;
    color: #ef4444;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.clear-all-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border: none;
    border-radius: 0.5rem;
    background-color: transparent;
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.clear-all-btn:hover {
    background-color: #fee2e2;
    color: #ef4444;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--chat-bg);
    min-width: 0;
}

.header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--chat-bg);
    flex-shrink: 0;
}

.toggle-sidebar {
    display: none;
    padding: 0.5rem;
    border: none;
    background: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 0.375rem;
}

.toggle-sidebar:hover {
    background-color: var(--hover-bg);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
}

.logo h1 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    padding: 0.5rem;
    border: none;
    background: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.btn-icon:hover {
    background-color: var(--hover-bg);
    color: var(--text-primary);
}

.chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    scroll-behavior: smooth;
}

.welcome-message {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.welcome-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.welcome-message h2 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.quick-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    background-color: var(--chat-bg);
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.05);
}

.message {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message.user {
    flex-direction: row-reverse;
}

.message.system {
    opacity: 0.7;
}

.avatar {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    min-height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
    flex-shrink: 0;
    user-select: none;
    overflow: hidden;
}

.message.user .avatar {
    background-color: var(--primary-color);
    color: white;
}

.message.ai .avatar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.message.system .avatar {
    background-color: #f59e0b;
    color: white;
}

.message-content {
    max-width: 80%;
    padding: 0.875rem 1.125rem;
    border-radius: 1rem;
    line-height: 1.6;
    word-wrap: break-word;
    min-height: 1.5em;
}

.message.user .message-content {
    background-color: var(--user-bg);
    color: var(--user-text);
    border-bottom-right-radius: 0.25rem;
}

.message.ai .message-content {
    background-color: var(--ai-bg);
    color: var(--ai-text);
    border-bottom-left-radius: 0.25rem;
}

.message.system .message-content {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
    font-size: 0.875rem;
}

.input-area {
    position: relative;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--chat-bg);
    flex-shrink: 0;
}

.loading-float {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    animation: slideDown 0.3s ease-out;
    z-index: 100;
    white-space: nowrap;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.loading-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.stop-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.stop-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.input-wrapper {
    display: flex;
    gap: 0.5rem;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 0.5rem;
    transition: border-color 0.2s;
}

.input-wrapper:focus-within {
    border-color: var(--primary-color);
}

#messageInput {
    flex: 1;
    border: none;
    background: transparent;
    resize: none;
    max-height: 120px;
    padding: 0.5rem;
    font-size: 0.9375rem;
    color: var(--text-primary);
    outline: none;
}

.send-btn {
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 0.5rem;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.send-btn:hover:not(:disabled) {
    background-color: var(--primary-hover);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.send-btn.stop-mode {
    background-color: #ef4444;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.input-info {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.code-block {
    position: relative;
    margin: 0.75rem 0;
    background-color: #1e1e1e;
    border-radius: 0.5rem;
    overflow: hidden;
}

.code-block pre {
    margin: 0;
    padding: 0.75rem;
    padding-top: 2rem;
    background-color: #1e1e1e;
    color: #d4d4d4;
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.code-block code {
    font-family: inherit;
    background: none;
    padding: 0;
    color: inherit;
}

.copy-btn {
    position: absolute;
    top: 0.375rem;
    right: 0.375rem;
    padding: 0.25rem 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.25rem;
    font-size: 0.6875rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    z-index: 10;
    height: auto;
    min-height: 1.5rem;
    white-space: nowrap;
}

.copy-btn svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.copy-btn span {
    display: inline;
    line-height: 1;
}

.copy-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.copy-btn.copied {
    background-color: #10b981;
    color: #fff;
    border-color: #10b981;
}

code:not(.code-block code) {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.875em;
    color: #ef4444;
}

@media (prefers-color-scheme: dark) {
    code:not(.code-block code) {
        background-color: rgba(255, 255, 255, 0.1);
        color: #f87171;
    }
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: var(--primary-color);
    margin-left: 2px;
    animation: blink 1s infinite;
    vertical-align: middle;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 1000;
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .toggle-sidebar {
        display: block;
    }
    
    .message-content {
        max-width: 85%;
    }
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.auth-container {
    background: white;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header svg {
    color: #2563eb;
    margin-bottom: 16px;
}

.auth-header h1 {
    font-size: 24px;
    color: #1e293b;
    margin-bottom: 8px;
}

.auth-header p {
    color: #64748b;
    font-size: 14px;
}

.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 8px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.tab-btn.active {
    background: white;
    color: #2563eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 16px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2563eb;
}

.code-input {
    display: flex;
    gap: 8px;
}

.code-input input {
    flex: 1;
}

.btn-code {
    padding: 12px 16px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #2563eb;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-code:disabled {
    color: #94a3b8;
    cursor: not-allowed;
}

.btn-code:not(:disabled):hover {
    background: #e2e8f0;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    padding: 10px 20px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.btn-danger {
    padding: 10px 20px;
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger:hover {
    background: #fecaca;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.auth-links a {
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
}

.auth-links a:hover {
    text-decoration: underline;
}

.user-profile-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.user-profile-btn:hover {
    background: #e2e8f0;
}

.user-profile-btn img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.user-profile-btn span {
    font-size: 14px;
    color: #1e293b;
    font-weight: 500;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h2 {
    font-size: 18px;
    color: #1e293b;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    color: #64748b;
}

.modal-body {
    padding: 24px;
}

.avatar-section {
    text-align: center;
    margin-bottom: 24px;
}

.avatar-section img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 3px solid #e2e8f0;
}

.modal-body .form-group {
    margin-bottom: 16px;
}

.modal-body .form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #475569;
    font-weight: 500;
}

.modal-body .form-group input,
.modal-body .form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
}

.modal-body .form-group input[readonly] {
    background: #f1f5f9;
    color: #64748b;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 20px 24px;
    border-top: 1px solid #e2e8f0;
}
/* ========== AI思考中浮动提示样式 ========== */
.thinking-indicator {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.thinking-indicator.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.thinking-bubble {
    background: #3b82f6;
    color: white;
    padding: 10px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    font-size: 14px;
}

.thinking-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.thinking-text {
    font-weight: 500;
}

.thinking-stop-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
}

.thinking-stop-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.thinking-stop-btn svg {
    width: 10px;
    height: 10px;
}

/* ========== 打字机光标样式 ========== */
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: linear-gradient(180deg, #3b82f6 0%, #8b5cf6 100%);
    margin-left: 2px;
    animation: typingBlink 0.8s infinite;
    vertical-align: middle;
    border-radius: 1px;
}

@keyframes typingBlink {
    0%, 50% { 
        opacity: 1;
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
    }
    51%, 100% { 
        opacity: 0;
        box-shadow: none;
    }
}

/* 隐藏旧的loading样式 */
.loading-float {
    display: none !important;
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
    .thinking-bubble {
        background: #3b82f6;
        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.5);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .thinking-indicator {
        top: 70px;
    }
    
    .thinking-bubble {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .thinking-spinner {
        width: 14px;
        height: 14px;
    }
}

/* ========== 强制下线弹窗样式 ========== */
#forceLogoutModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    backdrop-filter: blur(5px);
}

#forceLogoutModal > div {
    background: white;
    padding: 40px;
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0,0,0,0.4);
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

#forceLogoutModal h2 {
    margin: 0 0 15px;
    color: #1f2937;
    font-size: 24px;
    font-weight: 600;
}

#forceLogoutModal p {
    margin: 0 0 25px;
    color: #6b7280;
    line-height: 1.6;
    font-size: 16px;
}

#forceLogoutModal .warning-box {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 15px;
    margin-bottom: 25px;
    text-align: left;
    border-radius: 6px;
}

#forceLogoutModal .warning-box p {
    margin: 0;
    color: #92400e;
    font-size: 14px;
    line-height: 1.5;
}

#confirmLogoutBtn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

#confirmLogoutBtn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

#confirmLogoutBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
    #forceLogoutModal > div {
        background: #1e293b;
        color: #f1f5f9;
    }
    
    #forceLogoutModal h2 {
        color: #f1f5f9;
    }
    
    #forceLogoutModal p {
        color: #94a3b8;
    }
    
    #forceLogoutModal .warning-box {
        background: rgba(245, 158, 11, 0.1);
        border-left-color: #f59e0b;
    }
    
    #forceLogoutModal .warning-box p {
        color: #fcd34d;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    #forceLogoutModal > div {
        padding: 30px 20px;
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    #forceLogoutModal h2 {
        font-size: 20px;
    }
    
    #forceLogoutModal p {
        font-size: 14px;
    }
    
    #confirmLogoutBtn {
        padding: 12px 30px;
        font-size: 16px;
    }
}
