* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #f6f8fb;
  color: #243b53;
  font-size: 15px;
  line-height: 1.7;
}

/* 顶部横条 */
.topbar {
  background: linear-gradient(90deg, #1e3a8a, #2563eb);
  color: #fff;
  box-shadow: 0 2px 12px rgba(37, 99, 235, .25);
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; }
.brand { font-size: 20px; font-weight: 700; letter-spacing: 1px; }
.userinfo { font-size: 14px; }
.userinfo a { color: #bfdbfe; text-decoration: none; }
.userinfo a:hover { text-decoration: underline; }

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

h1 { margin: 36px 0 8px; font-size: 28px; font-weight: 700; }
h2 { margin: 0 0 16px; font-size: 18px; display: flex; align-items: center; gap: 10px; }
h3 { margin: 26px 0 10px; font-size: 15.5px; }
.muted { color: #627d98; font-size: 13.5px; }
.center { text-align: center; }

/* 步骤圆圈 */
.step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: #2563eb; color: #fff; font-size: 15px; font-weight: 700;
  flex-shrink: 0;
}

/* 卡片 */
.card {
  background: #fff; border-radius: 16px; padding: 30px 32px;
  margin-top: 26px; box-shadow: 0 2px 14px rgba(31, 45, 61, .07);
}
.card p.muted { margin-top: 0; }

/* 登录/注册卡片 */
.auth-card {
  background: #fff; border-radius: 16px; padding: 40px 42px;
  margin: 90px auto; max-width: 420px;
  box-shadow: 0 4px 20px rgba(31, 45, 61, .12);
}
.auth-card h1 { margin: 0 0 4px; font-size: 24px; }

label { display: block; margin: 18px 0 8px; font-size: 14px; font-weight: 600; }
input[type=text], input[type=password], textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cbd5e1;
  border-radius: 10px; font-size: 15px; font-family: inherit;
  background: #fbfdff;
}
input:focus, textarea:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
textarea { line-height: 1.7; }

/* 上传区：大虚线框 */
.filebox {
  border: 2px dashed #b6c6dc; border-radius: 14px; padding: 20px 22px;
  margin: 16px 0; background: #fbfdff;
  transition: border-color .15s, background .15s;
}
.filebox:hover { border-color: #60a5fa; background: #f0f7ff; }
.filebox label { display: block; margin: 0 0 10px; font-weight: 600; font-size: 15px; }
.filebox input[type=file] { display: block; font-size: 14px; color: #486581; }

/* 按钮 */
.btn {
  display: inline-block; border: none; border-radius: 10px; padding: 13px 30px;
  font-size: 16px; font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn-primary { background: #2563eb; color: #fff; box-shadow: 0 2px 8px rgba(37,99,235,.3); }
.btn-primary:hover { background: #1d4ed8; }
.btn-primary:disabled { background: #93c5fd; cursor: wait; box-shadow: none; }
.btn-block { display: block; width: 100%; margin-top: 22px; }

/* 提示条 */
.flash { border-radius: 10px; padding: 12px 16px; margin-top: 16px; font-size: 14px; }
.flash.ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.flash.error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* 结果表格 */
table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 4px; }
th, td { border: 1px solid #e5e7eb; padding: 11px 14px; text-align: left; }
th { background: #f0f4f8; font-weight: 600; color: #334e68; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.total-row td { font-weight: 700; background: #eaf3ff; color: #1e40af; }
.warn-title { color: #b45309; }
.warn-table th { background: #fef3c7; }
.big { font-size: 26px; color: #c2410c; font-weight: 700; }
#spinner { margin-left: 14px; color: #2563eb; font-size: 14px; }

/* 折叠面板与预览 */
details summary { cursor: pointer; font-size: 14px; color: #2563eb; margin: 10px 0; }
.mapping-list { font-size: 13.5px; color: #486581; line-height: 2; }
.preview {
  background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 10px;
  padding: 14px 16px; font-size: 13px; overflow-x: auto; color: #486581;
}
