/* ============================================================
   NSIS Smart Installer - 管理面板全局样式
   风格参考: KCPTun Panel（深蓝黑科技感）
   ============================================================ */

/* Google Fonts - Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* 背景色 - 深蓝黑 */
  --bg-primary:    #0a0e1a;
  --bg-secondary:  #0f1629;
  --bg-card:       #111827;
  --bg-card-hover: #1a2235;
  --bg-input:      #0d1526;
  --bg-elevated:   #131b2e;

  /* 边框 - 蓝灰 */
  --border-color:  #1e2d45;
  --border-subtle: #162035;
  --border-active: #00d4ff;

  /* 强调色 - 青色 */
  --accent:        #00d4ff;
  --accent-hover:  #33ddff;
  --accent-dim:    rgba(0, 212, 255, 0.10);
  --accent-blue:   #3b82f6;

  /* 渐变 */
  --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #3b82f6 100%);
  --gradient-bg:      linear-gradient(180deg, #0a0e1a 0%, #0f1629 100%);

  /* 文字 */
  --text-primary:  #e8f0fe;
  --text-secondary:#8ba3c7;
  --text-muted:    #4a6080;

  /* 语义色 */
  --success:       #10b981;
  --warning:       #f59e0b;
  --danger:        #ef4444;
  --info:          #3b82f6;

  /* 字体 */
  --font-sans:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:     'JetBrains Mono', 'Fira Code', monospace;

  /* 圆角 */
  --radius-sm:     6px;
  --radius:        6px;
  --radius-md:     10px;
  --radius-lg:     14px;
  --radius-xl:     14px;

  /* 阴影 */
  --shadow:        0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-card:   0 4px 24px rgba(0, 212, 255, 0.05);
  --shadow-glow:   0 0 20px rgba(0, 212, 255, 0.15);

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

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* 自定义滚动条 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0, 212, 255, 0.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 212, 255, 0.22); }

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

/* ── 侧边栏 ── */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
}

.sidebar-logo {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-logo .logo-icon {
  width: 36px; height: 36px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px; color: #fff;
  box-shadow: 0 2px 10px rgba(0, 212, 255, 0.2);
}

.sidebar-logo .logo-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.sidebar-nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}

.nav-section-title {
  padding: 16px 20px 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.nav-section-title::after {
  display: none;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  border-left: 3px solid transparent;
  font-size: 13.5px;
  position: relative;
  margin: 1px 0;
}

.nav-item:hover {
  background: rgba(0, 212, 255, 0.05);
  color: var(--text-primary);
}

.nav-item.active {
  background: rgba(0, 212, 255, 0.10);
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 500;
}

.nav-item.active::before {
  display: none;
}

.nav-item .nav-icon {
  width: 18px; height: 18px;
  opacity: 0.55;
  flex-shrink: 0;
  transition: opacity var(--transition);
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
  opacity: 1;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.user-avatar {
  width: 32px; height: 32px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13px; color: #fff;
  flex-shrink: 0;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.btn-logout {
  width: 100%;
  padding: 7px 12px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 12.5px;
  font-family: var(--font-sans);
  transition: all var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}

.btn-logout:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: rgba(239, 68, 68, 0.06);
}

/* ── 主内容区 ── */
.main-content {
  margin-left: 240px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  height: 54px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 16px;
}

.topbar-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.page-body {
  padding: 28px;
  flex: 1;
}

/* ── 卡片 ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 18px;
  transition: all var(--transition);
  position: relative;
}

.card::before {
  display: none;
}

.card:hover {
  border-color: #2a3f5f;
  box-shadow: var(--shadow-card);
}

.card:hover::before {
  display: none;
}

.card-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
}

.card-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.card-accent  { border-top: 2px solid var(--accent); }
.card-success { border-top: 2px solid var(--success); }
.card-warning { border-top: 2px solid var(--warning); }
.card-danger  { border-top: 2px solid var(--danger); }

.card-accent:hover  { box-shadow: 0 4px 20px rgba(0, 212, 255, 0.08); }
.card-success:hover { box-shadow: 0 4px 20px rgba(16, 185, 129, 0.08); }
.card-warning:hover { box-shadow: 0 4px 20px rgba(245, 158, 11, 0.08); }
.card-danger:hover  { box-shadow: 0 4px 20px rgba(239, 68, 68, 0.08); }

/* ── 统计卡片网格 ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

/* ── 图表容器 ── */
.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 18px;
  transition: all var(--transition);
}

.chart-card:hover {
  border-color: #2a3f5f;
  box-shadow: var(--shadow-card);
}

.chart-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.chart-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
  align-items: stretch;
}

/* ── 按钮 ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  border: none;
}
.btn-primary:hover {
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.25);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}
.btn-danger:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: rgba(239, 68, 68, 0.10);
}

.btn-sm { padding: 5px 10px; font-size: 12px; }

/* ── 表格 ── */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  padding: 11px 16px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
  background: rgba(15, 22, 41, 0.6);
}

tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 13.5px;
  vertical-align: middle;
  transition: background var(--transition);
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--bg-card-hover); }

/* ── 徽章 ── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
}
.badge-success { background: rgba(16, 185, 129, 0.12); color: var(--success); }
.badge-danger  { background: rgba(239, 68, 68, 0.12);  color: var(--danger); }
.badge-warning { background: rgba(245, 158, 11, 0.12); color: var(--warning); }
.badge-info    { background: rgba(59, 130, 246, 0.12);  color: var(--info); }
.badge-accent  { background: var(--accent-dim);          color: var(--accent); }

/* ── 表单 ── */
.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 9px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 13.5px;
  font-family: var(--font-sans);
  transition: all var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim);
}

.form-control::placeholder { color: var(--text-muted); }

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a6080' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.form-check input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ── 模态框 ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 15, 0.70);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 212, 255, 0.05);
  transform: translateY(-10px);
  transition: transform var(--transition);
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-close {
  width: 28px; height: 28px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: all var(--transition);
}
.modal-close:hover {
  background: rgba(0, 212, 255, 0.08);
  color: var(--text-primary);
}

.modal-body { padding: 20px 24px; }

.modal-footer {
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ── 分页 ── */
.pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  justify-content: flex-end;
}

.page-btn {
  padding: 5px 11px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 500;
  font-family: var(--font-sans);
  transition: all var(--transition);
}

.page-btn:hover, .page-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ── 筛选栏 ── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-bar .form-control {
  width: auto;
  min-width: 140px;
}

/* ── 空状态 ── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.3;
}

/* ── Toast 通知 ── */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  animation: slideIn 0.3s ease;
  max-width: 340px;
}

.toast-success {
  background: rgba(15, 22, 35, 0.95);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--success);
}
.toast-error {
  background: rgba(15, 22, 35, 0.95);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: var(--danger);
}
.toast-info {
  background: rgba(15, 22, 35, 0.95);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: var(--info);
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ── 登录页 ── */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--gradient-bg);
}

.login-page::before {
  display: none;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 212, 255, 0.04);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.login-logo {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo .logo-icon {
  width: 52px; height: 52px;
  background: var(--gradient-primary);
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 24px; color: #fff;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.25);
}

.login-logo h1 {
  font-size: 21px;
  font-weight: 700;
  color: var(--accent);
}

.login-logo p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.btn-login {
  width: 100%;
  padding: 11px;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 8px;
}
.btn-login:hover {
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
  filter: brightness(1.1);
}

.login-error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--danger);
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}

/* ── 开关组件 ── */
.toggle-switch {
  position: relative;
  width: 40px;
  height: 22px;
  background: var(--border-color);
  border-radius: 11px;
  cursor: pointer;
  transition: background var(--transition);
}

.toggle-switch.active {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform var(--transition);
}

.toggle-switch.active::after {
  transform: translateX(18px);
}

/* ── 代码块 ── */
code, pre {
  font-family: var(--font-mono);
}

pre {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 12px 16px;
  overflow-x: auto;
  font-size: 13px;
  color: var(--text-primary);
}

code {
  background: rgba(0, 212, 255, 0.06);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12.5px;
  color: var(--accent);
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* ── 汉堡菜单按钮（移动端） ── */
.hamburger-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius);
  transition: all var(--transition);
  flex-shrink: 0;
}
.hamburger-btn:hover {
  background: var(--accent-dim);
  color: var(--accent);
}
.hamburger-btn svg {
  display: block;
}

/* ── 侧边栏遮罩（移动端） ── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 15, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.sidebar-overlay.active {
  opacity: 1;
}

/* ── 响应式：平板及以下（≤ 768px） ── */
@media (max-width: 768px) {
  /* 汉堡菜单显示 */
  .hamburger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* 侧边栏：默认隐藏，滑入显示 */
  .sidebar {
    width: 260px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: none;
  }
  .sidebar.sidebar-open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
  }

  /* 遮罩显示 */
  .sidebar-overlay {
    display: block;
    pointer-events: none;
  }
  .sidebar-overlay.active {
    pointer-events: all;
  }

  /* 主内容区 */
  .main-content {
    margin-left: 0;
  }

  /* 页面内容 padding 缩小 */
  .page-body {
    padding: 18px 16px;
  }

  /* topbar padding 缩小 */
  .topbar {
    padding: 0 16px;
    gap: 12px;
  }

  /* 统计卡片 2 列 */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* 图表 1 列 */
  .chart-grid {
    grid-template-columns: 1fr;
  }

  /* 卡片 padding 缩小 */
  .card {
    padding: 16px 18px;
  }
  .chart-card {
    padding: 16px 18px;
  }

  /* 筛选栏垂直排列 */
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-bar .form-control {
    width: 100%;
    min-width: unset;
  }
  .filter-bar .btn {
    width: 100%;
    justify-content: center;
  }

  /* 模态框适配 */
  .modal {
    max-width: calc(100vw - 32px);
    margin: 16px;
  }

  /* 表格字体稍小 */
  tbody td {
    padding: 10px 12px;
    font-size: 13px;
  }
  thead th {
    padding: 9px 12px;
    font-size: 11px;
  }

  /* 分页居中 */
  .pagination {
    justify-content: center;
  }

  /* 登录页适配 */
  .login-card {
    max-width: calc(100vw - 32px);
    padding: 28px 24px;
  }
}

/* ── 响应式：手机（≤ 480px） ── */
@media (max-width: 480px) {
  /* 页面 padding 进一步缩小 */
  .page-body {
    padding: 14px 12px;
  }

  .topbar {
    padding: 0 12px;
    height: 48px;
  }

  .topbar-title {
    font-size: 14px;
  }

  /* 统计卡片 1 列 */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* 卡片值字体缩小 */
  .card-value {
    font-size: 26px;
  }

  .card {
    padding: 14px 16px;
    margin-bottom: 12px;
  }

  .chart-card {
    padding: 14px 16px;
    margin-bottom: 12px;
  }

  /* 模态框接近全屏 */
  .modal {
    max-width: 100vw;
    max-height: 100vh;
    margin: 0;
    border-radius: 0;
    height: 100vh;
  }
  .modal-overlay {
    align-items: stretch;
  }

  /* 表格进一步缩小 */
  tbody td {
    padding: 8px 10px;
    font-size: 12.5px;
  }
  thead th {
    padding: 8px 10px;
    font-size: 10.5px;
  }

  /* 按钮缩小 */
  .btn {
    padding: 7px 12px;
    font-size: 12.5px;
  }
  .btn-sm {
    padding: 4px 8px;
    font-size: 11px;
  }

  /* 登录页全宽 */
  .login-card {
    max-width: 100vw;
    border-radius: 0;
    padding: 28px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .login-logo .logo-icon {
    width: 46px;
    height: 46px;
    font-size: 20px;
  }

  .login-logo h1 {
    font-size: 19px;
  }

  /* Toast 适配 */
  .toast-container {
    top: 12px;
    right: 12px;
    left: 12px;
  }
  .toast {
    max-width: 100%;
  }
}
