* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #f5f6f7;
  color: #333;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

#app { max-width: 520px; margin: 0 auto; min-height: 100vh; background: #f5f6f7; }

/* 顶栏 */
.topbar {
  background: #f7a600;
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar .left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar .back { font-size: 22px; cursor: pointer; padding: 0 4px; }
.topbar .title { font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .right { font-size: 13px; cursor: pointer; white-space: nowrap; }
.badge-dot {
  background: #e64340; color: #fff; border-radius: 20px; font-size: 11px;
  padding: 1px 7px; margin-left: 4px; vertical-align: top;
}

.container { padding: 14px; }

.card {
  background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.card-title { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.row { display: flex; align-items: center; }
.row-between { display: flex; align-items: center; justify-content: space-between; }
.meta-line { color: #888; font-size: 13px; margin-top: 6px; }
.text-secondary { color: #999; font-size: 13px; }
.text-danger { color: #e64340; }
.text-success { color: #07c160; }
.divider { height: 1px; background: #eee; margin: 12px 0; }
.empty { text-align: center; color: #999; padding: 60px 0; font-size: 14px; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 10px; font-size: 15px; cursor: pointer;
  padding: 0 24px; height: 44px; text-decoration: none;
}
.btn:active { opacity: .85; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: #f7a600; color: #fff; }
.btn-danger { background: #e64340; color: #fff; }
.btn-success { background: #07c160; color: #fff; }
.btn-plain { background: #fff; color: #333; border: 1px solid #ddd; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 8px; }

/* 标签 */
.tag {
  display: inline-block; padding: 2px 10px; border-radius: 6px; font-size: 12px; margin-right: 4px;
}
.tag-warning { background: #fff3e0; color: #e09500; }
.tag-danger { background: #ffebee; color: #e64340; }
.tag-success { background: #e8f7ee; color: #07c160; }
.tag-info { background: #eef1f8; color: #576b95; }
.tag-gray { background: #f0f0f0; color: #888; }

/* 列表项 */
.list-item {
  display: flex; align-items: center; background: #fff; border-radius: 12px;
  padding: 12px; margin-bottom: 10px; cursor: pointer;
}
.thumb {
  width: 72px; height: 72px; border-radius: 8px; background: #ececec;
  flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center;
  color: #bbb; font-size: 12px;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item-info { flex: 1; margin-left: 12px; min-width: 0; }
.item-name { font-size: 15px; font-weight: 500; }

/* 表单 */
.field-label { color: #888; font-size: 13px; margin-bottom: 8px; }
.input, .select, .textarea {
  width: 100%; border: 1px solid #ddd; border-radius: 10px; padding: 11px 14px;
  font-size: 15px; background: #fff; color: #333; outline: none;
}
.input:focus, .textarea:focus, .select:focus { border-color: #f7a600; }
.textarea { min-height: 90px; resize: vertical; }
.select { appearance: auto; }

/* 进度条 */
.bar { height: 14px; background: #f0f0f0; border-radius: 7px; overflow: hidden; margin: 8px 0; }
.bar-fill { height: 100%; background: linear-gradient(90deg,#f7a600,#ff8f1f); border-radius: 7px; }
.bar-lg { height: 20px; border-radius: 10px; }
.progress-num { font-size: 40px; font-weight: 700; color: #f7a600; line-height: 1.1; }

/* 统计块 */
.stat-grid { display: flex; gap: 10px; margin-bottom: 12px; }
.stat { flex: 1; background: #fff; border-radius: 12px; padding: 16px 8px; text-align: center; cursor: pointer; }
.stat .num { font-size: 28px; font-weight: 700; }
.stat .label { color: #888; font-size: 12px; margin-top: 4px; }

/* 照片网格 */
.photo-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.photo-cell { position: relative; width: 96px; height: 96px; border-radius: 10px; overflow: hidden; background: #f0f0f0; }
.photo-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-remove {
  position: absolute; top: 0; right: 0; width: 26px; height: 26px;
  background: rgba(0,0,0,.6); color: #fff; text-align: center; line-height: 24px;
  font-size: 18px; cursor: pointer; border-radius: 0 0 0 10px;
}
.photo-add {
  width: 96px; height: 96px; border-radius: 10px; background: #f0f0f0; color: #999;
  display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer;
}
.photo-add .plus { font-size: 34px; line-height: 1; }
.photo-add .txt { font-size: 12px; margin-top: 4px; }

/* 登录页 */
.login-wrap { padding: 48px 24px; text-align: center; }
.login-logo { font-size: 64px; }
.login-name { font-size: 26px; font-weight: 700; margin: 16px 0 4px; }
.login-sub { color: #999; font-size: 14px; margin-bottom: 32px; }
.role-item {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border-radius: 12px; padding: 18px; margin-bottom: 12px; cursor: pointer;
}
.role-item .r-name { font-size: 17px; font-weight: 600; }
.role-item .r-desc { color: #999; font-size: 13px; margin-top: 4px; }
.role-item .arrow { color: #ccc; font-size: 22px; }

/* 搜索 */
.search-box { display: flex; gap: 8px; margin-bottom: 10px; }
.search-box .input { flex: 1; border-radius: 22px; }
.filter-row { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.filter-chip { background: #fff; border-radius: 18px; padding: 6px 14px; font-size: 13px; color: #576b95; cursor: pointer; }

/* 消息 */
.msg-item { background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.msg-item.unread { border-left: 4px solid #e64340; }
.msg-title { font-size: 15px; font-weight: 600; }
.msg-content { color: #666; font-size: 13px; margin-top: 6px; }
.msg-time { color: #bbb; font-size: 11px; margin-top: 8px; }

/* 里程碑 */
.milestone-item { display: flex; background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.m-dot { width: 14px; height: 14px; border-radius: 50%; background: #ccc; margin: 4px 14px 0 0; flex-shrink: 0; }
.m-dot.done { background: #07c160; }
.m-content { flex: 1; }

/* 底部操作栏 */
.footer-actions { display: flex; gap: 10px; margin-top: 4px; }
.footer-actions .btn { flex: 1; }

.hint { color: #999; font-size: 12px; margin-top: 8px; }

/* 大按钮（今日上报） */
.big-btn {
  background: linear-gradient(135deg,#f7a600,#ff8f1f); color: #fff;
  border-radius: 16px; padding: 32px; text-align: center; margin-bottom: 12px; cursor: pointer;
  box-shadow: 0 6px 18px rgba(247,166,0,.3);
}
.big-btn .b-icon { font-size: 48px; }
.big-btn .b-text { font-size: 22px; font-weight: 700; margin-top: 8px; }
.big-btn .b-sub { font-size: 13px; opacity: .9; margin-top: 4px; }

/* 入口列表 */
.entry-list .entry { padding: 14px 0; border-bottom: 1px solid #f0f0f0; font-size: 15px; cursor: pointer; }
.entry-list .entry:last-child { border-bottom: none; }
