:root {
  --el-color-primary: #13b26b;
  --el-color-primary-light-3: #5ac997;
  --el-color-primary-light-5: #89d9b5;
  --el-color-primary-light-7: #b8e8d3;
  --el-color-primary-light-8: #d0f0e1;
  --el-color-primary-light-9: #e7f7f0;
  --el-color-primary-dark-2: #0f8e56;
  --side-bg: #18222f;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: #303133;
  background: #f3f5f8;
}
#app { height: 100%; }
.boot-loading { display: flex; align-items: center; justify-content: center; height: 100%; color: #909399; }

/* 登录 */
.login-wrap {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, #13b26b 0%, #1a8fe3 100%);
}
.login-card {
  width: 380px;
  max-width: 100%;
  background: #fff;
  border-radius: 12px;
  padding: 36px 32px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .15);
}
.login-card h2 { margin: 0 0 6px; text-align: center; font-size: 22px; }
.login-card p.sub { margin: 0 0 26px; text-align: center; color: #909399; font-size: 13px; }

/* 布局 */
.layout { height: 100%; }
.aside { background: var(--side-bg); overflow-y: auto; }
.logo { height: 56px; display: flex; align-items: center; padding: 0 20px; color: #fff; font-size: 16px; font-weight: 600; letter-spacing: 1px; }
.logo .dot { width: 28px; height: 28px; border-radius: 8px; background: var(--el-color-primary); margin-right: 10px; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.side-menu { border-right: none !important; background: transparent !important; }
.side-menu .el-menu { background: transparent !important; }
.side-menu .el-menu-item, .side-menu .el-sub-menu__title { color: #bfcbd9 !important; height: 46px; line-height: 46px; }
.side-menu .el-menu-item:hover, .side-menu .el-sub-menu__title:hover { background: rgba(255, 255, 255, .06) !important; }
.side-menu .el-menu-item.is-active { color: #fff !important; background: var(--el-color-primary) !important; }
.side-menu .menu-icon { width: 22px; display: inline-block; margin-right: 6px; text-align: center; }
.menu-drawer .el-drawer__body { padding: 0; background: var(--side-bg); }

.header { background: #fff; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #ebeef5; height: 56px; padding: 0 20px; }
.header .page-title { font-size: 16px; font-weight: 600; }
.header .menu-btn { font-size: 22px; cursor: pointer; padding-right: 6px; }
.header .admin-name { cursor: pointer; color: #606266; outline: none; }
.flex1 { flex: 1; }
.main { padding: 16px; overflow-y: auto; }

/* 通用 */
.page { background: #fff; border-radius: 8px; padding: 16px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; align-items: center; }
.toolbar .el-input, .toolbar .el-select { width: 180px; }
.toolbar .el-date-editor.el-input__wrapper { width: 240px; }
.pager { display: flex; justify-content: flex-end; margin-top: 14px; }
.thumb { width: 64px; height: 44px; border-radius: 4px; background: #f5f7fa; display: block; }
.thumb-sq { width: 44px; height: 44px; border-radius: 4px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; vertical-align: middle; margin-right: 6px; background: #eee; }
.muted { color: #909399; font-size: 12px; }
.money { color: #f56c6c; font-weight: 600; }
.mono { font-family: Menlo, Consolas, monospace; letter-spacing: .5px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form-tip { color: #909399; font-size: 12px; line-height: 1.6; margin-top: 4px; width: 100%; }
.static-text { white-space: pre-wrap; line-height: 1.7; color: #606266; }
.section-title { font-weight: 600; margin: 18px 0 10px; padding-left: 8px; border-left: 3px solid var(--el-color-primary); }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 20px; }
.kv > div { line-height: 1.8; }
.kv label { color: #909399; margin-right: 6px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.color-dot { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: middle; margin-right: 6px; }

/* 图片上传 */
.img-upload { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; width: 100%; }
.img-box { border: 1px dashed #dcdfe6; border-radius: 6px; cursor: pointer; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #fafafa; position: relative; flex-shrink: 0; }
.img-box:hover { border-color: var(--el-color-primary); }
.img-box img { width: 100%; height: 100%; object-fit: cover; }
.img-box .plus { font-size: 28px; color: #c0c4cc; }
.img-box .del { position: absolute; right: 0; top: 0; background: rgba(0, 0, 0, .55); color: #fff; width: 20px; height: 20px; line-height: 20px; text-align: center; font-size: 12px; border-bottom-left-radius: 6px; }
.img-box .move { position: absolute; left: 0; bottom: 0; background: rgba(0, 0, 0, .45); color: #fff; padding: 0 5px; font-size: 12px; }
.img-actions { flex: 1; min-width: 180px; }

/* 仪表盘 */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 14px; }
.stat-card { background: #fff; border-radius: 8px; padding: 18px; position: relative; overflow: hidden; }
.stat-card .label { color: #909399; font-size: 13px; }
.stat-card .value { font-size: 26px; font-weight: 700; margin-top: 8px; }
.stat-card .extra { margin-top: 6px; color: #909399; font-size: 12px; }
.stat-card .bar { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.todo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.todo-item { background: #f7f9fb; border-radius: 8px; padding: 14px; cursor: pointer; transition: all .2s; }
.todo-item:hover { background: var(--el-color-primary-light-9); }
.todo-item .num { font-size: 22px; font-weight: 700; color: #e6a23c; }
.todo-item .txt { color: #606266; margin-top: 4px; font-size: 13px; }
.dash-row { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; margin-bottom: 14px; }
.chart { width: 100%; height: 240px; }
.chart text { font-size: 11px; fill: #909399; }
.legend { display: flex; gap: 16px; font-size: 12px; color: #606266; margin-bottom: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }

/* 行程编辑 */
.day-card { border: 1px solid #ebeef5; border-radius: 8px; padding: 12px 12px 0; margin-bottom: 12px; background: #fcfcfd; }
.day-card .day-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-weight: 600; }

/* 日期 */
.week-check .el-checkbox { margin-right: 12px; }

@media (max-width: 768px) {
  .main { padding: 10px; }
  .page { padding: 12px; }
  .toolbar .el-input, .toolbar .el-select, .toolbar .el-date-editor.el-input__wrapper { width: 100% !important; }
  .dash-row { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card .value { font-size: 20px; }
  .pager { justify-content: center; }
  .el-dialog { --el-dialog-width: 94% !important; }
  .el-form-item__label { width: 90px !important; }
}
