/* Kindle 6 英寸横屏 800×600 / 167ppi：纯黑白、零动画、大点击区、无外部字体 */
* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: none !important;
  transition: none !important;
  -webkit-animation: none !important;
  animation: none !important;
}
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
  color: #000;
  font-family: Arial, "Noto Sans CJK SC", "Microsoft YaHei", "Heiti SC", sans-serif;
  -webkit-text-size-adjust: 100%;
}
button, input { font-family: Arial, "Noto Sans CJK SC", "Microsoft YaHei", sans-serif; }
button { cursor: pointer; }

#app { position: relative; width: 100%; height: 100%; }

/* ---- 顶部 ---- */
#topbar { height: 68px; border-bottom: 3px solid #000; }
#dateBox { float: left; width: 230px; height: 68px; padding: 8px 12px; }
#dateText { font-size: 25px; font-weight: bold; line-height: 30px; }
#weekText { font-size: 16px; line-height: 20px; }
#whoBox { float: left; width: 210px; height: 68px; padding: 8px 12px; border-left: 2px solid #000; }
#whoText { font-size: 22px; font-weight: bold; line-height: 32px; }
#progressText { font-size: 16px; line-height: 20px; }
#navBox { float: right; padding: 12px 10px 0 0; }
.navbtn {
  height: 42px; min-width: 86px; margin-left: 6px; padding: 0 8px;
  font-size: 16px; font-weight: bold; color: #000; background: #fff;
  border: 2px solid #000; border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
.navbtn:active { background: #000; color: #fff; }

/* ---- 主体 ---- */
#main { position: absolute; top: 68px; bottom: 34px; left: 0; right: 0; }
#sidebar {
  position: absolute; left: 0; top: 0; bottom: 0; width: 148px;
  border-right: 3px solid #000; background: #fff;
}
.side-title { font-size: 17px; font-weight: bold; padding: 8px 10px 4px 12px; }
.subjbtn {
  display: block; width: 122px; height: 58px; margin: 6px 0 0 12px;
  font-size: 21px; font-weight: bold; color: #000; background: #fff;
  border: 2px solid #000; border-radius: 0; text-align: center;
  -webkit-appearance: none; appearance: none;
}
.subjbtn.active { background: #000; color: #fff; }
.side-hint { font-size: 15px; line-height: 24px; padding: 18px 10px 0 12px; }

#listWrap { position: absolute; left: 148px; right: 0; top: 0; bottom: 0; overflow-y: auto; }
.task {
  min-height: 70px; padding: 6px 10px 6px 12px;
  border-bottom: 2px solid #000; background: #fff; color: #000;
}
.task:active { background: #000; color: #fff; }
.task .box {
  float: left; width: 36px; height: 36px; margin-top: 8px;
  border: 3px solid #000; font-size: 26px; font-weight: bold;
  line-height: 30px; text-align: center;
}
.task.done .box { background: #000; color: #fff; }
.task .body { margin-left: 52px; }
.task .meta { font-size: 15px; line-height: 20px; }
.task .tag { display: inline-block; border: 2px solid #000; padding: 0 6px; font-size: 15px; font-weight: bold; }
.task .pic { display: inline-block; margin-left: 8px; border: 2px solid #000; padding: 0 6px; font-size: 15px; font-weight: bold; }
.task .title { font-size: 21px; font-weight: bold; line-height: 25px; }
.task.done .title { text-decoration: line-through; }
.task .note { font-size: 16px; line-height: 19px; }
.task.done .note { text-decoration: line-through; }
.task:active .box, .task:active .tag, .task:active .pic { border-color: #fff; }
.task:active.done .box { background: #fff; color: #000; }
.empty { padding: 30px 20px; font-size: 22px; line-height: 34px; text-align: center; }
.retry {
  display: block; margin: 14px auto 0; padding: 8px 18px;
  font-size: 19px; font-weight: bold; background: #fff; color: #000;
  border: 2px solid #000; border-radius: 0;
}

#footer {
  position: absolute; left: 0; right: 0; bottom: 0; height: 34px;
  border-top: 2px solid #000; padding: 5px 12px;
  font-size: 15px; line-height: 22px;
}

/* ---- 全屏看图 ---- */
#viewer {
  display: none; position: fixed; left: 0; top: 0; width: 100%; height: 100%;
  background: #fff; z-index: 999; text-align: center; padding: 12px;
}
#viewerImg { max-width: 96%; max-height: 76%; border: 3px solid #000; margin-top: 6px; }
#viewerTip { font-size: 17px; margin-top: 4px; }
#viewerClose {
  margin-top: 4px; height: 40px; padding: 0 24px;
  font-size: 19px; font-weight: bold; color: #000; background: #fff;
  border: 2px solid #000; border-radius: 0;
}

/* ---- 首次输码 ---- */
#setup {
  display: none; position: fixed; left: 0; top: 0; width: 100%; height: 100%;
  background: #fff; z-index: 998; text-align: center;
}
.setup-card { padding: 90px 30px 0; }
.setup-card h1 { font-size: 40px; margin: 0 0 20px; }
.setup-card p { font-size: 20px; line-height: 32px; }
#codeInput {
  width: 260px; height: 56px; margin: 12px 0; padding: 0 10px;
  font-size: 28px; letter-spacing: 6px; text-align: center; text-transform: uppercase;
  border: 3px solid #000; border-radius: 0; background: #fff; color: #000;
}
#codeBtn {
  display: block; margin: 0 auto; width: 200px; height: 52px;
  font-size: 22px; font-weight: bold; color: #000; background: #fff;
  border: 3px solid #000; border-radius: 0;
}
#codeErr { font-size: 18px; color: #000; font-weight: bold; padding: 10px; min-height: 30px; }
.setup-tip { font-size: 16px !important; line-height: 26px !important; margin-top: 20px; }
