* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    color: #1f2937;
    background: #f4f7fb;
}
.shell {
    width: min(1120px, calc(100% - 32px));
    margin: 32px auto;
}
.panel {
    background: #fff;
    border: 1px solid #dde5ef;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(31, 41, 55, .06);
}
.panel + .panel { margin-top: 20px; }
h1, h2, h3 { margin: 0; letter-spacing: 0; }
h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { margin-top: 22px; font-size: 16px; }
p { margin: 8px 0 0; color: #64748b; line-height: 1.65; }
.upload-form { margin-top: 24px; display: grid; gap: 18px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 8px; }
.field span { font-weight: 700; }
.field small { color: #64748b; }
input[type="file"], input[type="text"], input[type="number"] {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 11px 12px;
    background: #fff;
    font: inherit;
}
button, .download {
    border: 0;
    border-radius: 6px;
    padding: 12px 18px;
    background: #2563eb;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}
button:hover, .download:hover { background: #1d4ed8; }
.secondary { background: #475569; }
.secondary:hover { background: #334155; }
.hidden { display: none !important; }
.alert {
    margin-top: 18px;
    border-radius: 6px;
    padding: 12px 14px;
}
.error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.result-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}
.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}
.stats div {
    border: 1px solid #dde5ef;
    border-radius: 8px;
    padding: 14px;
    background: #f8fafc;
}
.stats strong { display: block; font-size: 24px; }
.stats span { color: #64748b; }
.progress-box {
    margin-top: 20px;
    border: 1px solid #dde5ef;
    border-radius: 8px;
    padding: 16px;
    background: #f8fafc;
}
.progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #334155;
}
.progress-track {
    height: 12px;
    margin-top: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}
#progress-bar {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: #2563eb;
    transition: width .2s ease;
}
.result-actions { margin-top: 22px; }
.log-list {
    margin: 10px 0 0;
    padding-left: 20px;
    color: #475569;
    line-height: 1.7;
}
.tabs {
    display: flex;
    gap: 8px;
    margin-top: 22px;
    border-bottom: 1px solid #dde5ef;
}
.tab {
    width: auto;
    border: 1px solid #dde5ef;
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
    padding: 9px 14px;
    background: #f8fafc;
    color: #334155;
}
.tab.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}
.record-pane { display: none; }
.record-pane.active { display: block; }
.pager {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
    color: #475569;
}
.pager button {
    width: auto;
    padding: 8px 12px;
    background: #475569;
}
.pager button:disabled {
    cursor: not-allowed;
    opacity: .45;
}
.table-wrap { overflow: auto; margin-top: 10px; border: 1px solid #dde5ef; border-radius: 8px; }
table { width: 100%; border-collapse: collapse; min-width: 860px; background: #fff; }
th, td { border-bottom: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top; }
th { background: #f8fafc; font-weight: 700; }
tr:last-child td { border-bottom: 0; }
@media (max-width: 720px) {
    .shell { width: min(100% - 20px, 1120px); margin: 16px auto; }
    .panel { padding: 18px; }
    .grid, .stats { grid-template-columns: 1fr; }
    .result-head { display: grid; }
}
