﻿/* CSS Document */
/*
编写者：享健丽科技
时间：2025年6月6日
*/
/*
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    min-height: 100vh;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}
*/
.container {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 900px;
    padding: 10px 30px 10px;
    overflow: hidden;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.1rem;
}


.main-area{
    width: 100%;
    height: 65vh;
    display: flex;

}
.left-area {
    margin-right: auto;
    width: 46%;
    height:65vh;
    border-bottom: 1px solid #ddd;
    border-radius: 10px;
}

.upload-container {
    background-color: #f8f9fa;
    border: 3px dashed #3498db;
    border-radius: 15px;
    padding: 10px 20px;
    text-align: center;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    position: relative;
    height: 25vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.upload-container.drag-over {
    background-color: #e3f2fd;
    border-color: #2980b9;
}

.upload-icon {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 10px;
}

.upload-text {
    font-size: 1.1rem;
    color: #34495e;
    margin-bottom: 10px;
}

.btnNew {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btnNew:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btnNew:active {
    transform: translateY(1px);
}

#fileInput {
    display: none;
}

.result-section {
    margin-left: auto;
    width: 50%;
    height:65vh;

    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.preview-container {

    width: 100%;
}

.result-container {

    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 10px;
    align-content: center;
    display: flex;
}

.section-title {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    margin-top:0px;
}
.preview-area{
    height: 25vh;
    width: 100%;
    align-content: center;
}

#imagePreview {

    border-radius: 10px;
    display: none;
    max-height: 95%;
    max-width:100%;
    border: 1px solid #ddd;
    object-fit: contain;
}

#resultText {
    margin-top:0px;
    padding: 10px 20px;
    height: 92%;
    font-size: 1.0rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
    overflow-y: auto;
    overflow-x: auto;
    text-align: left;
    width:100%;
}

.status {
    text-align: center;
    padding: 15px;
    margin-top: 20px;
    border-radius: 10px;
    display: none;
}

.loading {
    background-color: #fff8e1;
    color: #ff9800;
}

.success {
    background-color: #e8f5e9;
    color: #4caf50;
}

.error {
    background-color: #ffebee;
    color: #f44336;
}

.system-info {
    background-color: #e3f2fd;
    border-radius: 10px;
    padding: 15px;
    margin-top: 25px;
    font-size: 0.9rem;
}

.info-title {
    font-weight: bold;
    color: #1976d2;
    margin-bottom: 5px;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

footer {
    text-align: center;
    margin-top: 30px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .preview-section {
        flex-direction: column;
    }
    
    h1 {
        font-size: 2rem;
    }
}
