/* ===== 德二联合站巡检管家 · 主题样式 ===== */
/* 配色：红 #C8161D / 黄 #F2B600 / 蓝 #1E5BB8 / 白 #FFFFFF / 灰 #5A5A5A */
:root {
  --red: #C8161D;
  --red-dark: #9e1016;
  --yellow: #F2B600;
  --blue: #1E5BB8;
  --blue-d: #17488f;
  --white: #ffffff;
  --gray: #5a5a5a;
  --gray-l: #ededed;
  --gray-ll: #f6f7f9;
  --ink: #23272e;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  --tab-h: 64px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--gray-ll);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}
#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--gray-ll);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ===== 顶部栏 ===== */
.topbar {
  height: 54px;
  background: linear-gradient(90deg, var(--red), #e23b2e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
}
.topbar-title { font-size: 18px; font-weight: 700; }
.topbar-right { display: flex; gap: 6px; }
.icon-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 42px; height: 42px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.icon-btn.danger { background: rgba(255, 255, 255, 0.15); color: #ffd9d9; }

/* ===== 屏幕容器 ===== */
.screen {
  flex: 1;
  padding: 14px;
  padding-bottom: calc(var(--tab-h) + 14px);
  overflow-y: auto;
}

/* ===== 按钮 ===== */
.btn {
  border: none;
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .05s ease, filter .15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-block { width: 100%; }
.btn { padding: 15px 18px; font-size: 17px; min-height: 50px; }
.btn-sm { padding: 9px 12px; font-size: 14px; min-height: 38px; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { filter: brightness(1.05); }
.btn-success { background: #1f9d55; color: #fff; }
.btn-success:hover { filter: brightness(1.05); }
.btn-info { background: var(--blue); color: #fff; }
.btn-info:hover { filter: brightness(1.05); }
.btn-warning { background: var(--yellow); color: #4a3500; }
.btn-warning:hover { filter: brightness(1.05); }
.btn-outline { background: #fff; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline:hover { background: #f1f6ff; }
.btn-danger { background: #a81818; color: #fff; }
.btn-danger:hover { filter: brightness(1.05); }
.btn-ghost { background: #fff; color: var(--blue); border: 1.5px solid var(--gray-l); }
.btn-upload { background: var(--yellow); color: #4a3500; width: 100%; }

/* ===== 卡片 / 表单 ===== */
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: var(--shadow);
}
.card h2 { margin: 0 0 14px; font-size: 20px; color: var(--ink); }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 14px; color: var(--gray); margin-bottom: 6px; font-weight: 600; }
.reqflag { color: var(--red); font-weight: 400; font-size: 13px; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1.5px solid var(--gray-l);
  border-radius: 10px;
  padding: 12px 12px;
  font-size: 16px;
  background: #fff;
  color: var(--ink);
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); }
.field textarea { resize: vertical; }
.switch-row { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-size: 15px; }
.switch-row input { width: 18px; height: 18px; }

/* ===== 登录 / 注册 ===== */
.auth-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px 20px 40px;
  background: linear-gradient(180deg, var(--red) 0%, #e23b2e 38%, var(--gray-ll) 38%);
}
.brand { text-align: center; color: #fff; margin-bottom: 18px; }
.brand-logo {
  width: 72px; height: 72px; margin: 0 auto 10px;
  background: var(--yellow); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.brand h1 { font-size: 26px; margin: 0; letter-spacing: 1px; }
.brand-sub { margin: 6px 0 0; opacity: 0.92; font-size: 14px; }
.switch { text-align: center; margin-top: 14px; color: var(--gray); }
.switch a { color: var(--blue); font-weight: 600; }
.demo-tip { margin-top: 12px; font-size: 12.5px; color: var(--gray); background: var(--gray-l); padding: 8px 10px; border-radius: 8px; }

/* ===== 底部导航 ===== */
.tabbar {
  position: fixed;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  height: var(--tab-h);
  background: #fff;
  border-top: 1px solid var(--gray-l);
  display: flex;
  z-index: 30;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
}
.tab {
  flex: 1;
  border: none;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--gray);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 5px 0;
}
.tab svg { width: 28px; height: 28px; }
.tab.active { color: var(--red); }
.tab.active svg { stroke-width: 2.4; }

/* ===== 主页 ===== */
.home-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.hello { font-size: 19px; font-weight: 700; }
.home-head .sub { font-size: 13px; color: var(--gray); margin-top: 2px; }
.shift-badge { color: var(--blue); font-weight: 700; }
.mode-pill { background: var(--blue); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 20px; }
.chips { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.chip { border: 1.5px solid var(--gray-l); background: #fff; border-radius: 20px; padding: 7px 14px; font-size: 14px; color: var(--gray); cursor: pointer; }
.chip.active { background: var(--red); color: #fff; border-color: var(--red); }

.feed { display: flex; flex-direction: column; gap: 12px; }
.feed-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; gap: 12px; padding: 12px; cursor: pointer;
}
.fc-thumb { width: 84px; height: 84px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--gray-l); display: flex; align-items: center; justify-content: center; color: var(--gray); }
.fc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fc-main { flex: 1; min-width: 0; }
.fc-top { display: flex; align-items: center; gap: 8px; }
.fc-shift { font-size: 12px; color: var(--blue); background: #eaf1fb; padding: 2px 8px; border-radius: 10px; }
.fc-title { font-weight: 700; margin: 4px 0 2px; font-size: 15.5px; }
.fc-desc { font-size: 13.5px; color: var(--gray); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-meta { font-size: 12px; color: #9aa0a6; margin-top: 4px; }

.tag { font-size: 12px; padding: 2px 9px; border-radius: 10px; color: #fff; font-weight: 600; }
.tag-inspection { background: var(--blue); }
.tag-construction { background: var(--yellow); color: #4a3500; }
.tag-hazard { background: var(--red); }

.empty { text-align: center; color: var(--gray); padding: 40px 10px; }
.loading-text { text-align: center; color: var(--gray); padding: 20px; }

/* ===== 表单通用 ===== */
.form { display: flex; flex-direction: column; gap: 4px; }
.photo-box { margin: 10px 0; }
.photo-label { font-size: 14px; color: var(--gray); font-weight: 600; margin-bottom: 8px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.photo-actions { display: flex; gap: 10px; }
.photo-actions .btn { flex: 1; justify-content: center; }
.photo-item { position: relative; border-radius: 10px; overflow: hidden; background: var(--gray-l); aspect-ratio: 1; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-time { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 11px; padding: 2px 4px; text-align: center; }
.photo-del { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border: none; border-radius: 50%; background: rgba(0, 0, 0, 0.55); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* ===== 重点事项 ===== */
.key-box { background: #fff7e6; border: 1px solid #ffe2a8; border-radius: 10px; padding: 10px 12px; margin: 4px 0 12px; }
.key-title { font-size: 14px; font-weight: 700; color: #8a5a00; margin-bottom: 6px; }
.key-hints { display: flex; flex-wrap: wrap; gap: 6px; }
.key-hint { background: #fff; border: 1px solid #ffd98f; color: #8a5a00; border-radius: 16px; padding: 4px 10px; font-size: 13px; }
.check { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 14.5px; }
.check input { width: 18px; height: 18px; }

/* ===== 我的 ===== */
.me { display: flex; flex-direction: column; gap: 14px; }
.me-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: flex; align-items: center; gap: 16px; }
.me-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--gray-l); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; color: var(--gray); cursor: pointer; flex-shrink: 0; }
.me-name { font-size: 18px; font-weight: 700; }
.me-phone { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 600; text-decoration: none; margin-top: 4px; }
.me-role { font-size: 13px; color: var(--gray); margin-top: 4px; }
.menu-group { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; border: none; background: none; padding: 15px 16px; font-size: 16px; color: var(--ink); cursor: pointer; border-bottom: 1px solid var(--gray-l); text-align: left; }
.menu-item:last-child { border-bottom: none; }
.menu-item svg { color: var(--red); }

/* ===== 列表（用户 / 巡检点）===== */
.list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.list-row { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.lr-info { flex: 1; min-width: 0; }
.lr-name { font-weight: 700; font-size: 15.5px; }
.lr-role { font-size: 12px; color: #fff; background: var(--blue); padding: 1px 7px; border-radius: 8px; margin-left: 4px; }
.lr-sub { font-size: 12.5px; color: var(--gray); margin-top: 3px; }
.lr-actions { display: flex; align-items: center; gap: 8px; }
.role-sel { border: 1.5px solid var(--gray-l); border-radius: 8px; padding: 7px 8px; font-size: 14px; background: #fff; }
.post-group { background: #fff; border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.post-group-title { background: var(--blue); color: #fff; font-weight: 700; padding: 9px 14px; font-size: 15px; }
.post-group .list-row { border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--gray-l); }
.post-group .list-row:last-child { border-bottom: none; }

/* 巡检点列表：编辑/删除入口更明显 */
.point-row { align-items: flex-start; gap: 12px; padding: 14px 12px; }
.point-actions { display: flex; flex-direction: column; gap: 8px; min-width: 78px; }
.point-actions .btn { width: 100%; }
.point-keys-row {
  display: flex; align-items: flex-start; gap: 6px;
  background: #f8faff; border: 1.5px solid #e1ecff; border-radius: 10px;
  padding: 8px 10px; margin-top: 8px;
}
.point-keys-row .pk-label { color: var(--blue); font-weight: 700; font-size: 13px; white-space: nowrap; }
.point-keys-row .pk-tags { flex: 1; font-size: 13px; color: var(--gray); line-height: 1.45; }
.point-keys-row .btn { margin-left: 6px; white-space: nowrap; }

/* ===== 详情 ===== */
.detail { display: flex; flex-direction: column; gap: 12px; }
.detail-head { display: flex; align-items: center; gap: 8px; }
.detail-point { font-weight: 700; font-size: 16px; }
.detail-meta { font-size: 13px; color: var(--gray); }
.detail-desc { background: #fff; border-radius: 12px; padding: 14px; box-shadow: var(--shadow); white-space: pre-wrap; font-size: 15px; }
.detail-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.detail-photos figure { margin: 0; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.detail-photos img { width: 100%; display: block; }
.detail-photos figcaption { font-size: 12px; color: var(--gray); text-align: center; padding: 4px; }

/* ===== 首次选岗 ===== */
.avatar-pick { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 6px 0 14px; cursor: pointer; }
.avatar-img { width: 84px; height: 84px; border-radius: 50%; background: var(--gray-l); display: flex; align-items: center; justify-content: center; color: var(--gray); font-size: 34px; background-size: cover; background-position: center; }
.post-pick { display: flex; gap: 10px; margin-bottom: 14px; }
.post-opt { flex: 1; border: 2px solid var(--gray-l); background: #fff; border-radius: 12px; padding: 16px 0; font-size: 16px; font-weight: 700; color: var(--gray); cursor: pointer; }
.post-opt.active { border-color: var(--red); color: var(--red); background: #fff3f3; }

/* ===== Toast ===== */
.toast {
  position: fixed; left: 50%; top: 72px; transform: translateX(-50%) translateY(-12px);
  background: rgba(35, 39, 46, 0.94); color: #fff; padding: 10px 18px; border-radius: 22px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: all .2s ease; z-index: 100; max-width: 90%;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-error { background: var(--red); }
.toast-success { background: #1f9d55; }

/* ===== Modal ===== */
#modal { position: fixed; inset: 0; z-index: 200; display: none; }
#modal.open { display: block; }
.modal-mask { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); }
.modal-card {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: 480px; background: #fff; border-radius: 16px 16px 0 0;
  padding: 18px; animation: slideUp .22s ease; max-height: 86vh; overflow-y: auto;
}
@keyframes slideUp { from { transform: translateX(-50%) translateY(40px); } to { transform: translateX(-50%) translateY(0); } }
.modal-head { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.modal-body { margin-bottom: 14px; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { flex: 1; }

/* ===== 加载遮罩 ===== */
.loading-mask { position: fixed; inset: 0; background: rgba(255, 255, 255, 0.7); display: none; align-items: center; justify-content: center; flex-direction: column; gap: 12px; z-index: 300; }
.loading-spin { width: 38px; height: 38px; border: 4px solid var(--gray-l); border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; }
.loading-text { color: var(--gray); font-size: 14px; }
@keyframes spin { to { transform: rotate(360deg); } }

.muted { color: var(--gray); font-size: 13.5px; }

/* ===== 逾期提醒横幅 ===== */
.overdue-banner {
  display: flex; align-items: center; gap: 10px;
  background: #fff3f3; border: 1.5px solid #ffc9c9; border-left: 5px solid var(--red);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 12px;
}
.ob-icon { color: var(--red); display: flex; }
.ob-text { flex: 1; font-size: 14px; color: var(--ink); }
.ob-text b { color: var(--red); }
.ob-btn { border: none; background: var(--red); color: #fff; border-radius: 18px; padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
.ob-label { font-weight: 700; color: var(--red); }

/* ===== 岗位轮次设置（预览 / 巡检点说明） ===== */
.rounds-preview { background: #eef5ff; border: 1.5px solid #cfe0ff; border-radius: 12px; padding: 10px 12px; font-size: 13px; color: var(--ink); line-height: 1.6; margin-top: 4px; }
.rounds-preview b { color: var(--blue); }
.rounds-note { background: #f4f8ff; border: 1.5px solid #dbe8ff; border-radius: 12px; padding: 10px 12px; font-size: 13px; color: var(--ink); line-height: 1.6; }
.rounds-note b { color: var(--blue); }
.rounds-note.locked { background: #fff6e6; border-color: #ffd79a; }
.rounds-note.locked b { color: #c8730a; }

/* ===== 巡检超时提醒弹窗 ===== */
.rem-tip { font-size: 14px; color: var(--ink); margin: 0 0 8px; }
.rem-list { margin: 0; padding-left: 18px; }
.rem-list li { font-size: 14px; color: var(--ink); margin-bottom: 6px; line-height: 1.5; }
.rem-list b { color: var(--red); }

/* ===== 巡检路线卡片（首页） ===== */
.route-card {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(90deg, #fff, #fff7e6);
  border: 1.5px solid #ffe2a8; border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; cursor: pointer;
}
.rc-left { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rc-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; color: #8a5a00; }
.rc-sub { font-size: 13px; color: var(--gray); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-prog { font-size: 22px; font-weight: 800; color: var(--red); white-space: nowrap; }
.rc-prog span:last-child { color: var(--gray); font-size: 16px; }

/* ===== 巡检路线详情 ===== */
.route-post-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.route-post-tab { border: 1.5px solid var(--gray-l); background: #fff; border-radius: 20px; padding: 7px 14px; font-size: 14px; color: var(--gray); cursor: pointer; }
.route-post-tab.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.route-list { position: relative; padding-left: 30px; }
.route-list::before { content: ''; position: absolute; left: 6px; top: 10px; bottom: 26px; width: 3px; background: var(--gray-l); border-radius: 2px; }
.route-node { position: relative; background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 12px 14px; margin-bottom: 14px; }
.route-node::after {
  content: ''; position: absolute; left: -25px; top: 20px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--gray-l); border: 3px solid #fff;
}
.route-node.done::after { background: #1f9d55; }
.route-node.overdue::after { background: var(--red); }
.route-node.pending::after { background: var(--yellow); }
.rn-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rn-name { font-weight: 700; font-size: 16px; }
.rn-status { font-size: 12px; padding: 2px 9px; border-radius: 10px; font-weight: 600; white-space: nowrap; }
.rn-status.done { background: #e6f7ee; color: #1f9d55; }
.rn-status.overdue { background: #fff3f3; color: var(--red); }
.rn-status.pending { background: #fff8e6; color: #8a5a00; }
.rn-meta { font-size: 12.5px; color: var(--gray); margin-top: 4px; }
.rn-meta2 { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--gray); margin-top: 6px; }
.rn-meta2 b { color: var(--ink); font-weight: 600; }
.rn-meta2 .ps-next { color: var(--blue); }
.rn-meta2 .ps-done { color: #1f9d55; }
.rn-meta2 .ps-over { color: var(--red); }
.rn-keys { font-size: 13px; color: var(--gray); margin-top: 6px; }
.rn-actions { margin-top: 10px; }
.rn-actions .btn { padding: 9px 14px; font-size: 14px; }

/* 巡检打卡页：巡检点「上次完成 / 下次计划」标注 */
.point-status { background: #f3f7ff; border: 1.5px solid #d4e3ff; border-radius: 12px; padding: 10px 12px; margin: 4px 0 2px; }
.ps-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; padding: 3px 0; }
.ps-label { color: var(--gray); }
.ps-val { font-weight: 600; color: var(--ink); }
.ps-val.ps-next { color: var(--blue); }
.ps-val.ps-done { color: #1f9d55; }

/* ===== 实时巡检概览（首页 5 行） ===== */
.home-dash { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; }
.dash-title { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 6px; font-weight: 700; font-size: 15px; color: var(--ink); }
.dash-live { font-size: 12px; color: #1f9d55; font-weight: 600; }
.dash-row { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-top: 1px solid var(--gray-l); cursor: pointer; background: #fff; }
.dash-row:active { background: var(--gray-ll); }
.dash-row.dash-row-over { background: #fff6f6; }
.dash-ico { width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; }
.dash-ico-t-inspection { background: var(--blue); }
.dash-ico-t-construction { background: var(--yellow); color: #4a3500; }
.dash-ico-t-hazard { background: var(--red); }
.dash-main { flex: 1; min-width: 0; }
.dash-label { font-weight: 700; font-size: 15.5px; color: var(--ink); }
.dash-sub { font-size: 12.5px; color: var(--gray); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-metric { font-size: 14px; font-weight: 700; text-align: right; white-space: nowrap; padding-left: 8px; }
.dash-metric.ok { color: #1f9d55; }
.dash-metric.over { color: var(--red); }
.dash-metric.warn { color: #8a5a00; }
.dash-metric.none { color: var(--gray); }
.dash-arrow { color: #c4c8cd; display: flex; }
.dash-arrow svg { transform: rotate(180deg); }
/* 概览底部：合并原「今日巡检路线」卡，显示总进度 + 查看完整路线入口 */
.dash-foot { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-top: 1.5px dashed var(--gray-l); cursor: pointer; background: linear-gradient(0deg,#fafbff,#fff); }
.dash-foot:active { background: var(--gray-ll); }
.df-main { flex: 1; min-width: 0; }
.df-label { font-weight: 700; font-size: 14px; color: var(--ink); }
.df-sub { font-size: 12.5px; color: var(--gray); margin-top: 2px; }
.df-sub.df-over { color: var(--red); font-weight: 600; }
.df-go { font-size: 13px; font-weight: 600; color: var(--blue); white-space: nowrap; display: flex; align-items: center; gap: 4px; }

/* 安全标语横幅：红色主题 + 微光扫过 + 呼吸缩放 */
.safety-banner {
  margin: 18px 14px 30px;
  padding: 16px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #C8161D 0%, #e53935 55%, #C8161D 100%);
  background-size: 200% 200%;
  color: #fff;
  text-align: center;
  box-shadow: 0 6px 18px rgba(200, 22, 29, 0.22);
  position: relative;
  overflow: hidden;
  animation: safetyPulse 2.8s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.safety-banner::before,
.safety-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: skewX(-20deg);
  animation: safetyShine 3.5s ease-in-out infinite;
}
.safety-banner::after { animation-delay: 1.75s; }
.safety-line {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}
.safety-ico { display: flex; }
.safety-text {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 2px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
@keyframes safetyPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 6px 18px rgba(200, 22, 29, 0.22); }
  50% { transform: scale(1.015); box-shadow: 0 9px 24px rgba(200, 22, 29, 0.32); }
}
@keyframes safetyShine {
  0% { left: -60%; }
  40%, 100% { left: 160%; }
}

/* ===== 分类记录列表（点开概览行） ===== */
.cat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cat-back { width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1.5px solid var(--gray-l); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.cat-title { flex: 1; font-size: 18px; font-weight: 700; }
.cat-count { font-size: 13px; color: var(--gray); background: #fff; border: 1.5px solid var(--gray-l); border-radius: 20px; padding: 4px 12px; white-space: nowrap; }
