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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    opacity: 0.9;
    font-size: 1.1em;
}

main {
    padding: 30px;
}

section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

h3 {
    margin-bottom: 15px;
    color: #667eea;
    font-size: 1.3em;
}

/* 输入区域 */
.input-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: #e9ecef;
}

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

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.tab-content input[type="text"],
.tab-content input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1em;
    margin-bottom: 15px;
}

.tab-content input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
}

/* 按钮样式 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-warning {
    background: #ffc107;
    color: #333;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9em;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1em;
    margin: 5px;
}

/* 信息显示 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.info-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.info-item .label {
    font-weight: 600;
    color: #667eea;
}

/* 配置区域 */
.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.config-item label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 0.9em;
}

.config-item input {
    width: 100%;
    padding: 10px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 1em;
}

.config-item input:focus {
    outline: none;
    border-color: #667eea;
}

.config-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.config-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.config-options input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* 控制按钮区域 */
.control-section {
    text-align: center;
}

/* 进度条 */
.progress-bar {
    position: relative;
    width: 100%;
    height: 40px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    color: #333;
    font-size: 1.1em;
}

.progress-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.stat-item {
    background: white;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.stat-item .label {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.stat-item span:last-child {
    font-weight: 600;
    font-size: 1.1em;
    color: #667eea;
}

/* 日志区域 */
.log-container {
    background: white;
    border-radius: 8px;
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.log-item {
    padding: 8px;
    margin-bottom: 5px;
    border-radius: 4px;
    border-left: 3px solid #ccc;
}

.log-item.info {
    background: #e7f3ff;
    border-color: #2196F3;
}

.log-item.success {
    background: #e8f5e9;
    border-color: #4CAF50;
}

.log-item.warning {
    background: #fff3e0;
    border-color: #FF9800;
}

.log-item.error {
    background: #ffebee;
    border-color: #f44336;
}

.log-item .timestamp {
    color: #666;
    font-size: 0.85em;
    margin-right: 10px;
}

/* 页脚 */
footer {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 0.9em;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    header h1 {
        font-size: 1.8em;
    }

    main {
        padding: 15px;
    }

    .info-grid,
    .config-grid,
    .progress-stats {
        grid-template-columns: 1fr;
    }

    .btn-large {
        width: 100%;
        margin: 5px 0;
    }

    .input-tabs {
        flex-direction: column;
    }
}

/* 滚动条样式 */
.log-container::-webkit-scrollbar {
    width: 8px;
}

.log-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.log-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.log-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 0.5s ease;
}
