/* ============ 员工自助 ESS H5 门户样式 v3 · 全新主框架 + 一寸矩形证件照 ============ */
:root {
  /* 品牌色梯度（呼应 PC 端 #00333A / #2E9E9E） */
  --brand-900: #00333A;
  --brand-700: #0E7C7B;
  --brand-600: #2E9E9E;
  --brand-500: #3BB8B4;
  --brand-100: #DFF3F2;
  --brand-50: #F0FAFA;
  /* 中性色 */
  --ink: #17323A;
  --ink-2: #5A6B70;
  --ink-3: #8FA0A4;
  --line: #EEF3F3;
  --bg: #F5F7F8;
  --danger: #E5484D;
  --warn: #E6A23C;
  --ok: #2BA471;
  /* 圆角 / 阴影 */
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --sh-1: 0 1px 2px rgba(0, 51, 58, .04), 0 2px 8px rgba(0, 51, 58, .06);
  --sh-2: 0 4px 16px rgba(0, 51, 58, .10);
  --sh-p: 0 6px 16px rgba(46, 158, 158, .35);
  /* Element Plus 主色全局覆盖（下拉/日期面板/MessageBox 传送至 body，必须根级） */
  --el-color-primary: #2E9E9E;
  --el-color-primary-light-3: #5BB5B5;
  --el-color-primary-light-5: #8CCACA;
  --el-color-primary-light-7: #BFE0E0;
  --el-color-primary-light-9: #EDF7F7;
  --el-color-primary-dark-2: #25807F;
}
* { box-sizing: border-box; }
[v-cloak] { display: none; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
#app { max-width: 640px; margin: 0 auto; min-height: 100vh; background: var(--bg); }

/* ---------- 登录 ---------- */
.m-login {
  position: relative; overflow: hidden;
  min-height: 100vh; padding: 84px 24px 40px;
  background: linear-gradient(160deg, #00333A, #0E7C7B 70%, #2E9E9E);
}
.m-login::before, .m-login::after {
  content: ''; position: absolute; border-radius: 50%; pointer-events: none;
}
.m-login::before { width: 220px; height: 220px; right: -70px; top: -60px; background: radial-gradient(closest-side, rgba(59, 184, 180, .38), transparent); }
.m-login::after { width: 160px; height: 160px; left: -60px; bottom: 40px; background: radial-gradient(closest-side, rgba(255, 255, 255, .10), transparent); }
.m-login-logo {
  position: relative; z-index: 1; display: block; width: 78px; height: 78px;
  margin: 0 auto 16px; border-radius: 24px; box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}
.m-login-title { position: relative; z-index: 1; text-align: center; font-size: 23px; font-weight: 700; color: #fff; letter-spacing: 2px; }
.m-login-sub { position: relative; z-index: 1; text-align: center; font-size: 13px; color: rgba(255, 255, 255, .72); margin: 8px 0 30px; }
.m-login-card {
  position: relative; z-index: 1;
  background: #fff; border-radius: var(--r-xl); box-shadow: var(--sh-2);
  padding: 22px 18px 20px; animation: pageIn .3s ease;
}
.m-input { margin-bottom: 14px; }
.m-login-btn { width: 100%; margin-top: 6px; height: 44px; font-size: 16px; box-shadow: var(--sh-p); }
.m-login-tip { position: relative; z-index: 1; text-align: center; font-size: 13px; color: rgba(255, 255, 255, .55); margin-top: 18px; }

/* ---------- 未绑定 ---------- */
.m-empty-wrap { padding: 100px 24px; text-align: center; }
.m-empty-wrap .el-button { margin: 6px; }

/* ---------- 子页面顶栏 ---------- */
.m-subbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 14px;
  background: linear-gradient(135deg, #00333A, #0E7C7B 55%, #2E9E9E);
  color: #fff; font-size: 16px; font-weight: 600;
}
.m-subbar-back {
  font-size: 20px; cursor: pointer; margin-left: -8px;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: background .15s ease;
}
.m-subbar-back:active { background: rgba(255, 255, 255, .18); }
.m-subbody { padding: 12px 12px 24px; animation: pageIn .24s ease; }

/* ---------- 卡片 / 行列表 ---------- */
.m-card {
  background: #fff; border-radius: var(--r-lg); padding: 16px;
  margin-bottom: 12px; box-shadow: var(--sh-1);
}
.m-card-title { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.m-card-empty { color: var(--ink-3); text-align: center; padding: 22px 0; font-size: 14px; letter-spacing: 1px; }
.m-click { cursor: pointer; transition: transform .12s ease; }
.m-click:active { transform: scale(.985); }
.m-tip { font-size: 13px; color: var(--ink-3); margin-top: 8px; line-height: 1.6; }
.m-block-btn { width: 100%; height: 42px; font-size: 15px; box-shadow: var(--sh-p); }

.m-line-item { padding: 11px 0; border-bottom: 1px solid var(--line); }
.m-line-item:last-child { border-bottom: none; }
.m-line-main { font-size: 15px; font-weight: 500; color: var(--ink); display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.m-line-sub { font-size: 13px; color: var(--ink-3); margin-top: 3px; }

/* ---------- 一寸矩形证件照（比例 25:35） ---------- */
.m-avatar, .m-avatar-lg {
  object-fit: cover; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff; font-weight: 700; overflow: hidden;
  border-radius: 6px; border: 1px solid rgba(0, 51, 58, .08);
}
.m-avatar { width: 84px; height: 118px; font-size: 30px; }
.m-avatar-lg { width: 100px; height: 140px; font-size: 36px; }

/* ---------- 首页顶部问候带 ---------- */
.m-topband {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #00333A 0%, #0E7C7B 55%, #2E9E9E 100%);
  border-radius: 0 0 24px 24px; padding: 26px 18px 40px;
}
.m-topband::after { content: ''; position: absolute; right: -44px; top: -44px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .14), transparent); pointer-events: none; }
.m-topband::before { content: ''; position: absolute; left: -36px; bottom: -56px; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(closest-side, rgba(59, 184, 180, .30), transparent); pointer-events: none; }
.m-greet { position: relative; z-index: 1; font-size: 22px; font-weight: 700; color: #fff; }
.m-date { position: relative; z-index: 1; font-size: 13px; color: rgba(255, 255, 255, .72); margin-top: 6px; }

/* ---------- 首页个人名片卡（上浮） ---------- */
.m-profile-card {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 14px;
  background: #fff; border-radius: var(--r-xl); padding: 14px;
  margin: -26px 12px 12px; box-shadow: var(--sh-2);
}
.m-pc-info { flex: 1; min-width: 0; }
.m-pc-name { font-size: 18px; font-weight: 700; color: var(--ink); display: flex; align-items: center; flex-wrap: wrap; }
.m-pc-line { font-size: 13px; color: var(--ink-3); margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-pc-arrow { font-size: 20px; color: #C0CCCC; flex-shrink: 0; }

/* ---------- 首页快捷入口 ---------- */
.m-quick {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  background: #fff; border-radius: var(--r-lg); padding: 16px 8px; margin: 0 12px 12px;
  box-shadow: var(--sh-1);
}
.m-quick-item { text-align: center; font-size: 13px; color: var(--ink-2); cursor: pointer; transition: transform .12s ease; }
.m-quick-item:active { transform: scale(.94); }
.m-quick-ic {
  width: 46px; height: 46px; border-radius: 14px; margin: 0 auto 6px;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- 服务 ---------- */
.m-section-h {
  font-size: 16px; font-weight: 700; color: var(--ink);
  padding: 16px 16px 6px 20px; display: flex; align-items: center;
}
.m-section-h::before {
  content: ''; width: 4px; height: 16px; border-radius: 2px;
  background: linear-gradient(180deg, var(--brand-500), var(--brand-700)); margin-right: 8px;
}
.m-svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px; }
.m-svc-item {
  background: #fff; border-radius: var(--r-lg); padding: 16px 8px 14px; text-align: center;
  font-size: 14px; color: var(--ink); cursor: pointer;
  box-shadow: var(--sh-1); transition: transform .12s ease;
}
.m-svc-item:active { transform: scale(.96); }
.m-svc-ic {
  width: 44px; height: 44px; border-radius: 12px; margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- 消息 ---------- */
.m-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); display: inline-block; margin-right: 6px; flex-shrink: 0; }
.m-msg-content { font-size: 14px; color: var(--ink-2); margin-top: 4px; line-height: 1.6; word-break: break-all; }
.m-unread { background: var(--brand-50); box-shadow: inset 3px 0 0 var(--brand-500); border-radius: 8px; }
.m-line-item.m-unread { padding-left: 10px; }

/* ---------- 我的 ---------- */
.m-mine-card {
  display: flex; align-items: center; gap: 14px;
  margin: 12px; padding: 18px 16px; border-radius: var(--r-xl);
  background: linear-gradient(135deg, #00333A 0%, #0E7C7B 55%, #2E9E9E 100%);
  box-shadow: var(--sh-2); color: #fff;
}
.m-mine-card .m-avatar { border-color: rgba(255, 255, 255, .25); }
.m-mine-card .m-pc-name { color: #fff; }
.m-mine-card .m-pc-line { color: rgba(255, 255, 255, .72); }
.m-mine-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 15px; cursor: pointer;
  transition: background .15s ease; border-radius: 8px;
}
.m-mine-item:last-child { border-bottom: none; }
.m-mine-item:active { background: var(--brand-50); }
.m-mine-item .el-icon { color: #C0CCCC; }
.m-danger { color: var(--danger); }

/* ---------- 底部导航 ---------- */
.m-body { padding-bottom: 74px; animation: pageIn .24s ease; }
.m-tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 640px; height: 58px;
  display: flex; background: #fff; box-shadow: 0 -4px 16px rgba(0, 51, 58, .06); z-index: 30;
  padding-bottom: env(safe-area-inset-bottom);
}
.m-tabbar-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 13px; color: #9AA8A8; cursor: pointer; position: relative;
  transition: color .15s ease;
}
.m-tabbar-item .el-icon { transition: transform .15s ease; }
.m-tabbar-item.active { color: var(--brand-600); font-weight: 600; }
.m-tabbar-item.active .el-icon { transform: translateY(-1px); }
.m-tabbar-item.active::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 16px; height: 3px; border-radius: 2px; background: var(--brand-600);
}
.m-badge {
  position: absolute; top: 3px; right: 50%; margin-right: -20px;
  min-width: 16px; height: 16px; border-radius: 8px; background: var(--danger); color: #fff;
  font-size: 11px; font-style: normal; line-height: 16px; text-align: center; padding: 0 4px;
}

/* ---------- 档案详情 ---------- */
.m-profile-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.m-profile-name { font-size: 17px; font-weight: 700; color: var(--ink); }
.m-profile-meta { font-size: 13px; color: var(--ink-3); margin-top: 5px; }
.m-desc .el-descriptions__label { width: 86px; font-size: 14px; }

/* ---------- 工资条 ---------- */
.m-payslip-row { display: flex; justify-content: space-between; align-items: center; }
.m-payslip-month { font-size: 16px; font-weight: 600; color: var(--ink); }
.m-payslip-net { font-size: 19px; font-weight: 700; color: var(--brand-700); }

/* ---------- 考勤 ---------- */
.m-shift-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin: 0 6px 0 10px; }

/* ---------- 绩效 ---------- */
.m-perf-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.m-perf-score { font-size: 22px; font-weight: 700; color: var(--brand-700); }

/* ---------- 学分 ---------- */
.m-credit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.m-credit-cell { background: var(--brand-50); border-radius: 12px; padding: 12px; text-align: center; }
.m-credit-num { font-size: 22px; font-weight: 700; color: var(--brand-700); }
.m-credit-lbl { font-size: 13px; color: var(--ink-3); margin-top: 2px; }

/* ---------- 证明信（打印样式，勿改） ---------- */
.cert-paper {
  position: relative; background: #fff; border: 1px solid #e5e7eb;
  padding: 26px 22px; font-family: SimSun, "Songti SC", serif; overflow: hidden;
}
.cert-title { text-align: center; font-size: 22px; font-weight: 700; letter-spacing: 6px; margin-bottom: 20px; }
.cert-body { font-size: 15px; line-height: 2; color: #111; }
.cert-table { border-collapse: collapse; margin: 8px 0; width: 100%; }
.cert-table th, .cert-table td { border: 1px solid #666; padding: 5px 10px; text-align: center; font-size: 14px; }
.cert-footer { margin-top: 34px; text-align: right; font-size: 15px; line-height: 2; }
.cert-wm {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-28deg);
  font-size: 26px; color: rgba(0, 0, 0, .06); white-space: nowrap; pointer-events: none;
}

/* ---------- 弹窗移动端适配 ---------- */
.m-dlg { width: 92% !important; max-width: 560px; border-radius: 18px; }
.m-dlg .el-dialog__header { padding: 16px 18px 8px; }
.m-dlg .el-dialog__title { font-size: 16px; font-weight: 600; }
.m-dlg .el-dialog__body { padding: 12px 18px 18px; }

/* ---------- 我的档案：个人名片 ---------- */
.pf-hero {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl); margin-bottom: 12px; padding: 18px 16px 14px;
  background: linear-gradient(135deg, #00333A 0%, #0E7C7B 55%, #2E9E9E 100%);
  box-shadow: var(--sh-2); color: #fff;
}
.pf-hero::after { content: ''; position: absolute; right: -44px; top: -44px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .13), transparent); pointer-events: none; }
.pf-hero-top { position: relative; z-index: 1; display: flex; gap: 14px; align-items: flex-start; }
.pf-photo {
  width: 100px; height: 140px; border-radius: 6px; object-fit: cover; flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .12);
  display: flex; align-items: center; justify-content: center; font-size: 38px; font-weight: 700;
}
.pf-hero-main { flex: 1; min-width: 0; padding-top: 2px; }
.pf-name { font-size: 20px; font-weight: 700; display: flex; align-items: center; flex-wrap: wrap; }
.pf-sub { font-size: 13px; color: rgba(255, 255, 255, .82); margin-top: 7px; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pf-chips span {
  font-size: 12px; padding: 3px 9px; border-radius: 20px;
  background: rgba(255, 255, 255, .16); color: #fff;
}
.pf-hero-foot {
  position: relative; z-index: 1;
  display: flex; margin-top: 16px; padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.pf-hero-foot div { flex: 1; text-align: center; display: flex; flex-direction: column; gap: 5px; }
.pf-hero-foot div + div { border-left: 1px solid rgba(255, 255, 255, .18); }
.pf-hero-foot b { font-size: 14px; font-weight: 600; }
.pf-hero-foot span { font-size: 12px; color: rgba(255, 255, 255, .65); }

/* ---------- 我的档案：基本信息网格 ---------- */
.pf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 14px; }
.pf-cell {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 10px 0; border-bottom: 1px solid var(--line); min-width: 0;
}
.pf-cell label { font-size: 13px; color: var(--ink-3); flex-shrink: 0; }
.pf-cell span { font-size: 14px; color: var(--ink); font-weight: 500; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 我的档案：图标行（联系方式/紧急联系人） ---------- */
.pf-rows { display: flex; flex-direction: column; }
.pf-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.pf-row:last-child { border-bottom: none; }
.pf-ic {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.pf-row-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.pf-row-txt label { font-size: 12px; color: var(--ink-3); }
.pf-row-txt b { font-size: 15px; color: var(--ink); font-weight: 500; word-break: break-all; }

/* ---------- 我的档案：经历时间线 ---------- */
.tl-item { position: relative; padding: 4px 0 14px 20px; }
.tl-item:last-child { padding-bottom: 2px; }
.tl-item::before {
  content: ''; position: absolute; left: 4px; top: 10px; bottom: -4px; width: 2px;
  background: var(--line);
}
.tl-item:last-child::before { display: none; }
.tl-dot {
  position: absolute; left: 0; top: 6px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-50);
}
.tl-main { font-size: 15px; font-weight: 600; color: var(--ink); }
.tl-sub { font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.tl-time { font-size: 12px; color: var(--ink-3); margin-top: 3px; }

/* ---------- 我的档案：材料 ---------- */
.pf-count {
  font-style: normal; font-size: 12px; font-weight: 600; color: #fff; background: var(--brand-600);
  border-radius: 20px; padding: 1px 9px; margin-left: 2px;
}
.pf-mat { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.pf-mat:last-child { border-bottom: none; }
.pf-mat-cat {
  flex-shrink: 0; font-size: 12px; color: var(--brand-700);
  background: var(--brand-50); border-radius: 6px; padding: 4px 8px;
}
.pf-mat-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pf-mat-txt b { font-size: 14px; font-weight: 500; color: var(--ink); }

/* ============ 首页 hp-* · 精致青绿 ============ */
/* 渐变头图 */
.hp-hero {
  position: relative; overflow: hidden;
  margin: 0 0 0; padding: 30px 18px 40px;
  border-radius: 0 0 26px 26px;
  background: linear-gradient(140deg, #00333A 0%, #0E7C7B 52%, #2BA8A4 100%);
  box-shadow: 0 8px 24px rgba(0, 51, 58, .22);
}
.hp-deco { position: absolute; border-radius: 50%; pointer-events: none; }
.hp-deco1 { width: 190px; height: 190px; right: -60px; top: -70px; background: radial-gradient(closest-side, rgba(255, 255, 255, .16), transparent); }
.hp-deco2 { width: 150px; height: 150px; left: -55px; bottom: -70px; background: radial-gradient(closest-side, rgba(59, 184, 180, .42), transparent); }
.hp-hero-top { position: relative; z-index: 1; display: flex; gap: 16px; align-items: center; }
.hp-photo-wrap { flex-shrink: 0; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, .30); }
.hp-photo {
  display: flex; align-items: center; justify-content: center;
  width: 88px; height: 123px; border-radius: 7px; object-fit: cover;
  background: rgba(255, 255, 255, .15); color: #fff; font-size: 34px; font-weight: 700;
}
.hp-hero-info { flex: 1; min-width: 0; }
.hp-hello { font-size: 13px; color: rgba(255, 255, 255, .75); }
.hp-name { font-size: 23px; font-weight: 700; color: #fff; margin-top: 3px; }
.hp-dept { font-size: 13px; color: rgba(255, 255, 255, .85); margin-top: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.hp-chip {
  font-size: 12px; color: #fff; padding: 3px 10px; border-radius: 20px;
  background: rgba(255, 255, 255, .18);
}

/* 浮动数据概览 */
.hp-stat {
  display: flex; background: #fff; border-radius: var(--r-lg);
  margin: -26px 12px 14px; padding: 16px 6px; position: relative; z-index: 2;
  box-shadow: 0 8px 24px rgba(0, 51, 58, .12);
}
.hp-stat-cell { flex: 1; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.hp-stat-cell + .hp-stat-cell { box-shadow: -1px 0 0 var(--line); }
.hp-stat-n { font-size: 21px; font-weight: 800; color: var(--brand-700); line-height: 1; }
.hp-stat-n i { font-size: 12px; font-style: normal; color: var(--ink-3); margin-left: 2px; font-weight: 500; }
.hp-stat-l { font-size: 12px; color: var(--ink-3); }

/* 通知横幅 */
.hp-notice {
  display: flex; align-items: center; gap: 8px; margin: 0 12px 14px; padding: 11px 14px;
  background: linear-gradient(90deg, #F0FAFA, #fff); border: 1px solid var(--brand-100);
  border-radius: var(--r-md);
}
.hp-notice-ic { color: var(--brand-600); flex-shrink: 0; }
.hp-notice-txt {
  flex: 1; min-width: 0; font-size: 13px; color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hp-notice-go { color: #C0CCCC; flex-shrink: 0; }

/* 区块标题 */
.hp-sec-h {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 16px; font-weight: 700; color: var(--ink); padding: 6px 18px 10px;
}
.hp-more { font-size: 13px; color: var(--ink-3); font-weight: 400; }

/* 常用服务（白底卡片 + 彩色渐变图标） */
.hp-svc {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--r-lg); margin: 0 12px 14px; padding: 20px 6px 16px;
  box-shadow: var(--sh-1); border: 1px solid var(--line);
}
.hp-svc-item { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 4px 0; transition: transform .12s ease; }
.hp-svc-item:active { transform: scale(.92); }
.hp-svc-ic {
  width: 52px; height: 52px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 4px 10px rgba(0, 51, 58, .14);
}
.hp-svc-ic.g1 { background: linear-gradient(135deg, #4FA8E8, #3C8CE7); }
.hp-svc-ic.g2 { background: linear-gradient(135deg, #F0B65A, #E6A23C); }
.hp-svc-ic.g3 { background: linear-gradient(135deg, #F78A8A, #F56C6C); }
.hp-svc-ic.g4 { background: linear-gradient(135deg, #A785EE, #8E6CE6); }
.hp-svc-ic.g5 { background: linear-gradient(135deg, #7AB0DD, #5B9BD5); }
.hp-svc-ic.g6 { background: linear-gradient(135deg, #E0BB4B, #D4A017); }
.hp-svc-ic.g7 { background: linear-gradient(135deg, #6FCB73, #4CAF50); }
.hp-svc-ic.g8 { background: linear-gradient(135deg, #4FC9C6, #2E9E9E); }
.hp-svc-t { font-size: 12.5px; color: var(--ink-2); }

/* 最新消息列表 */
.hp-msgs {
  background: #fff; border-radius: var(--r-lg); margin: 0 12px 14px; padding: 4px 14px;
  box-shadow: var(--sh-1); border: 1px solid var(--line);
}
.hp-msg { display: flex; align-items: center; gap: 11px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.hp-msg:last-child { border-bottom: none; }
.hp-msg-dot { width: 9px; height: 9px; border-radius: 50%; background: #D5DEDE; flex-shrink: 0; }
.hp-msg-dot.on { background: var(--danger); box-shadow: 0 0 0 3px rgba(229, 72, 77, .15); }
.hp-msg-body { flex: 1; min-width: 0; }
.hp-msg-t { font-size: 15px; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-msg-time { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.hp-msg-go { color: #C0CCCC; font-size: 15px; flex-shrink: 0; }

/* ---------- 动效 ---------- */
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============ 通讯录 ============ */
.ct-search-card {
  background: #fff; border-radius: var(--r-lg); padding: 10px 12px;
  box-shadow: var(--sh-1); margin-bottom: 10px;
}
.ct-search .el-input__wrapper {
  background: var(--brand-50); border-radius: 22px; padding: 3px 14px;
  box-shadow: none;
}
.ct-search .el-input__inner { font-size: 14px; height: 34px; }
.ct-search .el-input__prefix-inner { color: var(--ink-3); margin-right: 2px; }

/* 科室可搜索下拉 */
.ct-dept-select { width: 100%; margin-top: 9px; }
.ct-dept-select .el-select__wrapper {
  background: var(--brand-50); border-radius: 22px; min-height: 36px;
  box-shadow: none; padding: 0 14px;
}
.ct-dept-select .el-select__placeholder,
.ct-dept-select .el-select__selected-item { font-size: 13.5px; }
.ct-dept-select .el-select__prefix { color: var(--ink-3); margin-right: 5px; }

.ct-count { font-size: 12.5px; color: var(--ink-3); padding: 0 4px 8px; }

.ct-empty { text-align: center; padding: 56px 0 40px; }
.ct-empty-t { font-size: 15px; color: var(--ink-2); margin-top: 14px; font-weight: 500; }
.ct-empty-s { font-size: 13px; color: var(--ink-3); margin-top: 4px; }

/* 联系人卡片 */
.ct-card {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: var(--r-lg); padding: 13px 14px;
  margin-bottom: 10px; box-shadow: var(--sh-1); animation: pageIn .25s ease;
}
.ct-ava {
  width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  box-shadow: 0 3px 8px rgba(46, 158, 158, .28);
}
.ct-info { flex: 1; min-width: 0; }
.ct-name {
  font-size: 15.5px; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 6px;
}
.ct-title {
  font-size: 11px; font-weight: 500; color: var(--brand-700);
  background: var(--brand-50); border-radius: 5px; padding: 2px 6px;
  white-space: nowrap;
}
.ct-title-nurse { color: #C2185B; background: #FDEEF2; }
.ct-meta {
  display: flex; align-items: center; gap: 4px;
  font-size: 12.5px; color: var(--ink-3); margin-top: 4px;
}
.ct-empno { margin-top: 2px; }
.ct-acts { display: flex; gap: 8px; flex-shrink: 0; }
.ct-act {
  width: 38px; height: 38px; border-radius: 12px; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform .12s ease; padding: 0;
}
.ct-act:active { transform: scale(.9); }
.ct-call {
  color: #fff; background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  box-shadow: 0 3px 8px rgba(46, 158, 158, .32);
}
.ct-mail { color: var(--brand-700); background: var(--brand-50); }

/* 滚动加载更多 */
.ct-more { text-align: center; padding: 4px 0 8px; }
.ct-more-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--ink-3); cursor: pointer;
}
.ct-more-btn:active { color: var(--brand-700); }
.ct-more-spin {
  width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid #C3D2D4; border-top-color: var(--brand-700);
  animation: ctSpin .7s linear infinite;
}
@keyframes ctSpin { to { transform: rotate(360deg); } }
.ct-more-end { font-size: 12.5px; color: var(--ink-3); letter-spacing: .5px; }

/* ---------- 电话操作面板（底部 Action Sheet） ---------- */
.ct-sheet-mask {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0, 20, 24, .45);
  display: flex; align-items: flex-end; justify-content: center;
  animation: ctMaskIn .18s ease;
}
@keyframes ctMaskIn { from { opacity: 0; } to { opacity: 1; } }
.ct-sheet {
  width: 100%; max-width: 640px; background: #fff;
  border-radius: 20px 20px 0 0; padding: 20px 16px calc(14px + env(safe-area-inset-bottom));
  animation: ctSheetUp .24s cubic-bezier(.22, .8, .3, 1);
}
@keyframes ctSheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.ct-sheet-name { text-align: center; font-size: 14px; color: var(--ink-3); }
.ct-sheet-num {
  text-align: center; font-size: 26px; font-weight: 700; color: var(--ink);
  letter-spacing: 1px; margin: 6px 0 18px;
}
.ct-sheet-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 50px; border: none; border-radius: 14px;
  font-size: 16px; font-weight: 600; color: var(--ink);
  background: var(--brand-50); cursor: pointer; text-decoration: none;
  margin-bottom: 10px;
}
.ct-sheet-btn:active { opacity: .8; }
.ct-sheet-btn:disabled { color: var(--ink-3); cursor: not-allowed; opacity: .7; }
.ct-sheet-call {
  color: #fff; background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  box-shadow: var(--sh-p);
}
.ct-sheet-cancel {
  width: 100%; height: 48px; border: none; border-radius: 14px;
  font-size: 16px; color: var(--ink-2); background: var(--bg); cursor: pointer;
}
.ct-sheet-cancel:active { opacity: .7; }
