/* ================= 服务端（服务人员）样式 ================= */
body.server-body { background: #eef2f6; min-height: 100vh; }

.s-topbar {
  height: 58px; background: linear-gradient(135deg, #2d3a8c, #3f51b5); color: #fff;
  display: flex; align-items: center; padding: 0 20px; gap: 16px; position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
}
.s-topbar .brand { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.s-topbar .spacer { flex: 1; }
.s-topbar .nav-link { padding: 7px 14px; border-radius: 8px; cursor: pointer; font-size: 14px; opacity: .85; transition: all .2s; }
.s-topbar .nav-link:hover { background: rgba(255,255,255,.15); opacity: 1; }
.s-topbar .nav-link.active { background: rgba(255,255,255,.22); opacity: 1; font-weight: 600; }
.s-topbar .user { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.s-topbar .avatar-sm { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.s-topbar .avatar-sm img { width: 100%; height: 100%; object-fit: cover; }

.s-container { max-width: 1000px; margin: 0 auto; padding: 20px 16px 40px; }

.s-page-title { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.s-page-sub { font-size: 13px; color: var(--text-sub); margin-bottom: 18px; }

/* 统计卡 */
.s-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 20px; }
.s-stat { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.s-stat .num { font-size: 28px; font-weight: 800; }
.s-stat .lbl { font-size: 13px; color: var(--text-sub); margin-top: 4px; }
.s-stat .ico { position: absolute; right: 14px; top: 14px; font-size: 30px; opacity: .15; }
.s-stat.c1 .num { color: #0984e3; } .s-stat.c2 .num { color: #00b894; }
.s-stat.c3 .num { color: #f0932b; } .s-stat.c4 .num { color: #6c5ce7; }

/* 区块 */
.s-section { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 18px; }
.s-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.s-section-head .h { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.s-section-head .h::before { content: ''; width: 4px; height: 16px; background: #3f51b5; border-radius: 2px; }

/* 订单/任务卡 */
.s-card { border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 12px; transition: all .2s; background: #fff; }
.s-card:hover { box-shadow: var(--shadow); border-color: #d5dbe3; }
.s-card .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.s-card .addr { font-size: 16px; font-weight: 700; color: #2d3a8c; }
.s-card .meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--text-sub); margin-top: 8px; }
.s-card .meta .item { display: flex; align-items: center; gap: 5px; }
.s-card .foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border); }
.s-card .info-line { font-size: 13px; color: var(--text-sub); margin-top: 4px; }

.s-badge { display: inline-block; padding: 3px 11px; border-radius: 20px; font-size: 12px; font-weight: 600; }

/* 登录 */
.s-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #2d3a8c, #3f51b5 55%, #5c6bc0); padding: 20px; }
.s-login-box { background: #fff; border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.25); width: 100%; max-width: 420px; padding: 36px 32px; }
.s-login-logo { text-align: center; margin-bottom: 24px; }
.s-login-logo .ico { font-size: 48px; }
.s-login-logo .name { font-size: 22px; font-weight: 800; color: #2d3a8c; margin-top: 6px; }
.s-login-logo .sub { font-size: 13px; color: var(--text-sub); margin-top: 4px; }

/* 详情信息行 */
.s-info-row { display: flex; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.s-info-row:last-child { border-bottom: none; }
.s-info-row .k { width: 100px; color: var(--text-sub); flex-shrink: 0; }
.s-info-row .v { flex: 1; word-break: break-all; }

/* 移动端适配 */
@media (max-width: 640px) {
  .s-stats { grid-template-columns: repeat(2,1fr); }
  .s-topbar { padding: 0 12px; gap: 8px; }
  .s-topbar .brand span.txt { display: none; }
  .s-topbar .nav-link { padding: 6px 10px; font-size: 13px; }
  .s-topbar .user .uname { display: none; }
}
