* { -webkit-tap-highlight-color: transparent; box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #f5f6f8;
  color: #333;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  padding-bottom: 60px;
}
#app { max-width: 640px; margin: 0 auto; min-height: 100vh; }

.page-body { padding: 12px; }

.toolbar { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; }
.area-menu { flex: 1; }
.day-switch { display: flex; gap: 8px; margin-bottom: 14px; }
.day-switch .van-button { flex: 1; }

.block-loading { padding: 40px 0; }

.area-block { margin-bottom: 18px; }
.area-title {
  font-weight: 600; font-size: 15px; margin: 4px 2px 10px;
  display: flex; align-items: center; gap: 4px; color: #1f2937;
}
.area-empty, .muted { color: #9ca3af; font-size: 13px; }

.shift-card {
  background: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.shift-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.shift-group { font-weight: 600; font-size: 14px; }
.shift-time { color: #8a919f; font-size: 13px; margin-left: auto; }

.members { display: flex; flex-wrap: wrap; gap: 8px; }
.member-chip {
  display: inline-block; padding: 5px 10px; border-radius: 8px;
  background: #f3f4f6; font-size: 14px; color: #374151;
}
.member-chip.hl { background: #fff3e6; color: #ff8a00; font-weight: 600; }
.member-chip em { font-style: normal; text-decoration: underline; }

/* 后台通用 */
.admin-card { background: #fff; border-radius: 12px; margin: 12px; overflow: hidden; }
.admin-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 16px; border-bottom: 1px solid #f0f0f0;
}
.admin-row:last-child { border-bottom: none; }
.admin-row .label { font-size: 15px; }
.admin-row .sub { font-size: 12px; color: #9ca3af; margin-top: 2px; }
.admin-link { color: inherit; text-decoration: none; }
.manage-item { padding: 14px 16px; border-bottom: 1px solid #f0f0f0; }
.manage-item .name { font-weight: 600; }
.manage-item .meta { font-size: 12px; color: #9ca3af; margin-top: 3px; }
.manage-item .ops { display: flex; gap: 14px; margin-top: 8px; }
.op-edit { color: #3b82f6; font-size: 13px; }
.op-del { color: #ef4444; font-size: 13px; }

/* 底部导航（纯链接，不依赖 vue-router） */
.app-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; max-width: 640px; margin: 0 auto;
  height: 56px; background: #fff; border-top: 1px solid #f0f0f0;
  display: flex; z-index: 50;
}
.app-tabbar .tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: #9ca3af; text-decoration: none; font-size: 12px;
}
.app-tabbar .tab i { font-size: 20px; }
.app-tabbar .tab.active { color: #07c160; }
