/* ─── 绿城质量千里行 · 移动优先样式 ─── */
:root {
  --primary: #0f7b6c;       /* 绿城主绿 */
  --primary-dark: #0a5c50;
  --primary-light: #e6f4f1;
  --accent: #f2994a;
  --danger: #eb5757;
  --flower-red: #d35a4a;       /* 小红花统一暗红（20260801k 再次调浅） */
  --flower-red-deep: #b03a2e;  /* 暗红渐变深端（仍保白字可读） */
  --success: #27ae60;
  --warning: #f2c94c;
  --text: #1a1a1a;
  --text-2: #666;
  --text-3: #999;
  --bg: #f5f6f7;
  --card: #fff;
  --border: #eaeaea;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,.06);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  overscroll-behavior-y: none;
}
#app { max-width: 640px; margin: 0 auto; min-height: 100%; position: relative; }
a { color: var(--primary); text-decoration: none; }
input, textarea, select, button { font-family: inherit; font-size: 15px; }

/* ─── 顶栏 ─── */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--primary);
  color: #fff;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px 12px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.topbar h1 { font-size: 17px; font-weight: 600; flex: 1; text-align: center; }
.topbar .back { font-size: 20px; cursor: pointer; width: 28px; }
.topbar .action { font-size: 14px; opacity: .95; cursor: pointer; }
/* 管理页「管理中心」标题绝对居中（不受右侧按钮影响） */
.topbar.center h1 { position: absolute; left: 0; right: 0; text-align: center; flex: none; pointer-events: none; }
.topbar.center .back, .topbar.center .action, .topbar.center .avatar-btn { position: relative; z-index: 1; }
/* 管理栏目标题居中时，头像仍推到最右（与其他版面一致） */
.topbar.center .avatar-btn { margin-left: auto; }

/* ─── 内容区 ─── */
.page { padding: 16px; padding-bottom: calc(80px + var(--safe-bottom)); }

/* ─── 卡片 ─── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.card-title { font-size: 18px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; background: linear-gradient(90deg, rgba(15,123,108,.28), rgba(15,123,108,.14)); padding: 12px 14px; border-radius: 10px; border-left: 4px solid var(--primary); color: #0a4f45; }
.count-pill { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--text-3); background: rgba(255,255,255,.65); border-radius: 11px; padding: 3px 10px; white-space: nowrap; }
.card-sub { color: var(--text-3); font-size: 13px; }

/* ─── 按钮 ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--primary); color: #fff;
  border: none; border-radius: 10px;
  padding: 12px 20px; font-size: 15px; font-weight: 500;
  cursor: pointer; transition: opacity .15s;
}
.btn:active { opacity: .8; }
.btn-block { width: 100%; }
.btn-lg { padding: 14px; font-size: 16px; }
.btn-outline { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.btn-del { background: #fff; color: var(--danger); border: 1px solid var(--danger); }
.btn-gray { background: #eef0f1; color: var(--text-2); }
.btn-danger { background: var(--danger); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }
/* 项目备忘主要操作按钮：加高加宽，触感更舒适（应对「太窄/要更高」） */
.btn-memo { min-height: 48px; padding: 12px 18px; font-size: 15px; border-radius: 10px; font-weight: 500; line-height: 1.2; }

/* ── 检验池（出图考试）──── */
.exam-intro { background: linear-gradient(135deg, #0f7b6c, #169b86); color: #fff; border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.exam-intro-title { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.exam-intro-desc { font-size: 13px; line-height: 1.6; opacity: .92; }
.exam-guest-hint { margin-top: 10px; font-size: 13px; background: rgba(255,255,255,.18); padding: 8px 10px; border-radius: 8px; }
.btn-danger-outline { color: var(--danger); border: 1px solid rgba(235,87,87,.5); background: transparent; }
.btn-danger-outline:active { background: rgba(235,87,87,.12); }
.exam-section { margin-bottom: 16px; }
.exam-sec-title { font-size: 14px; font-weight: 700; color: var(--text); margin: 6px 2px 10px; padding-left: 8px; border-left: 3px solid var(--primary); }
.exam-round-card { background: #fff; border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.exam-round-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.exam-round-title { font-size: 15px; font-weight: 600; }
.exam-round-by { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.exam-round-scope { margin: 8px 0 4px; display: flex; flex-wrap: wrap; gap: 6px; }
.exam-scope-tag { font-size: 11px; background: #eaf6f3; color: var(--primary); padding: 2px 8px; border-radius: 10px; }
.exam-round-meta { font-size: 12px; color: var(--text-muted); }
.exam-score-row { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.06); cursor: pointer; }
.exam-score-main { display: flex; align-items: baseline; gap: 3px; min-width: 64px; }
.exam-score-num { font-size: 24px; font-weight: 800; color: var(--primary); }
.exam-score-unit { font-size: 12px; color: var(--text-muted); }
.exam-score-sub { font-size: 12px; color: var(--text-muted); margin-left: 4px; }
.exam-score-meta { flex: 1; font-size: 13px; }
.exam-score-arrow { color: var(--text-muted); font-size: 20px; }
.exam-take-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.exam-take-title { font-size: 15px; font-weight: 600; }
.exam-timer { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--primary, #2f6fed); background: #eaf6f3; padding: 3px 10px; border-radius: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.exam-q { background: #fff; border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.exam-q-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.exam-q-no { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; }
.exam-q-disc { font-size: 11px; color: var(--primary); background: #eaf6f3; padding: 2px 8px; border-radius: 10px; }
.exam-q-stem { font-size: 14px; line-height: 1.6; margin-bottom: 10px; }
.exam-opts { display: flex; flex-direction: column; gap: 8px; }
.exam-opt { display: flex; align-items: center; gap: 8px; border: 1px solid #e3e6ea; border-radius: 8px; padding: 9px 10px; font-size: 14px; cursor: pointer; }
.exam-opt input { flex: none; }
.exam-opt-letter { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: #f0f2f5; color: #555; font-size: 12px; font-weight: 700; flex: none; }
.exam-opt-txt { flex: 1; }
.exam-opt.result { cursor: default; }
.exam-opt.correct { border-color: #27ae60; background: #eafaf0; }
.exam-opt.correct .exam-opt-letter { background: #27ae60; color: #fff; }
.exam-opt.wrong { border-color: #e74c3c; background: #fdecea; }
.exam-opt.wrong .exam-opt-letter { background: #e74c3c; color: #fff; }
.exam-exp { margin-top: 10px; font-size: 12.5px; line-height: 1.6; color: #666; background: #f7f9fb; border-radius: 8px; padding: 8px 10px; }
.exam-r.ok { border-left: 3px solid #27ae60; }
.exam-r.bad { border-left: 3px solid #e74c3c; }
.exam-r-tag { font-size: 12px; font-weight: 600; }
.exam-r-tag.ok { color: #27ae60; }
.exam-r-tag.bad { color: #e74c3c; }
.exam-r-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.exam-score-banner { text-align: center; border-radius: 12px; padding: 16px; margin-bottom: 14px; color: #fff; }
.exam-score-banner.good { background: linear-gradient(135deg, #27ae60, #2ecc71); }
.exam-score-banner.low { background: linear-gradient(135deg, #e67e22, #f39c12); }
.exam-score-big { font-size: 40px; font-weight: 800; line-height: 1; }
.exam-score-big-unit { font-size: 16px; font-weight: 600; margin-left: 2px; }
.exam-score-cap { font-size: 13px; margin-top: 6px; opacity: .95; }
.exam-scope-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.exam-scope-opt { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; background: #f2f4f7; border-radius: 8px; padding: 8px 12px; cursor: pointer; }
.exam-scope-opt input { width: 16px; height: 16px; }
.exam-count-row { display: flex; align-items: center; gap: 10px; margin: 14px 0 2px; }
.exam-count-label { font-size: 14px; color: #333; font-weight: 500; }
.exam-count-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.exam-count-opt { min-width: 44px; height: 38px; border: 1px solid #d9dee5; background: #fff; border-radius: 8px; font-size: 15px; color: #333; cursor: pointer; transition: all .15s; }
.exam-count-opt.active { background: var(--primary, #2f6fed); border-color: var(--primary, #2f6fed); color: #fff; font-weight: 600; }
.exam-flower-opt { min-width: 44px; height: 38px; border: 1px solid #d9dee5; background: #fff; border-radius: 8px; font-size: 15px; color: #333; cursor: pointer; transition: all .15s; }
.exam-flower-opt.active { background: #e84393; border-color: #e84393; color: #fff; font-weight: 600; }
.btn-gold-outline { color: #c97b1e; border: 1px solid rgba(201,123,30,.5); background: transparent; }
.btn-gold-outline:active { background: rgba(201,123,30,.12); }
.exam-rank-list { display: flex; flex-direction: column; gap: 6px; }
.exam-rank-row { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 10px; padding: 10px 14px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.exam-rank-row.top { background: #fffaf0; }
.exam-rank-no { width: 28px; height: 28px; border-radius: 50%; background: #f0f2f5; color: #555; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex: none; }
.exam-rank-no.gold { background: #f1c40f; color: #7a5b00; }
.exam-rank-no.silver { background: #bdc3c7; color: #4a5358; }
.exam-rank-no.bronze { background: #cd7f32; color: #fff; }
.exam-rank-name { flex: 1; font-size: 15px; font-weight: 600; }
.exam-rank-score { font-size: 18px; font-weight: 800; color: var(--primary); }
.exam-rank-score small { font-size: 11px; color: var(--text-muted); font-weight: 400; }
.exam-rank-sub { font-size: 12px; color: var(--text-muted); }
.exam-rank-time { font-size: 12px; color: var(--text-muted); min-width: 56px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.exam-rank-meta { font-size: 12px; margin-bottom: 8px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ─── 表单 ─── */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
.field label .req { color: var(--danger); }
.input, .textarea, .select {
  width: 100%; padding: 12px; border: 1px solid var(--border);
  border-radius: 10px; background: #fff; color: var(--text);
  transition: border-color .15s;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--primary); }
.textarea { min-height: 100px; resize: vertical; }

/* ─── 徽章/标签 ─── */
.badge {
  display: inline-block; padding: 3px 9px; border-radius: 20px;
  font-size: 12px; font-weight: 500; white-space: nowrap;
}
.badge-submitted { background: #fff4e6; color: #e67e22; }
.badge-assigned  { background: #e6f0ff; color: #2f80ed; }
.badge-processing{ background: #e6f7ff; color: #0091ff; }
.badge-resolved  { background: #eafaf1; color: #27ae60; }
.badge-closed    { background: #f0f0f0; color: #888; }
.badge-rejected  { background: #ffeaea; color: #eb5757; }
.badge-sev-high  { background: #ffeaea; color: #eb5757; }
.badge-sev-normal{ background: #f0f0f0; color: #888; }

/* ─── 列表项 ─── */
.list-item {
  background: #fff; border-radius: var(--radius); padding: 14px 16px;
  margin-bottom: 10px; box-shadow: var(--shadow); cursor: pointer;
}
.list-item:active { background: #fafafa; }
/* 项目备忘提醒「可关闭」按钮（对标其他提醒的关闭 ✕） */
.memo-dismiss {
  position: absolute; top: 10px; right: 10px;
  width: 22px; height: 22px; line-height: 20px; text-align: center;
  border: none; border-radius: 50%; background: rgba(0,0,0,.05);
  color: #999; font-size: 13px; cursor: pointer; transition: background .15s, color .15s;
}
.memo-dismiss:hover { background: #ffecea; color: #cf1322; }
/* 替代原生 confirm() 的确认弹窗（微信 WebView 下原生 confirm 被抑制） */
.modal-confirm { max-width: 320px; }
.modal-confirm .modal-title { font-size: 15px; line-height: 1.5; text-align: center; padding: 4px 0 2px; }
.modal-confirm .row-btns { display: flex; gap: 10px; }
.modal-confirm .row-btns .btn { flex: 1; }
.memo-dismiss:active { transform: scale(.92); }
.li-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.li-title { font-weight: 600; font-size: 15px; flex: 1; }
.badge-edit, .badge-x { cursor: pointer; font-size: 14px; user-select: none; opacity: .65; transition: opacity .15s; white-space: nowrap; }
.badge-edit:hover, .badge-x:hover { opacity: 1; }
.badge-x { color: #c0392b; }
.badge-edit { color: #0f7b6c; }
.li-desc { color: var(--text-2); font-size: 14px; margin: 4px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.li-meta { display: flex; gap: 12px; color: var(--text-3); font-size: 12px; margin-top: 6px; flex-wrap: wrap; }

/* ─── 底部导航 ─── */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 640px;
  background: #fff; border-top: 1px solid var(--border);
  display: flex; padding-bottom: var(--safe-bottom);
  z-index: 100;
}
.tab {
  flex: 1; text-align: center; padding: 8px 0 6px;
  color: var(--text-3); font-size: 11px; cursor: pointer;
}
.tab.active { color: var(--primary); }
.tab .icon { font-size: 22px; display: block; line-height: 1.2; }
/* 底部 tab：主标签 + 第二行小字（如「待推出」）；兼容单行 tab（无 sub 时自然只占一行） */
.tab .tab-label { display: block; font-size: 11px; line-height: 1.25; margin-top: 2px; }
.tab .tab-sub { display: block; font-size: 9px; line-height: 1.15; color: var(--text-muted); margin-top: 1px; }
/* 底部 tab 未读提醒红点（App 图标角标的站内版，所有浏览器可见） */
.nav-badge {
  position: absolute; top: 2px; right: 50%; margin-right: -26px;
  min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box;
  background: #e23b3b; color: #fff; border-radius: 9px;
  font-size: 11px; line-height: 16px; text-align: center;
  display: none; border: 1.5px solid #fff;
}
.tab { position: relative; }
/* 右上角「我的」头像 + 未读消息红点 */
.avatar-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; font-size: 20px; cursor: pointer; margin-left: 4px;
}
.avatar-badge {
  position: absolute; top: -2px; right: -3px;
  min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box;
  background: #e23b3b; color: #fff; border-radius: 9px;
  font-size: 11px; line-height: 16px; text-align: center;
  display: none; border: 1.5px solid #fff;
}

/* ─── 登录页 ─── */
.login-wrap {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; padding: 32px 28px;
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
}
.login-logo { text-align: center; color: #fff; margin-bottom: 36px; }
.login-logo .emoji { font-size: 56px; }
.login-logo h1 { font-size: 26px; margin-top: 12px; font-weight: 700; letter-spacing: 1px; }
.login-logo p { opacity: .85; margin-top: 6px; font-size: 14px; }
.login-logo .login-platform { opacity: 1; margin-top: 8px; font-size: 20px; font-weight: 600; letter-spacing: 1px; }
.login-card { background: #fff; border-radius: 16px; padding: 28px 24px; box-shadow: 0 10px 40px rgba(0,0,0,.2); }
.login-hint { margin: 10px 0 4px; font-size: 12px; color: var(--text-3); text-align: center; line-height: 1.5; }

/* ─── 现场照片网格 ─── */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.photo-item { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #f0f0f0; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-item .del { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.5); color: #fff; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.photo-add { aspect-ratio: 1; border: 2px dashed var(--border); border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-3); cursor: pointer; }
.photo-add .plus { font-size: 28px; }
.photo-add span { font-size: 12px; }

/* 文件选择 input 视觉隐藏（替代 display:none）：微信 PC 端 webview 对 display:none 的 file input 调 .click() 不弹选择器，sr-only 保留可聚焦/可点击 */
.sr-only-file { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ─── 时间轴（工单流转日志）─── */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 4px; bottom: 4px; width: 2px; background: var(--border); }
.tl-item { position: relative; padding-bottom: 16px; }
.tl-item::before { content: ''; position: absolute; left: -22px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); border: 2px solid #fff; }
.tl-action { font-weight: 600; font-size: 14px; }
.tl-meta { color: var(--text-3); font-size: 12px; margin-top: 2px; }
.tl-comment { color: var(--text-2); font-size: 14px; margin-top: 4px; background: #f7f8f9; padding: 8px 10px; border-radius: 8px; }

/* ─── 过滤条 ─── */
.filter-bar { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; margin-bottom: 4px; -webkit-overflow-scrolling: touch; }
.filter-chip { white-space: nowrap; padding: 6px 14px; border-radius: 20px; background: #fff; border: 1px solid var(--border); color: var(--text-2); font-size: 13px; cursor: pointer; }
.filter-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ─── 空状态 ─── */
.empty { text-align: center; padding: 60px 20px; color: var(--text-3); }
.empty .emoji { font-size: 48px; }
.empty p { margin-top: 12px; }

/* ─── 首页快捷入口 ─── */
.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
.quick-card { background: #fff; border-radius: var(--radius); padding: 18px 16px; box-shadow: var(--shadow); cursor: pointer; }
.quick-card .qicon { font-size: 30px; }
.quick-card .qtitle { font-weight: 600; margin-top: 8px; }
.quick-card .qsub { color: var(--text-3); font-size: 12px; margin-top: 2px; }

/* ─── 数据统计块 ─── */
.stat-row { display: flex; gap: 10px; margin-bottom: 16px; }
.stat-box { flex: 1; background: #fff; border-radius: var(--radius); padding: 10px 8px; text-align: center; box-shadow: var(--shadow); }
.stat-num { font-size: 22px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 12px; color: var(--text-3); margin-top: 1px; }
.stat-sub { font-size: 11px; color: var(--text-3); margin-top: 4px; line-height: 1.3; }

/* ─── 点子墙 ─── */
.idea-card { background: #fff; border-radius: var(--radius); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.idea-cat { font-size: 12px; color: var(--primary); background: var(--primary-light); padding: 2px 8px; border-radius: 6px; }
.idea-title { font-weight: 600; margin: 8px 0 4px; }
.idea-content { color: var(--text-2); font-size: 14px; }
.idea-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; color: var(--text-3); font-size: 13px; }
.like-btn { display: flex; align-items: center; gap: 4px; cursor: pointer; padding: 4px 8px; border-radius: 20px; }
.like-btn.liked { color: var(--danger); }

/* ─── Toast / Loading ─── */
.toast {
  position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: rgba(0,0,0,.82); color: #fff; padding: 10px 20px; border-radius: 24px;
  font-size: 14px; z-index: 9999; opacity: 0; transition: all .25s; pointer-events: none; max-width: 80%;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.loading-mask { position: fixed; inset: 0; background: rgba(255,255,255,.5); display: flex; align-items: center; justify-content: center; z-index: 9998; }
.spinner { width: 36px; height: 36px; border: 3px solid var(--primary-light); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── 模态弹窗 ─── */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; z-index: 9000; }
.modal { background: #fff; width: 100%; max-width: 640px; border-radius: 16px 16px 0 0; padding: 20px; max-height: 85vh; overflow-y: auto; animation: slideUp .25s; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-title { font-size: 17px; font-weight: 600; margin-bottom: 16px; }

/* 角色标记 */
.role-tag { font-size: 11px; padding: 1px 6px; border-radius: 4px; background: var(--accent); color: #fff; margin-left: 4px; }
.role-tag.leader { background: #9b51e0; }
.role-tag.admin { background: var(--accent); }
.role-tag.designer { background: #56ccf2; }

hr.sep { border: none; border-top: 1px solid var(--border); margin: 12px 0; }
.text-muted { color: var(--text-3); }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* ─── 项目工期：甘特时间轴 ─── */
.sch-legend { display: flex; gap: 18px; font-size: 12px; color: var(--text-2); margin: 12px 0 8px; align-items: center; }
.sch-legend .ms-dot { position: relative; display: inline-block; top: 0; transform: none; margin-right: 5px; vertical-align: middle; box-shadow: none; }
.sch-filters { margin-bottom: 6px; }
.sch-selects { display: flex; gap: 8px; margin-top: 8px; }
.sch-selects .select { flex: 1; padding: 9px 8px; font-size: 13px; }

.gantt-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 4px -16px 0; padding: 0 16px; }
.gantt-inner { position: relative; }
.gantt-ruler { display: flex; position: sticky; top: 0; z-index: 6; background: var(--card); border-bottom: 1px solid var(--border); }
.gantt-section { margin-top: 4px; }
.gantt-section-h { font-weight: 600; font-size: 13px; color: var(--text); padding: 10px 0 4px; position: sticky; left: 0; }
.gantt-count { font-size: 11px; color: var(--text-3); font-weight: 400; margin-left: 8px; }
.gantt-row { display: flex; align-items: center; height: 34px; border-bottom: 1px solid #f2f3f4; }
.gantt-name { position: sticky; left: 0; width: 90px; flex: none; background: var(--card); z-index: 2; border-right: 1px solid var(--border); font-size: 12px; color: var(--text-2); padding-right: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gantt-track { position: relative; height: 34px; flex: none; }
.gantt-grid { position: absolute; top: 0; bottom: 0; width: 1px; background: #eef0f1; }
.gantt-mlabel { position: absolute; top: 6px; transform: translateX(-50%); font-size: 10px; color: var(--text-3); white-space: nowrap; }

.ms-dot { position: absolute; top: 50%; width: 11px; height: 11px; border-radius: 50%; transform: translate(-50%, -50%); cursor: pointer; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.ms-done { background: var(--success); }
.ms-soon { background: var(--primary); }
.ms-est { background: #fff; border: 2px solid var(--warning); box-shadow: 0 0 0 1px var(--warning); }

/* ─── 项目工期：腾讯文档直达 ─── */
.sch-search { margin: 8px 0 4px; }
.sch-search .input { width: 100%; }
.doc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.doc-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px; cursor: pointer; transition: transform .15s, box-shadow .15s; }
a.doc-card { display: block; text-decoration: none; color: inherit; }
.doc-card:active { transform: scale(.98); }
.doc-card.mine { background: linear-gradient(135deg, #eafaf6, #fff); border-color: var(--primary-light); }
.doc-owner { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.doc-url { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.doc-open { font-size: 13px; color: var(--primary); margin-top: 8px; font-weight: 500; }
.doc-updated { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.doc-card.empty-card { opacity: .55; cursor: default; background: #f6f7f8; }
.doc-card.empty-card:active { transform: none; }

/* ─── PDCA 三栏 ─── */
.pdca-tabs { display: flex; gap: 6px; padding: 4px; background: #f2f3f4; border-radius: 12px; margin-top: 8px; }
.pdca-tab { flex: 1; text-align: center; padding: 9px 4px; font-size: 13px; border-radius: 9px; color: var(--text-2); cursor: pointer; }
.pdca-tab.active { background: #fff; color: var(--primary); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.pdca-arrow { display: flex; align-items: center; color: var(--text-2); font-size: 16px; font-weight: 700; padding: 0 1px; }

.badge-found   { background: #fff4e6; color: #e67e22; }
.badge-solving { background: #e6f0ff; color: #2f80ed; }
.badge-solved  { background: #e6f7ff; color: #0091ff; }
.badge-reviewed{ background: #eafaf1; color: #27ae60; }
.badge-urgent  { background: #ffeaea; color: #eb5757; }
.badge-normal  { background: #f0f0f0; color: #888; }
.badge-dept    { background: #f3e8ff; color: #7b3fe4; }
.badge-mine    { background: var(--primary); color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 10px; }

.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.seg-item { padding: 8px 16px; font-size: 13px; cursor: pointer; background: #fff; color: var(--text-2); }
.seg-item.active { background: var(--primary); color: #fff; }

.sol-item { background: #f8f9fb; border-radius: 10px; padding: 10px; margin-top: 8px; }
.sol-content { font-size: 14px; color: #333; margin-top: 4px; }
.sol-experts { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--text-2); }
.tag { background: #f0f0f0; color: #555; border-radius: 8px; padding: 2px 8px; font-size: 12px; }
/* IMA 已同步徽标（绿城主绿，明确给出发布人「已同步到 IMA」的反馈）*/
.tag-ima { background: var(--primary-light); color: var(--primary-dark); border: 1px solid var(--primary); font-weight: 600; }
.tag-ima.clickable { cursor: pointer; }
.tag-ima.clickable:hover { filter: brightness(0.95); }
.ima-path { font-size: 15px; line-height: 1.9; color: var(--text); }
.ima-path .crumb-sep { color: var(--primary); margin: 0 4px; font-weight: 700; }
/* 人人讲「院选」徽标（朱红，区别于普通人人讲灰标）*/
.tag-rrj { background: #fff0e8; color: #d4380d; border: 1px solid #ff9c6e; font-weight: 600; }
/* 资深专家（总工）徽标 */
.tag-senior { background: #fcf; color: #9254de; border: 1px solid #d3adf7; font-weight: 600; }
/* 管理端院选清单：可滚动，避免闭环问题过多撑爆页面 */
.rrj-manage { max-height: 360px; overflow-y: auto; }
.rrj-item { box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.rrj-sub { font-size: 13px; font-weight: 600; color: var(--primary-dark); margin: 12px 2px 6px; }
.rrj-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.rrj-toggle { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--primary-dark); cursor: pointer; }
.rrj-toggle input { width: 16px; height: 16px; accent-color: var(--primary); }
.rrj-by { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--text-3); }
.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 8px; line-height: 1.2; }
.tag-pending { background: #fff7e6; color: #d48806; border: 1px solid #ffd591; font-weight: 600; }
.tag-note { background: #f0f5ff; color: #2f54eb; border: 1px solid #adc6ff; font-weight: 600; }
/* 已答复 / 已解决 状态徽标（绿）*/
.tag-resolved { background: #f6ffed; color: #389e0d; border: 1px solid #b7eb8f; font-weight: 600; }
/* 参与者移除 ✕ 按钮（红，可点击）*/
.tag-x { background: #fff1f0; color: #cf1322; border: 1px solid #ffa39e; cursor: pointer; margin-left: 2px; }
.tag-x:hover { background: #ffccc7; }
/* 管理者备注 / 院选批注 展示块（置顶，区别于普通内容）*/
.note-box { background: #f0f5ff; border: 1px solid #adc6ff; border-left: 4px solid #2f54eb; border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.note-title { font-size: 13px; font-weight: 600; color: #2f54eb; margin-bottom: 4px; }
.note-body { font-size: 14px; color: #1d39c4; white-space: pre-wrap; word-break: break-word; line-height: 1.6; }
.note-meta { font-size: 12px; color: var(--text-3); margin-top: 4px; }
/* 首页院选卡片：管理者备注横幅（置于卡片最前面）*/
.rrj-note { background: #f0f5ff; border-left: 4px solid #2f54eb; border-radius: 0 8px 8px 0; padding: 6px 10px; font-size: 13px; color: #1d39c4; white-space: pre-wrap; word-break: break-word; line-height: 1.5; margin-bottom: 6px; }
.chk-group { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 4px; }
.chk { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; cursor: pointer; }
.chk input { width: 16px; height: 16px; }
.mt8 { margin-top: 8px; }
.consult-item { padding: 8px 0; border-top: 1px dashed #eee; }
.consult-q { font-size: 14px; }
.consult-a { font-size: 14px; color: var(--success); margin-top: 4px; padding-left: 12px; }
.consult-a-designer { color: #b06a00; }   /* 共议回复：区别于专家(绿) */
.exp-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; max-height: 220px; overflow: auto; }
@media (min-width: 560px) { .exp-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* 设计师共议多选下拉面板 */
.drop-panel { border: 1px solid #e3e3e8; border-radius: 10px; padding: 6px 10px; margin-top: 8px; background: #fafafb; }
.drop-panel > summary { cursor: pointer; font-size: 13px; color: #555; user-select: none; }
.drop-panel > summary::marker { color: #bbb; }
.drop-search { margin: 8px 0 4px; }
.drop-search .input { width: 100%; padding: 6px 8px; font-size: 13px; border: 1px solid #e0e0e6; border-radius: 8px; }
.drop-list { max-height: 200px; overflow: auto; }
.exp-item { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 1.2; }
.exp-item input { width: 15px; height: 15px; flex: none; }
  .pdca-quick { display: flex; gap: 8px; margin-top: 10px; }
  .pdca-quick .input { flex: 1; }

/* ── 质量工作：子页签 ─── */
.subtabs { display: flex; gap: 6px; padding: 4px; background: #f2f3f4; border-radius: 12px; margin-top: 8px; margin-bottom: 12px; }
.subtab { flex: 1; text-align: center; padding: 9px 4px; font-size: 13px; border-radius: 9px; color: var(--text-2); cursor: pointer; }
.subtab.active { background: #fff; color: var(--primary); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* 个人备忘 / 公告条目 */
.memo-item { background: #fff; border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow); cursor: pointer; }
.remind-item { background: #fff; border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow); }
.remind-item.done { opacity: .72; }
.memo-send { float: right; margin-top: 2px; }

/* 质量库 */
.lib-filter { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.lib-filter .input { width: 100%; }
.filter-group { background: #fff; border-radius: var(--radius); padding: 10px 12px; box-shadow: var(--shadow); }
.filter-label { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.filter-chks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.filter-chk { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; cursor: pointer; }
.filter-chk input { width: 15px; height: 15px; }
.casc-subs { margin: 2px 0 4px 0; padding-left: 2px; }
.casc-subs .subchk { color: var(--text-2); }
/* 二级专业：可折叠分组 */
.subgrp { border: 1px solid #eee; border-radius: 8px; padding: 4px 10px; margin: 4px 0; background: #fafbfc; }
.subgrp > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-2); list-style: none; display: flex; align-items: center; justify-content: space-between; }
.subgrp > summary::-webkit-details-marker { display: none; }
.subgrp-caret { color: #bbb; font-size: 11px; }
.subgrp-items { padding: 6px 0 2px 10px; border-top: 1px dashed #eee; margin-top: 4px; }
.subgrp-items .filter-chk { margin-right: 14px; }
.notice { background: rgba(240,160,32,.12); border: 1px solid rgba(240,160,32,.4); color: #8a5a00; border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.6; }
.lib-dates { display: flex; align-items: center; gap: 8px; }
.lib-dates .input { flex: 1; }
.mt4 { margin-top: 4px; }
.lib-item { background: #fff; border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow); cursor: pointer; }
.lib-detail { font-size: 14px; line-height: 1.7; color: #333; white-space: pre-wrap; word-break: break-word; }
.ann-card { background: #fff; border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow); }
.ann-card.clickable { cursor: pointer; transition: box-shadow .15s, transform .1s; }
.ann-card.clickable:hover { box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.ann-card.clickable:active { transform: scale(.992); }
.ann-card.clickable::after { content: '点击查看详情 ›'; display: block; margin-top: 8px; text-align: right; color: #0a7d6b; font-size: 12px; }

/* 首页列表折叠「展开更多 / 收起」全宽按钮（宣贯 / 院选 / 公告通用） */
.cap-wrap { display: block; }
.cap-toggle {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 10px 0 2px;
  padding: 12px 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .5px;
  color: #0a7d6b;
  background: #f0faf8;
  border: 1px solid #cfe9e3;
  border-radius: var(--radius, 10px);
  cursor: pointer;
  user-select: none;
  transition: background .15s, transform .1s;
}
.cap-toggle:hover { background: #e2f5f0; }
.cap-toggle:active { transform: scale(.99); background: #d6efe9; }
.badge-warn { background: #fff4e6; color: #e67e22; }
.badge-done { background: #f0f0f0; color: #888; }

/* 待解决提醒盒 */
.remind-box { background: linear-gradient(135deg, #fff4e6, #fff); border: 1px solid #ffe0b2; border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.remind-box b { color: #e67e22; font-size: 18px; }

/* 查看全部链接 */
.more-link { text-align: right; font-size: 13px; color: var(--primary); margin-top: 4px; cursor: pointer; padding: 4px 0; }

/* 标题栏「唯xxx可见」标注：非粗体、弱化，仅提示当前可见范围 */
.vis-only { display:block; flex-basis: 100%; width: 100%; flex-shrink: 0; font-weight: 400; font-size: 12px; color: #6b7c79; margin-top: 3px; margin-left: 0; letter-spacing: .2px; }

/* 专业室公告标记 */
.badge-div { background: #eafaf1; color: var(--primary); border: 1px solid var(--primary-light); }

/* 分段选择器（发布范围）：与 .seg 容器配合，按钮用 .seg-btn */
.seg-btn { padding: 8px 16px; font-size: 13px; cursor: pointer; background: #fff; color: var(--text-2); border: none; border-right: 1px solid var(--border); }
.seg-btn:last-child { border-right: none; }
.seg-btn.active { background: var(--primary); color: #fff; font-weight: 600; }
.seg-btn:disabled { opacity: .45; cursor: not-allowed; }

/* PDCA 新问题状态徽章 */
.badge-recorded  { background: #e6f0ff; color: #2f80ed; }
.badge-consulted { background: #f3e8ff; color: #7b3fe4; }

/* 主按钮（请教专家 / 问题解决） */
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:active { opacity: .85; }
/* 危险按钮（清0 等破坏性操作） */
.btn-danger { background: #e23b3b; color: #fff; }
.btn-danger:active { opacity: .85; }

/* 草稿箱 */
.draft-item { background: #fff; border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; box-shadow: var(--shadow); }
.draft-item .li-desc { color: var(--text-2); font-size: 13px; margin: 4px 0; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.row-btns .btn { flex: 1; min-width: 84px; }

/* 一键加入 IMA 质量库按钮 */
.btn-ima { background: linear-gradient(135deg, #15c39a, #0ea5a3); color: #fff; border: none; font-weight: 600; }
.btn-ima:active { opacity: .85; }

/* 主页快捷链接行（项目工期等） */
.quick-link-row { padding: 6px 2px 2px; }

/* 详情：追问快捷输入 */
.pdca-quick { display: flex; gap: 8px; margin: 10px 0; }
.pdca-quick .input { flex: 1; }

/* 拍照缩略图可点删 */
.photo-item { cursor: pointer; }

/* ── 小红花优秀榜 ── */
.flower-card { background: linear-gradient(135deg, #fbf3f3, #f6e3e3); border: 1px solid #d8a8a8; }
/* 小红花优秀榜：通栏红底 banner，右侧竖排前三名 */
.flower-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: linear-gradient(135deg, var(--flower-red-deep), var(--flower-red)); color: #fff; border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); cursor: pointer; margin-bottom: 12px; }
.flower-banner .fb-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.flower-banner .fb-icon { font-size: 26px; }
.flower-banner .fb-title { font-weight: 700; font-size: 15px; }
.flower-banner .fb-sub { font-size: 11px; opacity: .92; margin-top: 2px; }
.flower-banner .fb-top3 { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; text-align: right; flex: none; }
.flower-banner .fb-it { font-size: 12px; white-space: nowrap; }
.flower-banner .fb-it b { font-weight: 600; }
.flower-banner .fb-it i { font-style: normal; opacity: .92; margin-left: 3px; }
.flower-banner .fb-empty { font-size: 12px; opacity: .85; }

.flower-tabs { display: flex; gap: 8px; margin: 0 2px 12px; }
.flower-tabs .ftab { flex: 1; padding: 9px 0; border: none; border-radius: var(--radius); background: #f0f0f3; color: var(--text-3); font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.flower-tabs .ftab.active { background: var(--flower-red); color: #fff; box-shadow: var(--shadow); }
.flower-card .qicon { font-size: 30px; }
.flower-stat { flex: 1.7; }
.flower-stat .stat-num { color: var(--flower-red); }
.flower-row { display: flex; align-items: center; gap: 12px; }
.flower-rank { width: 34px; text-align: center; font-size: 20px; flex: none; }
.flower-count { flex: none; font-size: 20px; font-weight: 700; color: var(--flower-red); white-space: nowrap; }
/* 按奖惩榜：⚖️ + 数字，字号与「按年度」的 🏵️ 一致（20px），姓名与数字上下同行居中 */
.flower-count.reward-count { font-size: 20px; color: var(--flower-red-deep); }
.reward-card { padding: 12px 16px; }
.reward-main { align-items: center; }
.reward-card .adj-records { margin-top: 8px; padding-left: 46px; }
/* 按月/按年度榜：姓名 + 🏵️ 分数在第一行（与按奖惩布局一致），四项明细作为下方独立行 */
.rank-summary { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; padding-left: 46px; font-size: 13px; color: var(--text-3); }
.rank-summary span { white-space: nowrap; }
.flower-top-list { margin: 8px 0 2px; }
.flower-row-mini { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-bottom: 1px dashed #ecd2d2; cursor: pointer; }
.flower-row-mini:last-child { border-bottom: none; }
.flower-rank-mini { width: 26px; text-align: center; font-size: 16px; flex: none; }
.flower-name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flower-cnt { flex: none; color: var(--flower-red); font-weight: 700; white-space: nowrap; }

/* ── 红花奖惩（质量工作奖惩）── */
.badge-adjust { background: #fff7e6; color: #b8860b; border: 1px solid #f0d27a; font-size: 11px; padding: 1px 7px; border-radius: 10px; white-space: nowrap; }
.badge-tie { background: #eef4ff; color: #2f6bd6; border: 1px solid #b9d2ff; font-size: 11px; padding: 1px 7px; border-radius: 10px; white-space: nowrap; margin-left: 6px; }
.badge-crown { background: linear-gradient(135deg,#ffe08a,#f5b301); color: #6b4b00; border: 1px solid #e7a900; font-size: 11px; padding: 1px 7px; border-radius: 10px; white-space: nowrap; margin-left: 6px; font-weight: 700; }
.badge-lead { background: linear-gradient(135deg,#ffe7c2,#ffb347); color: #6b3b00; border: 1px solid #f0a000; font-size: 11px; padding: 1px 7px; border-radius: 10px; white-space: nowrap; margin-left: 6px; font-weight: 700; }
.flower-banner .fb-lead { color: #ffb347; }
.flower-settle { background: linear-gradient(135deg, var(--flower-red-deep), var(--flower-red)); color: #fff; border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); cursor: pointer; margin-bottom: 12px; }
.flower-settle .settle-total { font-size: 26px; font-weight: 800; }
.flower-settle .settle-total span { font-size: 14px; font-weight: 500; opacity: .92; margin-left: 4px; }
.flower-settle .settle-sub { font-size: 12px; opacity: .92; margin-top: 2px; }
.flower-settle .badge-adjust { background: rgba(255,255,255,.22); color: #fff; border-color: rgba(255,255,255,.4); }
.settle-breakdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 4px 0 4px; }
.sb-item { background: #fff; border: 1px solid #f0e0e3; border-radius: var(--radius); padding: 10px 6px; text-align: center; }
.sb-item .sb-num { font-size: 18px; font-weight: 700; color: var(--flower-red); }

/* 我的小红花记录：本月/本年/全部 周期切换 */
.records-head .card-title { margin-bottom: 8px; }
.rec-scope-tabs { display: flex; gap: 8px; margin: 0 2px 10px; }
.rec-scope-tabs .rstab { flex: 1; padding: 7px 0; border: none; border-radius: var(--radius); background: #f0f0f3; color: var(--text-3); font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.rec-scope-tabs .rstab.active { background: var(--flower-red); color: #fff; box-shadow: var(--shadow); }
.sb-item .sb-label { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.adj-num-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.adj-step { flex: 1; min-width: 38px; padding: 9px 0; border: 1px solid #e0e0e6; border-radius: var(--radius); background: #f6f6f8; color: var(--text-1); font-size: 15px; font-weight: 700; cursor: pointer; }
.adj-step:active { background: #e9e9ee; }
.adj-num { flex: 2; min-width: 70px; text-align: center; font-weight: 700; }
textarea.input { width: 100%; resize: vertical; font-family: inherit; line-height: 1.5; }
.adj-item { display: flex; align-items: center; gap: 12px; }
.adj-item .flower-count.pos { color: #27ae60; }
.adj-item .flower-count.neg { color: #eb5757; }
/* 按奖惩榜：每人展开逐条加减分明细 */
.adj-records { margin-top: 6px; display: flex; flex-direction: column; gap: 4px; }
.adj-line { display: flex; align-items: baseline; gap: 8px; font-size: 13px; padding: 4px 0; border-top: 1px dashed #ecd2d2; }
.adj-line:first-child { border-top: none; }
.adj-line .flower-count { font-size: 15px; font-weight: 700; flex: none; }
.adj-line .flower-count.pos { color: #27ae60; }
.adj-line .flower-count.neg { color: #eb5757; }
.adj-reason { flex: 1; min-width: 0; color: var(--text-2); line-height: 1.45; white-space: pre-wrap; }
.adj-meta { flex: none; font-size: 11px; color: var(--text-3); white-space: nowrap; }

/* ── 附件 chips（公告 / 宣贯 / 人人讲）── */
.att-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.att-chip { display: inline-flex; align-items: center; background: #eef6f4; color: #0a7d6b; border: 1px solid #cfe7e1; border-radius: 14px; padding: 3px 10px; font-size: 12px; text-decoration: none; max-width: 100%; }
.att-chip:hover { background: #e0efe9; }
.att-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.att-item { display: inline-flex; align-items: center; background: #eef6f4; color: #0a7d6b; border: 1px solid #cfe7e1; border-radius: 14px; padding: 3px 8px; font-size: 12px; }
.att-x { margin-left: 6px; cursor: pointer; color: #c0392b; font-weight: 700; }
.att-x:hover { opacity: .7; }
.att-add { display: inline-flex; align-items: center; color: #888; border: 1.5px dashed #bbb; border-radius: 8px; padding: 6px 14px; font-size: 13px; cursor: pointer; background: #fafafa; }
.att-add:hover { color: var(--accent, #0a7d6b); border-color: var(--accent, #0a7d6b); background: #f0fdf9; }
/* 附件中的图片：发布即内联显示（缩略图，点击看大图） */
.att-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.att-img { display: block; max-width: 160px; max-height: 160px; width: auto; height: auto; border-radius: 8px; border: 1px solid #e2e2e2; cursor: zoom-in; background: #f5f5f5; }
.att-img:hover { border-color: var(--accent, #0a7d6b); }

/* ── PDCA 楼中楼回复 ── */
.consult-a { margin: 6px 0; line-height: 1.6; }
.consult-a-child { margin-top: 4px; }
.ans-actions { display: inline-flex; gap: 6px; margin-left: 6px; vertical-align: middle; }
.btn-xs { font-size: 11px; padding: 1px 8px; border-radius: 10px; line-height: 1.6; cursor: pointer; }
.btn-danger { background: #fdecea; color: #c0392b; border: 1px solid #f5c6c0; }
.btn-danger:hover { background: #f9d4cf; }
.btn-gray { background: #f0f0f0; color: #555; border: 1px solid #ddd; }
.btn-gray:hover { background: #e6e6e6; }
.btn-outline { background: #fff; border: 1px solid var(--accent, #0a7d6b); color: var(--accent, #0a7d6b); }

/* ── 人人讲院选「已不选」折叠区 ── */
.rrj-rejected { margin: 8px 0 4px; }
.rrj-rejected > summary { cursor: pointer; font-size: 13px; color: #888; padding: 4px 0; }
.rrj-rejected .tag-pending { background: #f0f0f0; color: #999; border: 1px solid #ddd; }


/* ── 图片点击放大 lightbox ── */
#img-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; z-index: 10000; overflow: auto; -webkit-overflow-scrolling: touch; touch-action: none; overscroll-behavior: contain; }
#img-lightbox.show { display: flex; }
#img-lightbox .lb-img { max-width: 96%; max-height: 90%; object-fit: contain; border-radius: 4px; box-shadow: 0 4px 24px rgba(0,0,0,.5); cursor: zoom-in; touch-action: none; transform-origin: center center; transition: transform .12s ease-out; will-change: transform; }
#img-lightbox .lb-close { position: fixed; top: 12px; right: 16px; width: 40px; height: 40px; line-height: 38px; text-align: center; color: #fff; font-size: 30px; border-radius: 50%; background: rgba(255,255,255,.18); cursor: pointer; z-index: 10001; }
.att-img.zoomable, .photo-item .zoomable { cursor: zoom-in; }

/* ── 评论区（公告 / 宣贯 / PDCA 院选公示）─── */
.cmt-title { cursor: pointer; user-select: none; -webkit-user-select: none; }
.cmt-caret { color: var(--text-3); font-size: 12px; margin-left: 2px; }
.cmt-panel { margin-top: 6px; }
.cmt-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.cmt-empty { font-size: 13px; margin-bottom: 10px; }
.cmt-item { background: #f8f9fb; border-radius: 10px; padding: 8px 10px; }
.cmt-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.cmt-head b { font-weight: 600; color: var(--text-2); }
.cmt-time { font-size: 12px; }
.cmt-del { margin-left: auto; }
.cmt-text { font-size: 14px; color: #333; margin-top: 3px; white-space: pre-wrap; word-break: break-word; }
.cmt-input-row { display: flex; gap: 8px; align-items: flex-end; }
.cmt-input { flex: 1; border: 1px solid #e2e5e9; border-radius: 10px; padding: 8px 10px; font-size: 14px; font-family: inherit; resize: vertical; line-height: 1.5; }
.cmt-input:focus { outline: none; border-color: var(--primary); }

/* ── 评价子tab：人员评价总系数清单 ─── */
.eval-head { margin: 4px 2px 10px; }
.eval-title { font-size: 16px; font-weight: 700; color: var(--text); }
.eval-ym { font-size: 13px; font-weight: 500; color: var(--accent); margin-left: 6px; }
.eval-sub { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.eval-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
/* 李烨可见的操作区：月份选择在上行，其下 5 个按钮单独成行、撑满屏宽、每个做成正方形方块（文字按 2 字每行折行） */
.eval-import-row { display: flex; gap: 8px; align-items: flex-start; flex-wrap: nowrap; flex: 1 1 100%; width: 100%; margin-top: 4px; }
.eval-tool-btn { flex: 1 1 0; min-width: 0; aspect-ratio: 1 / 1; padding: 2px; font-size: 12px; line-height: 1.15; text-align: center; white-space: normal; border-radius: 10px; }
/* 大屏（平板/桌面）收一下，避免方块过大；手机（≤559px）仍撑满屏宽 */
@media (min-width: 560px) {
  .eval-import-row { max-width: 480px; margin-left: auto; margin-right: auto; }
}
/* 月份下拉放大 */
.eval-ym-label { font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.eval-ym-select { font-size: 15px; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--accent); background: #fff; color: var(--text-1); cursor: pointer; }
.eval-attn { margin: 0 2px 10px; padding: 8px 10px; border-radius: 10px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-size: 12px; line-height: 1.5; }
/* 数据全部确认（锁定）横幅：深绿提示，所有人可见（含只读游客） */
.eval-locked { margin: 0 2px 10px; padding: 8px 10px; border-radius: 10px; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; font-size: 12px; line-height: 1.5; }
.eval-locked b { color: #047857; }
/* 李烨专属「数据全部确认」/「解除锁定」按钮 */
.eval-import-row .btn-lock { background: #0f7b6c; border-color: #0f7b6c; color: #fff; }
.eval-import-row .btn-lock:hover { background: #0c6559; }
.eval-import-row .btn-unlock { background: #fff; border-color: #0f7b6c; color: #0f7b6c; }
.eval-import-row .btn-unlock:hover { background: #f0faf8; }
.eval-card { padding: 0; overflow-x: hidden; }
/* 紧凑排布：取消 min-width，改用 table-layout:fixed + 百分比列宽，整行在手机一屏内显示，无需左右拖动 */
.eval-card .eval-table { width: 100%; border-collapse: collapse; font-size: 12px; table-layout: fixed; }
.eval-table th, .eval-table td { padding: 6px 4px; text-align: center; border-bottom: 1px solid var(--border); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eval-table th { background: #fafbfc; color: var(--text-2); font-weight: 600; position: sticky; top: 0; font-size: 11px; }
.eval-table th:nth-child(1), .eval-table td:nth-child(1) { width: 18%; }
.eval-table th:nth-child(2), .eval-table td:nth-child(2) { width: 10%; }
.eval-table th:nth-child(3), .eval-table td:nth-child(3) { width: 22.8%; }
.eval-table th:nth-child(4), .eval-table td:nth-child(4) { width: 16.4%; }
.eval-table th:nth-child(5), .eval-table td:nth-child(5) { width: 16.4%; }
.eval-table th:nth-child(6), .eval-table td:nth-child(6) { width: 16.4%; }
.eval-table td.num { text-align: center; font-variant-numeric: tabular-nums; }
.eval-table td.total { font-weight: 700; color: var(--primary); }
.eval-table .eval-flower { display: inline-block; margin-left: 3px; font-size: 10px; color: var(--flower-red); }
.eval-input { width: 60px; padding: 4px 5px; border: 1px solid var(--accent); border-radius: 7px; font-size: 12px; text-align: center; font-variant-numeric: tabular-nums; }
.eval-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(15,123,108,.12); }
.eval-select { width: 100%; min-width: 48px; box-sizing: border-box; padding: 4px 2px; border: 1px solid var(--accent); border-radius: 7px; font-size: 12px; text-align: center; font-variant-numeric: tabular-nums; background: #fff; cursor: pointer; }
.eval-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(15,123,108,.12); }
/* 窄屏（手机）进一步收紧，保证整行不溢出 */
@media (max-width: 480px) {
  .eval-card .eval-table { font-size: 11px; }
  .eval-table th, .eval-table td { padding: 5px 3px; }
  .eval-table th { font-size: 10px; }
  .eval-select { font-size: 11px; padding: 3px 1px; }
}
.eval-textarea { width: 100%; min-height: 140px; border: 1px solid #e2e5e9; border-radius: 10px; padding: 10px; font-size: 13px; font-family: ui-monospace, Menlo, Consolas, monospace; resize: vertical; line-height: 1.5; box-sizing: border-box; }
.eval-textarea:focus { outline: none; border-color: var(--primary); }
.cmt-send { white-space: nowrap; }
.cmt-login { font-size: 13px; margin-top: 4px; }

/* ── 评价子tab：分组底色（每组一间色，便于区分）── */
.eval-table tbody tr[data-div="建筑"]     { background: #fff7ed; } /* 暖橙 */
.eval-table tbody tr[data-div="水工"]     { background: #eff6ff; } /* 蓝 */
.eval-table tbody tr[data-div="暖通"]     { background: #ecfdf5; } /* 绿 */
.eval-table tbody tr[data-div="综管"]     { background: #fef9c3; } /* 黄 */
.eval-table tbody tr[data-div="综合组"] { background: #faf5ff; } /* 紫 */
.eval-table tbody tr[data-div]:hover { filter: brightness(0.97); }
/* 组长置顶行：左侧加粗标识 + 组长徽标 */
.eval-table tbody tr.eval-lead-row td:nth-child(1) { font-weight: 700; }
.eval-lead-tag { display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 6px; background: #0f7b6c; color: #fff; font-size: 10px; font-weight: 600; line-height: 16px; vertical-align: middle; }
/* 锁定（整月或本室）后整行灰显：覆盖各组底色，明确「可填部分已只读」 */
.eval-table tbody tr.eval-row-locked td { background: #edf0f3 !important; color: #9aa3a9 !important; }
.eval-table tbody tr.eval-row-locked td.total { color: #9aa3a9 !important; }
.eval-table tbody tr.eval-row-locked .eval-lead-tag { background: #b8c0c8 !important; }
.eval-table tbody tr.eval-row-locked .eval-flower { opacity: .5; }
.eval-refresh-btn { padding: 6px 12px; font-size: 13px; border: 1px solid var(--border); background: #fff; color: var(--text-1); border-radius: 8px; cursor: pointer; }
.eval-refresh-btn:hover { background: #f3f5f7; }

/* ── 评价子tab：每组下方的通长「系数确认」按钮行 ── */
.eval-confirm-row td { padding: 0; background: #f7f8fa; border-top: 2px solid var(--border); }
.eval-confirm-cell { padding: 8px 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
/* 试算 + 锁定 两按钮并排撑满一行（各占一半） */
.eval-confirm-btns { display: flex; gap: 8px; flex: 1 1 100%; }
.eval-confirm-btns .btn { flex: 1 1 0; }
.eval-confirm-btn { width: 100%; display: block; font-size: 13px; padding: 9px 0; margin-bottom: 4px; }
.eval-trial-btn { background: #4f46e5; border-color: #4338ca; color: #fff; font-weight: 500; }
.eval-trial-btn:hover { background: #4338ca; }
.eval-lock-btn { background: #0f7b6c; border-color: #0f7b6c; color: #fff; }
.eval-lock-btn:hover { background: #0c6559; }
.eval-lock-btn.is-dim { background: #cbd5e1; border-color: #cbd5e1; color: #fff; opacity: .85; cursor: not-allowed; }
.eval-lock-btn.is-dim:hover { background: #cbd5e1; }
.eval-unlock-btn { background: #fff; border-color: #0f7b6c; color: #0f7b6c; }
.eval-unlock-btn:hover { background: #f0faf8; }
.eval-confirm-note { flex: 1 1 100%; font-size: 12px; line-height: 1.45; }
.eval-confirm-status { font-variant-numeric: tabular-nums; }
.eval-confirm-status.ok { color: #15803d; font-weight: 600; }
.eval-confirm-status.bad { color: #b91c1c; font-weight: 600; }
.eval-confirm-status.muted { color: var(--text-2); }
/* 室级锁定后：本组「已固定」提示，与李烨「数据全部确认」后的固定态保持一致 */
.eval-group-locked-note { color: #15803d; font-weight: 600; font-size: 12px; }
.eval-confirm-hint { color: var(--text-2); font-size: 11px; margin-left: 6px; }
.btn-special { background: #475569; border-color: #475569; color: #fff; }
.btn-special:hover { background: #334155; }
/* 窄屏（手机）微调确认按钮 */
@media (max-width: 480px) {
  .eval-confirm-cell { padding: 6px 6px; }
  .eval-confirm-btn { font-size: 12px; padding: 8px 0; }
  .eval-confirm-note { font-size: 11px; }
}
