* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f2f4f7;
  color: #1f2733;
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}

.hidden {
  display: none !important;
}

.container {
  padding: 16px;
}

/* 卡片 */
.card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-top: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* 头部 */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 4px 8px;
}
.date {
  font-size: 16px;
  font-weight: 600;
}
.user {
  font-size: 13px;
  color: #8a94a6;
  margin-top: 2px;
}

/* 按钮 */
.primary {
  background: #1769ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 13px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
}
.primary:active {
  background: #1057d8;
}
.link-btn {
  background: none;
  border: none;
  color: #1769ff;
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
}
.btn-block {
  display: block;
  width: 100%;
}
.secondary {
  background: #fff;
  color: #1769ff;
  border: 1px solid #1769ff;
  border-radius: 8px;
  padding: 12px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
}
.secondary:active {
  background: #eef4ff;
}

/* 顶部身份切换（本地调试用，真实钉钉环境隐藏） */
.mock-switch {
  padding: 6px 8px;
  border: 1px solid #d8dee8;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
  max-width: 120px;
}

/* tabs */
.tabs {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  border-radius: 8px;
  background: #e8ebf1;
  color: #5a6472;
  font-size: 15px;
  cursor: pointer;
}
.tab.active {
  background: #1769ff;
  color: #fff;
}

/* 个人报餐 */
.question {
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 8px;
}
.status-line {
  text-align: center;
  color: #8a94a6;
  font-size: 14px;
  margin-bottom: 20px;
  min-height: 20px;
}
.status-line.eat {
  color: #16a34a;
  font-weight: 600;
}
.status-line.not-eat {
  color: #dc2626;
  font-weight: 600;
}
.actions {
  display: flex;
  gap: 16px;
}
.action-btn {
  flex: 1;
  padding: 18px 0;
  font-size: 20px;
  font-weight: 600;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
}
.action-btn.eat {
  background: #e8f7ee;
  color: #16a34a;
  border-color: #16a34a;
}
.action-btn.eat.active {
  background: #16a34a;
  color: #fff;
}
.action-btn.not-eat {
  background: #fee2e2;
  color: #dc2626;
  border-color: #dc2626;
}
.action-btn.not-eat.active {
  background: #dc2626;
  color: #fff;
}
.deadline-tip {
  text-align: center;
  color: #d97706;
  font-size: 13px;
  margin-top: 16px;
}

/* 部门代报 */
.dept-head {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.batch-row {
  text-align: right;
  margin-bottom: 8px;
}
.member-list {
  margin-bottom: 16px;
}
.member-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f0f2f5;
}
.member-name {
  font-size: 15px;
}
.member-ops {
  display: flex;
  gap: 8px;
}
.mini-btn {
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid #d8dee8;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
}
.mini-btn.yes.active {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
}
.mini-btn.no.active {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}
.temp-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.temp-row label {
  font-size: 15px;
}
.input {
  padding: 8px;
  border: 1px solid #d8dee8;
  border-radius: 6px;
  font-size: 15px;
  width: 80px;
}

/* 汇总 */
.summary-total {
  text-align: center;
  padding: 8px 0 4px;
}
.summary-total .num {
  font-size: 40px;
  font-weight: 700;
  color: #1769ff;
}
.summary-total .label {
  color: #8a94a6;
  font-size: 14px;
  margin-top: 4px;
}
.summary-list {
  margin-top: 16px;
}
.summary-row {
  padding: 12px 0;
  border-bottom: 1px solid #f0f2f5;
}
.summary-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.summary-dept {
  font-size: 15px;
  font-weight: 500;
}
.summary-num {
  font-size: 16px;
  font-weight: 600;
}
.summary-sub {
  color: #8a94a6;
  font-size: 12px;
  margin-top: 4px;
}
.warn {
  color: #d97706;
}

/* 管理后台 */
.admin-dept-card {
  margin-top: 16px;
}
.admin-member-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f2f5;
  font-size: 15px;
  cursor: pointer;
}
.admin-member-row input {
  width: 18px;
  height: 18px;
}