/* ===== 良运到家 · 运营管理后台 ===== */
:root {
  --brand: #2F7D46;
  --brand-light: #EAF4EE;
  --accent: #FF8A00;
  --bg: #F5F7FA;
}
* { box-sizing: border-box; }
html, body, #app { height: 100%; margin: 0; }
body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: #303133;
  -webkit-font-smoothing: antialiased;
}

/* ---- 登录页 ---- */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2F7D46 0%, #3E9C5A 55%, #256b3a 100%);
  position: relative;
  overflow: hidden;
}
.login-page::before {
  content: '';
  position: absolute;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  top: -200px; right: -140px;
}
.login-page::after {
  content: '';
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  bottom: -140px; left: -100px;
}
.login-card {
  width: 400px;
  background: #fff;
  border-radius: 16px;
  padding: 40px 38px 30px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  position: relative;
  z-index: 2;
}
.login-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 6px;
}
.login-logo img { width: 44px; height: 44px; border-radius: 10px; }
.login-logo .t1 { font-size: 22px; font-weight: 700; color: #1F2D26; }
.login-sub {
  text-align: center;
  color: #8a97a1;
  font-size: 13px;
  margin-bottom: 28px;
}
.login-tip {
  margin-top: 18px;
  background: #F6F8FA;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: #7b8894;
  line-height: 1.9;
}
.login-tip b { color: #46545f; font-weight: 600; }
.login-tip .acc { color: var(--brand); cursor: pointer; }

/* ---- 布局 ---- */
.layout { height: 100vh; display: flex; }
.layout-aside {
  width: 220px;
  background: #22301F;
  color: #cfdbc9;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
}
.aside-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px 14px;
}
.aside-brand img { width: 34px; height: 34px; border-radius: 8px; }
.aside-brand .name { color: #fff; font-size: 16px; font-weight: 700; line-height: 1.25; }
.aside-brand .en { font-size: 10px; color: #8fa98a; letter-spacing: 1px; }
.layout-aside .el-menu { border-right: none; background: transparent; }
.layout-aside .el-menu-item { color: #b7c6b3; height: 44px; }
.layout-aside .el-menu-item:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.layout-aside .el-menu-item.is-active { background: var(--brand); color: #fff; }
.layout-aside .el-menu-item-group__title { color: #6d7f6a; font-size: 12px; padding: 10px 0 4px 16px; }
.aside-foot {
  margin-top: auto;
  padding: 14px 16px;
  font-size: 11px;
  color: #66755f;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  line-height: 1.8;
}
.layout-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.layout-header {
  height: 56px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  z-index: 5;
}
.header-title { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.header-right { display: flex; align-items: center; gap: 14px; }
.layout-body { flex: 1; overflow-y: auto; padding: 18px 22px 30px; }

/* ---- 通用 ---- */
.page-card { background: #fff; border-radius: 10px; padding: 18px 20px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); margin-bottom: 16px; }
.page-card + .page-card { margin-top: 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.toolbar .grow { flex: 1; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.stat-card {
  background: #fff; border-radius: 10px; padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.stat-card .label { font-size: 13px; color: #8a97a1; margin-bottom: 8px; }
.stat-card .value { font-size: 26px; font-weight: 700; color: #1F2D26; }
.stat-card .value .unit { font-size: 13px; font-weight: 400; color: #97a3ad; margin-left: 2px; }
.stat-card.g-green .value { color: var(--brand); }
.stat-card.g-orange .value { color: var(--accent); }
.stat-card.g-red .value { color: #E25A5A; }
.stat-card.g-blue .value { color: #3D8BD4; }
.chart-box { width: 100%; height: 320px; }
.chart-box-sm { width: 100%; height: 300px; }
.mono { font-family: Consolas, Menlo, monospace; }
.money { color: #CF6B2C; font-weight: 600; }
.money-green { color: var(--brand); font-weight: 600; }
.sub-text { color: #8a97a1; font-size: 12px; }
.danger-text { color: #E25A5A; }
.answer-correct { color: var(--brand); font-weight: 700; }
.section-title { font-size: 14px; font-weight: 600; margin: 0 0 12px; display: flex; align-items: center; gap: 6px; }
.uploader { display: inline-block; }
.uploader-preview { position: relative; display: inline-block; }
.uploader-preview .uploader-mask {
  position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45);
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px; opacity: 0; transition: opacity 0.2s;
}
.uploader-preview:hover .uploader-mask { opacity: 1; }
.uploader-btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 120px; height: 80px; border: 1px dashed #c4ccd4; border-radius: 6px;
  color: #8a97a1; cursor: pointer; gap: 4px; font-size: 12px; background: #FAFBFC;
}
.uploader-btn:hover { border-color: var(--brand); color: var(--brand); }
.uploader-btn .el-icon { font-size: 20px; }
.detail-sec { margin-bottom: 6px; }
.checkin-photos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.risk-tag { margin-right: 6px; }
.table-thumb { width: 72px; height: 48px; border-radius: 4px; object-fit: cover; }
.filter-label { font-size: 13px; color: #606266; }
.msg-item { padding: 12px 14px; border-radius: 8px; border: 1px solid #EBEEF2; margin-bottom: 10px; background: #fff; cursor: pointer; }
.msg-item.unread { border-left: 3px solid var(--brand); }
.msg-item .t { display: flex; align-items: center; gap: 8px; }
.help-tip { font-size: 12px; color: #9aa5ae; line-height: 1.7; }
.tag-mini { transform: scale(0.9); }
.el-drawer__body { padding-top: 6px; }
.drawer-actions { background: #F8FAF9; border-radius: 8px; padding: 14px; margin-bottom: 14px; }
.quick-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.score-hero { display: flex; align-items: center; gap: 16px; }
.score-hero .num { font-size: 44px; font-weight: 700; color: var(--brand); }
.dialog-footer-gap { display: flex; justify-content: flex-end; gap: 10px; }
