* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f0f2f5;
    color: #333;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

h1 {
    color: #1a1a2e;
    margin-bottom: 25px;
    font-size: 28px;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.card h2 {
    font-size: 18px;
    margin-bottom: 18px;
    color: #1a1a2e;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 12px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #d9d9d9;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
}

.form-group textarea:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 3px rgba(24,144,255,0.1);
}

.count-label {
    float: right;
    font-weight: normal;
    font-size: 13px;
    color: #888;
}

.hint {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
    display: block;
}

.upload-zone {
    border: 2px dashed #d9d9d9;
    border-radius: 8px;
    padding: 35px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
}

.upload-zone:hover {
    border-color: #1890ff;
    background: #f0f7ff;
}

.upload-zone.dragover {
    border-color: #1890ff;
    background: #e6f2ff;
}

.upload-zone p {
    margin: 4px 0;
    color: #666;
}

.upload-zone .hint {
    color: #aaa;
}

.btn-primary {
    background: #1890ff;
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #40a9ff;
}

.btn-primary:disabled {
    background: #a0cfff;
    cursor: not-allowed;
}

.btn-small {
    background: #f0f2f5;
    border: 1px solid #d9d9d9;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 10px;
}

.btn-small:hover {
    background: #e6e8ea;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f2f5;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, #1890ff, #52c41a);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s;
}

#progressText {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
}

.stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-item {
    font-size: 15px;
    color: #666;
}

.stat-num {
    font-size: 28px;
    font-weight: 700;
    display: block;
}

.stat-total .stat-num { color: #1a1a2e; }
.stat-success .stat-num { color: #52c41a; }
.stat-fail .stat-num { color: #ff4d4f; }

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.history-table th {
    background: #fafafa;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #f0f2f5;
}

.history-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f2f5;
    vertical-align: middle;
}

.history-table tr:hover {
    background: #fafafa;
}

.content-preview {
    max-width: 150px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #666;
}

code {
    background: #f0f2f5;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-family: monospace;
}

.btn-detail {
    color: #1890ff;
    cursor: pointer;
    text-decoration: none;
    font-size: 13px;
}

.btn-detail:hover {
    text-decoration: underline;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    max-height: 80vh;
    overflow: auto;
    width: 90%;
}

.modal-close {
    float: right;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

@media (max-width: 768px) {
    .container { padding: 0 10px; }
    .card { padding: 18px; }
    .stats { gap: 15px; }
    .stat-num { font-size: 22px; }
    .history-table { font-size: 12px; }
    .history-table th, .history-table td { padding: 6px 8px; }
}
/* -------- 独立上传按钮样式 -------- */
.btn-upload {
    background: #52c41a;
    color: #fff;
    border: none;
    padding: 8px 28px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.3s;
}

.btn-upload:hover {
    background: #73d13d;
}

.btn-upload:active {
    background: #389e0d;
}