* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    line-height: 1.6;
}

/* 登录页面 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 450px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-icon {
    width: 64px;
    height: 64px;
    color: #667eea;
    margin-bottom: 20px;
}

.login-box h1 {
    margin-bottom: 10px;
    color: #2d3748;
    font-size: 28px;
    font-weight: 700;
}

.subtitle {
    color: #718096;
    margin-bottom: 40px;
    font-size: 16px;
}

.email-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.email-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-btn {
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.login-btn:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.email-sent {
    color: #38a169;
    padding: 20px;
    background: rgba(56, 161, 105, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(56, 161, 105, 0.2);
}

/* 主界面 */
.main-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
    background: #f8fafc;
}

.sidebar {
    width: 320px;
    background: white;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-details {
    flex: 1;
}

.user-email {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-icon {
    width: 14px;
    height: 14px;
}

/* 队列状态显示 */
.queue-status {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
}

.queue-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4a5568;
}

.queue-info i {
    width: 16px;
    height: 16px;
    color: #3182ce;
}

.history-section h4 {
    margin-bottom: 20px;
    color: #2d3748;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-section h4:before {
    content: "📋";
    font-size: 16px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    overflow: hidden;
}

.history-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.history-item.active {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.history-item-status {
    flex-shrink: 0;
}

.status-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-icon.completed {
    background: #f0fff4;
    color: #38a169;
}

.status-icon.failed {
    background: #fed7d7;
    color: #e53e3e;
}

.status-icon.processing {
    background: #fef5e7;
    color: #d69e2e;
}

.status-icon.queued {
    background: #e6fffa;
    color: #319795;
}

.status-icon svg {
    width: 16px;
    height: 16px;
}

.spinner-dot {
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #d69e2e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.history-item-info {
    flex: 1;
    min-width: 0;
}

.filename {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

.date {
    font-size: 12px;
    color: #718096;
}

.progress-text {
    font-size: 11px;
    color: #d69e2e;
    font-style: italic;
    margin-top: 2px;
}

.history-item-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.retry-btn, .delete-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.retry-btn {
    background: rgba(56, 161, 105, 0.1);
    color: #38a169;
}

.retry-btn:hover {
    background: rgba(56, 161, 105, 0.2);
}

.retry-btn.disabled, .delete-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.mini-spinner {
    width: 12px;
    height: 12px;
    border: 1.5px solid #f3f3f3;
    border-top: 1.5px solid #38a169;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

.delete-btn {
    background: rgba(229, 62, 62, 0.1);
    color: #e53e3e;
}

.delete-btn:hover {
    background: rgba(229, 62, 62, 0.2);
}

.history-item:hover .retry-btn,
.history-item:hover .delete-btn {
    opacity: 1;
}

.retry-btn svg, .delete-btn svg {
    width: 14px;
    height: 14px;
}

/* 内容区域 */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    background: #f8fafc;
}

.upload-area {
    padding: 60px 40px;
    text-align: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.upload-box {
    border: 3px dashed #cbd5e0;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.upload-box:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.1);
}

.upload-icon {
    width: 64px;
    height: 64px;
    color: #667eea;
    margin-bottom: 24px;
}

.upload-placeholder p {
    font-size: 18px;
    color: #4a5568;
    margin-bottom: 8px;
}

.upload-placeholder span {
    color: #667eea;
    font-weight: 600;
}

.file-hint {
    color: #718096;
    font-size: 14px;
    margin-top: 16px;
}

.file-selected {
    padding: 20px;
}

.file-icon {
    width: 48px;
    height: 48px;
    color: #38a169;
    margin-bottom: 16px;
}

.file-selected p {
    font-size: 16px;
    color: #2d3748;
    margin-bottom: 24px;
    font-weight: 500;
}

.upload-btn, .cancel-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin: 0 8px;
    transition: all 0.3s ease;
}

.upload-btn {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    color: white;
}

.upload-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(56, 161, 105, 0.3);
}

.upload-btn:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cancel-btn {
    background: #e2e8f0;
    color: #4a5568;
}

.cancel-btn:hover {
    background: #cbd5e0;
}

/* 报告展示 */
.report-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.report-header h2 {
    color: #2d3748;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.back-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.back-btn svg {
    width: 16px;
    height: 16px;
}

/* 报告布局 */
.report-layout {
    display: flex;
    height: calc(100vh - 80px);
    overflow: hidden;
}

.report-content {
    flex: 1;
    margin: 20px;
    margin-right: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow-y: auto;
    border: 1px solid #e2e8f0;
}

.report-content h1, .report-content h2, .report-content h3 {
    color: #2d3748;
    margin-bottom: 16px;
}

.report-content h1 {
    font-size: 24px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 12px;
}

.report-content h2 {
    font-size: 20px;
    margin-top: 32px;
}

.report-content h3 {
    font-size: 18px;
    margin-top: 24px;
}

.report-content p {
    margin-bottom: 16px;
    line-height: 1.7;
}

.report-content ul, .report-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.report-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.report-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.report-content th, .report-content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.report-content th {
    background: #f7fafc;
    font-weight: 600;
    color: #2d3748;
}

/* 浮动聊天按钮 */
.chat-float-btn {
    position: fixed;
    right: 32px;
    bottom: 32px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
}

.chat-float-btn svg {
    width: 24px;
    height: 24px;
}

/* 聊天面板 */
.chat-panel {
    width: 420px;
    background: white;
    margin: 20px;
    margin-left: 10px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 120px);
    border: 1px solid #e2e8f0;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
}

.chat-header h3 {
    margin: 0;
    font-size: 16px;
    color: #2d3748;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-header svg {
    width: 18px;
    height: 18px;
    color: #667eea;
}

.close-chat-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #718096;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-chat-btn:hover {
    color: #4a5568;
    background: rgba(0,0,0,0.05);
}

.close-chat-btn svg {
    width: 18px;
    height: 18px;
}

.chat-messages {
    flex: 1;
    padding: 20px 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
}

.message-pair {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.message {
    max-width: 85%;
    word-wrap: break-word;
    line-height: 1.5;
}

.user-message {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 18px 18px 4px 18px;
    margin-left: auto;
    font-size: 14px;
}

.ai-message {
    background: #f8fafc;
    color: #2d3748;
    padding: 12px 16px;
    border-radius: 18px 18px 18px 4px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    line-height: 1.6;
}

.ai-message h1, .ai-message h2, .ai-message h3 {
    font-size: 16px;
    margin: 8px 0;
    color: #2d3748;
}

.ai-message p {
    margin: 8px 0;
}

.ai-message ul, .ai-message ol {
    margin: 8px 0;
    padding-left: 20px;
}

.ai-message li {
    margin: 4px 0;
}

.typing-indicator {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.typing-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #667eea;
    margin: 0 2px;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
.typing-dot:nth-child(3) { animation-delay: 0s; }

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 聊天输入区域 - 锚定在底部 */
.chat-input-area {
    padding: 20px 24px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 0 0 12px 12px;
    flex-shrink: 0;
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.message-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    min-height: 44px;
    max-height: 120px;
    line-height: 1.4;
    transition: all 0.3s ease;
    background: white;
}

.message-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.message-input::placeholder {
    color: #a0aec0;
}

.send-btn {
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
}

.send-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.send-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.send-btn svg {
    width: 16px;
    height: 16px;
}

/* 底部 */
.footer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.footer a:hover {
    color: white;
    background: rgba(0, 0, 0, 0.2);
}

/* 移动端菜单相关 */
.mobile-header {
    display: none; /* 默认隐藏，只在手机端显示 */
}
.sidebar-overlay {
    display: none; /* 默认隐藏 */
}
body.no-scroll {
    overflow: hidden;
}


/* 响应式设计 */
@media (max-width: 1200px) {
    .sidebar {
        width: 280px;
    }
    
    .chat-panel {
        width: 360px;
    }
}

@media (max-width: 768px) {
    /* --- 全局移动端布局 --- */
    .content {
        order: 1;
        padding-top: 60px; /* 关键：为所有视图的固定顶栏留出空间 */
    }
    .sidebar {
        order: 2;
    }

    /* --- 新的移动端仪表盘布局 --- */
    .main-container:not(.report-view-active) {
        background: #f0f2f5; /* 给主页一个统一的背景色 */
    }

    /* 当报告打开时，隐藏主页的上传区和历史列表 */
    .report-view-active .upload-area,
    .report-view-active .sidebar {
        display: none;
    }

    /* 报告未打开时 (主页视图) */
    .main-container:not(.report-view-active) .mobile-header .menu-toggle-btn { 
        display: none; /* 在主页隐藏汉堡菜单 */
    }
    /* 报告打开时，隐藏占位符，让标题有更多空间 */
    .report-view-active .mobile-header-placeholder {
        display: none;
    }
    .report-view-active .mobile-header {
        justify-content: flex-start;
        gap: 12px;
    }
    .mobile-back-btn {
        background: none; border: none; color: white; display: flex; align-items: center; gap: 4px; font-size: 16px;
    }
    .mobile-header .report-title {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .main-container {
        flex-direction: column;
    }

    /* --- 上传区域小型化 (间距调整) --- */
    .upload-area {
        padding: 16px 16px 0 16px; /* 只保留顶部和左右padding */
        height: auto; 
        background: none;
    }
    .upload-box {
        padding: 0;
        border: none;
        border-radius: 0;
        background: none;
        box-shadow: none;
        cursor: default;
        max-width: 100%;
    }
    .upload-box:hover {
        transform: none;
        box-shadow: none;
    }
    .upload-placeholder, .file-selected {
        padding: 16px;
        border: 2px solid #667eea;
        border-radius: 12px;
        background: white;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
        margin-bottom: 16px; /* 用margin控制与下方历史记录的间距 */
    }
    .upload-placeholder p {
        font-size: 16px;
        margin-bottom: 0;
    }
    .upload-icon, .file-hint { 
        display: none; /* 隐藏PC端的大图标和提示 */
    }
    .file-selected p {
        margin-bottom: 16px;
    }

    /* --- 历史记录区作为主内容 (间距调整) --- */
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        transform: none !important;
        box-shadow: none;
        border-right: none;
        background: white;
    }
    .sidebar-header {
        display: none; /* 用户信息已在顶栏，隐藏此处的头部 */
    }
    .sidebar-content { 
        padding: 0 16px 16px 16px; /* 移除顶部padding，收紧间距 */
    }

    /* --- 报告查看页面的样式 --- */
    .report-header {
        display: none; /* 在移动端，使用顶部的固定导航栏，隐藏这个PC版报告头 */
    }
    .report-layout {
        flex-direction: column;
        height: 100%; /* 占满content区域剩余高度 */
    }
    .report-container {
        height: 100%;
    }
    .report-content {
        margin: 0;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }

    /* --- 聊天面板样式 --- */
    .chat-panel {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
        z-index: 1010;
        background: white;
    }
    .chat-header {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 2;
    }
    .chat-messages {
        height: 100%;
        overflow-y: auto;
        padding-top: 80px;
        padding-bottom: 100px;
    }
    .chat-input-area {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 2;
    }
    .chat-float-btn {
        right: 20px;
        bottom: 20px;
        width: 56px;
        height: 56px;
        z-index: 1000;
    }

    /* --- 抽屉菜单样式 (仅在报告查看页生效) --- */
    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
        height: 60px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1002;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    .menu-toggle-btn {
        background: none;
        border: none;
        color: white;
        padding: 8px;
        cursor: pointer;
    }
    .menu-toggle-btn svg {
        width: 24px;
        height: 24px;
    }
    .mobile-header-title {
        font-size: 18px;
        font-weight: 600;
    }
    .mobile-header-placeholder {
        width: 40px;
    }
    .sidebar-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1001;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
        pointer-events: none;
    }
    .main-container.menu-open .sidebar-overlay {
        opacity: 1;
        pointer-events: auto;
    }
    .main-container.menu-open .sidebar {
        display: flex !important; /* 强制显示 */
        flex-direction: column;
        transform: translateX(0) !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        z-index: 1003;
        box-shadow: 4px 0 15px rgba(0,0,0,0.1);
        border-right: 1px solid #e2e8f0;
        background: white;
    }
    .main-container.menu-open .sidebar-header {
        display: block;
    }

    .footer {
        display: none;
    }
}

/* 滚动条样式 */
.chat-messages::-webkit-scrollbar,
.sidebar-content::-webkit-scrollbar,
.report-content::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track,
.sidebar-content::-webkit-scrollbar-track,
.report-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb,
.sidebar-content::-webkit-scrollbar-thumb,
.report-content::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover,
.sidebar-content::-webkit-scrollbar-thumb:hover,
.report-content::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* 报告iframe样式 */
.report-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* 新的报告容器 - 完全隔离样式 */
.report-content-wrapper {
    flex: 1;
    margin: 20px;
    margin-right: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow-y: auto;
    border: 1px solid #e2e8f0;
}

.report-content-html {
    /* 让HTML自己控制样式 */
}
