/* 文件上传相关样式 */

/* 上传区域 */
.upload-area {
    border: 3px dashed #667eea;
    border-radius: 15px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9ff;
}

.upload-area:hover {
    border-color: #5a67d8;
    background: #f0f4ff;
    transform: translateY(-2px);
}

.upload-area.dragover {
    border-color: #4c51bf;
    background: #e6f3ff;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.7;
}

.upload-area h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #4a5568;
}

.upload-area p {
    color: #718096;
    font-size: 1rem;
}

/* 进度条 */
.progress-section {
    text-align: center;
    margin: 30px 0;
    display: none;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    color: #4a5568;
    font-size: 1.1rem;
}

/* 结果显示区域 */
.result-section {
    display: none;
    text-align: left;
    padding: 30px;
    background: #f0fff4;
    border-radius: 15px;
    border: 2px solid #68d391;
}

.result-header {
    text-align: center;
    margin-bottom: 20px;
}

.result-header h3 {
    color: #22543d;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.result-header p {
    color: #2f855a;
    margin-bottom: 20px;
}

.preview-container {
    background: white;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
    overflow: hidden;
}

.preview-tabs {
    display: flex;
    background: #f7fafc;
    border-bottom: 1px solid #e2e8f0;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #4a5568;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    background: white;
    color: #667eea;
    border-bottom-color: #667eea;
}

.preview-content {
    min-height: 400px;
    max-height: 600px;
    overflow-y: auto;
}

.markdown-preview {
    padding: 20px;
    line-height: 1.6;
}

.markdown-source {
    padding: 20px;
    background: #f8f9fa;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
    border: none;
    outline: none;
    resize: none;
    width: 100%;
    min-height: 400px;
}

.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 错误显示区域 */
.error-section {
    display: none;
    text-align: center;
    padding: 30px;
    background: #fed7d7;
    border-radius: 15px;
    border: 2px solid #fc8181;
}

.error-section h3 {
    color: #742a2a;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.error-section p {
    color: #c53030;
    margin-bottom: 20px;
}