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

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8edf5 100%);
  min-height: 100vh;
  color: #2c3e50;
}

.wrap { max-width: 960px; margin: 0 auto; padding: 32px 20px 60px; }

header { text-align: center; margin-bottom: 28px; }
.topbar { text-align: left; margin-bottom: 14px; }
.backlink { font-size: 13px; color: #2f6fed; text-decoration: none; }
.backlink:hover { text-decoration: underline; }
header h1 { font-size: 26px; letter-spacing: 1px; }
header .sub { margin-top: 10px; color: #7f8c9b; font-size: 14px; }
header .sub code { background: #eef2f7; padding: 2px 6px; border-radius: 4px; }

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(31, 45, 61, 0.08);
  padding: 24px;
  margin-bottom: 24px;
}

.tabs { display: flex; gap: 10px; margin-bottom: 18px; }
.tab {
  flex: 1;
  padding: 12px;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
  font-size: 15px;
  color: #52606d;
  transition: all 0.15s;
}
.tab.active { background: #2f6fed; border-color: #2f6fed; color: #fff; font-weight: 600; }

.dropzone {
  border: 2px dashed #b9c7d6;
  border-radius: 10px;
  padding: 34px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  background: #fbfcfe;
}
.dropzone.drag { border-color: #2f6fed; background: #eef4ff; }
.dropzone.half { padding: 22px 14px; }
.dropzone.hidden, .hidden { display: none !important; }
.dz-icon { font-size: 40px; margin-bottom: 8px; }
.hint { font-size: 12px; color: #94a3b8; margin-top: 6px; }

.row { display: flex; gap: 16px; }
.row .half { flex: 1; }

.file-chip {
  display: inline-block;
  margin-top: 12px;
  background: #eef4ff;
  color: #1e4fb8;
  border: 1px solid #c9dcff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.actions { margin-top: 20px; display: flex; align-items: center; gap: 16px; }

button.primary {
  background: #2f6fed;
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.15s;
  font-weight: 600;
}
button.primary:hover:not(:disabled) { background: #1e5ad0; transform: translateY(-1px); }
button.primary:disabled { background: #a8bcd9; cursor: not-allowed; }

.status { font-size: 14px; color: #94a3b8; }
.status.ok { color: #16a34a; }
.status.bad { color: #dc2626; }

/* 结果 */
.stats { display: flex; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.stat {
  flex: 1;
  min-width: 120px;
  background: #fff;
  border-radius: 10px;
  padding: 18px 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(31, 45, 61, 0.06);
}
.stat .num { font-size: 30px; font-weight: 700; color: #2f6fed; }
.stat.ok .num { color: #16a34a; }
.stat.bad .num { color: #dc2626; }
.stat .lbl { font-size: 13px; color: #7f8c9b; margin-top: 4px; }

.warn-box {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.card-head h2 { font-size: 17px; }

.table-wrap { max-height: 380px; overflow: auto; border: 1px solid #e5eaf0; border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 9px 14px; text-align: left; border-bottom: 1px solid #eef2f6; }
th { background: #f6f9fc; color: #52606d; position: sticky; top: 0; }
tr:hover td { background: #f8fbff; }
td.mono { font-family: Consolas, monospace; font-size: 12px; color: #64748b; }
td.empty { text-align: center; color: #16a34a; padding: 24px; font-size: 15px; }

footer { text-align: center; color: #94a3b8; font-size: 12px; margin-top: 30px; }
