/* ============ GTD 今日待办 区块样式 ============ */
.gtd-wrap { max-width: 1100px; margin-bottom: 8px; }

/* 顶部条: 日期 + 更新时间 */
.gtd-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; gap: 12px; flex-wrap: wrap;
}
.gtd-bar h2 { font-size: 18px; font-weight: 700; color: var(--text); margin: 0; }
.gtd-bar h2 .dot { color: var(--green); margin-right: 6px; }
.gtd-bar .gtd-meta { font-size: 12px; color: var(--hint); }

/* Today 卡片(核心三件套) */
.gtd-today {
  background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
  border: 1px solid var(--border); border-radius: 14px;
  padding: 20px 24px; margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.gtd-today-title {
  font-size: 15px; font-weight: 700; color: var(--text);
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.gtd-today-title .pill {
  font-size: 11px; font-weight: 600; background: #e6f4ea; color: #1a7f37;
  padding: 2px 10px; border-radius: 20px;
}
.gtd-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.gtd-section {
  background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px;
}
.gtd-section .sec-label {
  font-size: 13px; font-weight: 700; color: var(--blue); margin-bottom: 10px;
}
.gtd-task { display: flex; align-items: flex-start; gap: 8px; }
.gtd-task + .gtd-task { margin-top: 10px; }
.gtd-task .box {
  width: 16px; height: 16px; border: 2px solid #c4cdd8; border-radius: 4px;
  margin-top: 2px; flex-shrink: 0; transition: all .15s;
}
.gtd-task.done .box { background: var(--green); border-color: var(--green); position: relative; }
.gtd-task.done .box::after {
  content: ''; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.gtd-task .gtd-task-text { font-size: 13px; color: var(--text); line-height: 1.55; }
.gtd-task.done .gtd-task-text { color: #b0b8c4; text-decoration: line-through; }

/* 时间轴提醒列表 */
.gtd-cycle {
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px;
  margin-bottom: 16px;
}
.gtd-cycle-title {
  font-size: 14px; font-weight: 700; color: var(--text);
  margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.gtd-cycle-title .pill { font-size: 11px; background: #fff4e0; color: #c77700; padding: 2px 8px; border-radius: 20px; }
.gtd-cycle-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2px 20px; }
.gtd-c-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 6px 4px; font-size: 13px; color: var(--text); border-radius: 6px;
}
.gtd-c-item .c-time {
  font-variant-numeric: tabular-nums; color: var(--blue); font-weight: 700; font-size: 13px;
  min-width: 40px;
}
.gtd-c-item.passed .c-time { color: #c4cdd8; }
.gtd-c-item.now .c-time { color: #1a7f37; }
.gtd-c-item .c-msg { line-height: 1.5; }

/* 项目折叠区 */
.gtd-projects {
  background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
}
.gtd-projects-summary {
  width: 100%; background: none; border: none; cursor: pointer;
  padding: 14px 20px; display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; font-weight: 700; color: var(--text);
}
.gtd-projects-summary .chev { transition: transform .2s; color: var(--hint); }
.gtd-projects-list { border-top: 1px solid var(--border); padding: 6px 0; }
.gtd-p-item {
  display: flex; align-items: baseline; gap: 10px; padding: 9px 20px; font-size: 13px;
}
.gtd-p-item:nth-child(odd) { background: #fafbfc; }
.gtd-p-item .p-name { font-weight: 600; color: var(--text); min-width: 130px; flex-shrink: 0; }
.gtd-p-item .p-next { color: #4a5568; flex: 1; line-height: 1.5; }
.gtd-p-item .p-deadline { color: var(--hint); font-size: 12px; font-variant-numeric: tabular-nums; flex-shrink: 0; }

/* 空态 */
.gtd-empty { text-align: center; padding: 40px 20px; color: var(--hint); font-size: 13px; }
.gtd-empty .big { font-size: 34px; margin-bottom: 10px; }

@media (max-width: 760px) {
  .gtd-p-item { flex-wrap: wrap; gap: 4px; }
  .gtd-p-item .p-name { min-width: 100%; }
}
