:root {
  --primary: #1677FF;
  --primary-2: #4D9FFF;
  --primary-weak: #EAF2FF;
  --green: #19BD77;
  --orange: #FF8A32;
  --red: #FF5A4F;
  --purple: #7C5CFC;
  --bg: #F4F7FC;
  --text: #17233B;
  --sub: #7B8798;
  --muted: #98A2B3;
  --border: #EDF1F7;
  --radius: 12px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  min-width: 1180px;
}

a { color: inherit; }
.ic { width: 18px; height: 18px; flex: 0 0 auto; display: inline-block; vertical-align: middle; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #D6DEEA; border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* ================= 布局 ================= */
.app { display: flex; flex-direction: column; min-height: 100vh; }
.app-body { display: flex; flex: 1; min-height: 0; }

/* ================= 侧边栏（白底，参考图统一视觉） ================= */
.sidebar {
  width: 228px;
  flex: 0 0 228px;
  background: #fff;
  color: var(--text);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 66px;
  height: calc(100vh - 66px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transition: width .2s ease, flex-basis .2s ease;
  z-index: 20;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: #E2E8F2; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, #1677FF 0%, #4D9FFF 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(22, 119, 255, .30);
  flex: 0 0 38px;
}
.brand-logo svg { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text strong { font-size: 17px; letter-spacing: .5px; white-space: nowrap; color: var(--text); }
.brand-text span { font-size: 11px; color: var(--muted); margin-top: 3px; letter-spacing: 1.4px; white-space: nowrap; }

.menu { padding: 10px 12px 18px; flex: 1; }
.menu-item {
  display: flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 12px; border-radius: 8px;
  color: #55617A;
  text-decoration: none; font-size: 14px;
  margin-bottom: 2px;
  transition: background .15s, color .15s;
  overflow: hidden;
}
.menu-item .mi { width: 17px; height: 17px; opacity: .85; }
.menu-item:hover { background: #F4F7FC; color: var(--text); }
.menu-item.active {
  background: var(--primary-weak);
  color: var(--primary); font-weight: 600;
  box-shadow: none;
}
.menu-item.active .mi { opacity: 1; }
.mlabel { white-space: nowrap; }

.menu-group { margin-top: 2px; }
.group-title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 12px 6px;
  font-size: 12px; letter-spacing: .5px;
  color: var(--muted);
  cursor: pointer; user-select: none;
}
.group-title:hover { color: var(--sub); }
.gchev { width: 12px; height: 12px; opacity: .55; transition: transform .2s; }
.menu-group.closed .group-items { display: none; }
.menu-group.closed .gchev { transform: rotate(-90deg); }

.side-foot {
  padding: 16px 0 22px;
  text-align: center;
  font-size: 11px;
  color: #B8C2D4;
  letter-spacing: .4px;
}

/* 收起态 */
.app.collapsed .sidebar { width: 72px; flex-basis: 72px; }
.app.collapsed .mlabel,
.app.collapsed .group-title span,
.app.collapsed .side-foot { display: none; }
.app.collapsed .group-title { justify-content: center; padding: 14px 0 6px; }
.app.collapsed .gchev { display: none; }
.app.collapsed .menu-item { justify-content: center; padding: 0; }

/* ================= 顶栏 ================= */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: 66px;
  flex: 0 0 66px;
  background: #fff;
  display: flex; align-items: center; gap: 14px;
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 30;
}

.icon-btn {
  width: 36px; height: 36px;
  border: none; background: transparent; border-radius: 8px;
  color: #5A6678; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-family: inherit;
}
.icon-btn:hover { background: #F2F5FA; }
.icon-btn .ic { width: 20px; height: 20px; }

.crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 18px 32px 0; font-size: 13px; min-height: 18px; }
.crumb:empty { padding: 0; }
.crumb-seg { color: var(--muted); white-space: nowrap; }
.crumb-sep { color: #C3CCDC; }
.crumb-cur { color: #3B4A68; white-space: nowrap; }
.crumb-chip {
  background: var(--primary-weak); color: var(--primary);
  font-size: 13px; padding: 6px 14px; border-radius: 8px; white-space: nowrap;
}

.top-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.city { display: flex; align-items: center; gap: 5px; font-size: 13px; color: #5A6678; white-space: nowrap; }
.city .ic { width: 15px; height: 15px; color: var(--primary); }

.top-search {
  display: flex; align-items: center; gap: 8px;
  width: 300px; height: 38px;
  background: #F5F7FB; border-radius: 10px; padding: 0 12px;
  border: 1px solid transparent;
}
.top-search:focus-within { border-color: #C9DBF5; background: #fff; }
.top-search .ic { width: 16px; height: 16px; color: var(--muted); }
.top-search input {
  flex: 1; min-width: 0; border: none; background: transparent; outline: none;
  font-size: 13px; color: var(--text); font-family: inherit;
}
.top-search input::placeholder { color: #A6AFBE; }

.bell { position: relative; }
.badge {
  position: absolute; top: -3px; right: -5px;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px; background: #FF4D4F; color: #fff;
  font-size: 10px; line-height: 18px; text-align: center;
  border: 2px solid #fff; box-sizing: content-box;
}

.user { display: flex; align-items: center; gap: 8px; padding: 4px 6px 4px 4px; border-radius: 20px; cursor: pointer; }
.user:hover { background: #F5F7FB; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #1677FF, #4D9FFF);
  color: #fff; font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.uname { font-size: 13px; }
.chev { width: 14px; height: 14px; color: var(--muted); transition: transform .18s ease; }

/* 顶栏用户下拉菜单 */
.user { position: relative; }
.user.open .chev { transform: rotate(180deg); }
.user-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 158px; padding: 6px;
  display: none; flex-direction: column; gap: 2px;
  background: #fff; border: 1px solid #EDF1F7; border-radius: 12px;
  box-shadow: 0 12px 32px rgba(21, 35, 64, .14);
  z-index: 60; cursor: default;
}
.user.open .user-menu { display: flex; }
.user-menu-item {
  border: 0; background: transparent; text-align: left;
  padding: 9px 12px; border-radius: 8px;
  font-size: 13px; color: #2A3350; font-family: inherit; cursor: pointer;
}
.user-menu-item:hover { background: #F5F7FB; }
.user-menu-item.danger { color: #E5484D; }
.user-menu-item.danger:hover { background: #FFF1F1; }

/* ================= 顶栏全局提醒中心 ================= */
.notify { position: relative; display: flex; align-items: center; }
.notify.open .bell { background: #EAF2FF; color: var(--primary); }
.badge.zero { display: none; }
.badge.hot { animation: badgePulse 1.8s ease-in-out infinite; }
@keyframes badgePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }

.notify-panel {
  position: absolute; right: -8px; top: calc(100% + 10px);
  width: 404px; max-width: calc(100vw - 32px);
  display: none; flex-direction: column;
  background: #fff; border: 1px solid #EDF1F7; border-radius: 14px;
  box-shadow: 0 18px 44px rgba(21, 35, 64, .16);
  z-index: 70; overflow: hidden; cursor: default;
  text-align: left;
}
.notify.open .notify-panel { display: flex; }

.notify-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 10px; }
.notify-head-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #1F2A44; }
.notify-total { font-size: 11px; font-weight: 500; color: #FF4D4F; background: #FFF1F1; border-radius: 10px; padding: 2px 8px; }
.notify-total.zero { color: #12A15A; background: #E8F8EF; }
.notify-readall {
  border: 0; background: transparent; color: var(--primary);
  font-size: 12px; font-family: inherit; cursor: pointer;
  padding: 4px 8px; border-radius: 6px; white-space: nowrap;
}
.notify-readall:hover { background: #EAF2FF; }
.notify-readall:disabled { color: #B4BDCC; cursor: default; background: transparent; }

.notify-filters { display: flex; gap: 4px; padding: 0 12px 10px; border-bottom: 1px solid #F1F4F9; overflow-x: auto; }
.notify-filters::-webkit-scrollbar { height: 0; }
.notify-tab {
  display: inline-flex; align-items: center; gap: 4px;
  border: 0; background: #F5F7FB; color: #5A6678;
  font-size: 12px; font-family: inherit; cursor: pointer; white-space: nowrap;
  padding: 6px 10px; border-radius: 8px;
}
.notify-tab:hover { background: #EAF2FF; color: var(--primary); }
.notify-tab.active { background: #EAF2FF; color: var(--primary); font-weight: 600; }
.notify-tab em { font-style: normal; font-size: 10px; line-height: 15px; padding: 0 5px; border-radius: 8px; background: #FF4D4F; color: #fff; }

.notify-list { max-height: 430px; overflow-y: auto; overscroll-behavior: contain; }
.notify-list::-webkit-scrollbar { width: 6px; }
.notify-list::-webkit-scrollbar-thumb { background: #DCE3EE; border-radius: 3px; }

.notify-item { position: relative; padding: 12px 16px; border-bottom: 1px solid #F4F6FA; cursor: pointer; transition: background .15s ease; }
.notify-item:last-child { border-bottom: 0; }
.notify-item:hover { background: #F8FAFF; }
.notify-item.unread { background: #FBFDFF; }
.notify-item.unread:hover { background: #F4F9FF; }
.notify-item.unread::before { content: ''; position: absolute; left: 8px; top: 16px; width: 3px; height: 34px; border-radius: 2px; background: #1677FF; }
.notify-item.important::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, #FF8A3D, #FF4D4F); }
.notify-item-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.notify-tag { font-size: 11px; line-height: 18px; padding: 0 8px; border-radius: 6px; font-weight: 500; }
.notify-tag.tag-user { color: #0E9384; background: #E7F7F4; }
.notify-tag.tag-merchant { color: #1677FF; background: #EAF2FF; }
.notify-tag.tag-rider { color: #12A15A; background: #E8F8EF; }
.notify-tag.tag-groupon { color: #D97706; background: #FFF6E6; }
.notify-tag.tag-refund { color: #E5484D; background: #FFF1F1; }
.notify-tag.tag-other { color: #8A5CF6; background: #F3EEFF; }
.notify-flag { font-size: 10px; line-height: 16px; padding: 0 5px; border-radius: 5px; color: #FF7A00; background: #FFF5E8; border: 1px solid #FFE0BF; }
.notify-time { margin-left: auto; font-size: 11px; color: #98A2B3; white-space: nowrap; }
.notify-item-title { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #1F2A44; }
.notify-dot { width: 6px; height: 6px; border-radius: 50%; background: #FF4D4F; flex: none; }
.notify-item-content { margin-top: 3px; font-size: 12px; line-height: 1.55; color: #5A6678; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notify-item-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.notify-action { font-size: 12px; font-weight: 500; color: var(--primary); }
.notify-item:hover .notify-action { text-decoration: underline; }
.notify-readone { border: 0; background: #F5F7FB; color: #5A6678; font-size: 11px; font-family: inherit; cursor: pointer; padding: 3px 9px; border-radius: 6px; }
.notify-readone:hover { background: #EAF2FF; color: var(--primary); }
.notify-read { font-size: 11px; color: #B4BDCC; }

.notify-empty { padding: 40px 20px; text-align: center; color: #98A2B3; }
.notify-empty-ic { margin-bottom: 8px; color: #D6DEEA; }
.notify-empty-ic .ic { width: 34px; height: 34px; }
.notify-empty p { margin: 0 0 6px; font-size: 13px; color: #5A6678; }
.notify-empty span { font-size: 11px; }

.notify-foot { padding: 9px 16px; border-top: 1px solid #F1F4F9; font-size: 11px; color: #98A2B3; text-align: center; }

@media (max-width: 1280px) { .notify-panel { width: 360px; } }
@media (max-width: 640px) { .notify-panel { position: fixed; left: 12px; right: 12px; top: 70px; width: auto; max-width: none; } }

/* 个人信息设置 */
.profile-grid { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.4fr); gap: 16px; align-items: start; }
.profile-hint { margin: 6px 0 14px; font-size: 12px; color: var(--sub); line-height: 1.7; }
.profile-form { display: flex; flex-direction: column; gap: 12px; }
.profile-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--sub); }
.profile-actions { justify-content: flex-start; }
@media (max-width: 960px) { .profile-grid { grid-template-columns: 1fr; } }

/* ================= 内容区 ================= */
.content { padding: 12px 32px 40px; flex: 1; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.page-head h1 {
  margin: 0; font-size: 23px; font-weight: 700; letter-spacing: .2px;
  display: flex; align-items: center; gap: 8px;
}
.page-head p { margin: 8px 0 0; font-size: 13px; color: var(--sub); }
.wave { font-size: 20px; }
.head-actions { display: flex; gap: 10px; align-items: center; padding-top: 4px; }

/* 运营总览时间筛选 */
.dash-range-bar { display: inline-flex; gap: 2px; background: #f3f5f9; border-radius: 8px; padding: 3px; }
.dash-range-bar .range-tab {
  padding: 5px 12px; font-size: 12px; color: #5a6678; border-radius: 6px;
  cursor: pointer; text-decoration: none; user-select: none; transition: all .15s;
}
.dash-range-bar .range-tab:hover { color: var(--primary); }
.dash-range-bar .range-tab.selected { background: #fff; color: var(--primary); box-shadow: 0 1px 3px rgba(0,0,0,.06); font-weight: 600; }

.btn {
  height: 38px; padding: 0 18px; border-radius: 8px;
  font-size: 14px; font-family: inherit;
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn .ic { width: 15px; height: 15px; }
.btn.ghost { background: #fff; border-color: #E4EAF3; color: #5A6678; }
.btn.ghost:hover { border-color: #C9D6E8; color: var(--text); }
.btn.primary { background: var(--primary); color: #fff; box-shadow: 0 6px 14px rgba(22, 119, 255, .28); }
.btn.primary:hover { background: #0E63E6; }
.btn.sm { height: 34px; margin-top: 18px; }

/* ================= KPI ================= */
.kpi-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }

.kpi {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  padding: 15px 15px 13px;
  min-height: 108px;
  color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
}
.kpi-deco {
  position: absolute; right: -30px; top: -42px;
  width: 112px; height: 112px; border-radius: 50%;
  background: rgba(255, 255, 255, .10);
}
.kpi-main { display: flex; align-items: center; gap: 11px; position: relative; z-index: 1; }
.kpi-ic {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 11px;
  background: rgba(255, 255, 255, .22);
  display: flex; align-items: center; justify-content: center;
}
.kpi-ic .ic, .kpi-ic svg { width: 23px; height: 23px; }
.kpi-txt { display: flex; flex-direction: column; min-width: 0; }
.kpi-label { font-size: 12px; color: rgba(255, 255, 255, .86); white-space: nowrap; }
.kpi-value { font-size: 24px; font-weight: 700; line-height: 1.25; letter-spacing: -.3px; white-space: nowrap; }
.foot {
  margin-top: 9px; position: relative; z-index: 1;
  font-size: 11.5px; color: rgba(255, 255, 255, .86);
  display: flex; align-items: center; gap: 5px; white-space: nowrap;
}
.foot b { font-weight: 600; color: #fff; }
.up {
  width: 15px; height: 15px; border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  display: inline-flex; align-items: center; justify-content: center;
}
.up .ic { width: 9px; height: 9px; color: #fff; }

.kpi-blue { background: linear-gradient(135deg, #1677FF 0%, #57A4FF 100%); box-shadow: 0 8px 18px rgba(22, 119, 255, .28); }
.kpi-red { background: linear-gradient(135deg, #FF5A6E 0%, #FF8B5E 100%); box-shadow: 0 8px 18px rgba(255, 90, 110, .25); }
.kpi-green { background: linear-gradient(135deg, #0FAF6B 0%, #4ADB9C 100%); box-shadow: 0 8px 18px rgba(25, 189, 119, .25); }
.kpi-purple { background: linear-gradient(135deg, #7B5CFB 0%, #A98CFF 100%); box-shadow: 0 8px 18px rgba(124, 92, 252, .25); }
.kpi-amber { background: linear-gradient(135deg, #FFAE1F 0%, #FFD25A 100%); box-shadow: 0 8px 18px rgba(255, 174, 31, .28); }
.kpi-sky { background: linear-gradient(135deg, #3D9BFF 0%, #82C9FF 100%); box-shadow: 0 8px 18px rgba(61, 155, 255, .25); }

/* ================= 栅格与卡片 ================= */
.row { display: grid; gap: 16px; margin-bottom: 16px; }
.row-3 { grid-template-columns: 1.9fr 1fr 1.06fr; }
.row-2-1 { grid-template-columns: 2.05fr 1fr; }
.row-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: #fff; border-radius: var(--radius);
  padding: 20px 24px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(23, 35, 59, .045);
  min-width: 0;
}
.row-3 .card { min-height: 322px; }

.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.card-head h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .2px; white-space: nowrap; }
.more { margin-left: auto; font-size: 12px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.more:hover { color: var(--primary); }

.legend { display: flex; align-items: center; gap: 16px; margin-left: auto; font-size: 12px; color: var(--sub); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

.mini-select {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 10px 0 12px; margin-left: 6px;
  border-radius: 14px; border: 1px solid #E6ECF5; background: #fff;
  color: #5A6678; font-size: 12px; font-family: inherit; cursor: pointer;
  white-space: nowrap;
}
.mini-select:hover { border-color: #C9DBF5; color: var(--primary); }
.mini-select svg { width: 12px; height: 12px; color: var(--muted); }

.chart-box { margin: 2px -4px 0; }
.chart-svg { display: block; }

/* 订单来源占比 */
.source-body { display: flex; align-items: center; gap: 6px; height: 236px; }
.donut { flex: 0 0 auto; }
.donut svg { display: block; }
.src-legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.src-legend li { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #5A6678; }
.src-legend i { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 7px; }
.src-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.src-legend b { color: var(--sub); font-weight: 500; }

/* 公告 */
.notice-list { list-style: none; margin: 0; padding: 0; }
.notice-list li {
  display: flex; align-items: center; gap: 8px;
  height: 40px; font-size: 12px;
  border-bottom: 1px dashed #F1F4FA;
}
.notice-list li:last-child { border-bottom: none; }
.tag { flex: 0 0 auto; font-size: 11px; padding: 2px 7px; border-radius: 4px; line-height: 16px; }
.tag-red { background: #FFECEC; color: #FF5A4F; }
.tag-orange { background: #FFF3E6; color: #FF8A32; }
.tag-blue { background: #EAF2FF; color: #1677FF; }
.tag-purple { background: #F3EDFF; color: #7C5CFC; }
.notice-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #3E4A5E; font-size: 12px; }
.notice-date { color: #A6AFBE; font-size: 11.5px; flex: 0 0 auto; }

/* ================= 表格 ================= */
.data-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.data-table th {
  background: #F7F9FC; color: var(--sub);
  font-weight: 500; text-align: left; font-size: 12px;
  padding: 10px 12px; white-space: nowrap;
}
.data-table th:first-child { border-radius: 7px 0 0 7px; }
.data-table th:last-child { border-radius: 0 7px 7px 0; }
.data-table td { padding: 12px; border-bottom: 1px solid #F2F5F9; white-space: nowrap; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: #FAFCFF; }
.mono { font-family: Consolas, "SFMono-Regular", monospace; font-size: 12px; color: #5A6678; }
.muted { color: var(--muted); }
.strong { font-weight: 600; }
.link { color: var(--primary); text-decoration: none; font-size: 12px; margin-right: 10px; white-space: nowrap; }
.link:last-child { margin-right: 0; }
.link:hover { text-decoration: underline; }
.link.green { color: #12A96A; }
.link.red { color: var(--red); }
.actions { white-space: nowrap; }

.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 5px; font-size: 11.5px; font-weight: 500; }
.pill-orange { background: #FFF3E6; color: #FF8A32; }
.pill-blue { background: #EAF2FF; color: #1677FF; }
.pill-green { background: #E7F8F0; color: #12A96A; }
.pill-red { background: #FFECEC; color: #FF5A4F; }
.pill-amber { background: #FFF7E0; color: #D99B00; }
.pill-gray { background: #F2F5F9; color: #7B8798; }
.pill-sky { background: #E6F4FF; color: #0EA5E9; }
.pill-violet { background: #F3EEFF; color: #7C4DFF; }
.pill-cyan { background: #E0FBFC; color: #0891B2; }
.pill-teal { background: #E0F7F1; color: #0D9488; }

.delivery { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #5A6678; }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot-green { background: #19BD77; }
.dot-blue { background: #1677FF; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.tb-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.content-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #FFF3E8; color: #FF7A1A; font-size: 12px; }
.content-text { margin: 6px 0 0; color: #334155; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.content-thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; margin-top: 8px; border: 1px solid #EEF2F7; }
.content-item { display: flex; align-items: center; gap: 10px; }
.content-item .content-thumb { margin-top: 0; width: 52px; height: 52px; }
.content-detail { padding: 4px 0 8px; }
.content-detail h3 { margin: 0 0 6px; font-size: 17px; }
.content-price { font-size: 22px; font-weight: 700; color: #FF8A32; margin: 8px 0; }
.content-h4 { margin: 14px 0 8px; font-size: 14px; }
.content-images { display: grid; grid-template-columns: repeat(auto-fill,minmax(100px,1fr)); gap: 8px; margin-top: 10px; }
.content-images img { width: 100%; height: 110px; object-fit: cover; border-radius: 10px; border: 1px solid #EEF2F7; }
.content-comments { max-height: 300px; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.content-comment { padding: 8px 10px; background: #F8FAFC; border-radius: 10px; }
.content-comment b { font-size: 13px; }
.content-comment span { margin-left: 8px; font-size: 12px; color: #94A3B8; }
.content-comment p { margin: 4px 0 0; color: #334155; line-height: 1.5; }
.tb-search {
  display: flex; align-items: center; gap: 7px;
  height: 34px; width: 250px; padding: 0 10px;
  background: #F7F9FC; border: 1px solid #EDF1F7; border-radius: 8px;
}
.tb-search .ic { width: 15px; height: 15px; color: var(--muted); }
.tb-search input { flex: 1; min-width: 0; border: none; background: transparent; outline: none; font-size: 12.5px; font-family: inherit; color: var(--text); }
.tb-tip { font-size: 12px; color: var(--muted); }

.tabs { display: flex; gap: 26px; border-bottom: 1px solid #F0F4FA; margin-bottom: 14px; }
.tab { position: relative; padding: 0 0 12px; font-size: 13px; color: var(--sub); cursor: pointer; white-space: nowrap; }
.tab b { margin-left: 4px; font-size: 12px; color: var(--muted); font-weight: 500; }
.tab.active { color: var(--primary); font-weight: 600; }
.tab.active b { color: var(--primary); }
.tab.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--primary); border-radius: 2px; }

.merchant-cell { display: flex; align-items: center; gap: 10px; }
.m-avatar {
  width: 32px; height: 32px; border-radius: 8px; flex: 0 0 32px;
  background: #EAF2FF; color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
}
.merchant-cell b { display: block; font-weight: 600; font-size: 12.5px; }
.m-sub { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); }

.pager { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; font-size: 12px; color: var(--muted); }
.pages { display: flex; gap: 6px; }
.pg { width: 28px; height: 28px; border-radius: 6px; border: 1px solid #E6ECF5; background: #fff; color: #5A6678; font-size: 12px; cursor: pointer; font-family: inherit; }
.pg:hover { border-color: #C9DBF5; color: var(--primary); }
.pg.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ================= 待处理 / 快捷入口 ================= */
.right-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pending-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pending-item {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 9px 2px 8px; border-radius: 9px;
  background: #FAFBFD;
}
.pending-item.soft-orange { background: #FFF8F1; }
.pending-item.soft-red { background: #FFF4F4; }
.pending-item.soft-blue { background: #F2F8FF; }
.pending-item.soft-purple { background: #F8F4FF; }
.pending-ic { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.pending-ic .ic { width: 16px; height: 16px; }
.pending-num { font-size: 19px; line-height: 1.1; font-weight: 700; }
.pending-label { font-size: 11px; color: var(--sub); white-space: nowrap; }
.c-orange { color: #FF8A32; }
.c-red { color: var(--red); }
.c-blue { color: var(--primary); }
.c-purple { color: var(--purple); }

.sc-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px 0; }
.sc-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 7px 0; border-radius: 8px; cursor: pointer;
  font-size: 11.5px; color: #5A6678;
}
.sc-item:hover { background: #F8FAFE; color: var(--primary); }
.sc-ic { width: 33px; height: 33px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.sc-ic .ic { width: 16px; height: 16px; }

.tone-orange { background: #FFF2E6; color: #FF8A32; }
.tone-red { background: #FFECEC; color: #FF5A4F; }
.tone-blue { background: #EAF2FF; color: #1677FF; }
.tone-purple { background: #F3EDFF; color: #7C5CFC; }
.tone-indigo { background: #EDF0FF; color: #5B6BFF; }
.tone-violet { background: #F4EEFF; color: #8B5CF6; }
.tone-gray { background: #F2F5F9; color: #7B8798; }

/* ================= 热门服务 ================= */
.hot-list { display: flex; flex-direction: column; gap: 13px; padding: 6px 0 2px; }
.hot-row { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.hot-name { flex: 0 0 62px; width: 62px; color: #5A6678; white-space: nowrap; }
.hot-track { flex: 1; height: 10px; border-radius: 5px; background: #F2F5FA; overflow: hidden; }
.hot-track i { display: block; height: 100%; border-radius: 5px; }
.hot-value { flex: 0 0 32px; width: 32px; text-align: right; color: var(--sub); }

/* ================= 空状态 ================= */
.empty-card { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 90px 0; text-align: center; }
.empty-ic {
  width: 64px; height: 64px; border-radius: 18px;
  background: #EAF2FF; color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.empty-ic .ic { width: 30px; height: 30px; }
.empty-card h3 { margin: 0; font-size: 17px; }
.empty-card p { margin: 8px 0 0; font-size: 13px; color: var(--sub); max-width: 420px; line-height: 1.7; }

/* ================= Toast ================= */
.toast {
  position: fixed; left: 50%; top: 22px;
  transform: translate(-50%, -10px);
  background: #17233B; color: #fff;
  font-size: 13px; padding: 10px 18px; border-radius: 8px;
  box-shadow: 0 10px 26px rgba(23, 35, 59, .25);
  opacity: 0; transition: opacity .2s, transform .2s;
  z-index: 100; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ================= 登录页 ================= */
.no-sidebar .sidebar { display: none; }
.no-sidebar .topbar { display: none; }
.no-sidebar .crumb { display: none; }
.no-sidebar .main { flex: 1; }
.no-sidebar .app-body { flex: 1; }
.no-sidebar .content { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 0; }
.no-sidebar { background: linear-gradient(135deg, #0C1E44 0%, #1677FF 100%); }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card { background: #fff; border-radius: 16px; padding: 40px 48px; width: 420px; box-shadow: 0 24px 60px rgba(8, 22, 51, .2); }
.login-card .login-logo { width: 56px; height: 56px; border-radius: 14px; background: var(--primary); display: flex; align-items: center; justify-content: center; color: #fff; margin: 0 auto 16px; }
.login-card .login-logo svg { width: 28px; height: 28px; }
.login-card h1 { text-align: center; margin: 0 0 6px; font-size: 20px; }
.login-sub { text-align: center; color: var(--sub); margin: 0 0 24px; font-size: 13px; }
.login-form .form-row { margin-bottom: 14px; }
.login-form input { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; outline: none; transition: border .2s; }
.login-form input:focus { border-color: var(--primary); }

/* ================= 扩展：K V、大图数字、标签、Banner ================= */
.kv-list { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; font-size: 13px; margin-top: 8px; }
.kv-list > div > span { color: var(--sub); margin-right: 10px; }
.kv-list .big { font-size: 13px; color: var(--sub); }
.kv-list b.big { font-size: 20px; color: var(--red); }
.big-numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.bn-item { text-align: center; padding: 14px; background: #F4F7FC; border-radius: 10px; }
.bn-num { display: block; font-size: 22px; font-weight: 600; color: var(--primary); }
.bn-label { color: var(--sub); font-size: 12px; }
.banner-list { list-style: none; margin: 0; padding: 0; }
.banner-list li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); }
.banner-list li img { width: 80px; height: 40px; border-radius: 6px; object-fit: cover; }
.banner-list li > div { flex: 1; }

.mini-tag { display: inline-block; font-size: 11px; padding: 2px 6px; border-radius: 4px; margin-right: 4px; }
.mt-admin { background: #FFE8CC; color: #FF8A32; }
.mt-rider { background: #D6F5E4; color: #19BD77; }
.mt-merchant { background: #E4EDFF; color: #1677FF; }
.mt-groupon { background: #FFE2E0; color: #FF5A4F; }
.mt-print { background: #EEE7FE; color: #7C5CFC; }

.form-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; align-items: start; }
/* 长文本、多行说明、勾选框/单选框所在行默认占满整行，避免控件被挤窄、勾选项文字折行 */
.form-wrap > .form-row:has(textarea),
.form-wrap > .form-row:has(input[type="checkbox"]),
.form-wrap > .form-row:has(input[type="radio"]),
.form-wrap > .form-row:has(.form-hint),
.form-wrap > .form-row.wide { grid-column: 1 / -1; }
.form-wrap input, .form-wrap select, .form-wrap textarea { width: 100%; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; outline: none; transition: border .2s; font-family: inherit; }
/* 单行控件统一 38px 高、零垂直内边距，由浏览器垂直居中。
   修复前：垂直 padding 9px + 全局 select 固定高 34px（border-box）把内容盒压到 14px，
   小于文字行盒（约 20px），导致下拉框/输入框文字上下被裁切。 */
.form-wrap input, .form-wrap select { height: 38px; padding: 0 12px; line-height: normal; }
.form-wrap select { padding-right: 30px; }
.form-wrap input[type="date"], .form-wrap input[type="time"] { height: 38px; padding: 0 12px; }
.form-wrap textarea { min-height: 100px; resize: vertical; padding: 9px 12px; line-height: 1.6; }
.form-wrap input:focus, .form-wrap select:focus, .form-wrap textarea:focus { border-color: var(--primary); }
.form-row { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
/* 只约束字段标题；控件内部的勾选标签不再被压成固定宽度 */
.form-row > label { width: 112px; flex-shrink: 0; padding-top: 9px; color: var(--sub); font-size: 13px; line-height: 1.5; }
.form-ctrl { flex: 1; min-width: 0; }
/* 勾选框不受表单输入框的整宽/高度规则影响 */
.form-wrap input[type="checkbox"], .form-wrap input[type="radio"] { width: 16px; height: 16px; padding: 0; }
.form-ctrl > label:has(> input[type="checkbox"]),
.form-ctrl > label:has(> input[type="radio"]) { width: auto; padding-top: 0; font-weight: 400; line-height: 1.6; }
/* 字段说明文字：与控件左对齐、自动换行，不再挤在窄列里 */
.form-hint { margin-top: 6px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.form-hint .link { margin-left: 2px; }
@media (max-width: 1100px) {
  .form-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 1320px) {
  .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .row-3 { grid-template-columns: 1fr 1fr; }
  .row-3 > .card:nth-child(3) { grid-column: span 2; }
  .row-2-1 { grid-template-columns: 1fr; }
  .row-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top-search { width: 220px; }
}

/* ================= 首页配置 · 头部大图（Hero） ================= */
.hc-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 2px 10px rgba(23, 35, 59, .045); padding: 20px 24px; margin-bottom: 16px; }
.hc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.hc-title { font-weight: 700; font-size: 15px; color: var(--text); }
.hc-desc { margin-top: 4px; font-size: 12px; color: var(--muted); }
.hc-desc b { color: var(--text); }
.hc-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hc-body { display: flex; gap: 20px; margin-top: 16px; flex-wrap: wrap; align-items: flex-start; }
.hc-preview { width: 300px; flex-shrink: 0; }
.hc-preview-box { position: relative; width: 100%; padding-top: 66.6667%; border-radius: 8px; overflow: hidden; background: #F2F4F7; border: 1px dashed #C8D6E5; }
.hc-preview-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hc-preview-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; font-size: 12px; color: #94A3B8; }
.hc-preview-tip { margin-top: 6px; font-size: 11px; color: var(--muted); }
.hc-main { flex: 1; min-width: 320px; }
.hc-main-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.hc-main-tip { font-size: 13px; color: #41546B; }
.hc-slides { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.hero-slide { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid #E6ECF5; border-radius: 10px; background: #FBFCFE; }
.hero-slide-thumb { width: 112px; height: 75px; flex: 0 0 auto; border-radius: 6px; overflow: hidden; background: #F2F4F7; border: 1px solid #E2E8F0; }
.hero-slide-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-slide-fields { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 6px; }
.hs-input { width: 100%; height: 32px; border: 1px solid #E4EAF3; border-radius: 7px; background: #fff; color: var(--text); font-size: 12px; font-family: inherit; padding: 0 10px; outline: none; transition: border-color .15s; }
.hs-input:focus { border-color: var(--primary); }
.hero-slide-opts { display: flex; gap: 14px; align-items: center; font-size: 12px; color: #64748B; }
.hero-slide-opts label { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.hs-sort { width: 60px; height: 26px; border: 1px solid #E4EAF3; border-radius: 6px; padding: 0 6px; font-size: 12px; font-family: inherit; outline: none; color: var(--text); }
.hs-sort:focus { border-color: var(--primary); }
.hero-slide-btns { display: flex; flex-direction: column; gap: 6px; flex: 0 0 auto; }
.hero-slide-btns .btn { height: 24px; padding: 0 10px; font-size: 12px; border-radius: 6px; }
.hero-slide-btns .hs-del { color: #E5484D; }
.hc-empty { padding: 14px; text-align: center; border: 1px dashed #CBD5E1; border-radius: 8px; color: var(--muted); font-size: 12px; }
.hc-enable { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.hc-enable > label { font-size: 13px; color: var(--sub); flex: 0 0 auto; }
.hc-enable select { width: 220px; max-width: 100%; height: 34px; border: 1px solid #E4EAF3; border-radius: 8px; padding: 0 10px; font-size: 13px; font-family: inherit; color: var(--text); outline: none; background: #fff; }
.hc-enable select:focus { border-color: var(--primary); }

/* ================= 首页配置 · 头图规格说明 ================= */
.spec-card { background: #F7FBFF; border: 1px solid #D6E8FF; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 16px; }
.spec-inner { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.spec-thumb { width: 150px; height: 100px; border-radius: 6px; border: 2px dashed #7FB4F5; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 12px; color: #3D7FD0; font-weight: 600; }
.spec-text { flex: 1; min-width: 260px; font-size: 13px; line-height: 1.9; color: #41546B; }
.spec-text b { color: #1A2B45; }
.spec-title { font-weight: 700; color: #1A2B45; margin-bottom: 2px; }
.spec-note { margin-top: 2px; font-size: 12px; color: var(--muted); }

/* ================= 首页配置 · 广告下方两个大功能卡 ================= */
.sc-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 2px 10px rgba(23, 35, 59, .045); padding: 20px 24px; margin-bottom: 16px; }
.sc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.sc-title { margin: 0; font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: .2px; }
.sc-desc { margin: 6px 0 0; font-size: 12.5px; color: var(--sub); }
.sc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 16px; }
.sc-item { padding: 16px 18px; background: #F8FAFC; border: 1px solid #E5EBF3; border-radius: 12px; display: flex; gap: 18px; align-items: flex-start; }
.sc-fields { flex: 1; min-width: 220px; }
.sc-item-title { font-size: 14px; font-weight: 600; color: var(--text); margin: 0 0 12px; }
.sc-fields .form-row { margin-bottom: 10px; align-items: center; }
.sc-fields .form-row:last-child { margin-bottom: 0; }
.sc-fields .form-row > label { width: 62px; padding-top: 0; font-size: 12px; }
.sc-fields .form-ctrl input, .sc-fields .form-ctrl select { width: 100%; height: 32px; border: 1px solid #E4EAF3; border-radius: 7px; padding: 0 10px; font-size: 12px; font-family: inherit; color: var(--text); outline: none; background: #fff; transition: border-color .15s; }
.sc-fields .form-ctrl input:focus, .sc-fields .form-ctrl select:focus { border-color: var(--primary); }
.sc-img-row { display: flex; align-items: center; gap: 8px; }
.sc-img-row input { flex: 1; min-width: 0; }
.sc-upload-btn { height: 32px; padding: 0 12px; font-size: 12px; border: 1px solid #E4EAF3; background: #fff; border-radius: 7px; color: #5A6678; cursor: pointer; font-family: inherit; white-space: nowrap; flex: 0 0 auto; transition: border-color .15s, color .15s; }
.sc-upload-btn:hover { border-color: #C9DBF5; color: var(--primary); }
.sc-preview { flex: 0 1 260px; min-width: 200px; }
.sc-preview img { width: 100%; aspect-ratio: 2.32; object-fit: cover; border-radius: 10px; display: block; background: #EDF1F7; }

@media (max-width: 1280px) { .sc-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .hc-preview { width: 100%; max-width: 320px; }
  .hc-main { min-width: 0; width: 100%; }
}
@media (max-width: 720px) {
  .sc-item { flex-direction: column; }
  .sc-preview { flex: none; width: 100%; min-width: 0; }
  .hero-slide { flex-wrap: wrap; }
  .hero-slide-btns { flex-direction: row; }
}

/* ================= 8 宫格功能入口 美化卡片 ================= */
.fn-wrap { background: #fff; border-radius: 14px; border: 1px solid #EDF1F7; box-shadow: 0 2px 14px rgba(23, 35, 59, .04); padding: 22px; }
.fn-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.fn-head-title { margin: 0; font-size: 15px; font-weight: 700; color: #17233B; letter-spacing: .2px; }
.fn-head-desc { margin: 6px 0 0; font-size: 12.5px; color: #7B8798; line-height: 1.6; }
.fn-head-right { display: flex; align-items: center; gap: 12px; padding-top: 2px; }
.fn-head-count { font-size: 12px; color: #7B8798; background: #F4F7FC; padding: 6px 12px; border-radius: 16px; }
.fn-head-count b { color: var(--primary); font-weight: 600; margin: 0 2px; }

.fn-pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; background: #F4F7FC; border: 1px solid #E6ECF5; border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }
.fn-pagination .fn-pag-label { font-size: 12.5px; color: #5A677A; font-weight: 600; }
.fn-pagination .fn-pag-radio { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: #475467; cursor: pointer; }
.fn-pagination .fn-pag-radio input { margin: 0; }
.fn-pagination .fn-pag-sep { width: 1px; height: 18px; background: #D6DEE9; }
.fn-pagination .fn-pag-estimate { font-size: 12.5px; color: #7B8798; margin-left: auto; }
.fn-pagination .fn-pag-estimate b { color: var(--primary); font-weight: 700; font-size: 14px; margin: 0 3px; }

.fn-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.fn-card {
  background: #FBFCFE; border: 1px solid #EEF2F8; border-radius: 12px;
  padding: 14px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.fn-card:hover { border-color: #C9DBF5; box-shadow: 0 6px 18px rgba(22, 119, 255, .08); transform: translateY(-1px); }

.fn-card-head { display: flex; align-items: center; gap: 10px; }
.fn-card-num {
  flex: 0 0 28px; width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.fn-card-icon-wrap {
  flex: 0 0 52px; width: 52px; height: 52px; border-radius: 12px;
  background: #EEF2F8; border: 1px dashed #D6DEEA;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.fn-card-icon { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.fn-card-icon-empty { font-size: 10px; color: #A6AFBE; letter-spacing: .6px; }
.fn-card-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.fn-card-name { border: none; background: transparent; font-size: 14px; font-weight: 600; color: #17233B; padding: 0; outline: none; font-family: inherit; }
.fn-card-desc { border: none; background: transparent; font-size: 11.5px; color: #98A2B3; padding: 0; outline: none; font-family: inherit; }

.fn-card-body { display: flex; flex-direction: column; gap: 8px; }
.fn-label { font-size: 11px; color: #98A2B3; letter-spacing: .5px; margin-bottom: 4px; display: flex; align-items: center; gap: 4px; }
.fn-input {
  border: 1px solid #E4EAF3; border-radius: 7px; background: #fff; color: #17233B;
  font-size: 12px; font-family: inherit; height: 32px; padding: 0 9px; outline: none;
  transition: border-color .15s;
}
.fn-input:focus { border-color: var(--primary); }
.fn-input-grow { width: 100%; }
.fn-input-sort { width: 46px; text-align: center; }

.fn-card-imgrow { display: flex; align-items: center; gap: 6px; }
.fn-card-imgrow .fn-input { flex: 1; min-width: 0; }
.fn-card-imgrow .upl-tip { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 90px; }
.fn-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fn-upload-btn { height: 32px; padding: 0 10px; font-size: 12px; border: 1px solid #E4EAF3; background: #fff; border-radius: 7px; color: #5A6678; cursor: pointer; font-family: inherit; white-space: nowrap; flex: 0 0 auto; }
.fn-upload-btn:hover { border-color: #C9DBF5; color: var(--primary); }

.fn-chip-wrap { display: flex; align-items: center; cursor: pointer; user-select: none; }
.fn-chip-check { position: absolute; opacity: 0; pointer-events: none; }
.fn-chip {
  height: 30px; padding: 0 12px; border-radius: 15px;
  background: #F2F5F9; color: #98A2B3; font-size: 12px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.fn-chip::before { content: '✕'; font-size: 10px; opacity: .6; }
.fn-chip-check:checked + .fn-chip {
  background: #E7F8F0; color: #12A96A; border-color: #B7E7CD;
}
.fn-chip-check:checked + .fn-chip::before { content: '✓'; opacity: 1; }

.fn-sort { display: flex; align-items: center; gap: 6px; }
.fn-sort-label { font-size: 11px; color: #98A2B3; }

@media (max-width: 1380px) { .fn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1080px) { .fn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 图片管理（ui-image） ---------- */
.ui-hint{margin:0 0 18px;padding:12px 16px;border-radius:10px;background:#f4f7ff;color:#4a5a7a;font-size:13px;line-height:1.6;border:1px solid #e2eaff}
.ui-group{margin-bottom:28px}
.ui-group-head{display:flex;align-items:center;gap:10px;margin:0 0 14px;padding-bottom:10px;border-bottom:1px solid #eef1f6}
.ui-group-title{font-size:16px;font-weight:700;color:#1f2a44}
.ui-group-count{font-size:12px;color:#8a94a6;background:#f1f4fa;border-radius:20px;padding:2px 10px}
.ui-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:16px}
.ui-card{position:relative;background:#fff;border:1px solid #e8ecf3;border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:10px;transition:.18s}
.ui-card:hover{box-shadow:0 10px 24px rgba(31,42,68,.08);transform:translateY(-2px)}
.ui-card.busy{opacity:.55;pointer-events:none}
.ui-preview{height:104px;border-radius:10px;background:#f7f9fc;border:1px dashed #dfe6f0;display:flex;align-items:center;justify-content:center;overflow:hidden}
.ui-preview img{max-width:100%;max-height:100%;object-fit:contain}
.ui-preview span{font-size:12px;color:#a7b0c0}
.ui-meta{display:flex;flex-direction:column;gap:3px}
.ui-title{font-size:13px;font-weight:600;color:#28324a;line-height:1.4}
.ui-size{font-size:11px;color:#98a2b3}
.ui-key{font-size:11px;color:#b0b8c6;font-family:Consolas,monospace}
.ui-actions{display:flex;gap:8px}
.ui-actions .btn{flex:1;font-size:12px;padding:7px 10px;border-radius:8px}
.ui-actions .btn.danger{color:#d64545;border-color:#f0c8c8}

/* 商家详情 / 佣金配置 */
.stat-row{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:14px}
.stat-card{background:#fff;border:1px solid #eef0f4;border-radius:10px;padding:14px 16px;display:flex;flex-direction:column;gap:6px}
.stat-card span{font-size:12px;color:#8a94a6}
.stat-card b{font-size:20px;color:#1f2d3d}
.kv-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px 18px}
.kv{display:flex;flex-direction:column;gap:4px;padding:8px 0;border-bottom:1px dashed #f0f2f5}
.kv span{font-size:12px}
.kv b{font-size:13px;font-weight:600;color:#2b3a4a;word-break:break-all}
.qual-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px}
.qual-item{position:relative;border:1px solid #eef0f4;border-radius:10px;padding:8px;display:flex;flex-direction:column;gap:6px;align-items:center}
.qual-item img{width:100%;height:96px;object-fit:cover;border-radius:6px;background:#f7f8fa}
.qual-item span{font-size:12px;color:#8a94a6;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qual-item .link{font-size:12px;cursor:pointer}
@media (max-width:1100px){.kv-grid{grid-template-columns:repeat(2,1fr)}.stat-row{grid-template-columns:repeat(2,1fr)}}

/* ===== 全站统一表单选择类组件：下拉框 / 复选框 / 单选框 ===== */
select{
  height:34px;padding:0 30px 0 12px;font-size:13px;line-height:1.5;
  color:var(--text);background:#fff url('data:image/svg+xml;utf8,<svg xmlns=%22http://www.w3.org/2000/svg%22 width=%2210%22 height=%226%22 viewBox=%220 0 10 6%22><path d=%22M1 1l4 4 4-4%22 stroke=%22%2398A2B3%22 stroke-width=%221.5%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/></svg>') no-repeat right 10px center;
  border:1px solid #D9DFE9;border-radius:8px;outline:none;cursor:pointer;
  font-family:inherit;appearance:none;-webkit-appearance:none;
  transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease;
}
select:hover:not(:disabled){border-color:#B4C7E7;background-color:#FBFDFF}
select:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(22,119,255,.12)}
select:disabled{background:#F4F7FC;color:var(--muted);cursor:not-allowed;border-color:var(--border)}
input[type=checkbox],input[type=radio]{
  appearance:none;-webkit-appearance:none;margin:0;cursor:pointer;flex:none;
  width:16px;height:16px;border:1.5px solid #C6CEDB;background:#fff;border-radius:4px;
  display:inline-block;vertical-align:-3px;position:relative;
  transition:border-color .18s ease,background-color .18s ease,box-shadow .18s ease;
}
input[type=radio]{border-radius:50%}
input[type=checkbox]:hover:not(:disabled),input[type=radio]:hover:not(:disabled){border-color:var(--primary-2)}
input[type=checkbox]:focus-visible,input[type=radio]:focus-visible{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px rgba(22,119,255,.14)}
input[type=checkbox]:checked{background:var(--primary);border-color:var(--primary)}
input[type=checkbox]:checked::after{content:'';position:absolute;left:4.5px;top:1.5px;width:4px;height:8px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
input[type=radio]:checked{border-color:var(--primary);border-width:5px;background:#fff}
input[type=checkbox]:disabled,input[type=radio]:disabled{background:#F4F7FC;border-color:var(--border);cursor:not-allowed}
input[type=checkbox]:disabled:checked,input[type=radio]:disabled:checked{background:#D9DFE9;border-color:#D9DFE9}
label:has(> input[type=checkbox]),label:has(> input[type=radio]),label.inline-check{display:inline-flex;align-items:center;gap:6px;cursor:pointer;font-size:13px;color:var(--text)}
label:has(> input:disabled){cursor:not-allowed;color:var(--muted)}
/* 开关切换（沙箱模式等） */
.switch-input{position:relative;display:inline-flex;align-items:center;gap:10px;cursor:pointer;user-select:none;font-size:13px;color:#344054}
.switch-input > input[type=checkbox]{display:none}
.switch-track{width:40px;height:22px;background:#D0D5DD;border-radius:999px;position:relative;transition:background-color .2s ease,box-shadow .2s ease;flex:none}
.switch-track::after{content:'';position:absolute;left:3px;top:3px;width:16px;height:16px;background:#fff;border-radius:50%;box-shadow:0 1px 3px rgba(16,24,40,.2);transition:transform .2s ease}
.switch-input > input:checked + .switch-track{background:#12B76A}
.switch-input > input:checked + .switch-track::after{transform:translateX(18px)}
.switch-input > input:focus-visible + .switch-track{box-shadow:0 0 0 3px rgba(18,183,106,.18)}
.switch-input .switch-label{font-size:13px;color:#344054}
.switch-input .switch-sub{font-size:12px;color:#667085;margin-left:4px}
/* 日期/时间选择控件与下拉框统一高度与边框 */
input[type=date],input[type=time]{height:34px;padding:0 10px;font-size:13px;border:1px solid #D9DFE9;border-radius:8px;color:var(--text);font-family:inherit;outline:none;transition:border-color .18s ease,box-shadow .18s ease;background:#fff}
input[type=date]:hover:not(:disabled),input[type=time]:hover:not(:disabled){border-color:#B4C7E7}
input[type=date]:focus,input[type=time]:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(22,119,255,.12)}
input[type=date]:disabled,input[type=time]:disabled{background:#F4F7FC;color:var(--muted);cursor:not-allowed}

/* ================= 商家评价（管理端只读汇总） ================= */
.rv-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-bottom:12px}
.rv-stat{background:#fff;border:1px solid var(--border);border-radius:12px;padding:14px 18px;box-shadow:0 2px 10px rgba(23,35,59,.04)}
.rv-stat-label{font-size:12px;color:var(--muted)}
.rv-stat-value{margin-top:6px;font-size:24px;font-weight:700;line-height:1.2;color:var(--text)}
.rv-stat-value small{margin-left:4px;font-size:12px;font-weight:500;color:var(--muted)}
.rv-filter{display:flex;gap:10px;flex-wrap:wrap;align-items:center;padding:12px 16px;margin-bottom:12px}
.rv-ctl{height:34px;border:1px solid #D9DFE9;border-radius:8px;padding:0 10px;font-size:13px;font-family:inherit;color:var(--text);background:#fff;outline:none;transition:border-color .18s ease}
.rv-ctl:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(22,119,255,.12)}
input.rv-ctl{min-width:220px}
.rv-score{display:inline-flex;align-items:center;gap:1px;white-space:nowrap}
.rv-score b{margin-left:6px;color:var(--text)}
.rv-star{color:#D7DEE8;font-size:14px;line-height:1}
.rv-star.on{color:#F5A623}
.rv-content{max-width:420px;color:#334155;line-height:1.65;word-break:break-word}
.rv-thumbs{display:flex;gap:4px;align-items:center;flex-wrap:wrap}
.rv-thumbs a{display:block;line-height:0}
.rv-thumbs img{width:36px;height:36px;border-radius:6px;object-fit:cover;border:1px solid #E6ECF5}
.rv-thumbs img:hover{border-color:#B4C7E7}
@media (max-width:1100px){.rv-content{max-width:260px}}
@media (max-width:720px){.rv-filter .rv-ctl{flex:1 1 100%;min-width:0}}
.btn.link{background:none;border:none;color:#1677FF;cursor:pointer;padding:4px 10px;border-radius:6px;font-size:13px}
.btn.link:hover{background:#EAF2FF}
.rv-ops{white-space:nowrap}
.rv-ops .btn.link{padding:2px 8px;font-size:13px}
.rv-ops .btn.link.danger{color:#E5484D}
.rv-modal{position:fixed;inset:0;z-index:900;display:flex;align-items:center;justify-content:center}
.rv-modal-mask{position:absolute;inset:0;background:rgba(15,23,42,.45)}
.rv-modal-panel{position:relative;width:520px;max-width:calc(100vw - 32px);background:#fff;border-radius:12px;box-shadow:0 12px 40px rgba(15,23,42,.2);display:flex;flex-direction:column;max-height:88vh}
.rv-modal-head{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #EEF2F7}
.rv-modal-head h3{margin:0;font-size:16px;color:#1B2A4A}
.rv-modal-body{padding:18px 20px;overflow:auto}
.rv-field{margin-bottom:14px}
.rv-field label{display:block;font-size:13px;color:#475569;margin-bottom:6px;font-weight:500}
.rv-field .rv-ctl{width:100%;box-sizing:border-box;padding:8px 10px;border:1px solid #D8E0EC;border-radius:8px;font-size:14px;resize:vertical}
.rv-field .rv-ctl:focus{border-color:#1677FF;outline:none;box-shadow:0 0 0 3px rgba(22,119,255,.15)}
.rv-modal-foot{display:flex;justify-content:flex-end;gap:10px;padding:14px 20px;border-top:1px solid #EEF2F7}

/* 统一日期选择器（datepicker.js）：显示框 + 中文日历弹层 */
.dp-display{height:34px;padding:0 28px 0 10px;border:1px solid #D9DFE9;border-radius:8px;font-size:13px;font-family:inherit;color:var(--text);outline:none;cursor:pointer;background:#fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a94a6' stroke-width='2'><rect x='3' y='4' width='18' height='18' rx='2'/><path d='M16 2v4M8 2v4M3 10h18'/></svg>") no-repeat right 8px center/14px;transition:border-color .18s ease,box-shadow .18s ease}
.dp-display:hover{border-color:#B4C7E7}
.dp-display:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(22,119,255,.12)}
.dp-panel{display:none;position:fixed;z-index:1200;width:256px;background:#fff;border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 30px rgba(15,35,75,.14);padding:10px;user-select:none}
.dp-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.dp-title{font-size:14px;font-weight:600;color:var(--text)}
.dp-nav{width:28px;height:28px;border:none;background:transparent;border-radius:6px;font-size:16px;line-height:1;color:var(--sub);cursor:pointer}
.dp-nav:hover{background:#f0f4fa;color:var(--primary)}
.dp-week{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;font-size:12px;color:var(--muted);margin-bottom:4px}
.dp-week span{line-height:24px}
.dp-cal{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}
.dp-day{height:30px;border:none;background:transparent;border-radius:6px;font-size:13px;color:var(--text);cursor:pointer;padding:0}
.dp-day:hover:not([disabled]){background:#f0f4fa}
.dp-day:focus-visible{outline:2px solid var(--primary);outline-offset:-2px}
.dp-out{color:#b8c0cf}
.dp-today-cell{border:1px solid var(--primary)}
.dp-sel,.dp-sel:hover:not([disabled]){background:var(--primary);color:#fff}
.dp-day:disabled{color:#d5dae4;cursor:not-allowed;background:transparent}
.dp-foot{display:flex;justify-content:space-between;margin-top:8px;padding-top:8px;border-top:1px solid var(--border)}
.dp-act{border:none;background:transparent;color:var(--primary);font-size:13px;padding:4px 10px;border-radius:6px;cursor:pointer}
.dp-act:hover{background:#f0f4fa}

/* 团购商家管理 */
.gmd { display:flex; min-height:calc(100vh - 90px); gap:18px; color:#101c36; }
.gmd-main { display:flex; flex-direction:column; flex:1; min-width:0; padding:16px 0 0; }
.gmd h1 { margin:0 0 22px; font-size:28px; }
.gmd h2 { margin:0; font-size:19px; }
.gmd-filter { display:flex; align-items:end; flex-wrap:wrap; gap:16px; padding:18px 15px; margin-bottom:24px; border-radius:8px; background:#f0f5fc; }
.gmd-filter label { display:flex; align-items:center; gap:8px; font-weight:600; }
.gmd input,.gmd select { min-width:0; padding:8px 10px; border:1px solid #d4ddea; border-radius:7px; background:#fff; color:inherit; font:inherit; }
.gmd-filter input,.gmd-filter select { width:clamp(106px,9vw,168px); font-weight:400; }
.gmd-list { border:1px solid #e2e9f4; border-radius:9px; background:white; overflow:hidden; }
.gmd-list header,.gmd-detail header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px; }
.gmd-list h2 small { font-size:14px; font-weight:400; color:#516077; }
.gmd-scroll { overflow:auto; }
.gmd-list .tbl { width:100%; min-width:615px; white-space:nowrap; }
.gmd-list .tbl :is(th,td) { padding:12px 9px; text-align:center; }
.gmd-list .tbl :is(th,td):first-child { padding-left:16px; text-align:left; }
.gmd-list .tbl th { background:#eaf1fb; color:#101c36; }
.gmd-list .gmd-current td { background:#e5efff; }
.gmd-shop { display:flex; align-items:center; gap:12px; }
.gmd-avatar { display:grid; place-items:center; width:52px; height:52px; flex:none; border-radius:8px; object-fit:cover; color:#1465ed; background:#e8f1ff; }
.gmd-avatar .ic { width:25px; height:25px; }
.gmd-place { display:flex; align-items:center; gap:4px; margin-top:5px; color:#536178; }
.gmd-place .ic { width:14px; height:14px; }
.gmd-actions button { padding:0 5px; color:#1465ed; border:0; background:none; cursor:pointer; }
.gmd-actions button+button { border-left:1px solid #d8e2f0; }
.gmd-actions button:disabled { color:#7b879a; cursor:default; }
.gmd-actions button.gmd-danger { color:#d92d20; }
.gmd-pagination { display:flex; justify-content:flex-end; align-items:center; gap:10px; margin-top:auto; padding:20px 0 0; }
.gmd-page { padding:8px 12px; border-radius:6px; background:#1465ed; color:#fff; }
.gmd-detail { width:clamp(360px,29vw,500px); flex:none; align-self:start; min-height:calc(100vh - 90px); background:white; border:1px solid #e5ebf4; border-radius:9px; box-shadow:-4px 0 16px #162b5510; }
.gmd-detail[hidden] { display:none; }
.gmd-detail header { padding:14px 20px; border-bottom:1px solid #e6ecf4; }
.gmd-detail header .icon-btn { font-size:24px; }
.gmd-detail-body { padding:18px 20px; }
.gmd-profile { padding-bottom:20px; margin-bottom:20px; border-bottom:1px solid #e5ebf4; }
.gmd-profile .gmd-avatar { width:78px; height:78px; }
.gmd-profile strong { font-size:22px; }
.gmd-tools { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:16px; }
.gmd-tools button { display:flex; align-items:center; gap:10px; min-height:76px; text-align:left; color:inherit; background:#fff; border:1px solid #dfe8f4; border-radius:8px; padding:10px; cursor:pointer; }
.gmd-tools button:hover { background:#f2f7ff; border-color:#a7c8ff; }
.gmd-tools button>.ic { color:#1465ed; width:27px; height:27px; flex:none; }
.gmd-tools button span:first-of-type { flex:1; }
.gmd-tools small { display:block; margin-top:4px; color:#56657a; }
.gmd-edit,.gmd-edit label { display:grid; gap:9px; }
.gmd-edit { gap:18px; }
.gmd-detail [data-records] { margin-top:16px; }
/* 团购商家编辑抽屉：分区表单、图片排序、差异与变更记录 */
.gmd-detail { width:clamp(420px,36vw,680px); }
.gmd-edit-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding-bottom:12px; border-bottom:1px solid #e6ecf4; }
.gmd-edit-head b { font-size:18px; }
.gmd-edit-tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.gmd-place { display:block; margin-top:6px; color:#c2410c; }
.gmd-tabs { display:flex; flex-wrap:wrap; gap:6px; padding:12px 0; border-bottom:1px solid #e6ecf4; }
.gmd-tabs button { border:1px solid #dfe8f4; background:#fff; border-radius:999px; padding:6px 12px; cursor:pointer; color:#3c4a5e; }
.gmd-tabs button.on { background:#1465ed; border-color:#1465ed; color:#fff; }
.gmd-edit-foot { position:sticky; bottom:0; display:flex; align-items:center; gap:8px; padding-top:12px; margin-top:12px; background:#fff; border-top:1px solid #e6ecf4; }
.gmd-edit-foot .gmd-dirty { flex:1; color:#c2410c; font-size:12px; }
.gmd-form { display:grid; gap:14px; padding-top:4px; }
.gmd-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 12px; }
.gmd-form-grid label { display:grid; gap:5px; font-size:13px; color:#56657a; }
.gmd-form-grid input:not([type=checkbox]):not([type=radio]),.gmd-form-grid select,.gmd-form-grid textarea { width:100%; box-sizing:border-box; }
.gmd-form-grid label { min-width:0; }
.gmd-span2 { grid-column:1/-1; }
.gmd-inline { display:flex!important; align-items:center; gap:6px; }
.gmd-sub { border-top:1px dashed #e2e9f3; padding-top:12px; }
.gmd-sub h3 { margin:0 0 8px; font-size:14px; }
.gmd-sub h3 small { color:#7a889c; font-weight:400; }
.gmd-readonly { background:#f6f9fe; border:1px solid #e4ecf7; border-radius:7px; padding:8px 10px; margin-bottom:8px; }
.gmd-img-field { display:grid; gap:5px; font-size:13px; color:#56657a; }
.gmd-img-line { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.gmd-img-line input { flex:1; min-width:160px; }
.gmd-img-thumb img { display:block; }
.gmd-photo,.gmd-license { display:flex; align-items:center; gap:6px; flex-wrap:wrap; padding:6px 0; border-bottom:1px dashed #edf1f7; }
.gmd-photo input:not([type=checkbox]):not([type=file]),.gmd-license input:not([type=checkbox]):not([type=file]) { flex:1; min-width:110px; }
.gmd-photo-no { width:20px; text-align:center; color:#7a889c; }
.gmd-mini { border:1px solid #dfe8f4; background:#fff; border-radius:6px; padding:4px 8px; cursor:pointer; color:#3c4a5e; }
.gmd-hours input[type=time] { width:110px; }
.gmd-staff { display:flex; align-items:center; gap:8px; padding:4px 0; }
.gmd-staff input:not([type=checkbox]) { flex:1; }
.gmd-links { display:flex; flex-wrap:wrap; gap:6px; }
.gmd-links button { border:1px solid #dfe8f4; background:#fff; border-radius:6px; padding:6px 10px; cursor:pointer; color:#1465ed; }
.gmd-dl { display:grid; grid-template-columns:120px 1fr; gap:6px 10px; margin:0; font-size:13px; }
.gmd-dl dt { color:#7a889c; }
.gmd-dl dd { margin:0; }
.gmd-actions { display:flex; gap:8px; margin:8px 0; }
.gmd-actions button { border:1px solid #dfe8f4; background:#fff; border-radius:6px; padding:5px 12px; cursor:pointer; }
.gmd-qual-status { display:flex; align-items:center; gap:10px; }
.gmd-reject-reason { color:#c2410c; font-size:12px; }
.gmd-dialog-error { color:#c2410c; font-size:12px; margin:6px 0; }
.gmd-history-foot { display:flex; align-items:center; gap:8px; justify-content:flex-end; margin-top:10px; }
.gmd-scroll { max-height:52vh; overflow:auto; }
.gmd-diff td { font-size:12px; word-break:break-all; }
@media(max-width:760px){ .gmd-form-grid{grid-template-columns:1fr} .gmd-span2{grid-column:auto} }
@media(max-width:1150px) {
  .gmd-detail { position:fixed; inset:66px 0 0 auto; z-index:29; width:min(680px,100vw); min-height:0; overflow:auto; }
}
/* 社群管理：与操作样式图一致的橙色群列表和消息管理工作台。 */
.cg-layout{display:grid;grid-template-columns:minmax(230px,30%) minmax(0,1fr);gap:16px;align-items:start}.cg-list,.cg-detail{min-height:520px}.cg-list{padding:12px}.cg-list-head{padding:10px 12px 14px;border-bottom:1px solid #f1ebe5}.cg-group{width:100%;display:block;text-align:left;padding:14px;margin:8px 0;border:1px solid #f1ece8;border-radius:10px;background:#fff;cursor:pointer;color:#3c3028}.cg-group.selected{background:#fff1e5;border-color:#ffca9c}.cg-group b,.cg-group small{display:block}.cg-group small{margin-top:6px;color:#9b8c80}.cg-detail{padding:20px}.cg-detail-head h2{margin:0 0 6px}.cg-detail-head p{margin:0;color:#968a80;font-size:13px}.cg-tabs{display:flex;gap:8px;margin:22px 0 10px;border-bottom:1px solid #eee7e1}.cg-tabs button{border:0;background:none;padding:10px 14px;color:#847c75;cursor:pointer}.cg-tabs button.on{color:#ed7617;border-bottom:2px solid #ed7617;font-weight:700}.cg-rows{max-height:510px;overflow:auto}.cg-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 5px;border-bottom:1px solid #f1ece8}.cg-row>div:first-child{min-width:0;flex:1}.cg-row b,.cg-row small{display:block}.cg-row small{color:#a09388;font-size:12px;margin-top:4px}.cg-row p{margin:8px 0 0;white-space:pre-wrap;word-break:break-word;color:#51463e}.cg-row button,.cg-staff button{border:1px solid #e6dcd2;border-radius:6px;background:#fff;padding:7px 10px;cursor:pointer;color:#b75d15;margin-left:6px;white-space:nowrap}.cg-announcement label{display:block;font-weight:700;margin:15px 0 8px}.cg-announcement textarea{display:block;width:100%;min-height:160px;box-sizing:border-box;border:1px solid #e7ded7;border-radius:8px;padding:12px;font:inherit;margin-bottom:12px}.cg-cap{display:flex;align-items:center;gap:6px;font-size:13px}.cg-cap input{width:65px;padding:7px;border:1px solid #e4d8cc;border-radius:6px}.cg-select{padding:8px;border:1px solid #e4d8cc;border-radius:6px;background:#fff;min-width:130px}.cg-scope{font-size:13px;color:#aa6c35}.cg-staff{margin-top:16px}@media(max-width:900px){.cg-layout{grid-template-columns:1fr}.cg-list,.cg-detail{min-height:0}.cg-list{max-height:300px;overflow:auto}}
.cg-photo{display:block;max-width:180px;max-height:180px;margin-top:8px;border-radius:8px;object-fit:cover}
.cg-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}.cg-actions button{margin-left:0}.cg-detail>.cg-section:first-child{margin-top:0}@media(max-width:640px){.cg-row{align-items:flex-start;flex-direction:column}.cg-actions{justify-content:flex-start}.cg-tabs{overflow-x:auto}.cg-tabs button{white-space:nowrap}}
/* 诺达美居式群管理对话框：左侧聊天记录，右侧群资料与管理。 */
.group-manager-mask{padding:28px;background:rgba(31,41,55,.42);backdrop-filter:blur(3px);z-index:80}.group-manager-modal{width:min(960px,calc(100vw - 56px));height:min(680px,calc(100vh - 56px));display:flex;flex-direction:column;overflow:hidden;border-radius:12px;background:#fff;box-shadow:0 24px 80px rgba(15,23,42,.25)}.gm-head{height:68px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 22px;border-bottom:1px solid #edf0f4}.gm-head>div{min-width:0;display:flex;flex-direction:column;gap:5px}.gm-head b{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gm-head span{font-size:11px;color:#9aa3af}.gm-head button{width:32px;height:32px;border:0;background:transparent;color:#6b7280;font-size:25px;cursor:pointer}.gm-body{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 340px}.gm-chat-pane{min-width:0;min-height:0;display:flex;flex-direction:column;background:#f5f7fa;border-right:1px solid #edf0f4}.gm-messages{flex:1;min-height:0;overflow:auto;padding:22px}.gm-message{display:flex;align-items:flex-start;gap:10px;margin-bottom:22px}.gm-message-avatar{width:36px;height:36px;flex:none;display:grid;place-items:center;border-radius:5px;background:#e5e9ef;color:#64748b;font-size:14px;overflow:hidden}.gm-message-avatar .user-avatar{width:36px;height:36px;border-radius:5px;font-size:14px}.gm-message>div{min-width:0}.gm-message-meta{display:flex;align-items:center;gap:12px;margin:0 0 6px;color:#9aa3af;font-size:11px}.gm-message-meta b{color:#6b7280;font-weight:500}.gm-message-meta time{white-space:nowrap}.gm-message p{width:fit-content;max-width:100%;margin:0;padding:9px 12px;border-radius:4px;background:#fff;color:#374151;font-size:13px;line-height:1.55;white-space:pre-wrap;word-break:break-word;box-shadow:0 1px 2px rgba(15,23,42,.03)}.gm-chat-pane footer{flex:none;padding:12px;text-align:center;color:#a0a8b3;font-size:11px;background:#fff}.gm-empty-chat{padding:80px 0;text-align:center;color:#a0a8b3;font-size:13px}.gm-side-pane{min-height:0;overflow:auto;padding:18px 20px;background:#fff}.gm-member-strip{padding:2px 0 18px;border-bottom:1px solid #f0f2f5}.gm-member-avatars{display:flex;flex-wrap:wrap;gap:12px}.gm-member-avatars>span,.gm-member-action{width:46px;min-width:0;text-align:center}.gm-member-avatars .user-avatar{width:38px;height:38px;margin:auto}.gm-member-avatars small{display:block;margin-top:6px;color:#6b7280;font-size:10px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gm-member-action{display:flex;flex-direction:column;align-items:center;gap:6px;padding:0;border:0;background:none;cursor:pointer}.gm-member-action i{width:38px;height:38px;display:grid;place-items:center;border:1px dashed #d9dee6;border-radius:6px;background:#fafbfc;color:#9aa3af;font-size:19px;font-style:normal;line-height:1}.gm-member-action small{color:#9aa3af;font-size:10px;line-height:1.4}.gm-menu{margin-top:6px}.gm-menu>button{width:100%;min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0;border:0;border-bottom:1px solid #f3f4f6;background:#fff;color:#4b5563;font-size:12px;text-align:left;cursor:pointer}.gm-menu>button>span:last-child{max-width:68%;color:#9ca3af;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gm-menu i{margin-left:12px;color:#c3c9d1;font-size:18px;font-style:normal}.gm-switch-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0;border-bottom:1px solid #f3f4f6;color:#4b5563;font-size:12px}.gm-switch-row>span{display:flex;flex-direction:column;gap:5px}.gm-switch-row small{color:#a0a8b3;font-size:10px}.gm-switch-row input{width:34px;height:18px;accent-color:#22b8a7;cursor:pointer}.gm-side-note{margin:18px 0 0;color:#a0a8b3;font-size:10px;line-height:1.7}.gm-panel-nav{display:flex;align-items:center;gap:10px;margin:-4px 0 14px;padding-bottom:12px;border-bottom:1px solid #f0f2f5}.gm-panel-nav button{width:28px;height:28px;padding:0;border:0;background:#f5f7fa;border-radius:5px;color:#6b7280;font-size:22px;cursor:pointer}.gm-panel-nav b{font-size:14px}.gm-side-pane .cg-filterbar{margin:0 0 14px}.gm-side-pane .cg-filterbar input{min-width:0;width:100%;flex:1}.gm-side-pane .cg-section{margin-top:16px}.gm-side-pane .cg-section>h3{font-size:13px}.gm-side-pane .cg-rows{max-height:none;overflow:visible}.gm-side-pane .cg-row{flex-direction:column;align-items:stretch;gap:10px;padding:12px 0}.gm-side-pane .cg-actions{justify-content:flex-start}.gm-side-pane .cg-actions .btn{padding:6px 8px;font-size:11px}.gm-side-pane .cg-form{grid-template-columns:1fr}.gm-side-pane .cg-form .full{grid-column:auto}.gm-side-pane .cg-form textarea{min-height:150px}.gm-side-pane .empty{padding:24px 0;font-size:12px}
.group-avatar{width:36px;height:36px;flex:none;position:relative;display:inline-grid;place-items:center;overflow:hidden;border-radius:8px;background:#e5e9ef;color:#64748b;font-size:14px}.group-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.group-avatar i{font-style:normal}
.gm-head>.gm-head-main{flex-direction:row;align-items:center;gap:12px}.gm-head-main>div{min-width:0;display:flex;flex-direction:column;gap:5px}.gm-group-avatar{position:relative;width:38px;height:38px;flex:none;display:grid;place-items:center;overflow:hidden;border-radius:8px;background:#e5e9ef;color:#64748b;font-size:15px;cursor:pointer}.gm-group-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.gm-group-avatar i{font-style:normal}@media(max-width:720px){.group-manager-mask{padding:0}.group-manager-modal{width:100vw;height:100vh;border-radius:0}.gm-body{grid-template-columns:1fr;grid-template-rows:minmax(180px,38%) minmax(0,1fr)}.gm-chat-pane{border-right:0;border-bottom:1px solid #edf0f4}.gm-side-pane{padding:16px 20px}.gm-head{height:60px;padding:0 16px}.gm-messages{padding:16px}}
/* 社群扩展：概览统计、群设置表单、开关、邀请二维码、举报与申请徽标 */
.cg-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0}
.cg-stat{border:1px solid #f1ece8;border-radius:10px;padding:14px;cursor:pointer;background:#fffdfb}
.cg-stat b{font-size:22px;display:block;color:#ed7617}
.cg-stat span{font-size:12px;color:#9b8c80}
.cg-info{display:flex;gap:14px;align-items:flex-start;border:1px solid #f1ece8;border-radius:10px;padding:14px;background:#fffdfb;margin:14px 0}
.cg-avatar{width:52px;height:52px;border-radius:10px;object-fit:cover;background:#f4ece4;flex:0 0 auto}
.cg-role{display:inline-block;padding:1px 8px;border-radius:20px;font-size:12px;margin-left:8px;vertical-align:1px}
.cg-role.owner{background:#fff1e5;color:#d15c00}
.cg-role.admin{background:#eef6ff;color:#2277cc}
.cg-role.member{background:#f2f0ee;color:#8b8580}
.cg-badge{display:inline-block;padding:1px 8px;border-radius:20px;font-size:12px;margin-left:6px}
.cg-badge.ok{background:#e9f7ef;color:#188a4c}
.cg-badge.warn{background:#fff1e5;color:#d15c00}
.cg-badge.gray{background:#f2f0ee;color:#8b8580}
.cg-badge.danger{background:#fdeaea;color:#c0392b}
.cg-filterbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:12px 0}
.cg-filterbar input{height:34px;border:1px solid #e4d8cc;border-radius:6px;padding:0 10px;min-width:180px}
.cg-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}
.cg-form label{font-size:13px;color:#6f655d;display:block}
.cg-form input[type=text],.cg-form input[type=number],.cg-form textarea{width:100%;box-sizing:border-box;border:1px solid #e4d8cc;border-radius:6px;padding:9px;margin-top:6px;font:inherit}
.cg-form textarea{min-height:70px;resize:vertical}
.cg-form .full{grid-column:1/-1}
.cg-form small{display:block;margin-top:4px;color:#a09388;font-weight:400}
.cg-switches{display:flex;flex-direction:column;gap:10px;border:1px solid #f1ece8;border-radius:10px;padding:14px;background:#fffdfb}
.cg-switches label{display:flex;align-items:baseline;gap:8px;font-size:13px;color:#51463e}
.cg-switches small{color:#a09388}
.cg-invite{border:1px dashed #e8b37c;border-radius:10px;padding:14px;margin-top:14px;background:#fffaf4}
.cg-qr{background:#fff;padding:10px;border:1px solid #f1ece8;border-radius:10px;display:inline-block}
.cg-code{font-family:Consolas,monospace;background:#fff;border:1px solid #e4d8cc;border-radius:6px;padding:6px 10px;display:inline-block;font-size:12px}
.cg-batchbar{display:flex;gap:8px;align-items:center;padding:10px;border:1px solid #f1ece8;border-radius:8px;background:#fffdfb;margin-bottom:10px;flex-wrap:wrap}
.cg-batchbar button{border:1px solid #e6dcd2;border-radius:6px;background:#fff;padding:7px 10px;cursor:pointer;color:#b75d15}
.cg-section{margin-top:20px}
.cg-section>h3{margin:0 0 10px;font-size:15px}
.btn.danger{background:#fdeaea;color:#c0392b;border:1px solid #f3c1c1}
@media(max-width:900px){.cg-stats{grid-template-columns:repeat(2,1fr)}.cg-form{grid-template-columns:1fr}}

/* 图标管理 */
.icon-group{margin-top:20px}.icon-group-head{display:flex;align-items:center;gap:10px;padding:0 2px 9px;border-bottom:1px solid #eef2f7}.icon-group-head h3{margin:0;font-size:14px;color:#1f2d3d}.icon-group .icon-grid{margin-top:12px}
.icon-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:14px;margin-top:14px}
.icon-card{border:1px solid #e8eef7;border-radius:12px;background:#fff;padding:12px;display:flex;flex-direction:column;gap:10px;transition:.18s}
.icon-card:hover{box-shadow:0 6px 18px rgba(22,119,255,.08);border-color:#cfe0fb}
.icon-card.is-off{opacity:.62;background:#fafbfd}
.icon-preview{height:72px;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#f7faff,#eef5ff);border-radius:10px}
.icon-preview img{max-width:44px;max-height:44px;object-fit:contain}
.icon-meta{display:flex;flex-direction:column;gap:3px;min-width:0}
.icon-meta b{font-size:13px;color:#1f2d3d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.icon-key{font-size:11px;color:#8a94a6;font-family:ui-monospace,Consolas,monospace;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.icon-foot{display:flex;align-items:center;gap:2px;flex-wrap:wrap;border-top:1px dashed #edf1f7;padding-top:8px}
.icon-foot .pill{margin-right:auto}
.icon-foot .btn.link{padding:2px 6px;font-size:12px}
.icon-card.is-photo .icon-preview{height:112px;background:linear-gradient(180deg,#f5f8fd,#eef3fa)}
.icon-card.is-photo .icon-preview img{max-width:none;max-height:none;width:100%;height:100%;object-fit:cover;border-radius:8px}
.image-preview-mask{position:fixed;inset:0;background:rgba(15,23,42,.55);display:flex;align-items:center;justify-content:center;z-index:2000;padding:24px}
.image-preview-card{background:#fff;border-radius:14px;max-width:min(720px,92vw);max-height:88vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 24px 60px rgba(15,23,42,.28)}
.image-preview-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:14px 16px;border-bottom:1px solid #eef2f7}
.image-preview-card header div{display:flex;flex-direction:column;gap:3px;min-width:0}
.image-preview-card header b{font-size:14px;color:#1f2d3d}
.image-preview-card header span{font-size:12px;color:#8a94a6;font-family:ui-monospace,Consolas,monospace}
.image-preview-card header button{border:0;background:#f2f5fa;width:30px;height:30px;border-radius:8px;font-size:18px;line-height:1;cursor:pointer;color:#5b6678}
.image-preview-card>img{display:block;width:100%;max-height:74vh;object-fit:contain;background:#f7f9fc}
.image-preview-icon{padding:36px;display:flex;align-items:center;justify-content:center;background:#f7f9fc}
.image-preview-icon img{width:160px;height:160px;object-fit:contain}
.image-pick{margin:0 0 6px}
.image-pick-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:2px 0 8px}
.image-pick-head>span:first-child{font-size:13px;font-weight:600;color:#1f2d3d}
.image-pick-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:10px}
.image-pick-card{display:flex;flex-direction:column;gap:6px;padding:6px;border:1px solid #e6ecf5;border-radius:10px;background:#fff;cursor:pointer;text-align:left}
.image-pick-card:hover{border-color:#c9d8ee}
.image-pick-card.on{border-color:#1f6feb;box-shadow:0 0 0 2px rgba(31,111,235,.16)}
.image-pick-card img{display:block;width:100%;height:70px;object-fit:cover;border-radius:7px;background:#f2f5fa}
.image-pick-card small{font-size:12px;color:#5b6678}
