/* 吉气崽团队工作台 · 样式（独立主题：青绿 × 暖金，与个人台像素蓝明确区分） */

:root {
  --bg: #F6F4EF;
  --panel: #FFFFFF;
  --panel-2: #EAF3EC;
  --line: #DDE5DC;
  --ink: #2B3A31;
  --ink-2: #6B7A6F;
  --brand: #3E7C5B;
  --brand-dark: #2E5E44;
  --gold: #E8A33D;
  --gold-soft: #F6E7C6;
  --red: #C25549;
  --blue: #4A78A8;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(43, 58, 49, .08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* 🔴 hidden 属性优先级最高：防止 .login-layer / .modal-layer 的 display:flex 覆盖掉 hidden
   （否则登录层透明挡住全页点击——回归第一轮抓到的真 bug） */
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--ink);
  font-size: 15px; line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; color: var(--ink); }

.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }

/* ---------- 按钮 ---------- */
.btn {
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  border-radius: 9px; padding: 8px 14px; font-size: 14px;
  min-height: 38px;
}
.btn:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-danger { color: var(--red); }
.btn-danger:hover { border-color: var(--red); }
.btn-mini { min-height: 30px; padding: 4px 10px; font-size: 13px; border-radius: 7px; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.icon-btn {
  border: 1px solid var(--line); background: var(--panel); color: var(--ink-2);
  border-radius: 9px; min-height: 38px; padding: 6px 10px;
}
.icon-btn:hover { color: var(--brand); border-color: var(--brand); }

/* ---------- 登录 ---------- */
.login-layer {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #EAF3EC 0%, #F6F4EF 60%, #F6E7C6 100%);
  padding: 20px;
}
.login-box {
  width: 100%; max-width: 360px; background: var(--panel);
  border-radius: 18px; box-shadow: var(--shadow);
  padding: 34px 28px; text-align: center;
}
.login-title { font-size: 22px; color: var(--brand-dark); margin-bottom: 4px; }
.login-sub { color: var(--ink-2); font-size: 13px; margin-bottom: 22px; letter-spacing: 2px; }
.login-input {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 14px; margin-bottom: 12px; background: var(--bg);
}
.login-input:focus { outline: none; border-color: var(--brand); }
.login-btn { width: 100%; margin-top: 4px; }
.login-err { color: var(--red); font-size: 13px; min-height: 18px; margin-top: 10px; }

/* ---------- 布局：宽屏侧栏 ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 200px; flex: none; background: var(--panel);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  padding: 16px 10px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.brand {
  font-weight: 700; color: var(--brand-dark); font-size: 16px;
  padding: 4px 10px 14px; border-bottom: 1px dashed var(--line); margin-bottom: 10px;
}
.brand small { display: block; font-weight: 400; color: var(--ink-2); font-size: 11px; letter-spacing: 1px; }
.nav-item {
  display: flex; align-items: center; gap: 8px;
  border: none; background: none; text-align: left;
  padding: 10px 12px; border-radius: 9px; font-size: 14px; color: var(--ink);
  min-height: 42px; width: 100%;
}
.nav-item:hover { background: var(--panel-2); }
.nav-item.active { background: var(--brand); color: #fff; font-weight: 600; }
.nav-item .nav-badge {
  margin-left: auto; background: var(--red); color: #fff;
  border-radius: 9px; font-size: 11px; padding: 0 6px; min-width: 18px; text-align: center; line-height: 18px;
}
.nav-item.active .nav-badge { background: rgba(255,255,255,.35); }
.sidebar-foot { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }
.sidebar-user { font-size: 12px; color: var(--ink-2); padding: 4px 12px 8px; }

/* ---------- 主区 ---------- */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; background: var(--bg);
  position: sticky; top: 0; z-index: 10;
}
.topbar-title { font-size: 18px; font-weight: 700; }
.role-badge {
  background: var(--gold-soft); color: #8A5B14; border-radius: 20px;
  font-size: 12px; padding: 3px 10px;
}
.topbar-spacer { flex: 1; }
.default-pwd-banner {
  margin: 0 18px; padding: 8px 14px; border-radius: 10px;
  background: #FBEDEA; color: var(--red); font-size: 13px;
  display: flex; align-items: center; gap: 10px;
}
.view { flex: 1; padding: 4px 18px 28px; max-width: 1080px; width: 100%; }

/* ---------- 窄屏底栏 ---------- */
.tabbar { display: none; }

@media (max-width: 1023px) {
  .sidebar { display: none; }
  .app { flex-direction: column; }
  .tabbar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
    background: var(--panel); border-top: 1px solid var(--line);
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
  }
  .tab-item {
    flex: 1; border: none; background: none; color: var(--ink-2);
    font-size: 12px; padding: 6px 2px; min-height: 50px; border-radius: 9px;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
  }
  .tab-item .ico { width: 20px; height: 20px; }
  .tab-item.active { color: var(--brand); font-weight: 600; }
  .view { padding: 4px 12px calc(80px + env(safe-area-inset-bottom)); }
  .topbar { padding: 10px 12px; }
}

/* ---------- 卡片与列表 ---------- */
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 16px; margin-bottom: 12px;
}
.card-title { font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.section-title { font-size: 15px; font-weight: 700; margin: 16px 2px 10px; color: var(--brand-dark); }
.empty { color: var(--ink-2); text-align: center; padding: 26px 0; font-size: 13px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 767px) { .grid2 { grid-template-columns: 1fr; } }

/* ---------- 药丸 ---------- */
.pill {
  display: inline-block; border-radius: 20px; font-size: 12px;
  padding: 2px 10px; background: var(--panel-2); color: var(--ink-2); white-space: nowrap;
}
.pill-brand { background: var(--brand); color: #fff; }
.pill-gold { background: var(--gold-soft); color: #8A5B14; }
.pill-red { background: #FBEDEA; color: var(--red); }
.pill-blue { background: #E8F0F8; color: var(--blue); }
.pill-done { background: #E4F0E7; color: var(--brand-dark); }
/* 2026-10-09 主人拍板：任务状态分色——待办=灰 提测=紫（进行中复用 pill-blue、完成复用 pill-done） */
.pill-gray { background: #EEF0F2; color: #5F6B76; }
.pill-purple { background: #F0E9FA; color: #6B3FA0; }
.pill-click { cursor: pointer; border: 1px solid transparent; }
.pill-click:hover { border-color: var(--brand); }

/* ---------- BUG 卡药丸分形（2026-10-20 主人拍板：状态与严重程度视觉差距拉开） ---------- */
/* 状态药丸：实心软底 + 同色边框加重，一眼可辨三态 */
.pill-status { font-weight: 700; border: 1.5px solid; }
.pill-red.pill-status { border-color: #E2988B; }
.pill-gold.pill-status { border-color: #DEC083; }
.pill-done.pill-status { border-color: #9DC4AA; }
/* 严重程度药丸：空心虚线框 + 色点，与状态形态完全不同 */
.pill-sev {
  display: inline-flex; align-items: center; gap: 5px;
  background: transparent; border: 1.5px dashed #C6CFD6; color: var(--ink-2); font-weight: 600;
}
.sev-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.sev-red .sev-dot { background: var(--red); }
.sev-red { color: var(--red); border-color: #E5B3AA; }
.sev-orange .sev-dot { background: #E07B24; }
.sev-orange { color: #B35B10; border-color: #E9C193; }
.sev-blue .sev-dot { background: var(--blue); }
.sev-blue { color: var(--blue); border-color: #A9C4DB; }
.sev-gray .sev-dot { background: #93A0AA; }
/* 端标签：浅蓝紫实底描边，第三种形态（区别于状态实心加重 / 严重程度虚线+色点） */
.pill-plat { background: #EEF0FA; color: #4A58B5; border: 1px solid #C9CFF0; font-weight: 600; }
/* 两枚药丸之间拉开间距 */
.bug-card .card-title .pill, .modal .card-row .pill-status, .modal .card-row .pill-sev { margin-left: 8px; }
.bug-card .card-title .pill:first-child { margin-left: 0; }

/* ---------- BUG 列表按状态分组外框（2026-10-20 主人拍板：待处理/完成不再混排） ---------- */
.bug-group { border: 1.5px solid #E3E8EC; border-radius: 14px; margin-bottom: 16px; overflow: hidden; background: var(--panel); }
.bug-group-head {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  font-weight: 700; font-size: 14px; border-bottom: 1px solid #EDF1F4;
}
.bug-group-name { letter-spacing: 1px; }
.bug-group-cnt { font-size: 12px; font-weight: 600; border-radius: 12px; padding: 2px 10px; }
.bug-group-body { padding: 12px 12px 4px; display: flex; flex-direction: column; gap: 8px; }
.bug-group-body .card { margin-bottom: 8px; }
/* 待处理：红调，最醒目 */
.bg-pending .bug-group-head { background: #FDF3F1; color: var(--red); border-left: 4px solid var(--red); }
.bg-pending .bug-group-cnt { background: #FBEDEA; color: var(--red); }
/* 处理完待检验：金调，提醒有人等你验收 */
.bg-verify .bug-group-head { background: #FBF6EA; color: #8A5B14; border-left: 4px solid #D9A83F; }
.bg-verify .bug-group-cnt { background: var(--gold-soft); color: #8A5B14; }
/* 完成：灰绿调弱化，收进「已完成」的视觉层级 */
.bg-done .bug-group-head { background: #F3F6F4; color: #7A8891; border-left: 4px solid #B9C6BE; }
.bg-done .bug-group-cnt { background: #EDF1F3; color: #7A8891; }
.bg-done .bug-card { opacity: .78; }

/* ---------- sheet 标签（Bug 三视图等） ---------- */
.pill-tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.pill-tab {
  border: 1px solid var(--line); background: var(--panel); color: var(--ink-2);
  border-radius: 20px; padding: 6px 14px; font-size: 13px; cursor: pointer;
}
.pill-tab:hover { border-color: var(--brand); color: var(--ink); }
.pill-tab.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 599px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 5px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: var(--ink-2); }
.field input, .field select, .field textarea {
  border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; background: var(--bg);
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); }

/* ---------- 弹窗 ---------- */
.modal-layer {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(43, 58, 49, .4);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal {
  background: var(--panel); border-radius: 16px; box-shadow: var(--shadow);
  width: 100%; max-width: 560px; max-height: 88vh;
  display: flex; flex-direction: column;
  flex: 0 1 auto; min-height: 0;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 700;
}
.modal-body { padding: 16px 18px; overflow-y: auto; flex: 1; min-height: 0; }
.modal-foot { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.modal-close { border: none; background: none; font-size: 20px; color: var(--ink-2); min-height: 34px; }

/* ---------- 任务详情弹窗 · 三模块大版式（2026-10-10 主人拍板） ---------- */
.modal.modal-lg { max-width: 880px; }
.td-sec {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 14px;
}
.td-sec:last-child { margin-bottom: 0; }
.td-sec-tag {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--brand-dark); letter-spacing: 1px;
  margin-bottom: 12px;
}
.td-sec-tag::before { content: ''; width: 4px; height: 14px; border-radius: 2px; background: var(--brand); flex: 0 0 auto; }
.td-sec-hint { font-weight: 400; font-size: 12px; color: var(--ink-2); letter-spacing: 0; margin-left: auto; }
.td-meta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 16px; align-items: start; }
.td-meta-item label { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 6px; }
.td-meta-val { font-size: 14px; font-weight: 600; min-height: 38px; display: flex; align-items: center; }
.td-meta-text { font-weight: 500; white-space: nowrap; }
.td-meta-wide { grid-column: span 4; }
.td-btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.td-btn { min-height: 38px; padding: 7px 16px; font-size: 14px; }
.td-task-title { font-size: 17px; font-weight: 700; line-height: 1.5; margin-bottom: 8px; }
.td-task-desc {
  white-space: pre-wrap; word-break: break-word;
  font-size: 14px; line-height: 1.7;
  background: var(--panel); border: 1px dashed var(--line); border-radius: 10px;
  padding: 12px 14px;
}
.td-person-list { display: flex; flex-direction: column; gap: 10px; }
.td-person {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 16px; min-height: 60px;
}
.td-person-me { border: 1.5px solid var(--brand); background: #F2F8F3; }
.td-person-name { font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.td-me-tag {
  font-style: normal; font-size: 11px; font-weight: 600; color: #fff;
  background: var(--brand); border-radius: 6px; padding: 2px 7px;
}
.td-person-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.td-person-pill { font-size: 14px; padding: 6px 14px; }
@media (max-width: 760px) {
  .modal.modal-lg { max-width: 100%; }
  .td-meta-grid { grid-template-columns: 1fr 1fr; }
  .td-meta-wide { grid-column: span 2; }
  .td-person { flex-wrap: wrap; }
  .td-person-btns { justify-content: flex-start; }
}

/* ---------- 会议纪要（2026-10-11 新增板块） ---------- */
#mfParticipants .ag-wrap { max-height: 200px; overflow-y: auto; }
.meet-snip { color: var(--ink-2); font-size: 13px; }
.meet-part-line { flex-wrap: wrap; gap: 4px; font-weight: 400; }
.rich-toolbar {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px;
}
.rich-toolbar button {
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  border-radius: 7px; min-height: 32px; padding: 4px 10px; font-size: 13px;
}
.rich-toolbar button:hover { border-color: var(--brand); color: var(--brand-dark); }
.rich-editor {
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel);
  min-height: calc(1.7em * 10 + 24px); padding: 12px 14px; font-size: 15px; line-height: 1.7;
  overflow-y: auto; outline: none; word-break: break-word;
}
.rich-editor:focus { border-color: var(--brand); }
.rich-editor.is-empty::before {
  content: attr(data-placeholder); color: var(--ink-2); pointer-events: none;
}
.rich-editor img, .rich-view img { max-width: 100%; border-radius: 8px; margin: 4px 0; }
.rich-editor ul, .rich-editor ol, .rich-view ul, .rich-view ol { padding-left: 22px; }
.rich-editor blockquote, .rich-view blockquote {
  border-left: 3px solid var(--line); margin: 6px 0; padding: 2px 12px; color: var(--ink-2);
}
.rich-view { font-size: 15px; line-height: 1.75; word-break: break-word; }
.rich-view h1, .rich-view h2, .rich-view h3 { margin: 10px 0 6px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; border-radius: 10px;
  padding: 10px 18px; font-size: 14px; opacity: 0; pointer-events: none;
  transition: all .25s; z-index: 60; max-width: 86vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 筛选条 ---------- */
.filterbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.filterbar select, .filterbar input {
  border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; background: var(--panel);
}

/* ---------- 排期周视图 ---------- */
.week-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(64px, 1fr)); gap: 8px; }
/* 2026-10-10 修 Edge 竖排错乱：周标签/副标题/日期头这类单行文本一律禁换行并显式左/中对齐，
   无论浏览器缓存混版、翻译插件改写还是对齐特性抽风，都不会再被拆成一字一行竖着排 */
.week-nav .week-label { font-weight: 700; white-space: nowrap; text-align: left; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.week-nav .week-unsched { white-space: nowrap; text-align: left; }
.week-subtitle { white-space: nowrap; text-align: left; }
@media (max-width: 767px) { .week-grid { grid-template-columns: 1fr; } }
/* 2026-10-09 修显示 bug：网格列默认 min-width:auto，长任务名（nowrap）会把列撑出卡片边界，
   日列被顶出去、文字飘在格子外。min-width:0 让 1fr 列真正可收缩，配合 week-task 的省略号截断 */
.week-col { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; min-height: 90px; min-width: 0; overflow: hidden; }
.week-col.today-col { border-color: var(--gold); background: #FDF6E8; }
.week-col h4 { font-size: 12px; color: var(--ink-2); margin-bottom: 6px; text-align: center; white-space: nowrap; overflow: hidden; }
.week-col.today-col h4 { color: #8A5B14; font-weight: 700; }
.week-task {
  background: var(--panel-2); border-radius: 8px; padding: 5px 8px;
  font-size: 12px; margin-bottom: 5px; cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.week-task:hover { box-shadow: 0 0 0 2px var(--gold); }
/* 2026-10-09 主人拍板：不同任务自动不同颜色（按任务 id 稳定取色） */
.week-task.wt-c0 { background: #E6F4EA; color: #1E7B34; }
.week-task.wt-c1 { background: #E3F0FB; color: #1D5FA8; }
.week-task.wt-c2 { background: #F0E9FA; color: #6B3FA0; }
.week-task.wt-c3 { background: #FDF0E0; color: #B05E12; }
.week-task.wt-c4 { background: #E0F5F4; color: #0F7B74; }
.week-task.wt-c5 { background: #FBE7EE; color: #B03A6B; }
.week-task.wt-c0:hover { box-shadow: 0 0 0 2px #1E7B34; }
.week-task.wt-c1:hover { box-shadow: 0 0 0 2px #1D5FA8; }
.week-task.wt-c2:hover { box-shadow: 0 0 0 2px #6B3FA0; }
.week-task.wt-c3:hover { box-shadow: 0 0 0 2px #B05E12; }
.week-task.wt-c4:hover { box-shadow: 0 0 0 2px #0F7B74; }
.week-task.wt-c5:hover { box-shadow: 0 0 0 2px #B03A6B; }

/* ---------- 表格（成员/日志）---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--panel); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.tbl th, .tbl td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th { background: var(--panel-2); color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: none; }
.tbl-scroll { overflow-x: auto; }
.tbl .btn-mini { margin-right: 6px; }

/* ---------- 日报周报汇总 ---------- */
.report-user { border-bottom: 1px dashed var(--line); padding: 8px 2px; }
.report-user:last-child { border-bottom: none; }
.report-user-head { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.report-user-body { font-size: 13px; color: var(--ink); padding: 6px 2px 2px 8px; white-space: pre-wrap; }
.report-miss { color: var(--ink-2); font-weight: 400; }

/* ---------- 配置中心 ---------- */
.dict-list { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 14px; }
.dict-row { display: flex; align-items: center; gap: 6px; }
.dict-row input { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: var(--bg); }
.dict-row .btn-mini { min-height: 32px; }

/* 统计块 */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 6px; }
.stat-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; text-align: center; }
.stat-box b { display: block; font-size: 22px; color: var(--brand-dark); }
.stat-box span { font-size: 12px; color: var(--ink-2); }
/* 统计卡可点跳转（2026-10-08）：hover 描边 + 微浮起，触屏按下有反馈 */
.stat-click { cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.stat-click:hover { border-color: var(--brand); box-shadow: 0 2px 8px rgba(0,0,0,.06); transform: translateY(-1px); }
.stat-click:active { transform: translateY(0); }

/* ---------- 工作台：任务分区 / 暗提示 ---------- */
.section-sub { font-size: 12px; font-weight: 400; color: var(--ink-2); margin-left: 8px; }
.vdim { font-size: 12px; color: var(--ink-2); }
.week-unsched { font-size: 12px; color: var(--ink-2); }

/* ---------- 版本块（样式参考个人工作台「各分支进度」，配色走团队台青绿×暖金） ---------- */
.version-card--dev { border-color: var(--brand); }
.ver-title { font-weight: 400; font-size: 13px; color: var(--ink-2); }
/* 2026-10-09 三版（主人要求「学习个人台展示样式」）：每块一行——
   块名+状态（固定列）｜ 右侧内容列（环节行 → 负责人行 → 内容全文）；
   浅蓝灰圆角块、环节橙色药丸、负责人小号浅灰蓝标签，整体扁平留白 */
.vblocks { margin-top: 4px; display: flex; flex-direction: column; gap: 10px; }
.vblk { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px 12px; background: #F7F9FA; border: 1px solid #E4EAE6; border-radius: 10px; }
.vblk-name { flex: 0 0 auto; font-weight: 700; font-size: 13px; color: var(--ink); line-height: 20px; white-space: nowrap; }
.vblk > .pill { flex: 0 0 auto; margin-top: 1px; }
.vblk-note { flex: 1 1 auto; min-width: 0; }
.vblk-stage { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 6px; margin-bottom: 5px; }
.vblk-k { font-size: 11.5px; color: #8B978D; line-height: 20px; flex: none; }
.vblk-stage-pill { font-size: 11.5px; line-height: 18px; color: #8A5B14; background: var(--gold-soft); border: 1px solid #E8D5A8; border-radius: 6px; padding: 0 9px; word-break: break-word; }
.vblk-owners { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-bottom: 5px; }
.pill-own { font-size: 11px; padding: 1px 9px; background: #EDF1F4; border: 1px solid #D9E1E7; color: var(--ink); font-weight: 500; }
/* 2026-10-10 主人拍板：任务个人状态药丸——本人可点（青绿描边高亮），他人只读（浅灰） */
.pill-ms { background: #EAF2EE; border: 1px solid var(--brand); color: var(--brand-dark); cursor: pointer; font-size: 11.5px; }
.pill-ms:hover { background: #DCEAE2; }
.pill-ms b { font-weight: 700; }
.pill-ms-ro { background: #F1F4F2; border: 1px solid var(--line); color: var(--ink-2); font-size: 11.5px; }
.ms-item { display: inline-flex; align-items: center; gap: 5px; margin-right: 14px; }
.ms-row { flex-wrap: wrap; row-gap: 6px; }
.vblk-content { font-size: 12.5px; line-height: 1.8; white-space: pre-wrap; word-break: break-word; color: var(--ink); }
.vblk-dim { color: #8B978D; font-size: 11.5px; line-height: 20px; }
.vblk--empty { padding: 7px 14px; align-items: center; background: transparent; border-style: dashed; }
@media (max-width: 599px) {
  .vblk { flex-wrap: wrap; }
  .vblk-name { line-height: 22px; }
}

/* ---------- 版本表单：逐块编辑 ---------- */
.vform-hint { font-size: 12px; color: var(--ink-2); margin: 10px 0; }
/* 2026-10-09 主人拍板：版本表单/详情对齐个人台 */
.vform-status-row { display: flex; gap: 8px; align-items: center; }
.vform-status-row select { flex: 1; }
.vblk-form-row select.vblk-form-status { flex: 0 0 130px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; background: var(--panel); }
.vv-title { font-size: 22px; font-weight: 800; margin: 2px 0 10px; letter-spacing: 1px; }
/* 2026-10-09 详情头：大标题居左、状态药丸居右（对齐个人台截图） */
.vv-head { display: flex; align-items: center; gap: 10px; }
.vv-head .vv-title { flex: 1 1 auto; min-width: 0; margin: 0; }
.vv-head > .pill { flex: 0 0 auto; }
.vv-title .ver-title { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-left: 10px; letter-spacing: 0; }
.vv-block { margin-top: 12px; }
.vv-k { font-size: 13px; font-weight: 700; color: var(--brand-dark); margin-bottom: 6px; letter-spacing: 1px; }
/* 2026-10-09 三版（学习个人台）：核心内容为干净的大字文本，不带框不带底 */
.vv-core { font-size: 13.5px; line-height: 1.9; white-space: pre-wrap; color: var(--ink); }
.ver-core { white-space: pre-wrap; line-height: 1.8; font-size: 12.5px; padding: 7px 0 2px; margin-bottom: 6px; color: var(--ink); }
.vblk-form { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; background: var(--bg); }
.vblk-form-head { font-weight: 700; font-size: 13px; color: var(--brand-dark); margin-bottom: 6px; }
.vblk-form-content { width: 100%; min-height: calc(1.6em * 6 + 14px); line-height: 1.6; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: var(--panel); resize: vertical; }
/* 2026-10-09 主人拍板：核心内容与每块开发内容默认至少 6 行高 */
#vfCore { min-height: calc(1.6em * 6 + 14px); line-height: 1.6; }
.vblk-form-row { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.vblk-form-row input { flex: 1; min-width: 140px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: var(--panel); }
.vblk-form-owners { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.vblk-form-owners input { width: auto; margin-right: 2px; }

/* ---------- Bug 表单：负责人按部门分组（2026-10-08 主人拍板：按部门排列 + 加大） ---------- */
.ag-wrap { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.ag-group { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px 10px; background: var(--bg); }
.ag-head { font-size: 12px; font-weight: 700; color: var(--brand-dark); margin-bottom: 6px; letter-spacing: 1px; }
.ag-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.ag-pill { font-size: 14px; padding: 8px 14px; gap: 4px; }
.ag-pill input { width: 15px; height: 15px; }

/* ---------- 未处理事项强提醒（2026-10-08 主人拍板：强烈、明显） ---------- */
.alert-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin: 0 18px 10px; padding: 10px 14px;
  background: #FDECE8; border: 1.5px solid #E8A33D; border-left: 6px solid #D9480F;
  border-radius: 10px; font-size: 14px; color: #7A2E0E;
  animation: alertPulse 2.4s ease-in-out infinite;
}
@keyframes alertPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(217,72,15,.28); } 50% { box-shadow: 0 0 0 5px rgba(217,72,15,.10); } }
.alert-bar-label { font-weight: 800; letter-spacing: 1px; color: #D9480F; }
.alert-bar b { cursor: pointer; padding: 3px 10px; border-radius: 999px; background: #fff; border: 1px solid #E8A33D; font-weight: 700; }
.alert-bar b:hover { background: #D9480F; color: #fff; border-color: #D9480F; }
.alert-bar i { font-style: normal; color: #E8A33D; }

/* 导航徽章：侧栏 + 底栏通用，红底白字小圆点数字 */
.nav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; margin-left: auto;
  background: #D9480F; color: #fff; border-radius: 999px;
  font-size: 11px; font-weight: 800; line-height: 1;
}
.tab-item .nav-badge { position: absolute; top: 4px; right: calc(50% - 26px); margin: 0; }
.tab-item { position: relative; }

/* Bug 详情：流转记录时间线 */
.flow-log-title { font-size: 12px; font-weight: 700; color: var(--ink-2); margin: 14px 0 6px; letter-spacing: 1px; }
.flow-log { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow: auto; }
.flow-log-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 13px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.flow-log-note { color: var(--ink-2); white-space: pre-wrap; width: 100%; padding-left: 2px; }

/* ---------- 首页改版（2026-10-08 主人拍板：四段式 + 过期红标 + 两周排期） ---------- */
/* 过期任务卡：左侧红条 + 浅红底，标题红 */
.task-overdue { border-left: 4px solid #D9480F; background: #FFF6F3; }
.task-overdue .card-title { color: #B23A12; }
.pill-overdue { background: #D9480F; color: #fff; border-color: #D9480F; font-weight: 700; }
/* 两周排期：周小标题 */
.week-subtitle { font-size: 12px; font-weight: 700; color: var(--brand-dark); letter-spacing: 1px; margin: 10px 0 6px; }
/* 排期格里过期任务：红底红字（优先级压过任务彩色，2026-10-09） */
.week-task.week-task-overdue { background: #FDE8E2; color: #D9480F; font-weight: 700; }

/* ---------- 日报/周报汇总：按部门分组 + 已交/未交强区分（2026-10-09 主人拍板） ---------- */
.rp-group { margin-bottom: 16px; }
.rp-group:last-child { margin-bottom: 0; }
.rp-group-head { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; color: var(--brand-dark); letter-spacing: 2px; padding: 6px 2px; border-bottom: 2px solid var(--line); }
.rp-group-cnt { margin-left: auto; letter-spacing: 0; font-size: 12px; font-weight: 700; color: #1E5E38; background: #DCEFDF; border-radius: 999px; padding: 3px 12px; }
.rp-group-cnt-miss { color: #A61B1B; background: #FBDDDD; }
.report-user-miss { background: #FFF3F0; border-left: 4px solid #D9480F; border-radius: 6px; padding-left: 10px; margin: 5px 0; }
.pill-submitted { background: #2E7D4F; color: #fff; font-weight: 700; border-color: #2E7D4F; }
.pill-missed { background: #D9480F; color: #fff; font-weight: 700; border-color: #D9480F; }
/* ---------- 负责人总结（2026-10-12 周报汇总置顶板块） ---------- */
.rp-sum-card { margin-bottom: 12px; border-left: 4px solid var(--brand); }
.rp-sum-card textarea { min-height: calc(1.6em * 3 + 14px); background: #FBFDF9; }
.rp-sum-body { font-size: 13px; color: var(--ink); white-space: pre-wrap; background: #FBFDF9; border: 1px dashed var(--line); border-radius: 8px; padding: 10px 12px; line-height: 1.7; }

/* ---------- 任务起始日（2026-10-09 主人拍板：起始~截止每天排期都有该任务） ---------- */
.week-task-start { border-left: 3px solid var(--brand); }
.wk-start-tag { display: inline-block; font-size: 10px; font-weight: 800; color: #fff; background: var(--brand); border-radius: 4px; padding: 0 4px; margin-right: 4px; vertical-align: 1px; }

/* ---------- Bug 截图上传（2026-10-09 主人拍板：粘贴/选择上传，详情放大看原图） ---------- */
.shot-zone {
  border: 2px dashed var(--line); border-radius: 10px; background: var(--panel-2);
  padding: 14px; text-align: center; font-size: 13px; color: var(--ink-2);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.shot-zone:hover, .shot-zone.shot-pasting { border-color: var(--brand); background: #EAF3EC; color: var(--brand-dark); }
.shot-zone b { color: var(--brand-dark); }
.shot-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.shot-thumb {
  width: 84px; height: 84px; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--line); cursor: zoom-in; background: #fff;
  transition: transform .12s;
}
.shot-thumb:hover { transform: scale(1.04); border-color: var(--brand); }
.shot-edit-item { position: relative; display: inline-block; }
.shot-del {
  position: absolute; top: -6px; right: -6px; width: 20px; height: 20px;
  border-radius: 50%; border: none; background: #D9480F; color: #fff;
  font-size: 13px; line-height: 1; cursor: pointer; font-weight: 800;
}
.shot-del:hover { background: #A61B1B; }
/* 灯箱：点击看原图 */
#lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(20, 26, 22, .82); align-items: center; justify-content: center;
  cursor: zoom-out; padding: 24px;
}
#lightbox.open { display: flex; }
#lightbox img {
  max-width: 94vw; max-height: 92vh; border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .5); background: #fff;
}

/* ---------- 团队任务总览（2026-10-09 主人拍板：部门→人，进度条+完成历史） ---------- */
.ov-group { margin-bottom: 20px; }
.ov-member { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 10px 0; }
.ov-member-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.ov-name { font-size: 15px; font-weight: 800; color: var(--ink); }
.ov-cnt { font-size: 12px; color: var(--ink-2); margin-left: auto; white-space: nowrap; }
.ov-bar { flex: 1; min-width: 80px; max-width: 180px; height: 8px; background: var(--panel-2); border-radius: 999px; overflow: hidden; }
.ov-bar-fill { display: block; height: 100%; background: var(--gold); border-radius: 999px; transition: width .3s; }
.ov-bar-done { background: var(--brand); }
.ov-pct { font-size: 12px; font-weight: 700; color: var(--brand-dark); min-width: 52px; text-align: right; }
.ov-list { display: flex; flex-direction: column; gap: 6px; }
.ov-history { margin-top: 8px; }
.ov-history summary { font-size: 12px; font-weight: 700; color: var(--ink-2); cursor: pointer; letter-spacing: 1px; padding: 4px 0; user-select: none; }
.ov-history summary:hover { color: var(--brand-dark); }
.ov-history[open] summary { color: var(--brand-dark); }
.ov-history .ov-list { margin-top: 6px; }
