* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, "Microsoft YaHei", "PingFang SC", sans-serif; background: #f0f2f5; color: #333; font-size: 14px; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

/* 登录页 */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #4f7cf7 0%, #37b3f8 100%); padding: 16px; }
.login-box { background: #fff; border-radius: 14px; padding: 36px 32px; width: 100%; max-width: 380px;
  box-shadow: 0 12px 40px rgba(0,0,0,.18); }
.login-box h1 { font-size: 22px; text-align: center; margin-bottom: 6px; color: #1f2d3d; }
.login-box .sub { text-align: center; color: #909399; margin-bottom: 26px; font-size: 13px; }
.login-box .demo-tip { margin-top: 18px; background: #f4f7ff; border-radius: 8px; padding: 10px 12px;
  font-size: 12px; color: #5a6a85; line-height: 1.9; }

/* 表单 */
.form-item { margin-bottom: 16px; }
.form-item label { display: block; margin-bottom: 6px; color: #606266; font-weight: 500; }
input[type=text], input[type=password], input[type=date], input[type=time], input[type=number],
select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #dcdfe6; border-radius: 8px; font-size: 14px;
  outline: none; background: #fff; font-family: inherit;
}
input:focus, select:focus, textarea:focus { border-color: #4f7cf7; }
textarea { resize: vertical; min-height: 90px; }

.btn { display: inline-block; padding: 9px 18px; border: none; border-radius: 8px; background: #4f7cf7;
  color: #fff; font-size: 14px; cursor: pointer; text-align: center; transition: .15s; }
.btn:hover { background: #3d6ae8; text-decoration: none; }
.btn-block { display: block; width: 100%; padding: 12px; font-size: 15px; }
.btn-sm { padding: 5px 12px; font-size: 13px; border-radius: 6px; }
.btn-green { background: #10b981; } .btn-green:hover { background: #0ea572; }
.btn-orange { background: #f59e0b; } .btn-orange:hover { background: #dc8c08; }
.btn-red { background: #ef4444; } .btn-red:hover { background: #dc2626; }
.btn-gray { background: #9ca3af; } .btn-gray:hover { background: #6b7280; }
.btn-outline { background: #fff; color: #4f7cf7; border: 1px solid #4f7cf7; }
.btn-outline:hover { background: #f0f5ff; }
.btn-link-danger { background: transparent; color: #ef4444; border: 0; cursor: pointer; text-decoration: underline; }
.btn-link-danger:hover { color: #dc2626; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* 主体布局 */
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 200px; background: #1f2d3d; color: #c8d0e0; flex-shrink: 0; }
.sidebar .logo { padding: 20px 18px; font-size: 17px; font-weight: 700; color: #fff; border-bottom: 1px solid #31415a; }
.sidebar .logo small { display: block; font-size: 11px; color: #7a8aa5; font-weight: 400; margin-top: 3px; }
.sidebar a { display: block; padding: 13px 20px; color: #c8d0e0; font-size: 14px; border-left: 3px solid transparent; }
.sidebar a:hover { background: #2a3a52; text-decoration: none; }
.sidebar a.active { background: #2a3a52; color: #fff; border-left-color: #4f7cf7; }
.sidebar a .nav-badge { display: inline-block; margin-left: 8px; background: #ef4444; color: #fff;
  font-size: 11px; line-height: 1; padding: 3px 6px; border-radius: 10px; vertical-align: middle; }
.sidebar .group-title { padding: 16px 20px 6px; font-size: 11px; color: #6b7a94; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 56px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.06); display: flex;
  align-items: center; justify-content: space-between; padding: 0 24px; }
.topbar .title { font-size: 16px; font-weight: 600; }
.topbar .user { color: #606266; font-size: 13px; }
.topbar .user b { color: #1f2d3d; }
.content { padding: 20px 24px; flex: 1; }

/* 卡片 & 统计块 */
.card { background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.06); margin-bottom: 18px; }
.card h3 { font-size: 15px; margin-bottom: 16px; color: #1f2d3d; display: flex; align-items: center; gap: 8px; }
/* 可折叠卡片 */
.card-toggle { cursor: pointer; user-select: none; margin: -20px -20px 0; padding: 16px 20px; border-bottom: 1px solid transparent; }
.card-toggle h3 { margin-bottom: 0; justify-content: space-between; }
.card-toggle:active { background: #f8fafc; }
.card-toggle .toggle-arrow { font-size: 12px; color: #8a94a6; transition: transform .2s; }
.card-toggle.collapsed .toggle-arrow { transform: rotate(-90deg); }
.card-toggle.collapsed { border-bottom-color: #eef1f7; }
.card-body { margin-top: 16px; }
.card-toggle.collapsed + .card-body { display: none; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 18px; }
.stat-box { background: #fff; border-radius: 10px; padding: 18px 20px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.stat-box .num { font-size: 30px; font-weight: 700; margin: 6px 0 2px; }
.stat-box .label { color: #8a94a6; font-size: 13px; }
.stat-box .foot { font-size: 12px; color: #a0a8b8; }
.c-blue { color: #4f7cf7; } .c-green { color: #10b981; } .c-red { color: #ef4444; }
.c-orange { color: #f59e0b; } .c-gray { color: #909399; }

/* 表格 */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; background: #fff; }
table.data th, table.data td { padding: 11px 12px; text-align: left; border-bottom: 1px solid #eef0f4; font-size: 13.5px; white-space: nowrap; }
table.data th { background: #f7f9fc; color: #5a6a85; font-weight: 600; }
table.data tr:hover td { background: #fafcff; }
table.data td.wrap { white-space: normal; min-width: 220px; }

/* 徽章 */
.tag { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; line-height: 1.7; }
.tag-green { background: #e7f8f1; color: #0e9f6e; }
.tag-red { background: #fdeaea; color: #e02424; }
.tag-orange { background: #fdf3e1; color: #c47c10; }
.tag-gray { background: #f0f1f4; color: #8a94a6; }
.tag-blue { background: #e8effe; color: #2563eb; }

/* 进度条 */
.progress { background: #eef1f6; border-radius: 20px; height: 10px; width: 130px; overflow: hidden; display: inline-block; vertical-align: middle; }
.progress > i { display: block; height: 100%; border-radius: 20px;
  background: linear-gradient(90deg, #4f7cf7, #37b3f8); }
.progress-text { font-size: 12px; color: #606266; margin-left: 7px; }

/* 筛选条 */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 16px; }
.filter-bar .form-item { margin: 0; }
.filter-bar select, .filter-bar input { width: auto; min-width: 130px; }

/* 打卡页 */
.clock-hero { text-align: center; padding: 10px 0 4px; }
.clock-time { font-size: 44px; font-weight: 700; letter-spacing: 2px; color: #1f2d3d; }
.clock-date { color: #8a94a6; margin: 4px 0 18px; }
.clock-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 460px; margin: 0 auto; }
.clock-btn { padding: 22px 10px; border-radius: 14px; border: 2px solid #e5e9f2; background: #fff; cursor: pointer;
  font-size: 16px; font-weight: 600; color: #4b5568; transition: .15s; }
.clock-btn .ico { font-size: 28px; display: block; margin-bottom: 8px; }
.clock-btn small { display: block; font-weight: 400; color: #9aa3b5; margin-top: 5px; font-size: 12px; }
.clock-btn.on { border-color: #10b981; background: #f0fbf7; color: #0e9f6e; }
.clock-btn.go { border-color: #f59e0b; }
.clock-btn:disabled { opacity: .55; cursor: not-allowed; }
.clock-result { max-width: 460px; margin: 14px auto 0; font-size: 13px; color: #5a6a85; line-height: 1.9; text-align: left;
  background: #f7f9fc; border-radius: 10px; padding: 12px 16px; display: none; }

/* 截图缩略图 */
.thumb { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid #eef0f4; cursor: pointer; margin: 2px; }
.upload-box { border: 2px dashed #c8d0e0; border-radius: 10px; padding: 24px; text-align: center; color: #8a94a6;
  cursor: pointer; transition: .15s; }
.upload-box:hover { border-color: #4f7cf7; color: #4f7cf7; background: #fafcff; }
.preview-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.preview-item { position: relative; }
.preview-item img { width: 90px; height: 90px; object-fit: cover; border-radius: 8px; }
.preview-item .del { position: absolute; top: -8px; right: -8px; background: rgba(0,0,0,.6); color: #fff;
  border-radius: 50%; width: 20px; height: 20px; line-height: 18px; text-align: center; cursor: pointer; font-size: 12px; }

/* 弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 99; display: none;
  align-items: center; justify-content: center; padding: 16px; }
.modal-mask.show { display: flex; }
.modal { background: #fff; border-radius: 12px; padding: 24px; width: 100%; max-width: 430px; }
.modal h3 { margin-bottom: 16px; }
.modal .btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.img-viewer { position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 100; display: none;
  align-items: center; justify-content: center; cursor: zoom-out; }
.img-viewer.show { display: flex; }
.img-viewer img { max-width: 94%; max-height: 94%; border-radius: 6px; }

.toast { position: fixed; top: 24px; left: 50%; transform: translateX(-50%); background: #1f2d3d; color: #fff;
  padding: 11px 22px; border-radius: 8px; z-index: 200; font-size: 14px; opacity: 0; transition: .25s; pointer-events: none; }
.toast.show { opacity: .95; }
.toast.err { background: #e02424; }

/* 指标数据填空 */
.metric-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.metric-field { display: flex; align-items: center; gap: 8px; background: #f7f9fc; border: 1px solid #eef0f4;
  border-radius: 8px; padding: 8px 12px; }
.metric-field .mf-name { font-size: 13.5px; color: #4b5568; white-space: nowrap; }
.metric-field input { flex: 1; min-width: 0; width: 60px; padding: 6px 8px; text-align: right; }
.metric-field .mf-unit { color: #9aa3b5; font-size: 13px; }

/* 排行榜样式 */
.rank-list { list-style: none; }
.rank-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f2f4f8; }
.rank-list li:last-child { border-bottom: none; }
.rank-no { width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 50%;
  background: #eef1f6; color: #8a94a6; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.rank-no.gold { background: #fef3c7; color: #b45309; }
.rank-no.silver { background: #e5e7eb; color: #4b5563; }
.rank-no.bronze { background: #fde2c8; color: #b45309; }
.rank-name { width: 70px; font-weight: 600; flex-shrink: 0; }
.rank-bar { flex: 1; background: #eef1f6; border-radius: 6px; height: 18px; overflow: hidden; min-width: 60px; }
.rank-bar > i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg,#4f7cf7,#37b3f8); }
.rank-val { font-weight: 700; color: #1f2d3d; min-width: 70px; text-align: right; font-size: 13.5px; }
.rank-val small { color: #9aa3b5; font-weight: 400; }

/* 顶部滚动公告 */
.notice-bar { display: flex; align-items: center; gap: 10px; padding: 7px 20px;
  background: linear-gradient(90deg, #eef4ff, #f0fbf6); border-bottom: 1px solid #e8ecf4; min-height: 34px; }
.nb-icon { font-size: 16px; flex-shrink: 0; }
.nb-viewport { flex: 1; overflow: hidden; height: 20px; }
.nb-list { list-style: none; margin: 0; padding: 0; }
.nb-list li { height: 20px; line-height: 20px; font-size: 13.5px; color: #4b5568;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.muted { color: #9aa3b5; font-size: 12px; }
.flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mt10 { margin-top: 10px; } .mt16 { margin-top: 16px; }
.chart { width: 100%; height: 300px; }
.chart-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; }
@media (max-width: 900px) { .chart-grid { grid-template-columns: 1fr; } }

/* 底部导航栏（员工端手机版） */
.bottom-nav { display: none; }

/* 手机适配 */
@media (max-width: 760px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; display: flex; overflow-x: auto; }
  .sidebar .logo { display: none; }
  .sidebar .group-title { display: none; }
  .sidebar a { white-space: nowrap; border-left: none; border-bottom: 3px solid transparent; padding: 12px 14px; }
  .sidebar a.active { border-bottom-color: #4f7cf7; }
  .content { padding: 14px; }
  .clock-btns { grid-template-columns: 1fr; }

  /* 员工端：顶部 sidebar 隐藏，启用底部固定栏 */
  .layout.role-employee .sidebar { display: none; }
  .layout.role-employee .bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: #fff; border-top: 1px solid #eef0f4;
    padding-bottom: calc(env(safe-area-inset-bottom) + 6px);
  }
  .layout.role-employee .bottom-nav .bn-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 9px 0 7px; color: #8a94a6; font-size: 12px; text-decoration: none;
    transition: color .15s;
  }
  .layout.role-employee .bottom-nav .bn-ico { width: 22px; height: 22px; margin-bottom: 3px; }
  .layout.role-employee .bottom-nav .bn-txt { font-size: 12px; }
  .layout.role-employee .bottom-nav .bn-item.active { color: #4f7cf7; }
  /* "提交"按钮：纯色填充背景，简单突出 */
  .layout.role-employee .bottom-nav .bn-submit {
    background: #4f7cf7; color: #fff;
  }
  .layout.role-employee .bottom-nav .bn-submit .bn-txt { color: #fff; font-weight: 600; }
  .layout.role-employee .content { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  /* topbar 标题在手机上对员工可见即可 */
}

/* 任务通知 */
.task-item { padding: 10px 0; border-bottom: 1px solid #eef1f6; }
.task-item:last-child { border-bottom: none; }
.task-item .flex { gap: 10px; }

/* 消息未读角标（底部导航"消息"按钮） */
.bn-item { position: relative; }
.bn-item .bn-dot {
  position: absolute; top: 5px; left: calc(50% + 4px); min-width: 16px; height: 16px;
  padding: 0 4px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 700;
  border-radius: 8px; line-height: 16px; text-align: center; box-shadow: 0 0 0 2px #fff;
}

/* 消息列表：未读点 / 已读按钮 / 点击看详情 */
.msg-item { display: flex; gap: 10px; padding: 14px 14px 14px 8px; border-bottom: 1px solid #eef1f6; cursor: pointer; align-items: flex-start; }
.msg-item:last-child { border-bottom: none; }
.msg-item:hover { background: #f8fafc; }
.msg-item.is-unread { background: #f6f9ff; }
.msg-dot { width: 8px; height: 8px; border-radius: 50%; background: #2563eb; margin-top: 9px; flex-shrink: 0; }
.msg-read-btn { flex-shrink: 0; align-self: center; background: #e8effe; color: #2563eb; }
.msg-read-btn.read { background: #f0f1f4; color: #8a94a6; }

/* 打卡/日报保存后的提醒弹窗 */
.tip-list { display: flex; flex-direction: column; gap: 8px; }
.tip-row { background: #f7f9fc; border-left: 3px solid #4f7cf7; border-radius: 8px; padding: 10px 12px;
  font-size: 13.5px; line-height: 1.7; color: #333c52; }
/* 成功结果首行：绿色加粗 */
.tip-row.tip-ok { background: #f0fbf5; border-left-color: #10b981; color: #0f7a4d;
  font-weight: 600; font-size: 15px; text-align: center; padding: 12px; }

/* 打卡成功结果框：层级高于地图和进行中遮罩 */
#tipModal.modal-mask { z-index: 9200; }

/* 打卡进行中遮罩：点击打卡后显示，不自动消失，直到成功/失败 */
.clock-loading { position: fixed; inset: 0; z-index: 9000; background: rgba(0,0,0,.45);
  display: none; align-items: center; justify-content: center; }
.clock-loading.show { display: flex; }
.cl-card { width: 200px; background: #fff; border-radius: 16px; padding: 28px 20px 24px;
  text-align: center; box-shadow: 0 12px 40px rgba(0,0,0,.18); }
.cl-spinner { width: 42px; height: 42px; margin: 0 auto 16px; border-radius: 50%;
  border: 3px solid #e3e9f5; border-top-color: #4f7cf7; animation: clSpin .8s linear infinite; }
@keyframes clSpin { to { transform: rotate(360deg); } }
.cl-text { font-size: 16px; font-weight: 600; color: #1f2937; }
.cl-sub { margin-top: 8px; font-size: 12.5px; color: #94a3b8; }

/* 地图打卡合规范围文字标签 */
.leaflet-tooltip.range-tip {
  background: rgba(37, 99, 235, .92);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 11px;
  line-height: 1.5;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(37,99,235,.35);
}
.leaflet-tooltip.range-tip::before { display: none; }
.addr-pending { color: #94a3b8; }

/* 成单广播卡片（开单礼炮）—— 白色居中卡片，红包界面风格，黑金点缀 */
.dealcast {
  position: fixed; inset: 0; z-index: 1500;
  background: rgba(0,0,0,.55); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
}
.dealcast.show { opacity: 1; visibility: visible; }
.dealcast.show .dc-card { animation: dcPop .4s cubic-bezier(.18,.89,.32,1.28); }
@keyframes dcPop { 0% { transform: scale(.7); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.dc-card {
  width: 100%; max-width: 340px; background: #fff; border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(212,175,55,.3), 0 0 30px rgba(212,175,55,.18), 0 24px 60px rgba(0,0,0,.4);
  overflow: hidden;
}
.dc-header {
  text-align: center; padding: 22px 16px 14px; position: relative;
  background: #fff; border-bottom: 1px solid #f3eee0;
}
.dc-header::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, #b8901f 0%, #d4af37 30%, #f3e2a0 50%, #d4af37 70%, #b8901f 100%);
}
.dc-firework {
  font-size: 36px; line-height: 1; opacity: .9;
  filter: drop-shadow(0 0 8px rgba(212,175,55,.5));
  animation: dcShake 2s ease-in-out infinite; display: inline-block;
}
@keyframes dcShake { 0%,100% { transform: scale(1) rotate(0); } 25% { transform: scale(1.08) rotate(-3deg); } 75% { transform: scale(1.04) rotate(3deg); } }
.dc-title {
  font-size: 20px; font-weight: 600; letter-spacing: 8px; margin-top: 8px;
  background: linear-gradient(180deg, #f3e2a0 0%, #d4af37 50%, #b8901f 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.dc-sub { font-size: 11px; color: #9aa3b5; margin-top: 5px; letter-spacing: 1px; }
.dc-body { padding: 18px 20px 14px; text-align: center; }
.dc-person { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: #6b7280; }
.dc-person b { color: #1f2d3d; font-size: 16px; font-weight: 700; }
.dc-action { color: #6b7280; }
.dc-avatar {
  width: 32px; height: 32px; line-height: 32px; text-align: center; border-radius: 50%;
  background: linear-gradient(135deg, #2a3548, #4a5a72); color: #fff; font-weight: 600; font-size: 14px;
}
.dc-deal { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.dc-mname {
  padding: 3px 10px; background: #faf6ea; color: #8a6d1f;
  border: 1px solid rgba(212,175,55,.3); border-radius: 10px; font-size: 11px; font-weight: 500;
}
.dc-amount {
  font-size: 30px; font-weight: 700; letter-spacing: 1px;
  background: linear-gradient(135deg, #b8901f 0%, #d4af37 45%, #f3e2a0 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.dc-note { color: #6b7280; font-size: 12px; margin-top: 8px; line-height: 1.6; }
.dc-reactions { padding: 14px 20px 20px; border-top: 1px solid #f3eee0; }
.dc-emojis { display: flex; justify-content: center; gap: 8px; margin-bottom: 12px; }
.dc-emo-btn {
  display: inline-flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 6px 8px; min-width: 44px; background: #fff;
  border: 1px solid #eef0f4; border-radius: 10px; cursor: pointer; transition: .15s;
  font-family: inherit;
}
.dc-emo-btn:hover { border-color: rgba(212,175,55,.5); background: #fdfaf0; transform: translateY(-1px); }
.dc-emo-btn.on { border-color: #d4af37; background: #faf6ea; box-shadow: 0 2px 6px rgba(212,175,55,.25); }
.dc-emo { font-size: 20px; line-height: 1; }
.dc-cnt { font-size: 10px; color: #6b7280; font-weight: 600; }
.dc-hint { text-align: center; font-size: 11px; color: #9aa3b5; margin-bottom: 10px; }
.dc-gotit {
  width: 100%; padding: 13px 0; font-size: 14px; font-weight: 600;
  border: none; border-radius: 10px; cursor: pointer; transition: .15s;
  font-family: inherit; letter-spacing: 1px; color: #fff;
  background: linear-gradient(135deg, #b8901f 0%, #d4af37 50%, #c9a227 100%);
  box-shadow: 0 4px 12px rgba(212,175,55,.3);
}
.dc-gotit:hover { filter: brightness(1.06); }
.dc-gotit.on { background: #e8eaef; color: #9aa3b5; box-shadow: none; }
@media (max-width: 480px) {
  .dealcast { padding: 16px; }
  .dc-card { max-width: 100%; }
  .dc-amount { font-size: 26px; }
  .dc-title { font-size: 18px; letter-spacing: 6px; }
  .dc-firework { font-size: 32px; }
  .dc-emo-btn { min-width: 38px; padding: 5px 6px; }
  .dc-emo { font-size: 18px; }
}



/* 重要通知强提醒弹窗（z-index 高于 dealcast，重要通知优先级最高） */
.imp-mask { position: fixed; inset: 0; z-index: 1800;
  background: rgba(0,0,0,.65); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; padding: 18px; }
.imp-mask.show { display: flex; animation: impFade .25s ease; }
@keyframes impFade { 0% { opacity: 0; } 100% { opacity: 1; } }
body.imp-lock { overflow: hidden; }
.imp-modal { width: 100%; max-width: 380px; max-height: 92vh; overflow-y: auto;
  background: #fff; border-radius: 18px; padding: 24px 22px 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,.4); text-align: center;
  animation: impPop .35s cubic-bezier(.18,.89,.32,1.28);
  scrollbar-width: none; -ms-overflow-style: none; }
.imp-modal::-webkit-scrollbar { display: none; width: 0; height: 0; }
@keyframes impPop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.imp-badge { display: inline-flex; align-items: center; gap: 5px;
  background: #fee2e2; color: #dc2626; font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.imp-badge svg { display: block; }
.imp-icon { font-size: 42px; line-height: 1; margin-bottom: 10px; }
.imp-title { font-size: 17px; font-weight: 700; color: #1f2937; line-height: 1.4; margin-bottom: 4px; }
.imp-time { font-size: 12px; color: #9ca3af; margin-bottom: 14px; }
.imp-content { font-size: 14.5px; line-height: 1.85; color: #374151;
  background: #f7f9fc; padding: 14px; border-radius: 10px;
  white-space: pre-wrap; word-break: break-word; margin-bottom: 14px; text-align: left; }
.imp-more { font-size: 12.5px; color: #6b7280; margin-bottom: 14px; }
.imp-actions { display: flex; gap: 10px; }
.imp-actions .btn { flex: 1; padding: 11px 0; font-size: 14.5px; }

/* 成单记录页：反应/评论列表展开块 */
.deal-reactions { margin-top: 8px; padding: 8px 10px; background: #fafffb; border-radius: 8px;
  border: 1px dashed #d8e8d8; font-size: 12.5px; }
.deal-reactions .dr-emojis { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.deal-reactions .dr-chip { display: inline-flex; align-items: center; gap: 3px; background: #fff;
  border: 1px solid #eef0f4; border-radius: 12px; padding: 2px 8px; font-size: 12px; }
.deal-reactions .dr-gotit { color: #10b981; font-weight: 600; }
.deal-reactions .dr-comment { background: #fff; border-left: 2px solid #4f7cf7; padding: 4px 8px;
  border-radius: 0 6px 6px 0; margin-top: 4px; }
.deal-reactions .dr-comment b { color: #4f7cf7; }
.deal-reactions .dr-empty { color: #9aa3b5; }
