* { box-sizing: border-box; }
html, body, #app { margin: 0; height: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: #f3f5f8;
  color: #1f2d3d;
}

.login-page {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1d3557 0%, #2a6f97 55%, #61a5c2 100%);
}
.login-card { width: 380px; border-radius: 12px; }
.login-title { font-size: 22px; font-weight: 600; text-align: center; margin-bottom: 4px; }
.login-subtitle { text-align: center; color: #8492a6; margin-bottom: 24px; font-size: 13px; }

.layout { height: 100%; }
.layout-aside { background: #1d3557; color: #fff; display: flex; flex-direction: column; }
.brand { height: 60px; display: flex; align-items: center; padding: 0 20px; font-size: 17px; font-weight: 600;
  letter-spacing: 1px; border-bottom: 1px solid rgba(255,255,255,.08); white-space: nowrap; }
.layout-aside .el-menu { border-right: none; background: transparent; flex: 1; }
.layout-aside .el-menu-item { color: #c9d6e3; }
.layout-aside .el-menu-item:hover { background: rgba(255,255,255,.06); }
.layout-aside .el-menu-item.is-active { color: #fff; background: #2a6f97; }
.layout-header { background: #fff; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid #e6ebf1; }
.page-title { font-size: 17px; font-weight: 600; }
.layout-main { padding: 18px; overflow: auto; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 14px; }
.stat-label { color: #8492a6; font-size: 13px; }
.stat-value { font-size: 28px; font-weight: 600; margin: 4px 0; }
.stat-sub { color: #5a6b7d; font-size: 12px; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; align-items: center; }
.filter-bar .el-input, .filter-bar .el-select { width: 170px; }
.filter-bar .keyword { width: 230px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pager { display: flex; justify-content: flex-end; margin-top: 14px; }

.thumb { width: 44px; height: 54px; border-radius: 4px; background: #eef1f5; }
.muted { color: #8492a6; font-size: 12px; }
.mono { font-family: Consolas, "SFMono-Regular", Menlo, monospace; }
.danger-text { color: #d03050; }
.ok-text { color: #18a058; }

.import-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 14px; margin-bottom: 14px; }
.import-card h3 { margin: 0 0 6px; font-size: 16px; }
.import-card ul { padding-left: 18px; color: #5a6b7d; font-size: 13px; line-height: 1.8; margin: 8px 0 14px; }
.result-summary { display: flex; gap: 18px; align-items: center; margin-bottom: 10px; font-size: 14px; }

.photo-dialog-body { display: grid; grid-template-columns: 1fr 220px; gap: 18px; }
.rules { margin: 0; padding-left: 18px; line-height: 1.9; font-size: 13px; color: #3c4b5c; }
.preview-box { border: 1px dashed #c0ccda; border-radius: 6px; height: 280px; display: flex;
  align-items: center; justify-content: center; background: #fafbfc; overflow: hidden; }
.preview-box img { max-width: 100%; max-height: 100%; }
.check-list { margin: 10px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.8; }

.org-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(460px, 1fr)); gap: 14px; }
.card-head { display: flex; align-items: center; justify-content: space-between; }

.guide ol { padding-left: 20px; line-height: 2; font-size: 13px; margin: 6px 0; }
.guide code { background: #f0f3f7; padding: 1px 6px; border-radius: 3px; }
.online-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: #c0ccda; }
.online-dot.on { background: #18a058; box-shadow: 0 0 0 3px rgba(24,160,88,.15); }
