/* ============================================================
   春森菌业人力资源管理系统 — 界面样式
   零外部依赖 · 蓝色调 · 响应式 · 含打印版式
   ============================================================ */

:root {
  --blue:        #1a5fd6;
  --blue-dark:   #14479f;
  --blue-light:  #e8f0fe;
  --blue-soft:   #f3f7ff;
  --ink:         #1b2536;
  --ink-2:       #4a5a72;
  --ink-3:       #8494ac;
  --line:        #e3e8f0;
  --bg:          #f4f6fa;
  --card:        #ffffff;
  --ok:          #12a05c;
  --warn:        #e08a00;
  --err:         #cf3b3b;
  --sidebar-1:   #0e2a52;
  --sidebar-2:   #133566;
  --radius:      10px;
  --shadow:      0 2px 10px rgba(18, 44, 88, .06);
  --shadow-lg:   0 12px 40px rgba(12, 32, 68, .18);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0; height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 14px; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
.muted { color: var(--ink-3); }
.ta-c { text-align: center; }
.ta-r { text-align: right; }
.nowrap { white-space: nowrap; }
.ico { vertical-align: -3px; flex: none; }

/* ---------------- 布局 ---------------- */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: 232px; flex: none;
  background: linear-gradient(180deg, var(--sidebar-1), var(--sidebar-2));
  color: #c8d6ec; display: flex; flex-direction: column;
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 60;
  transition: transform .22s ease;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 15px 14px 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-logo {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  background: rgba(47,124,246,.16);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(120,170,255,.22);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.34; overflow: hidden; min-width: 0; }
.brand-text b { color: #fff; font-size: 13.5px; letter-spacing: .2px; white-space: nowrap; }
.brand-text span {
  color: #7f9bc4; font-size: 8.6px; letter-spacing: .18px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-transform: uppercase;
}

.nav { flex: 1; overflow-y: auto; padding: 8px 0 20px; }
.nav::-webkit-scrollbar { width: 6px; }
.nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 3px; }

.nav-group-title {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 16px; color: #a9bfdd; font-size: 13.5px; font-weight: 500;
  cursor: pointer; user-select: none;
}
.nav-group-title:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav-group-title .caret {
  margin-left: auto; width: 0; height: 0; flex: none;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; transition: transform .2s;
}
.nav-group.open .nav-group-title { color: #fff; }
.nav-group.open .nav-group-title .caret { transform: rotate(180deg); }
.nav-sub { display: none; padding: 2px 0 6px; }
.nav-group.open .nav-sub { display: block; }
.nav-item {
  display: block; padding: 8px 16px 8px 44px; color: #93aacd;
  font-size: 13px; border-left: 3px solid transparent;
}
.nav-item:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav-item.active { color: #fff; background: rgba(47,124,246,.22); border-left-color: #4b93ff; font-weight: 500; }
.sidebar-foot { padding: 10px 16px; font-size: 11px; color: #5d7ba6; border-top: 1px solid rgba(255,255,255,.07); }

.main { flex: 1; margin-left: 232px; display: flex; flex-direction: column; min-width: 0; }

.topbar {
  height: 56px; flex: none; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px; padding: 0 18px;
  position: sticky; top: 0; z-index: 40;
}
.crumb { display: flex; align-items: center; gap: 7px; font-size: 13.5px; min-width: 0; }
.crumb-mod { color: var(--ink-2); }
.crumb-sep { color: #c7d0de; }
.crumb-cur { color: var(--ink); font-weight: 600; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.user-chip { display: flex; align-items: center; gap: 8px; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--blue-light);
  color: var(--blue); font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.user-meta { display: flex; flex-direction: column; line-height: 1.25; }
.user-meta b { font-size: 13px; }
.user-meta i { font-size: 11px; color: var(--ink-3); font-style: normal; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background: var(--blue-soft); color: var(--blue); border-color: #cfe0fb; }
/* 右上角「数字大屏」入口：比普通图标按钮更醒目，因为它是展示用主入口 */
.screen-btn {
  display: flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 13px; border-radius: 8px;
  background: linear-gradient(135deg, #2f7cf6, #1a5fd6); color: #fff;
  font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap;
  box-shadow: 0 1px 3px rgba(26,95,214,.28);
}
.screen-btn:hover { filter: brightness(1.07); color: #fff; }
@media (max-width: 640px) { .screen-btn span { display: none; } .screen-btn { padding: 0 9px; } }

.content { flex: 1; padding: 18px; min-width: 0; }
.foot { padding: 14px 18px 26px; color: var(--ink-3); font-size: 12px; text-align: center; }

/* ---------------- 页面标题 ---------------- */
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.page-title h1 { margin: 0; font-size: 19px; font-weight: 600; }
.page-title p { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-3); }
.page-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------- 卡片 ---------------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 16px; overflow: hidden;
}
.card-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border-bottom: 1px solid var(--line); flex-wrap: wrap; background: #fcfdff;
}
.card-head h3 { margin: 0; font-size: 14.5px; font-weight: 600; }
.card-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card-body { padding: 14px; }

/* ---------------- 工具条 ---------------- */
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.search-box {
  display: flex; align-items: center; gap: 6px; padding: 0 10px; height: 32px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink-3);
}
.search-box .input { border: none; padding: 0; height: 30px; width: 180px; outline: none; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid transparent;
  font-size: 13.5px; cursor: pointer; background: #fff; color: var(--ink);
  white-space: nowrap; transition: all .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-light { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-light:hover { border-color: #cfe0fb; color: var(--blue); }
.btn-danger { background: var(--err); color: #fff; }
.btn-ok { background: var(--ok); color: #fff; }
.btn-warn { background: var(--warn); color: #fff; }
.btn-sm { height: 32px; padding: 0 11px; font-size: 13px; }
.btn-xs { height: 26px; padding: 0 9px; font-size: 12px; border-radius: 6px; }
.btn-lg { height: 44px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled, .btn.disabled { opacity: .5; cursor: not-allowed; transform: none; }
.link { background: none; border: none; color: var(--blue); cursor: pointer; padding: 2px 6px; font-size: 13px; }
.link:hover { text-decoration: underline; }
.link.danger { color: var(--err); }

/* ---------------- 表单 ---------------- */
.input {
  width: 100%; height: 34px; padding: 0 10px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 13.5px; color: var(--ink); background: #fff;
  font-family: inherit; outline: none;
}
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,95,214,.1); }
.input[readonly] { background: #f6f8fc; color: var(--ink-2); }
.input-sm { height: 32px; font-size: 13px; }
textarea.input { height: auto; padding: 8px 10px; line-height: 1.55; resize: vertical; min-height: 68px; }
select.input { padding-right: 6px; }

.field { display: block; margin-bottom: 12px; }
.field > span { display: block; margin-bottom: 5px; font-size: 13px; color: var(--ink-2); }
.field .req { color: var(--err); margin-left: 2px; }
.field .hint { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-3); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.form-grid .col-2 { grid-column: span 2; }
.filter-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; width: 100%; }

.radio-row { display: flex; gap: 14px; flex-wrap: wrap; padding-top: 4px; }
.radio-item { display: flex; align-items: center; gap: 5px; font-size: 13.5px; cursor: pointer; }
.switch { display: inline-flex; align-items: center; cursor: pointer; }
.switch input { display: none; }
.switch span {
  width: 42px; height: 24px; border-radius: 12px; background: #d5dced; position: relative; transition: .2s;
}
.switch span::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.switch input:checked + span { background: var(--blue); }
.switch input:checked + span::after { transform: translateX(18px); }

/* ---------------- 表格 ---------------- */
.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 9px 11px; border-bottom: 1px solid var(--line); text-align: left; }
.table th { background: #f7f9fd; color: var(--ink-2); font-weight: 600; white-space: nowrap; position: sticky; top: 0; z-index: 2; }
.table tbody tr:hover { background: var(--blue-soft); }
.table tbody tr:last-child td { border-bottom: none; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table tfoot td { background: #f7f9fd; font-weight: 600; border-top: 2px solid var(--line); }
.table .row-total td { background: #eef3fb; font-weight: 600; }

/* ---------------- 徽标 ---------------- */
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 11.5px;
  background: #eef1f7; color: var(--ink-2); white-space: nowrap;
}
.badge-ok { background: #e3f7ed; color: var(--ok); }
.badge-off { background: #f2f4f8; color: var(--ink-3); }
.badge-warn { background: #fdf3e0; color: var(--warn); }
.badge-err { background: #fdeaea; color: var(--err); }
.badge-adjust { background: #fdeaea; color: var(--err); }
.badge-base { background: #e8f0fe; color: var(--blue); }
.badge-batch { background: #f3e9fd; color: #7a44c4; }

/* ---------------- 统计卡 ---------------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--blue);
}
.stat-card.tone-green::before { background: var(--ok); }
.stat-card.tone-orange::before { background: var(--warn); }
.stat-card.tone-red::before { background: var(--err); }
.stat-card.tone-purple::before { background: #7a44c4; }
.stat-label { font-size: 12.5px; color: var(--ink-3); margin-bottom: 6px; }
.stat-value { font-size: 23px; font-weight: 600; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: 13px; font-weight: 400; color: var(--ink-3); margin-left: 3px; }
.stat-sub { font-size: 12px; color: var(--ink-3); margin-top: 5px; }

/* ---------------- 提示 ---------------- */
.alert { padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; font-size: 13.5px; }
.alert-ok { background: #e8f8f0; color: #0d7a46; border: 1px solid #c6ebd9; }
.alert-err { background: #fdecec; color: var(--err); border: 1px solid #f7d2d2; }
.alert-warn { background: #fef6e8; color: #a26800; border: 1px solid #f7e3c0; }
.alert-info { background: var(--blue-light); color: var(--blue-dark); border: 1px solid #cfe0fb; }

.empty-state { padding: 48px 20px; text-align: center; color: var(--ink-3); }
.empty-ico { font-size: 34px; margin-bottom: 10px; opacity: .6; }
.empty-state h3 { margin: 0 0 8px; color: var(--ink-2); font-size: 16px; }
.empty-state p { margin: 0 0 16px; line-height: 1.7; }

/* ---------------- 分页 ---------------- */
.pager { display: flex; align-items: center; gap: 6px; padding: 12px 14px; flex-wrap: wrap; }
.pager-info { margin-right: auto; font-size: 12.5px; color: var(--ink-3); }
.pager-btn {
  min-width: 32px; height: 32px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); font-size: 13px; background: #fff;
}
.pager-btn:hover { border-color: #cfe0fb; color: var(--blue); }
.pager-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.pager-btn.disabled { opacity: .45; pointer-events: none; }

/* ---------------- 模态框 ---------------- */
.mask {
  position: fixed; inset: 0; background: rgba(12, 28, 56, .42); z-index: 90;
  opacity: 0; pointer-events: none; transition: opacity .18s;
}
.mask.show { opacity: 1; pointer-events: auto; }
.modal-wrap {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto;
}
.modal-wrap.show { display: flex; }
.modal {
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
  width: 100%; max-width: 620px; animation: pop .18s ease;
}
.modal.modal-lg { max-width: 900px; }
.modal.modal-xl { max-width: 1200px; }
@keyframes pop { from { transform: translateY(-10px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head {
  display: flex; align-items: center; padding: 15px 18px; border-bottom: 1px solid var(--line);
}
.modal-head h3 { margin: 0; font-size: 15.5px; font-weight: 600; }
.modal-head .close {
  margin-left: auto; background: none; border: none; font-size: 22px; line-height: 1;
  color: var(--ink-3); cursor: pointer; padding: 0 4px;
}
.modal-body { padding: 18px; max-height: 64vh; overflow-y: auto; }
.modal-foot {
  display: flex; gap: 10px; justify-content: flex-end; padding: 13px 18px;
  border-top: 1px solid var(--line); background: #fcfdff; border-radius: 0 0 14px 14px;
}

/* ---------------- 提示条 ---------------- */
.toast {
  position: fixed; left: 50%; top: 22px; transform: translate(-50%, -20px);
  background: #1b2536; color: #fff; padding: 10px 18px; border-radius: 9px;
  font-size: 13.5px; z-index: 200; opacity: 0; pointer-events: none; transition: all .22s;
  box-shadow: var(--shadow-lg); max-width: 82vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--err); }
.toast.ok { background: #0f8f52; }

/* ---------------- 页签 ---------------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tab {
  padding: 9px 15px; font-size: 13.5px; color: var(--ink-2); border-bottom: 2px solid transparent;
  cursor: pointer; white-space: nowrap; background: none; border-top: none; border-left: none; border-right: none;
}
.tab:hover { color: var(--blue); }
.tab.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }

/* ---------------- 登录页 ---------------- */
.login-body { background: #eef2f9; }
.login-wrap {
  min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr;
}
.login-hero {
  background: linear-gradient(140deg, #0e2a52, #1a5fd6 70%, #2f88f6);
  color: #fff; display: flex; align-items: center; padding: 48px 56px; position: relative; overflow: hidden;
}
.login-hero::after {
  content: ''; position: absolute; right: -120px; bottom: -120px; width: 380px; height: 380px;
  border-radius: 50%; background: rgba(255,255,255,.06);
}
.login-hero-inner { position: relative; z-index: 1; max-width: 460px; }
.login-logo {
  width: 68px; height: 68px; border-radius: 17px; background: rgba(255,255,255,.16);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px; border: 1px solid rgba(255,255,255,.24);
}
.login-hero h1 { margin: 0 0 5px; font-size: 27px; font-weight: 600; letter-spacing: .5px; }
/* 英文公司名：小字、加宽字距、全大写，放在中文名与系统名之间做品牌识别 */
.login-en {
  display: block; margin: 0 0 14px; font-size: 10px; font-style: normal;
  letter-spacing: .8px; color: rgba(255,255,255,.62); text-transform: uppercase;
  line-height: 1.5;
}
.login-hero h2 { margin: 0 0 26px; font-size: 15px; font-weight: 400; color: rgba(255,255,255,.8); }
.login-points { list-style: none; margin: 0; padding: 0; }
.login-points li {
  padding: 9px 0 9px 24px; font-size: 13.5px; color: rgba(255,255,255,.88);
  position: relative; border-bottom: 1px solid rgba(255,255,255,.1);
}
.login-points li::before { content: '✓'; position: absolute; left: 0; color: #7fc4ff; font-weight: 700; }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 40px 32px; background: #fff; }
.login-form { width: 100%; max-width: 350px; }
.login-form h3 { margin: 0 0 6px; font-size: 21px; }
.login-sub { margin: 0 0 22px; color: var(--ink-3); font-size: 13px; }
.login-tip { margin: 18px 0 0; font-size: 12px; color: var(--ink-3); line-height: 1.65; }
.login-tip code { background: #f2f4f8; padding: 1px 5px; border-radius: 4px; }

/* ---------------- 打印 ---------------- */
.print-only { display: none; }
@media print {
  .sidebar, .topbar, .foot, .page-actions, .card-actions, .toolbar, .pager, .no-print { display: none !important; }
  .main { margin-left: 0; }
  .content { padding: 0; }
  .card { box-shadow: none; border: none; margin: 0; }
  .print-only { display: block; }
  body { background: #fff; }
  .print-sheet { page-break-after: always; }
  .print-sheet:last-child { page-break-after: auto; }
}

/* 单据打印版式 */
.sheet-title { text-align: center; font-size: 17px; font-weight: 700; margin: 0 0 6px; letter-spacing: .5px; }
.sheet-sub { text-align: center; font-size: 12.5px; color: var(--ink-2); margin: 0 0 10px; }
.sheet-meta { display: flex; justify-content: space-between; font-size: 12.5px; margin: 6px 0; }
.sheet-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.sheet-table th, .sheet-table td {
  border: 1px solid #333; padding: 5px 6px; text-align: center; vertical-align: middle;
}
.sheet-table th { background: #f0f3f8; font-weight: 600; }
.sheet-table td.left { text-align: left; }
.sheet-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.sheet-table .sig { height: 34px; }
.sheet-note { font-size: 12px; line-height: 1.8; margin-top: 8px; white-space: pre-wrap; }
.sheet-foot { display: flex; justify-content: space-between; font-size: 12.5px; margin-top: 14px; }

/* ---------------- 附件上传（合同扫描件等） ---------------- */
.upload-box { display: flex; flex-direction: column; gap: 8px; }
.upload-box input[type=file] { padding: 7px 8px; font-size: 12.5px; background: #fff; }
.upload-cur { display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 8px; background: #f7f9fd; }
.upload-cur img { max-width: 92px; max-height: 68px; border-radius: 6px;
  border: 1px solid var(--line); object-fit: cover; display: block; }
.upload-cur .pdf-tag { font-size: 12.5px; color: var(--ink-2); }
.upload-rm { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px;
  color: var(--red, #d23); cursor: pointer; white-space: nowrap; }
.upload-rm input { width: auto; margin: 0; }
.upload-open { font-size: 12.5px; color: var(--blue); text-decoration: none; }
.upload-open:hover { text-decoration: underline; }
.file-link { display: inline-flex; align-items: center; gap: 4px; color: var(--blue);
  text-decoration: none; white-space: nowrap; }
.file-link:hover { text-decoration: underline; }

/* 合同到期提示 */
.expire-soon { color: #c77700; font-weight: 600; }
.expire-out  { color: var(--red, #d23); font-weight: 600; }
.expire-none { color: var(--ink-2); }

/* 合同卡片（按人分组视图） */
.contract-emp { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.contract-emp b { font-size: 13.5px; }
.badge-lab { background: #e8f0fe; color: #1a56b8; }
.badge-svc { background: #fdf0e3; color: #a9631a; }

/* ---------------- 响应式 ---------------- */
.only-mobile { display: none; }
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.show { transform: none; box-shadow: var(--shadow-lg); }
  .main { margin-left: 0; }
  .only-mobile { display: inline-flex; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .col-2 { grid-column: span 1; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-hero { display: none; }
  .content { padding: 12px; }
  .topbar { padding: 0 12px; }
  .user-meta { display: none; }
  .stat-value { font-size: 20px; }
  .modal-wrap { padding: 16px 10px; }
}

/* ============================================================
   批量导入（员工花名册等）
   ============================================================ */

/* 步骤条 */
.imp-steps { display: flex; gap: 10px; margin: 0 0 14px; flex-wrap: wrap; }
.imp-step {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 14px; background: var(--card);
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; color: var(--ink-3);
}
.imp-step i {
  width: 20px; height: 20px; border-radius: 50%; flex: none;
  background: var(--line); color: var(--ink-2);
  font-style: normal; font-size: 12px;
  display: inline-flex; align-items: center; justify-content: center;
}
.imp-step.now { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); font-weight: 600; }
.imp-step.now i { background: var(--blue); color: #fff; }
.imp-step.done { color: var(--ok); border-color: #c3e8d4; background: #f3fbf7; }
.imp-step.done i { background: var(--ok); color: #fff; }

/* 选项块 */
.imp-opt {
  margin: 14px 0 0; padding: 12px 14px;
  background: var(--blue-soft); border: 1px solid #dbe7fb;
  border-radius: var(--radius);
}
.imp-opt-t { font-weight: 600; font-size: 13px; color: var(--ink-2); margin-bottom: 9px; }
.imp-opt .radio-item { margin-bottom: 8px; align-items: flex-start; }
.imp-opt .radio-item:last-child { margin-bottom: 0; }
.imp-opt .radio-item input { margin-top: 2px; }

/* 预检表 */
.imp-table td { vertical-align: top; font-size: 13px; }
.imp-msgs { font-size: 12.5px; line-height: 1.75; }
.imp-e { color: var(--err); }
.imp-w { color: var(--warn); }
.imp-n { color: var(--blue); }
.imp-row-err { background: #fff8f8; }
.imp-sum { margin: 14px 0 12px; font-size: 13.5px; color: var(--ink-2); }

/* 说明区 */
.imp-how { margin: 0; padding-left: 20px; line-height: 1.95; font-size: 13.5px; }
.imp-how b { color: var(--blue); }
.imp-log {
  margin: 0; padding-left: 18px; font-size: 12.5px;
  line-height: 1.9; max-height: 340px; overflow-y: auto;
}

@media (max-width: 640px) {
  .imp-steps { gap: 6px; }
  .imp-step { padding: 6px 10px; font-size: 12px; }
  .imp-step span { display: none; }
  .imp-step.now span { display: inline; }
}
