/* 
 * 数据审计智能助手 - 企业级界面样式
 * 设计目标：专业、简洁、现代化的企业数据分析工具界面
 */

/* 基础重置与字体设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fc;
    color: #2c3e50;
    line-height: 1.6;
    min-height: 100vh;
}

/* 主容器布局 */
.app-container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
}

/* 顶部导航栏 */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 40px;
}

.app-logo {
    display: flex;
    align-items: center;
}

.app-logo img {
    height: 40px;
    margin-right: 12px;
}

.app-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a365d;
    margin: 0;
}

/* 主内容区域 */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    flex-grow: 1;
}

/* 欢迎区域 */
.welcome-section {
    text-align: center;
    padding: 40px 0;
}

.welcome-section h1 {
    font-size: 36px;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.welcome-section p {
    font-size: 18px;
    color: #4a5568;
    max-width: 700px;
    margin: 0 auto;
}

/* 功能卡片区域 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 20px 0 40px;
}

.feature-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #ebf5ff;
    border-radius: 12px;
    margin-bottom: 20px;
}

.feature-icon i {
    font-size: 24px;
    color: #2a6fc9;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 12px;
}

.feature-card p {
    color: #4a5568;
    font-size: 15px;
    line-height: 1.5;
}

/* 使用指南区域 */
.usage-guide {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.usage-guide h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.step-item {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 15px;
    position: relative;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -10px;
    width: 20px;
    height: 20px;
    border-top: 2px solid #e2e8f0;
    border-right: 2px solid #e2e8f0;
    transform: rotate(45deg);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #2a6fc9;
    color: white;
    border-radius: 50%;
    font-weight: 600;
    margin-bottom: 15px;
}

.step-title {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.step-description {
    font-size: 14px;
    color: #4a5568;
}

/* 上传区域提示 */
.upload-section {
    background-color: #e8f4ff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin-bottom: 40px;
    border: 1px dashed #90cdf4;
}

.upload-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2a6fc9;
    margin-bottom: 15px;
}

.upload-section p {
    color: #4a5568;
    margin-bottom: 20px;
}

.supported-formats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.format-tag {
    background-color: #fff;
    color: #2a6fc9;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* 底部区域 */
.app-footer {
    margin-top: auto;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
    text-align: center;
    color: #718096;
    font-size: 14px;
}

.company-info {
    margin-bottom: 10px;
}

/* 通知样式优化 */
.notification {
    position: fixed;
    bottom: 80px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    min-width: 300px;
    opacity: 0;
    transform: translateY(20px);
    animation: notification-appear 0.3s forwards;
}

.notification.success {
    background-color: #ebf8f2;
    border-left: 4px solid #48bb78;
    color: #276749;
}

.notification.error {
    background-color: #fef2f2;
    border-left: 4px solid #f56565;
    color: #c53030;
}

.notification.info {
    background-color: #ebf8ff;
    border-left: 4px solid #4299e1;
    color: #2b6cb0;
}

.notification-icon {
    margin-right: 12px;
    font-size: 20px;
}

.notification-message {
    flex-grow: 1;
}

.notification-close {
    cursor: pointer;
    font-size: 18px;
    opacity: 0.7;
}

.notification-close:hover {
    opacity: 1;
}

@keyframes notification-appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 聊天窗口自定义样式 */
.coze-chat-window {
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.coze-chat-button {
    box-shadow: 0 5px 15px rgba(42, 111, 201, 0.3) !important;
    border-radius: 50% !important;
    width: 60px !important;
    height: 60px !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .welcome-section {
        padding: 20px 0;
    }
    
    .welcome-section h1 {
        font-size: 28px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        flex-direction: column;
    }
    
    .step-item:not(:last-child)::after {
        display: none;
    }
    
    .app-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .app-logo {
        margin-bottom: 15px;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a202c;
        color: #e2e8f0;
    }
    
    .app-title, .welcome-section h1 {
        color: #e2e8f0;
    }
    
    .welcome-section p, .feature-card p, .step-description {
        color: #a0aec0;
    }
    
    .feature-card, .usage-guide, .upload-section {
        background-color: #2d3748;
    }
    
    .feature-card h3, .usage-guide h2, .step-title {
        color: #e2e8f0;
    }
    
    .feature-icon {
        background-color: #2a4365;
    }
    
    .app-header, .app-footer {
        border-color: #4a5568;
    }
    
    .format-tag {
        background-color: #2d3748;
        color: #90cdf4;
    }
    
    .upload-section {
        background-color: #2a4365;
        border-color: #4a5568;
    }
}

.file-status.waiting {
    color: #ff9800;
  }
  
  .queue-file-item {
    transition: background-color 0.2s ease;
  }
  
  .queue-file-item:hover {
    background-color: #f0f0f0;
  }
  
  .file-name {
    max-width: 200px;
  }
  