body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 700px;
    margin: 40px auto;
    padding: 20px;
    line-height: 1.6;
    background-color: #f4f4f9;
}

.container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

input[type="file"], select, button {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    box-sizing: border-box;
}

input[type="file"], select {
    border: 1px solid #ddd;
}

button {
    background-color: #007bff;
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background-color: #0056b3;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* 文件列表样式 */
.file-item {
    padding: 8px;
    margin: 5px 0;
    background: white;
    border-radius: 4px;
    border-left: 3px solid #007bff;
    font-size: 14px;
}

.file-item .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.file-item .name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.file-item .size {
    color: #666;
    margin-left: 10px;
}

.file-item .status {
    margin-left: 10px;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 3px;
}

.file-item .metadata {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    padding: 5px;
    background: #f8f9fa;
    border-radius: 3px;
    display: none;
}

.file-item .metadata.loaded {
    display: block;
}

.file-item .metadata span {
    margin-right: 15px;
}

/* 状态样式 */
.status-pending {
    background: #e0e0e0;
    color: #666;
}

.status-processing {
    background: #fff3cd;
    color: #856404;
}

.status-done {
    background: #d4edda;
    color: #155724;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
}

/* 结果样式 */
.batch-results {
    margin-top: 20px;
}

.result-item {
    padding: 10px;
    margin: 8px 0;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #28a745;
}

.result-item .filename {
    font-weight: 600;
    margin-bottom: 5px;
}

.result-item .info {
    font-size: 13px;
    color: #666;
}

.result-item a {
    display: inline-block;
    margin-top: 5px;
    padding: 5px 12px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
}

.result-item a:hover {
    background: #218838;
}

/* 日志和工具类 */
#log {
    margin-top: 20px;
    background: #222;
    color: #0f0;
    padding: 15px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 12px;
    height: 100px;
    overflow-y: auto;
    white-space: pre-wrap;
}

.hidden {
    display: none;
}

.success-btn {
    background-color: #28a745;
    text-decoration: none;
    padding: 10px 20px;
    color: white;
    border-radius: 6px;
    display: inline-block;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.hint {
    font-size: 13px;
    color: #666;
    margin-top: 10px;
}

/* 拖拽区域 */
.drop-zone {
    border: 2px dashed #007bff;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s;
}

.drop-zone.drag-over {
    background: #e3f2fd;
    border-color: #0056b3;
}

.drop-zone:hover {
    background: #e9ecef;
}

.drop-zone-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.drop-zone-hint {
    font-size: 13px;
    color: #999;
}

/* 进度条 */
.progress-container {
    margin-top: 15px;
    display: none;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-text {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

/* 响应式设计 */
@media (max-width: 600px) {
    body {
        margin: 20px auto;
        padding: 10px;
    }
    
    .container {
        padding: 20px;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .file-item .header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .file-item .size,
    .file-item .status {
        margin-left: 0;
        margin-top: 5px;
    }
}
