/* VerbaAurea Web服务样式 */

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

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.logo h1 {
    font-size: 3em;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.tagline {
    font-style: italic;
    color: #666;
    font-size: 1.1em;
}

.version {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
}

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

/* 上传区域 */
.upload-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.upload-area {
    border: 3px dashed #ddd;
    border-radius: 15px;
    padding: 60px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.05);
    transform: translateY(-2px);
}

.upload-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.upload-area h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.5em;
}

.browse-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
}

.browse-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.file-info {
    margin-top: 20px;
    color: #666;
}

/* 状态区域 */
.status-section,
.result-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.status-card,
.result-card {
    text-align: center;
}

.status-card h3,
.result-card h3 {
    margin-bottom: 20px;
    font-size: 1.5em;
}

/* 进度条 */
.progress-container {
    margin: 30px 0;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.progress-text {
    font-weight: bold;
    color: #4CAF50;
    font-size: 1.2em;
}

/* 状态信息 */
.status-info {
    text-align: left;
    margin-top: 20px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
}

.label {
    font-weight: bold;
    color: #666;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: bold;
}

.status-badge.processing {
    background: #FFC107;
    color: white;
}

.status-badge.completed {
    background: #4CAF50;
    color: white;
}

.status-badge.failed {
    background: #f44336;
    color: white;
}

/* 结果卡片 */
.result-card.success {
    border-left: 5px solid #4CAF50;
}

.result-card.error {
    border-left: 5px solid #f44336;
}

.download-area {
    margin: 30px 0;
}

.download-btn {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.3);
}

.reset-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background: #5a6268;
}

/* 已上传文件列表区域 */
.uploaded-files-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
}

.uploaded-files-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.uploaded-files-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.5em;
}

.uploaded-files-actions {
    display: flex;
    gap: 10px;
}

.process-btn {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
}

.process-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

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

.clear-btn {
    background: #f44336;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
}

.clear-btn:hover {
    background: #d32f2f;
    transform: translateY(-2px);
}

.uploaded-files-list {
    max-height: 300px;
    overflow-y: auto;
}

.uploaded-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 4px solid #4CAF50;
    transition: all 0.3s ease;
}

.uploaded-file-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: bold;
    color: #333;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.file-details {
    display: flex;
    gap: 15px;
    font-size: 0.9em;
    color: #666;
}

.file-size, .upload-time {
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 10px;
}

.remove-file-btn {
    background: #f44336;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-file-btn:hover {
    background: #d32f2f;
    transform: scale(1.1);
}



/* 配置区域 */
.config-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.config-details summary {
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    padding: 15px;
    border-radius: 10px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.config-details summary:hover {
    background: #e9ecef;
}

.config-content {
    padding: 20px;
    margin-top: 15px;
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.config-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.config-item label {
    font-weight: bold;
    color: #555;
}

.config-item input {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.config-item input:focus {
    outline: none;
    border-color: #4CAF50;
}

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

.config-btn {
    padding: 10px 20px;
    border: 2px solid #6c757d;
    background: white;
    color: #6c757d;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.config-btn.primary {
    background: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

.config-btn:hover {
    transform: translateY(-2px);
}

/* 页脚 */
.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
}

/* 消息提示 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    background: #4CAF50;
}

.toast.error {
    background: #f44336;
}

.toast.info {
    background: #2196F3;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header {
        padding: 20px;
    }
    
    .logo h1 {
        font-size: 2em;
    }
    
    .upload-area {
        padding: 40px 15px;
    }
    
    .config-grid {
        grid-template-columns: 1fr;
    }
    
    .config-actions {
        flex-direction: column;
    }
}
