/* 毓雅 · 移动端样式（青绿视觉 · 移动优先） */
:root {
  --primary: #17896B; --primary-grad: linear-gradient(135deg,#35B08D,#17896B);
  --primary-light: #E9F7F2; --aux: #4FA8D8; --gold: #E9A23B;
  --t-title: #1F2A37; --t-body: #3D4A5C; --t-mute: #8A97A8;
  --line: #E6EDF2; --bg: #F6F9F8; --card: #fff;
  --success: #22A06B; --warn: #E8A33D; --danger: #E05B5B;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font: 15px/1.6 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--t-body); background: var(--bg);
}

/* 登录 */
.login-view { min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg,#E9F7F2,#F6F9F8 60%,#EAF3F8); padding: 20px; }
.login-box { width: 100%; max-width: 360px; background: #fff; border-radius: 18px; padding: 34px 24px;
  box-shadow: 0 8px 30px rgba(23,137,107,.10); text-align: center; }
.logo { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; background: var(--primary-grad);
  color: #fff; font-size: 26px; display: flex; align-items: center; justify-content: center; font-weight: 600;
  line-height: 1;   /* 2026-09-17：跨字体更居中 */ }
.login-box h1 { font-size: 24px; color: var(--primary); letter-spacing: 4px;
  margin-right: -4px;   /* 抵消尾部字距（2026-09-17 居中修正） */ }
.login-box .sub { color: var(--t-mute); font-size: 13px; margin: 6px 0 22px; }
.login-box input { width: 100%; height: 46px; margin-bottom: 12px; padding: 0 14px; font-size: 15px;
  border: 1px solid var(--line); border-radius: 10px; }
.login-box input:focus { outline: none; border-color: var(--primary); }
.msg { min-height: 18px; font-size: 13px; color: var(--danger); margin-top: 8px; }
.tip { font-size: 11px; color: var(--t-mute); margin-top: 14px; line-height: 1.5; }

/* 布局 */
.app-view { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { height: 52px; background: var(--primary-grad); color: #fff; display: flex; align-items: center;
  justify-content: space-between; padding: 0 16px; position: sticky; top: 0; z-index: 10; }
.topbar .brand { font-weight: 600; letter-spacing: 2px; font-size: 16px; margin-right: -2px; }
.topbar .who { font-size: 12px; opacity: .92; }
.main { flex: 1; padding: 12px 12px 76px; overflow-y: auto; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; height: 60px; background: #fff;
  border-top: 1px solid var(--line); display: flex; z-index: 10;
  padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 11px; color: var(--t-mute); text-decoration: none; gap: 2px; }
.tabbar a i { font-size: 19px; font-style: normal; }
.tabbar a.on { color: var(--primary); }

/* 卡片列表 */
.seg { display: flex; background: #fff; border-radius: 10px; padding: 4px; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(23,137,107,.05); }
.seg button { flex: 1; height: 36px; border: none; background: transparent; border-radius: 8px;
  font-size: 13px; color: var(--t-body); font-family: inherit; }
.seg button.on { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.job { background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(23,137,107,.06); }
.job .row1 { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.job .title { font-size: 15px; font-weight: 600; color: var(--t-title); flex: 1; }
.job .meta { font-size: 12px; color: var(--t-mute); margin-top: 6px; line-height: 1.7; }
.job .actions { display: flex; gap: 8px; margin-top: 12px; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 20px; font-size: 11px; background: var(--primary-light); color: var(--primary); }
.tag.warn { background: #FDF3E3; color: var(--warn); } .tag.success { background: #E8F6EF; color: var(--success); }
.tag.danger { background: #FCEAEA; color: var(--danger); } .tag.info { background: #EAF3FB; color: var(--aux); }
.tag.gray { background: #F0F3F5; color: var(--t-mute); }
.empty { text-align: center; color: var(--t-mute); font-size: 13px; padding: 40px 0; }

/* 按钮 */
.btn { height: 44px; padding: 0 16px; border: none; border-radius: 10px; font-size: 14px;
  font-family: inherit; background: #fff; color: var(--t-body); flex: 1; }
.btn.primary { background: var(--primary-grad); color: #fff; box-shadow: 0 2px 10px rgba(23,137,107,.2); }
.btn.ghost { border: 1px solid var(--line); }
.btn.outline { border: 1px solid var(--primary); color: var(--primary); }
.btn.block { width: 100%; }
.btn.sm { height: 36px; font-size: 13px; flex: none; padding: 0 14px; }
.btn.danger { background: var(--danger); color: #fff; }
.btn:disabled { opacity: .5; }

/* 表单 */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--t-mute); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 15px; font-family: inherit; background: #fff; }
.field textarea { min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); }

/* ---------- 兜底（2026-09-15 全站 UI 体检） ---------- */
/* 兜底：不在 .field 内的独立控件（如「匿名件查询」输入框）也保持统一外观 */
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]),
select, textarea {
  width: 100%; min-height: 44px; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 15px; font-family: inherit; background: #fff;
}
input:not([type=checkbox]):not([type=radio]):focus { outline: none; border-color: var(--primary); }
/* 长链接 / 长编号不撑破卡片 */
.tiny, .muted, .tag, a { overflow-wrap: anywhere; }
input[type=range] { width: 100%; height: 44px; accent-color: var(--primary); }
input[type=file] { padding: 9px; font-size: 13px; background: #FAFDFC; }
.pct { text-align: center; font-size: 22px; font-weight: 600; color: var(--primary); }
.photo-grid { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.thumb { width: 68px; height: 68px; object-fit: cover; border-radius: 9px; border: 1px solid var(--line); }

/* 弹层 */
.sheet { position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%;
  background: rgba(31,42,55,.45); z-index: 50; display: flex; align-items: flex-end; }  /* 同上：不用 inset */
.sheet-box { width: 100%; background: #fff; border-radius: 18px 18px 0 0; max-height: 92vh;
  display: flex; flex-direction: column; animation: up .2s ease; }
@keyframes up { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet-head { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex;
  justify-content: space-between; align-items: center; font-weight: 600; color: var(--t-title); }
.sheet-head .close { background: #F0F3F5; border: none; font-size: 13px; color: var(--t-body);
  padding: 6px 12px; border-radius: 8px; font-family: inherit; }
.sheet-body { padding: 16px; overflow-y: auto; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
.drow { display: flex; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.drow .k { width: 82px; color: var(--t-mute); flex: none; }
.drow .v { flex: 1; }
.tl { border-left: 2px solid var(--primary-light); padding-left: 14px; }
.tl-item { position: relative; padding-bottom: 14px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -21px; top: 5px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--primary); }
.tl-item .t1 { font-size: 14px; color: var(--t-title); }
.tl-item .t2 { font-size: 12px; color: var(--t-mute); }
.sec { font-size: 13px; font-weight: 600; color: var(--t-title); margin: 16px 0 8px; }

/* 提示 */
.toast { position: fixed; left: 50%; top: 40%; transform: translateX(-50%); background: rgba(31,42,55,.92);
  color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 14px; z-index: 99; max-width: 80%; text-align: center; }
.toast.err { background: rgba(224,91,91,.95); }
.toast.ok { background: rgba(34,160,107,.95); }
.loading { text-align: center; color: var(--t-mute); padding: 30px 0; font-size: 14px; }

/* ---------- 工作台 / 待办 / 我的 ---------- */
.hello { font-size: 18px; font-weight: 600; color: var(--t-title); }
.hello .sub { font-size: 12px; color: var(--t-mute); font-weight: 400; margin-top: 3px; }
.sec-title { font-size: 13px; font-weight: 600; color: var(--t-title); margin: 18px 0 10px; }
.card-soft { background: #fff; border-radius: 12px; padding: 16px; font-size: 13px; color: var(--t-mute);
  box-shadow: 0 2px 8px rgba(23,137,107,.05); }
.card-soft.small { font-size: 12px; line-height: 2.2; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cell { background: #fff; border-radius: 14px; padding: 14px 4px; text-align: center;
  box-shadow: 0 2px 8px rgba(23,137,107,.06); }
.cell .ic { font-size: 24px; }
.cell .nm { font-size: 11px; color: var(--t-body); margin-top: 6px; line-height: 1.3; }
.todo { display: flex; justify-content: space-between; align-items: center; background: #fff;
  border-radius: 12px; padding: 14px; margin-bottom: 10px; border-left: 4px solid var(--primary);
  box-shadow: 0 2px 8px rgba(23,137,107,.06); }
.todo.urgent { border-left-color: var(--danger); }
.todo .tt { font-size: 14px; font-weight: 600; color: var(--t-title); }
.todo .t2 { font-size: 11px; color: var(--t-mute); font-weight: 400; margin-top: 2px; }
.todo .tc { font-size: 19px; font-weight: 600; color: var(--primary); }
.profile { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 14px;
  padding: 18px; box-shadow: 0 2px 8px rgba(23,137,107,.06); }
.profile .avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--primary-grad);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 600; }
.profile .pn { font-size: 16px; font-weight: 600; color: var(--t-title); }
.profile .pm { font-size: 12px; color: var(--t-mute); margin-top: 2px; }
.kv { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; color: var(--t-body); }
.modbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.modbar .back { background: #fff; border: 1px solid var(--line); color: var(--primary); font-size: 14px;
  font-family: inherit; padding: 7px 12px; border-radius: 10px; font-weight: 600;
  box-shadow: 0 1px 3px rgba(23,137,107,.08); }
.modbar .back:active { background: var(--primary-light); }
.modbar .mt { font-size: 16px; font-weight: 600; color: var(--t-title); }

/* 我的页折叠 */
.sec-title[onclick] { user-select: none; }
/* 状态进度条（详情用） */
.flow { display: flex; align-items: center; gap: 6px; margin: 10px 0 4px; }
.flow .step { flex: 1; text-align: center; font-size: 11px; color: var(--t-mute); }
.flow .dot2 { height: 4px; border-radius: 3px; background: #EAEFF2; margin-bottom: 6px; }
.flow .step.on .dot2 { background: var(--primary); }
.flow .step.on { color: var(--primary); font-weight: 600; }

/* ---------- 图片加载失败兜底（2026-09-16）---------- */
.thumb-miss {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 72px; min-height: 72px; padding: 6px;
  border: 1px dashed rgba(0,0,0,.12); border-radius: 10px;
  background: #FAFCFB; color: #8A97A8; font-size: 12px;
}

/* ---------- 移动端：工作台入口条 + 待办卡片（2026-09-16 · 需求100） ----------
   为什么重做：原先工作台把「待办清单」和「模块宫格」平铺在一起 → 又长又乱；
   待办页只有一行标题+数字，不够清晰。现在：
     · 工作台 = 入口条（待办 / 未读）+ 模块宫格
     · 待办页 = 紧急 / 普通两组卡片（左色条 + 图标 + 胶囊计数 + 来源） */
.wb-entry {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 8px;
  border: 1px solid rgba(0,0,0,.05);
}
.wb-entry .ei { flex: none; width: 34px; height: 34px; border-radius: 10px; background: #F1F7F5;
  display: flex; align-items: center; justify-content: center; font-size: 17px; }
.wb-entry .et { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 600; color: var(--t-title); }
.wb-entry .ec { flex: none; min-width: 24px; height: 24px; padding: 0 8px; border-radius: 12px;
  background: var(--primary); color: #fff; font-size: 12.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; }
.wb-entry .ea { flex: none; color: #C4D0DA; font-size: 13px; }
.wb-entry.alert { background: linear-gradient(135deg,#FDF3E3,#FFFBF5); border-color: #F5E3C6; }
.wb-entry.alert .ei { background: #FBEBD3; }
.wb-entry.alert .ec { background: #E0A33D; }

.sec-title .cnt { font-weight: 400; font-size: 12px; color: var(--t-mute); margin-left: 6px; }

.todo-card {
  position: relative; display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 12px; padding: 12px 12px 12px 16px; margin-bottom: 8px;
  border: 1px solid rgba(0,0,0,.05); overflow: hidden;
}
.todo-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--primary); }
.todo-card.urgent::before { background: var(--danger); }
.todo-card .ti { flex: none; width: 34px; height: 34px; border-radius: 10px; background: #F1F7F5;
  display: flex; align-items: center; justify-content: center; font-size: 17px; }
.todo-card.urgent .ti { background: #FCEAEA; }
.todo-card .tm { flex: 1 1 auto; min-width: 0; }
.todo-card .ttl { font-size: 14px; font-weight: 600; color: var(--t-title); line-height: 1.45;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.todo-card .tsrc { font-size: 11.5px; color: var(--t-mute); margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo-card .tc2 { flex: none; min-width: 26px; height: 26px; padding: 0 9px; border-radius: 13px;
  background: var(--primary); color: #fff; font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; }
.todo-card.urgent .tc2 { background: var(--danger); }
.todo-card .tar { flex: none; color: #C4D0DA; font-size: 13px; }
.todo-tip { display: flex; align-items: center; gap: 8px; background: #F2F8F6; border-radius: 10px;
  padding: 10px 12px; font-size: 12px; color: #5C6B7E; line-height: 1.6; margin-bottom: 12px; }
.badge-urgent { display: inline-block; font-size: 10.5px; font-weight: 600; color: #B23A3A;
  background: #FCEAEA; border-radius: 6px; padding: 1px 6px; margin-left: 6px; vertical-align: middle; }

/* ---------- 首页卡片信息流 + 待办内分段 + 首页设置（2026-09-16 · 需求101） ---------- */
.hc { background: #fff; border-radius: 14px; padding: 12px 14px; margin-bottom: 10px;
  border: 1px solid rgba(0,0,0,.05); }
.hc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.hc-ic { flex: none; font-size: 16px; }
.hc-name { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 600; color: var(--t-title);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-badge { flex: none; font-size: 11px; color: #8A5A00; background: #FDF3E3; border-radius: 8px; padding: 1px 7px; }
.hc-more { flex: none; font-size: 12px; color: var(--primary); font-weight: 600;
  /* 2026-09-17（需求107）：点按区仅 19px（手机体检抓到）→ 上下加内边距撑到 ≥40px，
     用负外边距抵消，排版不变 */
  padding: 12px 4px; margin: -12px 0; }
.hc-row { padding: 7px 0; border-top: 1px dashed #F0F4F3; }
.hc-row:first-of-type { border-top: none; }
.hc-t { font-size: 13.5px; color: var(--t-body); line-height: 1.5;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hc-s { font-size: 11.5px; color: var(--t-mute); margin-top: 2px; }
.hc-b { display: inline-block; font-size: 10.5px; color: #1A6E9C; background: #EAF3FB;
  border-radius: 6px; padding: 1px 6px; margin-left: 6px; vertical-align: middle; }
.hc-empty { font-size: 12.5px; color: var(--t-mute); padding: 6px 0; }

.seg { display: flex; gap: 8px; margin-bottom: 12px; }
.seg a { flex: 1; text-align: center; padding: 9px 0; border-radius: 10px; background: #fff;
  border: 1px solid rgba(0,0,0,.06); font-size: 13.5px; color: #606266; font-weight: 600; text-decoration: none; }
.seg a.on { background: var(--primary); border-color: var(--primary); color: #fff; }

.hs-row { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid #F1F5F4; }
.hs-row input { flex: none; }
.hs-nm { flex: 1 1 auto; min-width: 0; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; }
.hs-mv { flex: none; font-size: 15px; color: var(--t-mute); padding: 0 6px; text-decoration: none; }

/* 底部标签角标（需求101）：待办 + 未读合计 */
.tabbar a { position: relative; }
.tab-badge { position: absolute; top: 4px; left: 50%; margin-left: 6px;
  min-width: 16px; height: 16px; padding: 0 5px; border-radius: 8px;
  background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 600;
  line-height: 16px; text-align: center; }

/* 需求107：首页「功能入口」宫格（与内容卡片混排） */
.en-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px; margin-bottom: 10px; }
.en { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: #fff; border: 1px solid rgba(0,0,0,.05); border-radius: 14px; padding: 14px 8px;
  text-decoration: none; color: var(--t-title); min-height: 44px; }
.en-ic { font-size: 20px; line-height: 1; }
.en-nm { font-size: 12.5px; font-weight: 600; text-align: center; line-height: 1.35;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hs-ic { flex: none; width: 22px; text-align: center; font-size: 15px; }
.hs-del { flex: none; font-size: 14px; color: var(--danger); padding: 0 6px; text-decoration: none; }

/* 需求107 补充：前端新版本提示条（固定在顶部，点一下刷新） */
.ver-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  display: block; text-align: center; padding: 11px 12px;
  background: var(--primary); color: #fff; font-size: 13px; font-weight: 600;
  text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,.15); }


/* ===== 移动端「管理」区（需求123 · 方案B 两列磁贴）===== */
.adm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.adm-tile { background: #fff; border-radius: 13px; padding: 12px; display: flex; flex-direction: column; gap: 9px;
  box-shadow: 0 1px 3px rgba(28,60,52,.07); cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: transform .12s ease, box-shadow .12s ease; }
.adm-tile:active { transform: scale(.97); box-shadow: 0 1px 2px rgba(28,60,52,.12); }
.adm-tile-top { display: flex; align-items: center; justify-content: space-between; min-height: 34px; }
.adm-tile-ic { width: 34px; height: 34px; border-radius: 11px; background: #EAF5F1;
  display: flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; }
.adm-tile-nm { font-size: 14.5px; font-weight: 600; color: var(--t-1, #22322E); line-height: 1.35; }
.adm-badge { font-size: 10.5px; font-weight: 600; color: #B7791F; background: #FDF3E2;
  border-radius: 999px; padding: 2px 7px; white-space: nowrap; }
/* 两列在极窄屏（<330px）退化为单列，避免文字挤断 */
@media (max-width: 330px) { .adm-grid { grid-template-columns: 1fr; } }


/* ===== 首页卡片：可点条目 + 未读绿点（2026-09-19）===== */
.hc-row.tap { cursor: pointer; -webkit-tap-highlight-color: transparent; border-radius: 8px; }
.hc-row.tap:active { background: #F4F9F7; }
.hc-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #22B573; margin-right: 6px; vertical-align: 1px; }
.hc-arrow { float: right; color: #C2CFCB; font-size: 16px; line-height: 1.2; }

.hc-head.tap { cursor: pointer; -webkit-tap-highlight-color: transparent; border-radius: 8px;
  /* ★ 2026-09-20：点击区 ≥40px（体检：原 26px 太小） */
  min-height: 40px; padding: 4px 6px; margin: -4px -6px 4px; }
.hc-head.tap:active { background: #F4F9F7; }
.hc-head.tap .hc-name { text-decoration: none; }
