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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #E6F0FF;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 40px 0 30px;
}

header h1 {
    color: #2c5aa0;
    font-size: 2rem;
    margin-bottom: 6px;
}

.subtitle {
    color: #6b8cae;
    font-size: 1rem;
}

/* 上传区 */
.upload-section { margin-bottom: 40px; }

.upload-box {
    background: #fff;
    border: 2px dashed #4A90E2;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-box:hover {
    background: #f0f7ff;
    border-color: #2c5aa0;
}

.upload-box.dragover {
    background: #dbeaff;
    border-color: #2c5aa0;
    transform: scale(1.01);
}

.upload-icon { font-size: 2.8rem; margin-bottom: 8px; }

.upload-content p { color: #555; font-size: 1.05rem; }

.upload-hint { color: #999; font-size: 0.85rem !important; margin-top: 4px; }

.upload-status {
    margin-top: 12px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    display: none;
    font-size: 0.95rem;
}

.upload-status.success { display: block; background: #d4edda; color: #155724; }
.upload-status.error   { display: block; background: #f8d7da; color: #721c24; }
.upload-status.processing { display: block; background: #fff3cd; color: #856404; }

/* 时间轴 */
.timeline-section h2 {
    color: #2c5aa0;
    margin-bottom: 18px;
    font-size: 1.4rem;
}

.timeline {
    position: relative;
    padding-left: 28px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #4A90E2, #7ab8ff);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 18px;
    background: #fff;
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: 0 2px 10px rgba(74, 144, 226, 0.08);
    cursor: pointer;
    transition: all 0.25s;
}

.timeline-item:hover {
    transform: translateX(6px);
    box-shadow: 0 4px 16px rgba(74, 144, 226, 0.18);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 22px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #4A90E2;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #4A90E2;
}

.timeline-date {
    font-size: 1.15rem;
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 4px;
}

.timeline-meta {
    color: #8899aa;
    font-size: 0.9rem;
}

/* 详情页 */
.back-link {
    display: inline-block;
    color: #4A90E2;
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.back-link:hover { text-decoration: underline; }

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.search-box input {
    padding: 10px 14px;
    border: 1px solid #cce0ff;
    border-radius: 8px;
    width: 260px;
    font-size: 0.95rem;
    outline: none;
    transition: box-shadow 0.2s;
}

.search-box input:focus {
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.12);
}

.sort-buttons { display: flex; gap: 8px; }

.btn {
    padding: 8px 16px;
    border: 1px solid #4A90E2;
    background: #fff;
    color: #4A90E2;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.btn:hover, .btn.active {
    background: #4A90E2;
    color: #fff;
}

/* 表格 */
.table-wrapper {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

table { width: 100%; border-collapse: collapse; }

th, td { padding: 14px 16px; text-align: left; }

th {
    background: #4A90E2;
    color: #fff;
    font-weight: 600;
    position: sticky;
    top: 0;
}

td { border-bottom: 1px solid #eef4ff; }

tr:hover td { background: #f5f9ff; }

tr:last-child td { border-bottom: none; }

/* 空状态 */
.empty-state, .loading {
    text-align: center;
    padding: 60px 20px;
    color: #8899aa;
    font-size: 1.05rem;
}

/* 响应式 */
@media (max-width: 640px) {
    header h1 { font-size: 1.5rem; }
    .stats-header { flex-direction: column; align-items: stretch; }
    .search-box input { width: 100%; }
    .sort-buttons { justify-content: center; }
    th, td { padding: 10px 8px; font-size: 0.9rem; }
    .timeline { padding-left: 22px; }
    .timeline-item::before { left: -20px; width: 12px; height: 12px; }
}

/* 多文件上传队列 */
.upload-queue {
    text-align: left;
    max-height: 300px;
    overflow-y: auto;
}

.upload-queue strong {
    display: block;
    margin-bottom: 10px;
    color: #2c5aa0;
    font-size: 1rem;
}

.upload-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: #f8fbff;
    border-radius: 6px;
    margin-bottom: 6px;
    border: 1px solid #dbeaff;
}

.up-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 10px;
    font-size: 0.9rem;
    color: #444;
}

.up-state {
    font-size: 0.85rem;
    white-space: nowrap;
    padding: 2px 8px;
    border-radius: 4px;
}

.up-state.uploading { color: #4A90E2; background: #e6f0ff; }
.up-state.success   { color: #155724; background: #d4edda; }
.up-state.fail      { color: #721c24; background: #f8d7da; }
.up-state.skip      { color: #856404; background: #fff3cd; }

.up-errors {
    margin-top: 8px;
    padding: 10px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.up-summary {
    margin-top: 10px;
    padding: 10px;
    background: #e6f0ff;
    border-radius: 6px;
    color: #2c5aa0;
    font-weight: 600;
    text-align: center;
}