/* ===== e-ink 版式规则 =====
   自然竖版 1072x1440 排版（不写 transform，渲染服务自动旋转）；
   **只用黑色与白色**、无渐变阴影、高对比、正文>=24px；只用相对路径；
   外部 API 必须有超时与降级（见 app.js）。
   版面：顶部=日期+深圳天气（一行）/ 每日一言 / 待办清单（主角，占满剩余空间） */

html, body {
  margin: 0; padding: 0;
  width: 1072px; height: 1440px;
  overflow: hidden;
  background: #fff;
  font-family: "Noto Sans CJK SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #000;
  font-weight: bold;               /* 墨水屏不加粗看不清：全局加粗 */
}
body { display: flex; flex-direction: column; }

/* ===== 顶栏：白底黑字，日期 + 深圳天气（单行，紧跟图标） ===== */
.topbar {
  flex: none;
  background: #fff; color: #000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 10px; box-sizing: border-box;
  border-bottom: 4px dashed #000;              /* 三块区之间的虚线分隔：顶栏↔待办 */
}
.topbar .date { font-size: 40px; font-weight: bold; white-space: nowrap; }
.topbar .weather { display: flex; align-items: center; min-width: 0; }
.topbar .w-icon { width: 54px; height: 54px; min-width: 44px; margin-right: 1px; }
.topbar .w-icon svg { width: 100%; height: 100%; display: block; } /* 图标尺寸由 CSS 决定 */
.topbar .w-text { font-size: 40px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== 每日一言：页面底部 ===== */
.quote {
  flex: none;
  margin: 24px 44px 0; padding: 18px 0;
  border-top: 4px dashed #000;              /* 三块区之间的虚线分隔：待办↔一言 */
}
.q-text { font-size: 34px; line-height: 1.5; color: #000; }
.q-from { font-size: 26px; text-align: right; margin-top: 8px; }

/* ===== 待办清单：主区域，占满剩余空间 ===== */
.todo { flex: 1 1 auto; overflow: hidden; margin: 24px 44px 0; }
.t-head {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 38px; font-weight: bold;
  border-bottom: 4px solid #000; padding-bottom: 12px;
}
.t-note { font-size: 22px; }   /* 同步状态注记，跟在标题行右侧 */
/* 列名行：c1 左（与标题列对齐），截止日期/所属项目固定列宽、整体右靠 */
.t-cols {
  display: flex; align-items: center;
  padding: 10px 0; border-bottom: 2px solid #000;
  font-size: 26px;
}
.t-cols .c1 { flex: 1 1 auto; padding-left: 70px; } /* 70 = 勾选框46 + 间隔24 */
.t-cols .c2 { flex: none; width: 110px; margin-left: 24px; text-align: center; }
.t-cols .c3 { flex: none; width: 110px; margin-left: 24px; }
.todo ul { list-style: none; margin: 0; padding: 0; }
.todo li {
  display: flex; align-items: center;
  padding: 8px 0; border-bottom: 2px solid #000;
  font-size: 34px;
}
.todo .cb {
  width: 46px; height: 46px; min-width: 46px;
  border: 4px solid #000; margin-right: 24px; box-sizing: border-box;
  position: relative;                               /* 供完成勾号定位 */
}
.todo li .tt {                                      /* 标题：弹性占满剩余宽度，超长省略号 */
  flex: 1 1 auto; min-width: 0;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.todo li .td {                                      /* 截止日期：固定列宽居中（行行对齐），右靠 */
  flex: none; width: 110px; margin-left: 24px;
  text-align: center;
  font-size: 24px; white-space: nowrap;
}
.todo li .proj {                                    /* 所属项目：固定列宽紧贴右侧，超长省略 */
  flex: none; width: 110px; margin-left: 24px;
  font-size: 24px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
/* 已完成：白底 + 灰字删除线 + 白框黑勾（不再整行反色；灰字 #666 是纯黑白规则的唯一例外） */
.todo li.done .cb::after {                          /* 黑色勾号 */
  content: ''; position: absolute; left: 9px; top: 2px;
  width: 12px; height: 22px;
  border: solid #000; border-width: 0 5px 5px 0;
  transform: rotate(45deg);
}
.todo li.done .tt { color: #666; text-decoration: line-through; }
.todo li.done .td { color: #666; }
.todo li.done .proj { color: #666; }
