@charset "utf-8";
/* ==========================================================================
   科仟达陪玩系统 · 后台设计系统
   深色侧边栏 + 浅色内容区，卡片化布局，蓝色主色调
   ========================================================================== */

:root {
  --kq-navy-900: #16203a;
  --kq-navy-800: #1b2742;
  --kq-navy-700: #212f4f;
  --kq-navy-600: #2a3a5f;
  --kq-primary: #3b6ef6;
  --kq-primary-600: #2f5bea;
  --kq-primary-50: #eef3ff;
  --kq-purple: #7c5cff;
  --kq-green: #18a058;
  --kq-green-bg: #e9f8ef;
  --kq-orange: #f59e0b;
  --kq-orange-bg: #fff5e5;
  --kq-red: #ef4444;
  --kq-red-bg: #fdeeee;
  --kq-cyan: #0ea5c6;
  --kq-bg: #f4f6fb;
  --kq-card: #ffffff;
  --kq-border: #eef1f7;
  --kq-border-2: #e4e9f2;
  --kq-text: #1f2a44;
  --kq-text-2: #5a6480;
  --kq-muted: #8b94a8;
  --kq-radius: 14px;
  --kq-radius-sm: 10px;
  --kq-shadow: 0 2px 10px rgba(30, 45, 90, .04);
  --kq-shadow-lg: 0 18px 48px rgba(30, 45, 90, .12);
  --kq-sidebar-w: 224px;
  --kq-topbar-h: 64px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--kq-bg);
  color: var(--kq-text);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--kq-primary); text-decoration: none; }
a:hover { color: var(--kq-primary-600); }
h1, h2, h3, h4, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }
svg { display: block; }
.kq-hidden { display: none !important; }
.kq-text-muted { color: var(--kq-muted); }
.kq-text-sm { font-size: 12px; }
.kq-text-danger { color: var(--kq-red); }
.kq-text-success { color: var(--kq-green); }
.kq-nowrap { white-space: nowrap; }
.kq-mt8 { margin-top: 8px; }
.kq-mt16 { margin-top: 16px; }
.kq-mb16 { margin-bottom: 16px; }
.kq-flex { display: flex; align-items: center; }
.kq-flex-between { display: flex; align-items: center; justify-content: space-between; }
.kq-gap8 { gap: 8px; }
.kq-gap12 { gap: 12px; }

/* ---------------- 布局骨架 ---------------- */
.kq-layout { min-height: 100vh; }

.kq-sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--kq-sidebar-w);
  background: linear-gradient(180deg, #1d2944 0%, #182338 100%);
  display: flex;
  flex-direction: column;
  z-index: 60;
  transition: width .22s ease;
  overflow: hidden;
}

.kq-logo {
  height: var(--kq-topbar-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  color: #fff;
  flex-shrink: 0;
  position: relative;
}
.kq-logo-mark {
  width: 34px; height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, #7c5cff, #3b6ef6);
  display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(88, 106, 255, .45);
  color: #fff;
}
.kq-logo-text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kq-logo-text small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: rgba(255, 255, 255, .45);
  letter-spacing: 1.6px;
  margin-top: -2px;
}

.kq-menu {
  flex: 1;
  overflow-y: auto;
  padding: 6px 10px 20px;
  scrollbar-width: thin;
}
.kq-menu::-webkit-scrollbar { width: 4px; }
.kq-menu::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 4px; }

.kq-menu-item { position: relative; }

.kq-menu-link {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 44px;
  padding: 0 13px;
  margin: 3px 0;
  border-radius: 11px;
  color: rgba(255, 255, 255, .74);
  font-size: 14px;
  cursor: pointer;
  transition: background .18s, color .18s;
  white-space: nowrap;
  user-select: none;
}
.kq-menu-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.kq-menu-link .kq-menu-icon { flex-shrink: 0; color: rgba(255,255,255,.62); }
.kq-menu-link .kq-menu-label { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.kq-menu-link .kq-menu-arrow {
  transition: transform .2s;
  color: rgba(255,255,255,.4);
  flex-shrink: 0;
}
.kq-menu-item.open > .kq-menu-link .kq-menu-arrow { transform: rotate(90deg); }

.kq-menu-link.active {
  background: linear-gradient(94deg, #3f74f8 0%, #3b63ee 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(43, 92, 235, .34);
}
.kq-menu-link.active .kq-menu-icon,
.kq-menu-link.active .kq-menu-arrow { color: #fff; }

.kq-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .24s ease;
}
.kq-menu-item.open > .kq-submenu { max-height: 520px; }
.kq-submenu .kq-menu-link {
  position: relative;
  height: 38px;
  font-size: 13px;
  padding-left: 46px;
  color: rgba(255,255,255,.62);
  border-radius: 9px;
}
.kq-submenu .kq-menu-link::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,.32);
}
/* 折叠状态下不渲染小圆点：避免绝对定位伪元素逃出 overflow 裁切，形成一列残点 */
.kq-menu-item:not(.open) > .kq-submenu .kq-menu-link::before { content: none; }
.kq-submenu .kq-menu-link.active {
  background: rgba(59, 110, 246, .18);
  color: #fff;
  box-shadow: none;
  font-weight: 600;
}
.kq-submenu .kq-menu-link.active::before { background: #63d0ff; box-shadow: 0 0 8px #63d0ff; }

.kq-sidebar-foot {
  padding: 14px 18px;
  font-size: 11px;
  color: rgba(255, 255, 255, .3);
  border-top: 1px solid rgba(255, 255, 255, .06);
  white-space: nowrap;
}

.kq-main {
  margin-left: var(--kq-sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left .22s ease;
}

/* ---------------- 顶栏 ---------------- */
.kq-topbar {
  height: var(--kq-topbar-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--kq-border);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 40;
}

.kq-topbar-left { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.kq-page-title { font-size: 16px; font-weight: 700; letter-spacing: .2px; }
.kq-page-sub { font-size: 12px; color: var(--kq-muted); }

.kq-back-home {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--kq-text-2); font-size: 13px;
  padding: 7px 10px; border-radius: 9px;
}
.kq-back-home:hover { background: #f3f5fa; color: var(--kq-text); }

.kq-search {
  position: relative;
  width: 290px;
}
.kq-search input {
  width: 100%;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--kq-border-2);
  background: #f7f9fd;
  padding: 0 14px 0 38px;
  font-size: 13px;
  color: var(--kq-text);
  outline: none;
  transition: .2s;
}
.kq-search input:focus { background: #fff; border-color: #b9caf9; box-shadow: 0 0 0 3px rgba(59,110,246,.1); }
.kq-search svg { position: absolute; left: 12px; top: 11px; color: var(--kq-muted); }

.kq-topbar-actions { display: flex; align-items: center; gap: 6px; }
.kq-icon-btn {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--kq-text-2);
  display: grid; place-items: center;
  cursor: pointer;
  transition: .18s;
}
.kq-icon-btn:hover { background: #f2f4fa; color: var(--kq-text); }
.kq-icon-btn .kq-dot {
  position: absolute; top: 5px; right: 4px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: 9px;
  background: #f43f5e;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

.kq-user {
  display: flex; align-items: center; gap: 9px;
  padding: 5px 10px 5px 5px;
  border-radius: 30px;
  cursor: pointer;
  transition: .18s;
  position: relative;
}
.kq-user:hover { background: #f3f5fa; }
.kq-user-name { font-size: 13px; font-weight: 600; }

.kq-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c5cff, #3b6ef6);
  color: #fff;
  display: grid; place-items: center;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  flex-shrink: 0;
}
.kq-avatar img { width: 100%; height: 100%; object-fit: cover; }
.kq-avatar.sq { border-radius: 10px; }
.kq-avatar.lg { width: 52px; height: 52px; font-size: 17px; border-radius: 15px; }
.kq-avatar.sm { width: 26px; height: 26px; font-size: 11px; }

.kq-dropdown {
  position: absolute;
  right: 0; top: 52px;
  min-width: 176px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--kq-border);
  box-shadow: var(--kq-shadow-lg);
  padding: 6px;
  display: none;
  z-index: 80;
}
.kq-dropdown.show { display: block; animation: kqFade .16s ease; }
.kq-dropdown a, .kq-dropdown button {
  display: flex; align-items: center; gap: 9px;
  width: 100%;
  height: 38px;
  padding: 0 11px;
  border-radius: 8px;
  border: none;
  background: none;
  font-size: 13px;
  color: var(--kq-text-2);
  cursor: pointer;
  text-align: left;
}
.kq-dropdown a:hover, .kq-dropdown button:hover { background: #f4f6fb; color: var(--kq-text); }
.kq-dropdown .danger { color: var(--kq-red); }
.kq-dropdown-divider { height: 1px; background: var(--kq-border); margin: 5px 4px; }

/* ---------------- 内容区 ---------------- */
.kq-content { padding: 20px 24px 40px; flex: 1; }
.kq-breadcrumb { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--kq-muted); margin-bottom: 14px; }
.kq-breadcrumb b { color: var(--kq-text-2); font-weight: 500; }

.kq-card {
  background: var(--kq-card);
  border: 1px solid var(--kq-border);
  border-radius: var(--kq-radius);
  box-shadow: var(--kq-shadow);
}
.kq-card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 0;
  gap: 12px;
}
.kq-card-title { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.kq-card-title .kq-bar {
  width: 4px; height: 15px; border-radius: 3px;
  background: linear-gradient(180deg, #3b6ef6, #7c5cff);
}
.kq-card-body { padding: 18px 20px 20px; }
.kq-card-tools { display: flex; align-items: center; gap: 8px; }
.kq-more-link { font-size: 12px; color: var(--kq-muted); display: inline-flex; align-items: center; gap: 2px; }
.kq-more-link:hover { color: var(--kq-primary); }

/* ---------------- 实时数据卡片 ---------------- */
.kq-stat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.kq-stat {
  background: #fff;
  border: 1px solid var(--kq-border);
  border-radius: var(--kq-radius);
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  box-shadow: var(--kq-shadow);
  transition: transform .18s, box-shadow .18s;
}
.kq-stat:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(30,45,90,.09); }
.kq-stat-icon {
  width: 50px; height: 50px;
  border-radius: 15px;
  display: grid; place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.kq-stat-meta { min-width: 0; }
.kq-stat-label { font-size: 12.5px; color: var(--kq-muted); margin-bottom: 3px; white-space: nowrap; }
.kq-stat-value { font-size: 21px; font-weight: 700; letter-spacing: -.4px; line-height: 1.25; white-space: nowrap; }
.kq-stat-sub { font-size: 11.5px; color: var(--kq-muted); margin-top: 4px; white-space: nowrap; }
.kq-stat-sub .up { color: var(--kq-green); }
.kq-stat-sub .down { color: var(--kq-red); }

.bg-blue { background: linear-gradient(135deg, #4d8bfb, #3b6ef6); }
.bg-green { background: linear-gradient(135deg, #3ecf8e, #18a058); }
.bg-orange { background: linear-gradient(135deg, #ffb545, #f59e0b); }
.bg-purple { background: linear-gradient(135deg, #a78bfa, #7c5cff); }
.bg-cyan { background: linear-gradient(135deg, #38d9d9, #0ea5c6); }
.bg-rose { background: linear-gradient(135deg, #fb7284, #ef4444); }
.bg-indigo { background: linear-gradient(135deg, #7590ff, #4f46e5); }

/* ---------------- 筛选工具条 ---------------- */
.kq-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--kq-border);
  border-radius: var(--kq-radius);
  padding: 12px 16px;
  box-shadow: var(--kq-shadow);
}
.kq-tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kq-tab {
  height: 34px;
  padding: 0 16px;
  border-radius: 9px;
  border: 1px solid var(--kq-border-2);
  background: #fff;
  color: var(--kq-text-2);
  font-size: 13px;
  display: inline-flex; align-items: center; gap: 4px;
  cursor: pointer;
  transition: .16s;
}
.kq-tab:hover { border-color: #c6d3f5; color: var(--kq-primary); }
.kq-tab.active {
  background: linear-gradient(135deg, #4b7ef8, #3b6ef6);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(59, 110, 246, .26);
}

/* ---------------- 按钮 ---------------- */
.kq-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px;
  padding: 0 15px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: #f2f4fa;
  color: var(--kq-text-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: .18s;
  white-space: nowrap;
  text-decoration: none;
}
.kq-btn:hover { color: var(--kq-text); background: #e9edf7; }
.kq-btn-primary {
  background: linear-gradient(135deg, #4b7ef8, #3b6ef6);
  color: #fff;
  box-shadow: 0 6px 16px rgba(59, 110, 246, .24);
}
.kq-btn-primary:hover { background: linear-gradient(135deg, #3b6ef6, #2f5bea); color: #fff; box-shadow: 0 8px 20px rgba(59,110,246,.32); }
.kq-btn-outline { background: #fff; border-color: var(--kq-border-2); color: var(--kq-text-2); }
.kq-btn-outline:hover { border-color: #b9caf9; color: var(--kq-primary); background: #f7f9ff; }
.kq-btn-danger { background: #fdeeee; color: var(--kq-red); }
.kq-btn-danger:hover { background: #fbdede; color: #d92d2d; }
.kq-btn-success { background: var(--kq-green-bg); color: var(--kq-green); }
.kq-btn-success:hover { background: #d8f3e4; color: #0e7f43; }
.kq-btn-sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.kq-btn-lg { height: 44px; padding: 0 22px; font-size: 14px; border-radius: 10px; }
.kq-btn[disabled] { opacity: .55; cursor: not-allowed; }
.kq-btn-block { width: 100%; }

.kq-link-btn {
  border: none; background: none; padding: 0;
  color: var(--kq-primary); font-size: 13px; cursor: pointer;
}
.kq-link-btn:hover { color: var(--kq-primary-600); text-decoration: underline; }
.kq-link-btn.danger { color: var(--kq-red); }
.kq-link-btn.muted { color: var(--kq-muted); }

/* ---------------- 表单 ---------------- */
.kq-input, .kq-select, .kq-textarea {
  width: 100%;
  height: 38px;
  border: 1px solid var(--kq-border-2);
  border-radius: 9px;
  background: #fff;
  padding: 0 12px;
  font-size: 13px;
  color: var(--kq-text);
  outline: none;
  transition: .18s;
}
.kq-textarea { height: auto; min-height: 96px; padding: 10px 12px; line-height: 1.7; resize: vertical; }
.kq-input:focus, .kq-select:focus, .kq-textarea:focus {
  border-color: #a9bff7;
  box-shadow: 0 0 0 3px rgba(59, 110, 246, .1);
}
.kq-input::placeholder, .kq-textarea::placeholder { color: #b6bece; }
.kq-input.sm { height: 32px; font-size: 12.5px; }
.kq-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b94a8' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.kq-field { margin-bottom: 18px; }
.kq-field > label {
  display: flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 600; color: #3b455e;
  margin-bottom: 7px;
}
.kq-field > label .req { color: var(--kq-red); }
.kq-field .kq-help { font-size: 12px; color: var(--kq-muted); margin-top: 6px; }
.kq-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.kq-form-grid .full { grid-column: 1 / -1; }
.kq-radio-row, .kq-check-row { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 6px; }
.kq-radio, .kq-check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--kq-text-2); cursor: pointer; }
.kq-radio input, .kq-check input { width: 15px; height: 15px; accent-color: var(--kq-primary); cursor: pointer; }
.kq-switch { position: relative; display: inline-flex; align-items: center; gap: 9px; cursor: pointer; }
.kq-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.kq-switch i {
  width: 40px; height: 22px; border-radius: 20px; background: #dfe4f0;
  position: relative; transition: .2s; flex-shrink: 0;
}
.kq-switch i::after {
  content: ""; position: absolute; width: 17px; height: 17px; border-radius: 50%;
  background: #fff; top: 2.5px; left: 2.5px; transition: .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
}
.kq-switch input:checked + i { background: linear-gradient(135deg, #4b7ef8, #3b6ef6); }
.kq-switch input:checked + i::after { left: 20.5px; }
.kq-switch span { font-size: 13px; color: var(--kq-text-2); }

/* ---------------- 表格 ---------------- */
.kq-table-wrap { overflow-x: auto; }
.kq-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.kq-table th {
  text-align: left;
  font-weight: 500;
  color: var(--kq-muted);
  background: #f9fafd;
  padding: 11px 14px;
  white-space: nowrap;
  border-bottom: 1px solid var(--kq-border);
  position: sticky; top: 0; z-index: 2;
}
.kq-table th:first-child { border-top-left-radius: 10px; }
.kq-table th:last-child { border-top-right-radius: 10px; }
.kq-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #f2f5fa;
  color: var(--kq-text);
  vertical-align: middle;
}
.kq-table tbody tr:hover td { background: #fafbff; }
.kq-table tbody tr:last-child td { border-bottom: none; }
.kq-table .num { font-variant-numeric: tabular-nums; font-weight: 600; }
.kq-table .amount { font-weight: 700; color: var(--kq-text); font-variant-numeric: tabular-nums; }
.kq-table .amount.plus { color: var(--kq-green); }
.kq-table .amount.minus { color: var(--kq-red); }
.kq-table .cell-sub { font-size: 11.5px; color: var(--kq-muted); margin-top: 2px; }
.kq-table .kq-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.kq-table input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--kq-primary); cursor: pointer; }
.kq-table .col-check { width: 40px; }

.kq-thumb {
  width: 40px; height: 40px; border-radius: 9px; object-fit: cover;
  background: linear-gradient(135deg, #eef2ff, #e6ecfb);
  border: 1px solid var(--kq-border);
}
.kq-thumb.round { border-radius: 50%; }

.kq-empty { padding: 56px 20px; text-align: center; color: var(--kq-muted); font-size: 13px; }
.kq-empty svg { margin: 0 auto 12px; opacity: .5; }

/* ---------------- 徽标 ---------------- */
.kq-badge {
  display: inline-flex; align-items: center; gap: 4px;
  height: 23px; padding: 0 9px;
  border-radius: 7px;
  font-size: 12px; font-weight: 500;
  white-space: nowrap;
}
.kq-badge-green { background: var(--kq-green-bg); color: #14804a; }
.kq-badge-orange { background: var(--kq-orange-bg); color: #b5730a; }
.kq-badge-red { background: var(--kq-red-bg); color: #d33434; }
.kq-badge-blue { background: var(--kq-primary-50); color: #2b5ad6; }
.kq-badge-purple { background: #f2efff; color: #6b4de0; }
.kq-badge-gray { background: #f2f4f8; color: #78829a; }
.kq-badge-cyan { background: #e7f8fb; color: #0a7f96; }
.kq-dot-status { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; }
.kq-dot-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.kq-tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: #f3f5fa; color: var(--kq-text-2); font-size: 11.5px; margin: 0 4px 4px 0; }
.kq-tag.brand { background: #eef3ff; color: #2b5ad6; }

/* ---------------- 分页 ---------------- */
.kq-pager {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  padding: 16px 20px;
  border-top: 1px solid var(--kq-border);
  font-size: 13px;
  color: var(--kq-muted);
}
.kq-pager-links { display: flex; align-items: center; gap: 6px; }
.kq-pager-links a, .kq-pager-links span {
  min-width: 32px; height: 32px;
  padding: 0 9px;
  border-radius: 8px;
  border: 1px solid var(--kq-border-2);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--kq-text-2);
  font-size: 12.5px;
  background: #fff;
}
.kq-pager-links a:hover { border-color: #b9caf9; color: var(--kq-primary); }
.kq-pager-links span.current { background: var(--kq-primary); border-color: var(--kq-primary); color: #fff; font-weight: 600; }
.kq-pager-links span.disabled { color: #c3c9d6; background: #fafbfe; }

/* ---------------- 弹窗 ---------------- */
.kq-modal-mask {
  position: fixed; inset: 0;
  background: rgba(20, 28, 48, .48);
  backdrop-filter: blur(2px);
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 8vh 20px 40px;
  overflow-y: auto;
}
.kq-modal-mask.show { display: flex; animation: kqFade .18s ease; }
.kq-modal {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--kq-shadow-lg);
  animation: kqPop .2s ease;
  overflow: hidden;
}
.kq-modal.wide { max-width: 880px; }
.kq-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--kq-border);
}
.kq-modal-head h3 { font-size: 15.5px; font-weight: 700; }
.kq-modal-close { border: none; background: none; cursor: pointer; color: var(--kq-muted); padding: 4px; border-radius: 6px; }
.kq-modal-close:hover { background: #f3f5fa; color: var(--kq-text); }
.kq-modal-body { padding: 20px 22px; max-height: 64vh; overflow-y: auto; }
.kq-modal-foot {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 14px 22px;
  border-top: 1px solid var(--kq-border);
  background: #fcfdff;
}

/* ---------------- 提示 ---------------- */
.kq-toast-wrap {
  position: fixed; top: 22px; left: 50%; transform: translateX(-50%);
  z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none;
}
.kq-toast {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  background: #1f2a44;
  color: #fff;
  font-size: 13px;
  box-shadow: 0 10px 30px rgba(20, 28, 48, .28);
  animation: kqPop .2s ease;
  max-width: 80vw;
}
.kq-toast.success { background: #0f8a4d; }
.kq-toast.error { background: #d93b3b; }
.kq-toast.warning { background: #b7791f; }

/* ---------------- 图表 ---------------- */
.kq-chart { width: 100%; height: 240px; }
.kq-chart svg { width: 100%; height: 100%; overflow: visible; }
.kq-legend { display: flex; flex-direction: column; gap: 12px; }
.kq-legend-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--kq-text-2); }
.kq-legend-item i { width: 8px; height: 8px; border-radius: 50%; }
.kq-legend-item b { margin-left: auto; color: var(--kq-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.kq-legend-title { font-size: 13px; font-weight: 600; color: var(--kq-text); margin-bottom: 2px; }

/* ---------------- 数据概览专用 ---------------- */
.kq-section { margin-bottom: 18px; }
.kq-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.kq-section-title { font-size: 16px; font-weight: 700; letter-spacing: .2px; }

.kq-overview-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 16px; }
.kq-trade-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 10px; }
.kq-trade-item { display: flex; gap: 10px; align-items: flex-start; }
.kq-trade-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.kq-trade-label { font-size: 12.5px; color: var(--kq-muted); }
.kq-trade-value { font-size: 17px; font-weight: 700; margin-top: 1px; font-variant-numeric: tabular-nums; }
.kq-trade-sub { font-size: 11px; color: var(--kq-muted); margin-top: 2px; }
.kq-trade-sub .up { color: var(--kq-green); }
.kq-trade-sub .down { color: var(--kq-red); }

.kq-audit-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; text-align: center; }
.kq-audit-item { padding: 6px 4px; border-radius: 10px; transition: background .16s; }
.kq-audit-item:hover { background: #f8faff; }
.kq-audit-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; margin: 0 auto 8px; }
.kq-audit-label { font-size: 11.5px; color: var(--kq-muted); line-height: 1.4; }
.kq-audit-value { font-size: 18px; font-weight: 700; margin-top: 3px; font-variant-numeric: tabular-nums; }

.kq-quick-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.kq-quick {
  display: flex; align-items: center; gap: 11px;
  background: #fff;
  border: 1px solid var(--kq-border);
  border-radius: var(--kq-radius);
  padding: 14px 16px;
  box-shadow: var(--kq-shadow);
  transition: .18s;
}
.kq-quick:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(30,45,90,.09); }
.kq-quick-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.kq-quick-text { min-width: 0; }
.kq-quick-title { font-size: 13px; font-weight: 600; color: var(--kq-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kq-quick-desc { font-size: 11.5px; color: var(--kq-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kq-quick-value { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--kq-text-2); }

.kq-dash-grid { display: grid; grid-template-columns: 1.15fr .85fr 1fr 1.05fr; gap: 16px; }
.kq-rank { display: flex; flex-direction: column; gap: 4px; }
.kq-rank-head, .kq-rank-row {
  display: grid; grid-template-columns: 42px 1fr 90px;
  align-items: center;
  font-size: 12.5px;
  padding: 7px 4px;
}
.kq-rank-head { color: var(--kq-muted); font-size: 12px; border-bottom: 1px solid var(--kq-border); padding-bottom: 9px; }
.kq-rank-row { border-bottom: 1px dashed #f1f4fa; color: var(--kq-text-2); }
.kq-rank-row:last-child { border-bottom: none; }
.kq-rank-row b { font-weight: 700; color: var(--kq-text); }
.kq-rank-no {
  width: 22px; height: 22px; border-radius: 7px;
  display: grid; place-items: center;
  font-size: 11.5px; font-weight: 700;
  background: #f2f4f8; color: #8b94a8;
}
.kq-rank-no.top1 { background: linear-gradient(135deg, #ffd54a, #f5a623); color: #fff; }
.kq-rank-no.top2 { background: linear-gradient(135deg, #c9d3e4, #9aa8bf); color: #fff; }
.kq-rank-no.top3 { background: linear-gradient(135deg, #f0b98a, #d98a4e); color: #fff; }

.kq-city-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kq-city {
  background: #fbfcff;
  border: 1px solid #eef1f8;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex; align-items: center; gap: 9px;
}
.kq-city-icon { width: 28px; height: 28px; border-radius: 8px; background: #eef3ff; color: #3b6ef6; display: grid; place-items: center; flex-shrink: 0; }
.kq-city-name { font-size: 12.5px; font-weight: 600; }
.kq-city-meta { font-size: 11px; color: var(--kq-muted); }

/* ---------------- 详情页 ---------------- */
.kq-detail-grid { display: grid; grid-template-columns: 340px 1fr; gap: 16px; align-items: start; }
.kq-profile { text-align: center; padding: 26px 20px 20px; }
.kq-profile .kq-avatar { margin: 0 auto 12px; }
.kq-profile h3 { font-size: 17px; font-weight: 700; }
.kq-profile p { font-size: 12.5px; color: var(--kq-muted); margin-top: 4px; }
.kq-profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.kq-profile-stats div { background: #f9fafd; border-radius: 10px; padding: 10px 6px; }
.kq-profile-stats b { display: block; font-size: 16px; font-weight: 700; }
.kq-profile-stats span { font-size: 11px; color: var(--kq-muted); }
.kq-info-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.kq-info-item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed #f1f4fa; font-size: 13px; }
.kq-info-item dt { color: var(--kq-muted); width: 84px; flex-shrink: 0; }
.kq-info-item dd { margin: 0; color: var(--kq-text); word-break: break-all; flex: 1; }

.kq-timeline { position: relative; padding-left: 18px; }
.kq-timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: #eef1f8; }
.kq-timeline-item { position: relative; padding: 0 0 16px; font-size: 13px; }
.kq-timeline-item::before {
  content: ""; position: absolute; left: -17px; top: 5px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #cfd8ea; border: 2px solid #fff;
}
.kq-timeline-item.done::before { background: var(--kq-primary); }
.kq-timeline-item b { display: block; font-weight: 600; }
.kq-timeline-item span { color: var(--kq-muted); font-size: 12px; }

/* ---------------- 设置页 ---------------- */
.kq-setting { display: grid; grid-template-columns: 190px 1fr; gap: 18px; align-items: start; }
.kq-setting-nav { background: #fff; border: 1px solid var(--kq-border); border-radius: var(--kq-radius); padding: 8px; box-shadow: var(--kq-shadow); }
.kq-setting-nav a {
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 12px; border-radius: 9px;
  font-size: 13px; color: var(--kq-text-2);
}
.kq-setting-nav a:hover { background: #f6f8fd; color: var(--kq-text); }
.kq-setting-nav a.active { background: var(--kq-primary-50); color: var(--kq-primary); font-weight: 600; }
.kq-switch-list { display: flex; flex-direction: column; }
.kq-switch-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 15px 0; border-bottom: 1px solid #f2f5fa;
}
.kq-switch-row:last-child { border-bottom: none; }
.kq-switch-row h4 { font-size: 13.5px; font-weight: 600; margin-bottom: 2px; }
.kq-switch-row p { font-size: 12px; color: var(--kq-muted); }

/* ---------------- 登录页 ---------------- */
.kq-login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  background: #fff;
}
.kq-login-brand {
  position: relative;
  background: radial-gradient(circle at 20% 20%, #33447a 0%, #1b2440 45%, #131a2e 100%);
  color: #fff;
  padding: 56px 60px;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.kq-login-brand::before {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,255,.42), transparent 68%);
  right: -160px; top: -120px;
}
.kq-login-brand::after {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,110,246,.35), transparent 70%);
  left: -120px; bottom: -160px;
}
.kq-login-brand .logo { display: flex; align-items: center; gap: 11px; font-size: 17px; font-weight: 700; position: relative; z-index: 2; }
.kq-login-headline { font-size: 38px; line-height: 1.28; font-weight: 800; margin-top: auto; position: relative; z-index: 2; letter-spacing: -.5px; }
.kq-login-headline span { background: linear-gradient(90deg, #a18bff, #5ad2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kq-login-sub { margin-top: 16px; color: rgba(255,255,255,.6); font-size: 13.5px; line-height: 1.9; position: relative; z-index: 2; }
.kq-login-feats { display: flex; gap: 30px; margin-top: 34px; position: relative; z-index: 2; }
.kq-login-feats div b { display: block; font-size: 22px; font-weight: 800; }
.kq-login-feats div span { font-size: 12px; color: rgba(255,255,255,.5); }
.kq-login-panel { display: grid; place-items: center; padding: 40px; }
.kq-login-box { width: 100%; max-width: 356px; }
.kq-login-box h2 { font-size: 23px; font-weight: 800; letter-spacing: -.3px; }
.kq-login-box > p { color: var(--kq-muted); font-size: 13px; margin-top: 6px; margin-bottom: 30px; }
.kq-login-field { position: relative; margin-bottom: 16px; }
.kq-login-field input {
  width: 100%; height: 46px;
  border: 1px solid var(--kq-border-2);
  border-radius: 11px;
  background: #f8fafd;
  padding: 0 14px 0 42px;
  font-size: 14px; outline: none; transition: .2s;
}
.kq-login-field input:focus { background: #fff; border-color: #a9bff7; box-shadow: 0 0 0 3px rgba(59,110,246,.1); }
.kq-login-field svg { position: absolute; left: 14px; top: 14px; color: var(--kq-muted); }
.kq-login-row { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--kq-muted); margin: 4px 0 22px; }
.kq-login-btn {
  width: 100%; height: 46px; border: none; border-radius: 11px;
  background: linear-gradient(135deg, #4b7ef8, #3b6ef6);
  color: #fff; font-size: 14.5px; font-weight: 600; cursor: pointer;
  box-shadow: 0 10px 24px rgba(59,110,246,.28);
  transition: .18s;
}
.kq-login-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(59,110,246,.34); }
.kq-login-tip {
  margin-top: 22px; padding: 11px 14px;
  background: #f7f9ff; border: 1px dashed #dbe4fb; border-radius: 10px;
  font-size: 12px; color: #6b7691; line-height: 1.8;
}
.kq-login-error { background: #fdeeee; color: #d33434; border-radius: 9px; padding: 10px 13px; font-size: 12.5px; margin-bottom: 16px; }

/* ---------------- 列表与表单补充 ---------------- */
.kq-page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.kq-page-head h2 { font-size: 19px; font-weight: 700; letter-spacing: -.3px; }
.kq-page-head p { font-size: 12.5px; color: var(--kq-muted); margin-top: 3px; }
.kq-page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kq-filter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kq-filter-row .kq-input, .kq-filter-row .kq-select { width: auto; min-width: 150px; height: 34px; font-size: 13px; }
.kq-batch-bar {
  display: none; align-items: center; gap: 12px;
  padding: 10px 16px;
  background: #f7f9ff;
  border-bottom: 1px solid var(--kq-border);
  font-size: 13px; color: var(--kq-text-2);
}
.kq-batch-bar.show { display: flex; }
.kq-batch-bar b { color: var(--kq-primary); }
.kq-form-foot { display: flex; gap: 10px; justify-content: flex-end; padding-top: 6px; }
.kq-img-field { display: flex; align-items: center; gap: 12px; }
.kq-img-preview { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; border: 1px solid var(--kq-border); background: #f7f9fd; }
.kq-img-preview.kq-hidden { display: none; }
.kq-upload-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.kq-upload-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.kq-cell-user { display: flex; align-items: center; gap: 9px; }
.kq-cell-user b { font-weight: 600; }
.kq-cell-sub { font-size: 11.5px; color: var(--kq-muted); margin-top: 2px; }

/* ---------------- 概览补充 ---------------- */
.kq-quick-grid.cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.kq-card-link { font-size: 12.5px; color: var(--kq-muted); display: inline-flex; align-items: center; gap: 3px; }
.kq-card-link:hover { color: var(--kq-primary); }
.kq-range-form { display: flex; align-items: center; gap: 8px; }
.kq-range-form .kq-input { width: 136px; height: 32px; font-size: 12.5px; }
.kq-dash-note { font-size: 11.5px; color: var(--kq-muted); }
.kq-chart-wrap { display: grid; grid-template-columns: 1fr 168px; gap: 10px; align-items: center; }
.kq-chart-wrap .kq-chart { height: 210px; }
.kq-trend-total { display: flex; align-items: baseline; gap: 6px; }
.kq-trend-total b { font-size: 22px; font-weight: 700; letter-spacing: -.5px; }

/* ---------------- 动画 ---------------- */
@keyframes kqFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes kqPop { from { opacity: 0; transform: translateY(-6px) scale(.985); } to { opacity: 1; transform: none; } }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1560px) {
  .kq-stat-grid { grid-template-columns: repeat(3, 1fr); }
  .kq-dash-grid { grid-template-columns: 1fr 1fr; }
  .kq-quick-grid, .kq-quick-grid.cols-7 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1280px) {
  .kq-overview-grid { grid-template-columns: 1fr; }
  .kq-trade-list { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1100px) {
  .kq-sidebar { width: 68px; }
  .kq-sidebar .kq-logo-text, .kq-sidebar .kq-menu-label, .kq-sidebar .kq-menu-arrow, .kq-sidebar .kq-sidebar-foot { display: none; }
  .kq-sidebar .kq-submenu { display: none; }
  .kq-main { margin-left: 68px; }
  .kq-menu-link { justify-content: center; padding: 0; }
  .kq-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .kq-search { display: none; }
}
@media (max-width: 820px) {
  .kq-content { padding: 14px; }
  .kq-topbar { padding: 0 14px; }
  .kq-dash-grid, .kq-quick-grid, .kq-quick-grid.cols-7, .kq-trade-list, .kq-form-grid, .kq-detail-grid, .kq-info-list { grid-template-columns: 1fr; }
  .kq-chart-wrap { grid-template-columns: 1fr; }
  .kq-stat-grid { grid-template-columns: 1fr; }
  .kq-audit-grid { grid-template-columns: repeat(3, 1fr); }
  .kq-login { grid-template-columns: 1fr; }
  .kq-login-brand { display: none; }
}
