/* ============================================================
   KeyVX 发卡平台 — 高端商务风格
   配色：深藏青 + 暖金点缀 + 暖灰底色
   ============================================================ */

:root {
  /* 主色 */
  --primary: #1e293b;
  --primary-hover: #334155;
  --primary-light: #475569;

  /* 金色点缀（高端感） */
  --accent: #c9a962;
  --accent-hover: #d4b872;
  --accent-soft: rgba(201, 169, 98, 0.12);

  /* 背景与面板 */
  --bg: #f7f7f5;
  --panel: #ffffff;
  --panel-soft: #fafaf9;

  /* 边框与分割 */
  --border: #e5e7eb;
  --border-light: #f0f0ee;
  --border-strong: #d1d5db;

  /* 文字 */
  --text: #1e293b;
  --text-secondary: #475569;
  --muted: #94a3b8;

  /* 语义色 */
  --success: #059669;
  --success-soft: #ecfdf5;
  --success-border: #a7f3d0;

  --warning: #d97706;
  --warning-soft: #fffbeb;
  --warning-border: #fde68a;

  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --danger-border: #fecaca;

  --info: #2563eb;
  --info-soft: #eff6ff;
  --info-border: #bfdbfe;

  /* 侧边栏深色 */
  --sidebar: #0f172a;
  --sidebar-hover: #1e293b;
  --sidebar-text: #94a3b8;
  --sidebar-text-hover: #f1f5f9;

  /* 质感 */
  --radius: 8px;
  --radius-lg: 12px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.1);

  /* 过渡 */
  --transition: 0.2s ease;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "SF Pro Display", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

hr { border: 0; border-top: 1px solid var(--border-light); margin: 20px 0; }

code {
  background: var(--panel-soft);
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-family: Consolas, "Courier New", monospace;
  border: 1px solid var(--border-light);
}

/* SVG 图标通用样式 */
.icon { width: 16px; height: 16px; flex-shrink: 0; }
.icon-sm { width: 14px; height: 14px; }
.icon-lg { width: 20px; height: 20px; }

/* ============================================================
   后台布局
   ============================================================ */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 240px;
  background: var(--sidebar);
  color: var(--sidebar-text);
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 20px 20px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, #b8943f 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  letter-spacing: -0.5px;
  box-shadow: 0 2px 8px rgba(201, 169, 98, 0.3);
}

.brand-name {
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.3px;
}

.menu { flex: 1; padding: 12px 12px; }

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--sidebar-text);
  padding: 10px 14px;
  border-radius: var(--radius);
  margin-bottom: 2px;
  font-size: 14px;
  font-weight: 400;
  transition: all var(--transition);
}

.menu-item:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-text-hover);
}

.menu-item.on {
  background: rgba(201, 169, 98, 0.12);
  color: var(--accent);
  font-weight: 500;
}

.menu-item.on .icon { color: var(--accent); }

.menu-item .ico {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
}

.side-user {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 20px;
}

.side-user-name {
  color: #f1f5f9;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.side-user-ops {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
}

.side-user-ops a,
.side-user-ops button {
  color: var(--sidebar-text);
  font-size: 12px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: color var(--transition);
}

.side-user-ops a:hover,
.side-user-ops button:hover { color: var(--accent); }

/* 主内容区 */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 5;
}

.topbar h1 {
  font-size: 17px;
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.content {
  padding: 24px 28px 48px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

/* ============================================================
   面板 / 卡片
   ============================================================ */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px 24px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition);
}

.panel:hover { box-shadow: var(--shadow); }

.panel.slim { padding: 14px 18px; }

.panel-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  letter-spacing: 0.2px;
}

.panel-title.clickable { cursor: pointer; user-select: none; }

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 4px;
}

details.panel summary { list-style: none; }
details.panel summary::-webkit-details-marker { display: none; }
details.panel[open] summary.clickable { color: var(--accent); }

/* 统计卡片 */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.6;
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.stat-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}

.stat-label {
  color: var(--muted);
  margin-top: 6px;
  font-size: 13px;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .sidebar { width: 200px; flex-basis: 200px; }
}

/* ============================================================
   表格
   ============================================================ */
.table { width: 100%; border-collapse: collapse; }

.table th, .table td {
  text-align: left;
  padding: 12px 12px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
  font-size: 13px;
}

.table tr:last-child td { border-bottom: 0; }

.table th {
  color: var(--text-secondary);
  font-weight: 500;
  background: var(--panel-soft);
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 0.3px;
  text-transform: none;
}

.table tr:hover td { background: var(--panel-soft); }

.table .ops { white-space: nowrap; }

.mono { font-family: Consolas, "Courier New", monospace; letter-spacing: 0.3px; word-break: break-all; }
.muted { color: var(--muted); }
.empty {
  color: var(--muted);
  text-align: center;
  padding: 48px 0;
  font-size: 13px;
}
.center { text-align: center; }

.info-tbl td:first-child {
  color: var(--muted);
  width: 140px;
}

/* ============================================================
   徽标 / 标签
   ============================================================ */
.badge, .tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
  font-weight: 400;
  line-height: 1.4;
}

.badge-new   { background: var(--success-soft); color: var(--success); border: 1px solid var(--success-border); }
.badge-used  { background: var(--info-soft); color: var(--info); border: 1px solid var(--info-border); }
.badge-pause { background: var(--danger-soft); color: var(--danger); border: 1px solid var(--danger-border); }
.badge-expired { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }
.badge-pool  { background: var(--warning-soft); color: var(--warning); border: 1px solid var(--warning-border); }
.badge-admin { background: #f5f3ff; color: #7c3aed; border: 1px solid #ddd6fe; }
.badge-agent { background: var(--warning-soft); color: var(--warning); border: 1px solid var(--warning-border); }
.tag-free    { background: var(--accent-soft); color: #92701b; border: 1px solid rgba(201, 169, 98, 0.3); }
.tag-pool    { background: var(--warning-soft); color: var(--warning); border: 1px solid var(--warning-border); }

.role-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.role-admin { background: var(--primary); color: #fff; }
.role-agent { background: var(--accent); color: #fff; }

/* ============================================================
   按钮
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.4;
  font-weight: 400;
  transition: all var(--transition);
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 41, 59, 0.2);
}

.btn-ghost {
  background: #fff;
  border-color: var(--border);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--panel-soft);
}

.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 12px 20px; font-size: 15px; }

.btn-link {
  background: none;
  border: 0;
  color: var(--primary);
  cursor: pointer;
  padding: 2px 4px;
  font-size: 13px;
}

.btn-link:hover {
  text-decoration: none;
  color: var(--accent);
}

.btn-danger-js { color: var(--danger); }
.btn-danger-js:hover { color: #b91c1c; }

.btn-warn-js { color: var(--warning); }
.btn-warn-js:hover { color: #b45309; }

.link { color: var(--primary); }
.link:hover { color: var(--accent); }

.link-btn {
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
}

/* ============================================================
   表单
   ============================================================ */
.input, textarea.input {
  width: 100%;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: all var(--transition);
}

.input:focus, textarea.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.1);
}

.input::placeholder { color: var(--muted); }

.input-lg { padding: 12px 16px; font-size: 15px; }

.form-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-item label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 400;
}

.form-row { display: flex; gap: 16px; flex-wrap: wrap; }

.grid-form {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px 18px;
}

.grid-form .form-item { margin-bottom: 0; }

.form-item.align-end {
  justify-content: flex-end;
  align-items: stretch;
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin-bottom: 0;
}

.radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 14px;
  margin-right: 14px;
  cursor: pointer;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
}

.open-form { display: flex; flex-direction: column; gap: 6px; }

.filter-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 14px 0;
}

.filter-bar .input { max-width: 280px; }

.batch-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
  flex-wrap: wrap;
}

.hint {
  color: var(--muted);
  font-size: 12px;
  margin: 6px 0;
  line-height: 1.8;
}

.hint.mono-hint { font-size: 13px; }

/* ============================================================
   提示 / Flash
   ============================================================ */
.flash {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 14px;
  font-size: 13px;
  border: 1px solid transparent;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.flash::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.flash-ok {
  background: var(--success-soft);
  border-color: var(--success-border);
  color: #065f46;
}
.flash-ok::before { background: var(--success); }

.flash-error {
  background: var(--danger-soft);
  border-color: var(--danger-border);
  color: #991b1b;
}
.flash-error::before { background: var(--danger); }

.flash-warn {
  background: var(--warning-soft);
  border-color: var(--warning-border);
  color: #92400e;
}
.flash-warn::before { background: var(--warning); }

/* ============================================================
   页签 / Tabs
   ============================================================ */
.tabs {
  list-style: none;
  display: flex;
  gap: 0;
  margin: 0 0 4px;
  padding: 0;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}

.tabs li { margin-bottom: -1px; }

.tabs a {
  display: block;
  padding: 10px 18px;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  font-size: 13px;
  transition: all var(--transition);
}

.tabs a b { font-weight: 500; margin-left: 4px; }

.tabs a:hover {
  color: var(--text);
  background: var(--panel-soft);
}

.tabs a.on {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 500;
}

/* ============================================================
   图表
   ============================================================ */
.chart { display: flex; align-items: flex-end; gap: 12px; height: 200px; padding: 10px 0; }

.chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.chart-bars { display: flex; align-items: flex-end; gap: 4px; height: 150px; }

.bar {
  width: 16px;
  border-radius: 3px 3px 0 0;
  min-height: 4px;
  transition: height 0.3s ease;
}

.bar-blue { background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%); }
.bar-green { background: linear-gradient(180deg, var(--accent) 0%, #b8943f 100%); }

.chart-day { font-size: 11px; color: var(--muted); margin-top: 8px; }
.chart-val { font-size: 11px; color: var(--muted); }

.legend {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.lg {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin: 0 6px 0 0;
  vertical-align: middle;
}

.lg-blue { background: var(--primary); }
.lg-green { background: var(--accent); }

/* 分布条 */
.dist-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}

.dist-name {
  width: 60px;
  color: var(--text-secondary);
  font-size: 13px;
}

.dist-bar {
  flex: 1;
  background: var(--border-light);
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
}

.dist-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s ease;
}

.dist-green i { background: var(--success); }
.dist-blue i { background: var(--primary); }
.dist-orange i { background: var(--warning); }
.dist-gray i { background: #94a3b8; }

.dist-num {
  width: 60px;
  text-align: right;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

/* 额度进度条 */
.bar-bg {
  background: var(--border-light);
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  margin: 8px 0;
}

.bar-bg i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #b8943f);
  border-radius: 999px;
}

.quota-text { font-size: 12px; color: var(--muted); }

.quota-line { margin-top: 4px; }

/* ============================================================
   分页
   ============================================================ */
.pager {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.pager a, .pager span {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-secondary);
  background: #fff;
  transition: all var(--transition);
}

.pager a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pager a.cur {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.pager .page-total {
  border: 0;
  color: var(--muted);
  background: none;
  padding-left: 8px;
}

/* ============================================================
   登录页 (后台 / 安装)
   ============================================================ */
.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.auth-body::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 169, 98, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.auth-body::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(30, 41, 59, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.auth-wrap {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

.auth-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 36px 32px;
  border: 1px solid var(--border);
}

.auth-logo {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.auth-logo span { color: var(--accent); }

.auth-logo-mark {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.auth-logo-mark svg {
  filter: drop-shadow(0 2px 8px rgba(30, 41, 59, 0.15));
}

.auth-card h2 {
  font-size: 18px;
  text-align: center;
  margin: 8px 0 0;
  font-weight: 600;
  color: var(--text);
}

.auth-sub {
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  margin: 6px 0 24px;
}

.auth-tip {
  font-size: 12px;
  color: var(--muted);
  background: var(--panel-soft);
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.auth-ops {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}

.auth-ops.center { justify-content: center; }

.auth-foot {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin: 20px 0 0;
}

.auth-role {
  color: var(--muted);
  font-size: 12px;
}

/* ============================================================
   前台
   ============================================================ */
.front-body {
  min-height: 100vh;
  background: var(--sidebar);
  position: relative;
  overflow: hidden;
}

.front-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(201, 169, 98, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(30, 41, 59, 0.5) 0%, transparent 50%);
  pointer-events: none;
}

.front-hero {
  text-align: center;
  padding: 72px 16px 40px;
  color: #fff;
  position: relative;
  z-index: 1;
}

.hero-mark {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.hero-mark svg {
  filter: drop-shadow(0 4px 12px rgba(201, 169, 98, 0.3));
}

.site-title {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 1px;
}

.site-slogan {
  color: rgba(255, 255, 255, 0.5);
  margin-top: 10px;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.front-box {
  width: 100%;
  max-width: 440px;
  margin: 0 auto 40px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 32px 32px;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.front-notice {
  background: var(--panel-soft);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 13px;
  margin-bottom: 20px;
  line-height: 1.7;
}

.front-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.front-foot {
  text-align: center;
  color: rgba(255, 255, 255, 0.3);
  padding: 10px 0 30px;
  font-size: 12px;
  position: relative;
  z-index: 1;
}

/* 前台控制台 */
.console-box { max-width: 580px; }

.console-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.console-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.card-info {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px 20px;
  margin-bottom: 20px;
  background: var(--panel-soft);
}

.ci-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}

.ci-row:last-child { border-bottom: 0; }

.ci-row span:first-child { color: var(--muted); }

.console-placeholder {
  background: var(--panel-soft);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
}

.ph-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* 前台控制台：跳转到业务控制台入口 */
.console-action {
  margin-top: 20px;
}

.console-action .btn {
  font-weight: 600;
}

.console-action .hint {
  margin-top: 10px;
  margin-bottom: 0;
  text-align: center;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 640px) {
  .layout { flex-direction: column; }
  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    flex: none;
  }
  .brand { padding: 14px 16px; }
  .menu { display: flex; flex-wrap: wrap; padding: 0 10px 10px; }
  .menu-item { flex: 1; min-width: auto; justify-content: center; }
  .content { padding: 14px; }
  .topbar { padding: 12px 14px; }
  .panel { padding: 16px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 16px 14px; }
  .stat-num { font-size: 22px; }
  .front-box { padding: 24px 20px; }
  .front-hero { padding: 48px 16px 28px; }
  .site-title { font-size: 26px; }
  .auth-card { padding: 28px 22px; }
}
