/* PJ79 家庭工作台 — 阶段1 样式
   设计原则：字大、按钮大、颜色对比清楚，姐姐0基础，不用她猜任何东西（R34）。 */
* { box-sizing: border-box; }
body {
  font-family: "Microsoft YaHei", -apple-system, sans-serif;
  background: #faf9f7;
  color: #222;
  margin: 0;
  padding: 0;
  font-size: 16px;
}
.hidden { display: none !important; }

/* 登录页 */
#login-view {
  max-width: 360px;
  margin: 80px auto;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 14px;
  padding: 32px 28px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
#login-view h1 { font-size: 1.3em; text-align: center; margin-bottom: 24px; }
#login-view label { display: block; margin-bottom: 14px; font-size: 1em; }
#login-view input {
  width: 100%; padding: 12px; margin-top: 6px;
  font-size: 1.1em; border: 1px solid #ccc; border-radius: 8px;
}
#login-view button, .btn-primary {
  width: 100%; padding: 14px; font-size: 1.1em; margin-top: 8px;
  background: #8b4513; color: #fff; border: none; border-radius: 8px; cursor: pointer;
}
#login-view button:hover, .btn-primary:hover { background: #6b3410; }
#login-error { color: #c0392b; margin-top: 10px; font-size: 0.95em; min-height: 1.2em; }

/* 主界面 */
#app-view header {
  display: flex; justify-content: space-between; align-items: center;
  background: #fff; padding: 14px 20px; border-bottom: 1px solid #e2e2e2;
  position: sticky; top: 0; z-index: 5;
}
#app-view header .who { font-size: 1.05em; }
#app-view header button {
  padding: 8px 16px; border: 1px solid #ccc; border-radius: 8px; background: #fff; cursor: pointer;
}
.tabs { display: flex; gap: 8px; padding: 14px 20px 0; }
.tab-btn {
  padding: 10px 20px; font-size: 1.05em; border: 1px solid #ccc; background: #fff;
  border-radius: 10px 10px 0 0; cursor: pointer; border-bottom: none;
}
.tab-btn.active { background: #8b4513; color: #fff; border-color: #8b4513; }
main { max-width: 900px; margin: 0 auto; padding: 20px; }

.search-row { display: flex; gap: 10px; margin-bottom: 14px; }
.search-row input { flex: 1; padding: 10px; font-size: 1em; border: 1px solid #ccc; border-radius: 8px; }

.log-item {
  background: #fff; border: 1px solid #e2e2e2; border-radius: 10px;
  padding: 12px 16px; margin-bottom: 8px; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center; gap: 10px;
}
.log-item:hover { border-color: #8b4513; }
.log-item .badge {
  font-size: 0.8em; padding: 3px 10px; border-radius: 12px; white-space: nowrap;
  background: #eee; color: #666;
}
.badge.done { background: #d4edda; color: #256029; }
.badge.doing { background: #fff3cd; color: #8a6100; }

.pager { display: flex; gap: 8px; justify-content: center; margin: 16px 0; align-items: center; }
.pager button { padding: 8px 14px; border: 1px solid #ccc; border-radius: 8px; background: #fff; cursor: pointer; }
.pager button:disabled { opacity: 0.4; cursor: default; }

/* 日志详情 */
#log-detail {
  background: #fff; border: 1px solid #e2e2e2; border-radius: 12px; padding: 16px; margin-top: 16px;
}
#log-detail iframe { width: 100%; height: 480px; border: 1px solid #eee; border-radius: 8px; }
.section-title { font-weight: bold; margin: 18px 0 8px; font-size: 1.05em; }
.memo-box textarea, .msg-box textarea {
  width: 100%; min-height: 70px; padding: 10px; font-size: 1em; border: 1px solid #ccc; border-radius: 8px;
}
.photo-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.photo-grid img { width: 140px; height: 140px; object-fit: cover; border-radius: 8px; border: 1px solid #ddd; }
.upload-row { display: flex; gap: 10px; align-items: center; margin-top: 8px; flex-wrap: wrap; }

.msg-item { background: #fff; border: 1px solid #e2e2e2; border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; }
.msg-item .meta { font-size: 0.85em; color: #888; margin-bottom: 4px; }
.msg-item.for-ai { border-left: 4px solid #8b4513; }
.compose-row { display: flex; gap: 10px; margin-top: 10px; align-items: flex-start; }
.compose-row textarea { flex: 1; }
.compose-row .options { display: flex; flex-direction: column; gap: 6px; }

#status-bar { text-align: center; color: #888; font-size: 0.9em; padding: 8px; }

#login-view h1 small { display: block; font-size: 0.55em; color: #999; font-weight: normal; margin-top: 4px; }
.btn-ghost {
  width: 100%; padding: 12px; font-size: 1em; margin-top: 14px;
  background: #fff; color: #8b4513; border: 1px solid #8b4513; border-radius: 8px; cursor: pointer;
}
.btn-ghost:hover { background: #f6efe9; }

#demo-view header {
  display: flex; justify-content: space-between; align-items: center;
  background: #fff; padding: 14px 20px; border-bottom: 1px solid #e2e2e2;
}
#demo-view header button {
  padding: 8px 16px; border: 1px solid #ccc; border-radius: 8px; background: #fff; cursor: pointer;
}
.demo-intro { font-size: 1.05em; line-height: 1.7; color: #444; margin: 6px 0 20px; }
#demo-grid, #demo-grid-app { display: flex; flex-direction: column; gap: 22px; }
.demo-card { background: #fff; border: 1px solid #e2e2e2; border-radius: 12px; padding: 14px; }
.demo-card .demo-title { font-size: 1.05em; font-weight: bold; margin-bottom: 10px; }
.demo-card video { width: 100%; border-radius: 8px; background: #000; display: block; }
