/* K735 今日任务看板 —— 黑金体系，图形优先
   校长令：像任务管理器那样，一天的走向一眼看明白；进度要看得见，紧急红、重要金、完成绿。 */

.bd-ov {
  position: fixed; inset: 0; z-index: 9600;
  background: radial-gradient(120% 80% at 50% -10%, #1a1a24 0%, #0b0b11 55%, #080810 100%);
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none; transition: opacity .26s ease;
  overflow: hidden;
}
.bd-ov.on { opacity: 1; pointer-events: auto; }

/* ---------- 顶栏 ---------- */
.bd-top {
  display: flex; align-items: center; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex: 0 0 auto;
}
.bd-back {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
  color: #cfd6e2; font-size: 16px; line-height: 1;
  transition: background .18s, transform .18s;
}
.bd-back:active { transform: scale(.92); background: rgba(232,196,90,.14); }
.bd-ttl { flex: 1; min-width: 0; }
.bd-ttl b { display: block; font-size: 16px; color: #F2F4F8; letter-spacing: .3px; }
.bd-ttl span { display: block; font-size: 11px; color: #6E7787; margin-top: 2px; }
.bd-date {
  flex: 0 0 auto; font-size: 11.5px; color: #C8AD63;
  padding: 5px 10px; border-radius: 20px;
  background: rgba(232,196,90,.08); border: 1px solid rgba(232,196,90,.22);
}

.bd-scroll { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px 16px 40px; }

/* ---------- 总览 ---------- */
.bd-hero {
  display: flex; align-items: center; gap: 18px;
  padding: 16px; border-radius: 20px; margin-bottom: 14px;
  background: linear-gradient(145deg, rgba(232,196,90,.10), rgba(232,196,90,.02) 55%, rgba(255,255,255,.02));
  border: 1px solid rgba(232,196,90,.16);
}
.bd-ring { position: relative; width: 92px; height: 92px; flex: 0 0 auto; }
.bd-ring svg { transform: rotate(-90deg); display: block; }
.bd-ring .bg { stroke: rgba(255,255,255,.08); }
.bd-ring .fg {
  stroke: url(#bdGold); stroke-linecap: round;
  transition: stroke-dashoffset 1s cubic-bezier(.22,1,.36,1);
}
.bd-ring .num {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0;
}
.bd-ring .num b { font-size: 24px; font-weight: 700; color: #F5E3B0; line-height: 1; }
.bd-ring .num b i { font-size: 12px; font-style: normal; color: #C8AD63; margin-left: 1px; }
.bd-ring .num span { font-size: 10px; color: #6E7787; margin-top: 3px; letter-spacing: .6px; }

.bd-kpi { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.bd-kpi div { display: flex; align-items: baseline; gap: 6px; }
.bd-kpi em { font-style: normal; font-size: 10.5px; color: #6E7787; }
.bd-kpi b { font-size: 17px; font-weight: 650; letter-spacing: .2px; }
.bd-kpi .k-done b { color: #4ADE80; }
.bd-kpi .k-doing b { color: #E8C45A; }
.bd-kpi .k-over b { color: #FF6B6B; }
.bd-kpi .k-todo b { color: #9AA6B8; }

/* ---------- 分组进度条 ---------- */
.bd-groups { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.bd-g {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 13px;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.055);
}
.bd-g .nm { font-size: 12.5px; color: #C6CEDA; flex: 0 0 auto; min-width: 62px; }
.bd-g .bar { flex: 1; height: 6px; border-radius: 4px; background: rgba(255,255,255,.07); overflow: hidden; }
.bd-g .bar i {
  display: block; height: 100%; border-radius: 4px; width: 0;
  background: linear-gradient(90deg, #E8C45A, #F5DFA0);
  transition: width .9s cubic-bezier(.22,1,.36,1);
}
.bd-g .bar i.full { background: linear-gradient(90deg, #2FBF6B, #4ADE80); }
.bd-g .vv { font-size: 11px; color: #8A93A3; font-variant-numeric: tabular-nums; min-width: 40px; text-align: right; }

/* ---------- 时间轴 ---------- */
.bd-sec { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; }
.bd-sec b { font-size: 12px; color: #8A93A3; font-weight: 600; letter-spacing: 1px; }
.bd-sec i { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,.10), transparent); }

.bd-list { position: relative; padding-left: 14px; }
.bd-list::before {
  content: ''; position: absolute; left: 3px; top: 6px; bottom: 6px; width: 1px;
  background: linear-gradient(180deg, rgba(232,196,90,.28), rgba(255,255,255,.05) 40%, transparent);
}

.bd-it {
  position: relative; display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 12px; margin-bottom: 8px; border-radius: 13px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.055);
  border-left-width: 3px;
  opacity: 0; transform: translateY(7px);
  animation: bdIn .34s cubic-bezier(.22,1,.36,1) forwards;
  transition: background .18s, border-color .18s, transform .12s;
}
.bd-it:active { transform: scale(.985); }
@keyframes bdIn { to { opacity: 1; transform: none; } }

.bd-it.p-urgent { border-left-color: #FF5A5A; background: linear-gradient(90deg, rgba(255,90,90,.10), rgba(255,255,255,.03) 45%); }
.bd-it.p-important { border-left-color: #E8C45A; background: linear-gradient(90deg, rgba(232,196,90,.09), rgba(255,255,255,.03) 45%); }
.bd-it.p-normal { border-left-color: #5C6B84; }
.bd-it.p-done { border-left-color: #2FBF6B; background: rgba(47,191,107,.05); }
.bd-it.p-done .bd-t { color: #6E7787; text-decoration: line-through; text-decoration-color: rgba(110,119,135,.6); }

.bd-it.p-urgent::after {
  content: ''; position: absolute; left: -3px; top: 10px; bottom: 10px; width: 3px;
  border-radius: 2px; background: #FF5A5A;
  animation: bdPulse 1.9s ease-in-out infinite;
}
@keyframes bdPulse { 0%,100% { opacity: 1; } 50% { opacity: .28; } }

.bd-time {
  flex: 0 0 auto; width: 42px; font-size: 11px; color: #7C8798;
  font-variant-numeric: tabular-nums; padding-top: 1px; text-align: right;
}
.bd-time.hot { color: #FF7A7A; font-weight: 600; }

.bd-mid { flex: 1; min-width: 0; }
.bd-t { font-size: 13.5px; color: #E4E9F1; line-height: 1.45; word-break: break-word; }
.bd-meta { display: flex; align-items: center; gap: 7px; margin-top: 5px; flex-wrap: wrap; }
.bd-tag {
  font-size: 10px; padding: 2px 7px; border-radius: 20px; line-height: 1.5;
  background: rgba(255,255,255,.055); color: #8A93A3; border: 1px solid rgba(255,255,255,.07);
}
.bd-tag.src-must { color: #D9BE75; border-color: rgba(232,196,90,.26); background: rgba(232,196,90,.08); }
.bd-tag.src-advice { color: #7FB2FF; border-color: rgba(90,150,255,.24); background: rgba(90,150,255,.08); }
.bd-tag.src-goal { color: #C9A7FF; border-color: rgba(160,120,255,.24); background: rgba(160,120,255,.08); }
.bd-tag.src-once { color: #6ED5C0; border-color: rgba(80,200,180,.24); background: rgba(80,200,180,.08); }
.bd-tag.over { color: #FF8A8A; border-color: rgba(255,90,90,.3); background: rgba(255,90,90,.1); }
.bd-meta .ow { font-size: 10.5px; color: #6E7787; }
.bd-meta .ow b { color: #9AA6B8; font-weight: 500; }

.bd-right { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 1px; }
.bd-mini { position: relative; width: 30px; height: 30px; }
.bd-mini svg { transform: rotate(-90deg); display: block; }
.bd-mini .bg { stroke: rgba(255,255,255,.09); }
.bd-mini .fg { stroke: #E8C45A; stroke-linecap: round; transition: stroke-dashoffset .7s ease; }
.bd-mini.full .fg { stroke: #4ADE80; }
.bd-mini .pc { position: absolute; inset: 0; display: grid; place-items: center; font-size: 8.5px; color: #9AA6B8; font-variant-numeric: tabular-nums; }

.bd-chk {
  width: 24px; height: 24px; border-radius: 50%; cursor: pointer;
  border: 1.5px solid rgba(255,255,255,.18); background: transparent;
  display: grid; place-items: center; color: transparent; font-size: 12px;
  transition: all .2s cubic-bezier(.22,1,.36,1);
}
.bd-chk:hover { border-color: rgba(232,196,90,.5); }
.bd-chk.on {
  background: linear-gradient(135deg,#2FBF6B,#4ADE80); border-color: transparent; color: #07130C;
  transform: scale(1.06);
}
.bd-chk.on::after { content: '✓'; font-size: 13px; font-weight: 700; }

/* 空态 */
.bd-empty { text-align: center; padding: 46px 20px; color: #6E7787; }
.bd-empty .ic {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; font-size: 26px;
  background: rgba(232,196,90,.07); border: 1px solid rgba(232,196,90,.16);
}
.bd-empty b { display: block; font-size: 14px; color: #9AA6B8; margin-bottom: 6px; }
.bd-empty span { font-size: 12px; line-height: 1.7; }

/* 桌面端：两栏，左总览右流水 */
@media (min-width: 900px) {
  .bd-scroll { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; padding: 22px 28px 60px; }
  .bd-left { position: sticky; top: 0; }
  .bd-right-col { min-width: 0; }
}

/* 长条目不铺满屏：默认两行，点一下展开（诊断行动那种一条几十个会员名的） */
.bd-t {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden;
}
.bd-it.open .bd-t { -webkit-line-clamp: unset; display: block; }
.bd-it.open { background: rgba(255,255,255,.055); }
