body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
}

textarea {
    width: 100%;
    height: 200px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    margin-bottom: 20px;
    resize: vertical;
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #2c3e50;
}

input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    margin-right: 10px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.button-group {
    margin: 20px 0;
    text-align: center;
}

.progress-container {
    margin-top: 20px;
    background-color: #ecf0f1;
    border-radius: 4px;
    padding: 15px;
}

.progress-bar {
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background-color: #2ecc71;
    width: 0%;
    transition: width 0.3s ease;
}

.status {
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
}

.results {
    margin-top: 20px;
}

.paper-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.paper-item:last-child {
    border-bottom: none;
}

.paper-title {
    flex-grow: 1;
    margin-right: 15px;
}

.paper-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.status-pending {
    background-color: #f39c12;
    color: white;
}

.status-downloading {
    background-color: #3498db;
    color: white;
}

.status-completed {
    background-color: #2ecc71;
    color: white;
}

.status-error {
    background-color: #e74c3c;
    color: white;
}

.summary {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #3498db;
}

/* 批量设置样式 */
.batch-settings {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    margin: 10px 0;
}

.batch-settings label {
    display: block;
    margin: 10px 0;
}

.batch-settings input[type="number"] {
    width: 80px;
    padding: 5px;
}

/* 下载状态样式 */
.paper-status {
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.status-downloading {
    background: #fff3cd;
    color: #856404;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
}

.status-stopped {
    background: #e2e3e5;
    color: #383d41;
}