:root { --ink: #16181a; --line: #d8dbdd; --bg: #f4f5f3; --brand: #1d5b4f; --brand-2: #174a41; }
* { box-sizing: border-box; }
body {
  margin: 0; padding: 0 16px 40px; background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 15px; line-height: 1.6;
}
h1 { font-size: 25px; margin: 0; }
h2 { font-size: 18px; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
a { color: var(--brand); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin: 0 0 18px; }
.wrap { max-width: 880px; margin: 0 auto; }
.page-head { display: flex; align-items: center; justify-content: space-between; padding: 26px 2px 18px; }
.hello, .sub, .light { color: #6b7175; font-size: 14px; font-weight: normal; }
.hint { color: #6b7175; font-size: 13px; margin: 10px 0 0; }
.msg { min-height: 22px; font-size: 14px; margin: 10px 0 0; color: #a12b20; }
.msg.ok { color: var(--brand); }
.foot { text-align: center; color: #8a9094; font-size: 12px; margin-top: 26px; }

/* 登录 */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { text-align: center; }
.auth-card .sub { text-align: center; margin: 4px 0 20px; }
.tabs { display: flex; border-bottom: 2px solid var(--line); margin-bottom: 18px; }
.tab { flex: 1; padding: 10px; border: 0; background: none; font-size: 15px; color: #6b7175; cursor: pointer; }
.tab.active { color: var(--ink); font-weight: bold; border-bottom: 3px solid var(--brand); margin-bottom: -2px; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
input[type=text], input[type=password], input[type=date], select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px;
  font: inherit; font-weight: normal; color: var(--ink); background: #fff;
  border: 1px solid #b9bec1; border-radius: 6px;
}
textarea { resize: vertical; }
input[type=file] { display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: normal; }
button { font: inherit; }
.primary {
  background: var(--brand); color: #fff; border: 1px solid var(--brand);
  border-radius: 6px; padding: 10px 20px; cursor: pointer; font-weight: 600;
}
.primary:hover { background: var(--brand-2); }
.ghost { background: #fff; color: var(--ink); border: 1px solid #b9bec1; border-radius: 6px; padding: 9px 16px; cursor: pointer; }
.ghost:hover { border-color: var(--ink); }
.big { width: 100%; padding: 12px; font-size: 16px; margin-top: 6px; }

/* 孩子 */
.child-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.child {
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; min-width: 210px; background: #fbfbfa;
}
.child .name { font-weight: bold; font-size: 16px; }
.child .code { font-size: 13px; color: #6b7175; letter-spacing: 1px; margin: 2px 0 8px; }
.child .code b { color: var(--ink); font-size: 16px; letter-spacing: 2px; }
.child .ops { display: flex; gap: 6px; }
.child .ops button { flex: 1; font-size: 12px; padding: 6px 4px; }
.row { display: flex; gap: 10px; }
.row input { flex: 1; margin-top: 0; }
.row button { white-space: nowrap; }

/* 表单 */
.form-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 14px; }
.form-grid .wide { grid-column: 1 / -1; }
.img-preview { display: none; align-items: center; gap: 12px; margin-bottom: 14px; }
.img-preview img { max-width: 220px; max-height: 150px; border: 1px solid var(--line); border-radius: 6px; }

/* 任务列表 */
.group-title { font-weight: bold; font-size: 15px; margin: 16px 0 8px; }
.task-item {
  display: flex; align-items: flex-start; gap: 12px;
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px;
}
.task-item.done { background: #f7f8f6; }
.task-item .status { font-size: 12px; font-weight: bold; color: #6b7175; white-space: nowrap; padding-top: 3px; }
.task-item.done .status { color: var(--brand); }
.task-item .info { flex: 1; min-width: 0; }
.task-item .t { font-weight: 600; word-break: break-word; }
.task-item.done .t { text-decoration: line-through; color: #7a8084; }
.task-item .n { font-size: 13px; color: #6b7175; word-break: break-word; }
.task-item img.thumb { width: 70px; height: 70px; object-fit: cover; border: 1px solid var(--line); border-radius: 4px; }
.task-item .del { background: none; border: 0; color: #a12b20; cursor: pointer; font-size: 13px; white-space: nowrap; }
.empty-list { color: #6b7175; font-size: 14px; padding: 8px 0; }

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .row { flex-direction: column; }
  .child { min-width: 100%; }
  .page-head { flex-wrap: wrap; gap: 10px; }
}
