/* ed-ui.css — round7 视觉层（不碰受保护 chunk，只做展示层覆盖） */
:root {
  --primary: #2f66b3;
  --primary-light: #eaf2fd;
  --primary-dark: #1f4d8f;
  --bg: #f4f6fa;
  --text-main: #141a24;
  --text-sub: #5b6b82;
  --border: #e4e9f2;
  --radius-card: 14px;
  --shadow-1: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px -16px rgba(16, 24, 40, .22);
}

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  font-size: 13.5px;
  letter-spacing: .1px;
  color: var(--text-main);
  background:
    radial-gradient(1200px 520px at 100% -8%, #e9f1fd 0%, rgba(233, 241, 253, 0) 62%),
    radial-gradient(900px 420px at -10% 0%, #eef4ff 0%, rgba(238, 244, 255, 0) 55%),
    var(--bg);
}

/* 顶栏：半透明玻璃 + 细描边 */
.app-topbar {
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .05);
}
.app-topbar .datetime,
.app-topbar .weather { color: var(--text-sub); font-size: 12.5px; }
.app-topbar .ext-links a { color: var(--text-sub); }
.app-topbar .ext-links a:hover { color: var(--primary); }

/* 侧栏：深色玻璃 + 圆角态 */
.app-sidebar {
  background: linear-gradient(180deg, #1b2536 0%, #141d2b 100%);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .05);
}
.app-sidebar .ant-menu { font-size: 13.5px; background: transparent; }
.app-sidebar .ant-menu-item {
  border-radius: 10px;
  margin: 2px 8px;
  height: 38px;
  line-height: 38px;
  transition: background .18s ease, color .18s ease;
}
.app-sidebar .ant-menu-item-selected {
  background: linear-gradient(90deg, rgba(74, 138, 240, .32), rgba(74, 138, 240, .10)) !important;
  color: #fff !important;
}
.app-sidebar .ant-menu-item-selected::after { display: none; }

/* 主区与页头 */
.app-main { background: transparent; }
.app-main .page-header { padding: 16px 22px 4px; }
.app-main .page-header h1,
.app-main .page-header h2 { font-weight: 650; letter-spacing: .2px; }

/* 卡片 / 面板 */
.ant-card,
.page-card {
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
}
.ant-card-head { border-bottom: 1px solid var(--border); font-weight: 600; }

/* 表格：更柔的斑马纹 + 悬停高亮 */
.ant-table { font-size: 13px; }
.ant-table-thead > tr > th {
  background: #f6f8fc !important;
  color: var(--text-sub) !important;
  font-weight: 600;
  border-bottom: 1px solid var(--border) !important;
}
.ant-table-tbody > tr > td { border-bottom: 1px solid #eef2f8 !important; }
.ant-table-tbody > tr:hover > td { background: #f3f8ff !important; }

/* 控件 */
.ant-btn { border-radius: 8px; transition: transform .12s ease, box-shadow .12s ease; }
.ant-btn:not(:disabled):active { transform: translateY(1px); }
.ant-btn-primary { box-shadow: 0 6px 16px -10px rgba(47, 102, 179, .9); }
.ant-input, .ant-select-selector, .ant-picker { border-radius: 8px !important; }
.ant-modal-content { border-radius: 16px; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #cbd5e3; border: 3px solid transparent; background-clip: padding-box; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #a9b7cc; background-clip: padding-box; }

/* 百万公里页：卡片与 KPI 更清爽 */
.mk-wrap { background: transparent !important; padding: 18px 22px 56px !important; }
.mk-card {
  border-radius: var(--radius-card) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-1) !important;
  padding: 18px 20px !important;
  transition: box-shadow .2s ease, transform .2s ease;
}
.mk-card:hover { box-shadow: 0 2px 4px rgba(16, 24, 40, .05), 0 18px 40px -26px rgba(16, 24, 40, .35); }
.mk-card h3 { font-size: 15.5px !important; letter-spacing: .2px; }
.mk-kpi > div {
  background: linear-gradient(180deg, #fbfdff, #f5f8fd) !important;
  border: 1px solid #e8eef8 !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
}
.mk-kpi b { font-size: 22px !important; letter-spacing: -.2px; color: #12314f; }
.mk-t th { background: #f6f8fc !important; color: var(--text-sub); }
.mk-btn { border-radius: 8px !important; transition: all .16s ease; }
.mk-btn:hover { box-shadow: 0 6px 16px -12px rgba(47, 102, 179, .8); }
.mk-tag { font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
