* { box-sizing: border-box; }
html, body, #app { height: 100%; margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  background: #f4f6f8; color: #1f2d3d;
}

/* 登录页 */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0b6b4b 0%, #128c7e 55%, #0b6b4b 100%); padding: 20px;
}
.login-card { width: 390px; max-width: 100%; background: #fff; border-radius: 18px; padding: 34px 30px 26px; box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.login-logo { font-size: 23px; font-weight: 800; color: #0b6b4b; text-align: center; letter-spacing: .01em; }
.login-logo b { color: #128c7e; }
.login-sub { text-align: center; color: #7a8a99; font-size: 13px; margin: 6px 0 22px; }
.login-tip { margin-top: 14px; font-size: 12px; color: #98a6b3; text-align: center; line-height: 1.7; }

/* 主布局 */
.layout { height: 100vh; }
.aside { background: #102236; display: flex; flex-direction: column; transition: width .2s; overflow: hidden; }
.aside-logo { height: 60px; flex: none; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,.08); white-space: nowrap; }
.aside-logo b { color: #25d366; margin-left: 4px; }
.aside .el-menu { border-right: none !important; background: transparent !important; flex: 1; overflow-y: auto; }
.aside .el-menu-item { color: #c4d0dc !important; }
.aside .el-menu-item.is-active { background: rgba(37,211,102,.16) !important; color: #25d366 !important; }
.aside .el-menu-item:hover { background: rgba(255,255,255,.06) !important; color: #fff !important; }

.header { background: #fff; border-bottom: 1px solid #e8edf2; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; height: 60px; flex: none; }
.header-left { display: flex; align-items: center; gap: 12px; }
.header-title { font-weight: 700; font-size: 16px; color: #102236; }
.header-right { display: flex; align-items: center; gap: 14px; }
.header-user { font-size: 13px; color: #41566b; }
.header-user .role-tag { margin-left: 6px; }
.main { padding: 20px; overflow: auto; background: #f4f6f8; }

.page-card { background: #fff; border-radius: 14px; padding: 18px 20px; box-shadow: 0 1px 3px rgba(16,34,54,.06); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .spacer { flex: 1; }
.toolbar .el-input, .toolbar .el-select { width: 180px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card { background: #fff; border-radius: 14px; padding: 18px 20px; box-shadow: 0 1px 3px rgba(16,34,54,.06); }
.stat-label { font-size: 13px; color: #7a8a99; }
.stat-value { font-size: 26px; font-weight: 800; color: #102236; margin-top: 6px; }
.stat-value.green { color: #0b6b4b; }
.stat-value.orange { color: #e6a23c; }
.stat-value.red { color: #f56c6c; }
.stat-value.blue { color: #21486e; }

.muted { color: #98a6b3; font-size: 12px; }
.section-title { font-size: 15px; font-weight: 700; color: #102236; margin: 0 0 12px; }
.pager { display: flex; justify-content: flex-end; margin-top: 16px; }
.order-items { width: 100%; }
.proof-img { max-width: 220px; max-height: 220px; border-radius: 8px; border: 1px solid #e8edf2; cursor: zoom-in; }
.timeline-note { color: #7a8a99; font-size: 12px; }
.warn-bar { background: #fdf6ec; border: 1px solid #faecd8; color: #b88230; border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px; }

@media (max-width: 768px) {
  .main { padding: 12px; }
  .toolbar .el-input, .toolbar .el-select { width: 100%; }
  .header-user .uname { display: none; }
}
