/* 员工自助查询页样式 */
:root {
  --brand: #1668dc;
  --brand-deep: #0e4fa8;
  --brand-soft: #eaf2ff;
  --ok: #12a86a;
  --text: #16202e;
  --text-2: #5a6b81;
  --text-3: #94a2b5;
  --line: #e6ecf5;
  --bg: #f2f5fa;
}

body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 15px; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }

.wrap { max-width: 560px; margin: 0 auto; min-height: 100vh; padding-bottom: 40px; }

.hero {
  background: linear-gradient(135deg, #1668dc, #0e4fa8);
  color: #fff; padding: calc(22px + env(safe-area-inset-top)) 20px 38px; position: relative; overflow: hidden;
}
.hero::after { content: ''; position: absolute; right: -50px; top: -60px; width: 190px; height: 190px; border-radius: 50%; background: rgba(255,255,255,0.1); }
.hero h1 { margin: 0 0 4px; font-size: 21px; letter-spacing: 0.5px; }
.hero p { margin: 0; font-size: 13px; opacity: 0.85; }
.hero .org { margin: 0 0 7px; font-size: 12px; opacity: 0.8; }

/* 搜索框 */
.search-box {
  margin: -24px 12px 12px; background: #fff; border-radius: 13px; box-shadow: 0 6px 24px rgba(22,104,220,0.1);
  padding: 12px; display: flex; gap: 8px; position: relative; z-index: 2;
}
.search-box input {
  flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font-size: 15px;
  outline: none; background: #fbfcfe; font-family: inherit; min-width: 0;
}
.search-box input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(22,104,220,0.12); background: #fff; }
.search-box .btn-search {
  border: 0; border-radius: 10px; padding: 0 20px; font-size: 15px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #1668dc, #0e4fa8); cursor: pointer; flex: none;
}
.search-box .btn-search:active { transform: translateY(1px); }
.search-hint { margin: -4px 16px 12px; font-size: 12px; color: var(--text-3); }

/* 员工卡片 */
.staff-card {
  background: #fff; border-radius: 14px; box-shadow: 0 6px 24px rgba(22,104,220,0.08);
  padding: 16px; margin: 0 12px 12px; cursor: pointer; border: 1.5px solid transparent; transition: all 0.15s;
}
.staff-card.on { border-color: var(--brand); }
.staff-card .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.staff-card .nm { font-size: 17px; font-weight: 700; }
.staff-card .nm small { font-size: 12px; font-weight: 400; color: var(--text-3); margin-left: 6px; }
.staff-card .code {
  font-size: 12px; color: var(--brand-deep); background: var(--brand-soft); padding: 3px 10px;
  border-radius: 999px; font-weight: 600; letter-spacing: 1px; flex: none;
}
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.kpi { background: #f8fafc; border-radius: 10px; padding: 9px 6px; text-align: center; }
.kpi .n { font-size: 19px; font-weight: 700; line-height: 1.2; }
.kpi .n.done { color: var(--ok); }
.kpi .n.pending { color: #f59e0b; }
.kpi .n.brand { color: var(--brand); }
.kpi .t { font-size: 11px; color: var(--text-3); margin-top: 2px; }

/* 客户列表 */
.section-title {
  display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600;
  margin: 16px 12px 10px;
}
.section-title::before { content: ''; width: 3px; height: 15px; border-radius: 2px; background: var(--brand); }
.section-title .hint { font-size: 12px; color: var(--text-3); font-weight: 400; margin-left: auto; }

.cust-card {
  background: #fff; border-radius: 13px; box-shadow: 0 4px 16px rgba(22,104,220,0.06);
  padding: 13px 15px; margin: 0 12px 9px;
}
.cust-card .row1 { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cust-card .nm { font-weight: 600; font-size: 15px; }
.cust-card .meta { font-size: 12px; color: var(--text-3); margin-top: 6px; line-height: 1.7; }

.badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; line-height: 20px; white-space: nowrap; flex: none;
}
.badge-pending { background: #fff5e6; color: #b45309; }
.badge-contacted { background: #e8f1ff; color: #1d4ed8; }
.badge-appointed { background: #f1eaff; color: #6d28d9; }
.badge-done { background: #e6f7ef; color: #0b7a4b; }
.badge-invalid { background: #f1f5f9; color: #64748b; }
.badge-visit { background: #fff1e8; color: #c2410c; }
.badge-walkin { background: #eef2ff; color: #4338ca; }

.empty { text-align: center; color: var(--text-3); font-size: 14px; padding: 40px 20px; }
.empty .ico { font-size: 36px; margin-bottom: 8px; }

/* 分页 */
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.pager button {
  min-width: 34px; height: 32px; border: 1px solid var(--line); background: #fff; border-radius: 9px;
  font-size: 13px; color: var(--text-2); cursor: pointer;
}
.pager button.on { background: var(--brand); color: #fff; border-color: var(--brand); }

/* 状态提示 */
.state { text-align: center; padding: 80px 24px; color: var(--text-2); }
.state .ico { font-size: 42px; margin-bottom: 12px; }
.state h3 { margin: 0 0 6px; font-size: 17px; color: var(--text); }
.state p { margin: 0; font-size: 14px; }

.privacy-note {
  margin: 20px 12px 0; padding: 10px 14px; background: #fff8ec; border: 1px solid #f5dfb0;
  border-radius: 11px; font-size: 12px; color: #7a5b1e; line-height: 1.7;
}
