/* ============================================================
   造个朋友 · 后台管理 — "Sunny Workshop" 主题
   暖琥珀 / 薄荷 / 樱桃 · Fraunces + Plus Jakarta Sans
   ============================================================ */

:root {
  /* —— 色彩 —— */
  --bg: #FBF6EE;
  --bg-soft: #F4ECDD;
  --surface: #FFFFFF;
  --surface-2: #FFFDF8;
  --ink: #2A1A0E;
  --ink-2: #5A463A;
  --muted: #9A8674;
  --line: #ECE0CD;
  --line-2: #F0E6D4;

  --primary: #E8902A;
  --primary-2: #D97706;
  --primary-soft: #FCE9C8;
  --mint: #0FB988;
  --mint-soft: #D6F3E6;
  --cherry: #E8487C;
  --cherry-soft: #FBDCE7;
  --sky: #3AA6E8;
  --sky-soft: #D9ECFA;
  --danger: #DC3A3A;
  --warn: #E8932A;

  --sidebar-bg: #241408;
  --sidebar-bg-2: #3A1F0E;
  --sidebar-ink: #E8D4B8;
  --sidebar-ink-2: #B89A78;

  /* —— 阴影 / 圆角 —— */
  --shadow-sm: 0 2px 8px -2px rgba(122, 60, 6, 0.08);
  --shadow: 0 12px 30px -12px rgba(122, 60, 6, 0.18);
  --shadow-lg: 0 26px 60px -20px rgba(122, 60, 6, 0.28);
  --shadow-glow: 0 18px 40px -16px rgba(217, 119, 6, 0.45);

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 26px;

  /* —— 字体 —— */
  --font-display: 'Fraunces', 'Noto Serif SC', 'Songti SC', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.1px;
  position: relative;
}
/* 暖色纸张颗粒底纹，营造工坊氛围 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 700px at 88% -8%, rgba(232, 144, 42, 0.10), transparent 60%),
    radial-gradient(900px 600px at -6% 108%, rgba(15, 185, 136, 0.07), transparent 55%);
  background-attachment: fixed;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}
#app, #loginApp { position: relative; z-index: 1; }

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ============ 登录页 ============ */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(900px 600px at 12% 18%, rgba(232, 144, 42, 0.22), transparent 60%),
    radial-gradient(800px 560px at 88% 82%, rgba(232, 72, 124, 0.16), transparent 60%),
    radial-gradient(700px 500px at 70% 8%, rgba(15, 185, 136, 0.14), transparent 55%),
    linear-gradient(160deg, #2A1608 0%, #3A1F0E 50%, #241408 100%);
  position: relative;
  overflow: hidden;
  padding: 24px;
}
.login-wrap::before {
  content: '';
  position: absolute;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(232, 144, 42, 0.32) 0%, rgba(232, 144, 42, 0) 70%);
  top: -180px; right: -140px;
  border-radius: 50%;
  animation: floatGlow 9s ease-in-out infinite;
}
.login-wrap::after {
  content: '';
  position: absolute;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(15, 185, 136, 0.22) 0%, rgba(15, 185, 136, 0) 70%);
  bottom: -160px; left: -120px;
  border-radius: 50%;
  animation: floatGlow 11s ease-in-out infinite reverse;
}
@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 24px) scale(1.06); }
}
.login-card {
  position: relative;
  z-index: 2;
  width: 400px;
  max-width: 100%;
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 46px 40px 34px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.6);
  animation: cardRise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes cardRise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.login-logo {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #F4B45C, #E8902A 60%, #D97706);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 28px; font-weight: 700;
  font-family: var(--font-display);
  box-shadow: 0 14px 30px -8px rgba(217, 119, 6, 0.6), inset 0 1px 0 rgba(255,255,255,0.5);
  position: relative;
}
.login-logo::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 26px;
  background: radial-gradient(circle, rgba(232,144,42,0.4), transparent 70%);
  z-index: -1;
}
.login-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.login-sub {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 30px;
  letter-spacing: 2px;
}
.login-btn {
  width: 100%;
  letter-spacing: 4px;
  font-size: 15px;
  height: 46px;
  border-radius: var(--r-sm);
  font-weight: 600;
}
.login-tip {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 20px;
  letter-spacing: 1px;
}

/* ============ 主界面布局 ============ */
.admin-layout {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 232px;
  background: linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-bg-2) 100%);
  color: var(--sidebar-ink);
  flex-shrink: 0;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 10;
  transition: width 0.25s;
  overflow: hidden;
}
.sidebar::before {
  content: '';
  position: absolute;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(232, 144, 42, 0.22) 0%, transparent 70%);
  top: -80px; left: -60px;
  border-radius: 50%;
  pointer-events: none;
}
.sidebar-logo {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}
.sidebar-logo .logo-icon {
  width: 36px; height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, #F4B45C, #E8902A 60%, #D97706);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 8px 18px -4px rgba(217, 119, 6, 0.55), inset 0 1px 0 rgba(255,255,255,0.4);
}
.sidebar-menu {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
  position: relative;
  z-index: 1;
}
.sidebar-menu::-webkit-scrollbar { width: 5px; }
.sidebar-menu::-webkit-scrollbar-thumb { background: rgba(232, 212, 184, 0.18); border-radius: 4px; }
.menu-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 16px;
  margin-bottom: 4px;
  cursor: pointer;
  font-size: 14px;
  color: var(--sidebar-ink);
  border-radius: var(--r-sm);
  transition: background 0.18s, color 0.18s, transform 0.18s;
  user-select: none;
  position: relative;
}
.menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transform: translateX(2px);
}
.menu-item.active {
  background: linear-gradient(90deg, rgba(232, 144, 42, 0.28), rgba(232, 144, 42, 0.02));
  color: #fff;
  box-shadow: inset 3px 0 0 var(--primary);
}
.menu-item.active::after {
  content: '';
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}
.menu-item .mi-icon {
  font-size: 17px;
  width: 20px;
  text-align: center;
}

.main-area {
  margin-left: 232px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.topbar {
  height: 66px;
  background: rgba(255, 253, 248, 0.85);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 5;
}
.topbar-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.3px;
  position: relative;
  padding-left: 14px;
}
.topbar-title::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 22px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--primary), var(--cherry));
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.topbar-user {
  font-size: 14px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.topbar-avatar {
  width: 36px; height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #F4B45C, #E8902A 60%, #D97706);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
  font-family: var(--font-display);
  box-shadow: 0 8px 16px -6px rgba(217, 119, 6, 0.5);
}
.content {
  padding: 26px;
  flex: 1;
}
.content-inner {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line-2);
  animation: panelRise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes panelRise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ 通用工具 ============ */
.page-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}
.page-toolbar .left { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.page-toolbar .right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.table-cover {
  width: 54px; height: 54px;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  cursor: zoom-in;
  transition: transform 0.18s, box-shadow 0.18s;
}
.table-cover:hover { transform: scale(1.06); box-shadow: var(--shadow-sm); }
.text-muted { color: var(--muted); }
.text-primary { color: var(--primary-2); }
.text-danger { color: var(--danger); }
.text-success { color: var(--mint); }
.text-warning { color: var(--warn); }
.flex { display: flex; align-items: center; gap: 8px; }
.flex-wrap { flex-wrap: wrap; }
.mono { font-family: var(--font-mono); }

/* ============ 仪表盘 ============ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--surface);
  border-radius: var(--r);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line-2);
  position: relative;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.22s;
  animation: cardRise 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  opacity: 0.12;
  background: currentColor;
}
.stat-card .sc-icon {
  position: absolute;
  right: 18px; top: 18px;
  width: 44px; height: 44px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: #fff;
  box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.2);
}
.sc-icon.bg-violet { background: linear-gradient(135deg, #E8902A, #D97706); }
.sc-icon.bg-blue { background: linear-gradient(135deg, #3AA6E8, #2B82D0); }
.sc-icon.bg-green { background: linear-gradient(135deg, #14C99A, #0FB988); }
.sc-icon.bg-orange { background: linear-gradient(135deg, #F4B45C, #E8932A); }
.sc-icon.bg-pink { background: linear-gradient(135deg, #F472A8, #E8487C); }
.sc-icon.bg-cyan { background: linear-gradient(135deg, #34D4C6, #14B8A6); }
.stat-card .sc-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}
.stat-card .sc-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.stat-card .sc-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.order-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}
.order-status-card {
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 16px 18px;
  transition: transform 0.18s, border-color 0.18s;
}
.order-status-card:hover { transform: translateY(-2px); border-color: var(--primary-soft); }
.order-status-card .osc-num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
}
.order-status-card .osc-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 10px 0 16px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
  letter-spacing: 0.3px;
}

/* ============ 图片上传组件（支持拖拽） ============ */
.img-uploader {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
}
.img-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
}
.img-cell-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: cellPop 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes cellPop {
  from { opacity: 0; transform: scale(0.86); }
  to { opacity: 1; transform: scale(1); }
}
.img-cell {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s, box-shadow 0.18s;
}
.img-cell:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.img-cell img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; background: #fff; }
.img-cell .img-actions {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36, 20, 8, 0.05) 0%, rgba(36, 20, 8, 0.6) 100%);
  display: none;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  padding-bottom: 8px;
}
.img-cell:hover .img-actions { display: flex; }

/* 上传进度条 */
.img-cell .img-progress {
  position: absolute;
  inset: 0;
  background: rgba(36, 20, 8, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-size: 12px;
  backdrop-filter: blur(2px);
}
.img-cell .img-progress .ip-bar {
  width: 72%;
  height: 5px;
  border-radius: 3px;
  background: rgba(255,255,255,0.25);
  overflow: hidden;
}
.img-cell .img-progress .ip-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #F4B45C, #E8902A);
  border-radius: 3px;
  transition: width 0.18s;
}

/* 可拖拽的添加按钮 —— 阳光暖色，带脉冲指引 */
.img-add-btn {
  border: 1.5px dashed #D9C7AC;
  border-radius: var(--r-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  cursor: pointer;
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 500;
  transition: border-color 0.18s, color 0.18s, background 0.18s, transform 0.18s;
  position: relative;
  text-align: center;
  line-height: 1.3;
  padding: 6px;
}
.img-add-btn .ia-icon {
  font-size: 22px;
  color: var(--primary);
  transition: transform 0.22s;
}
.img-add-btn:hover {
  border-color: var(--primary);
  color: var(--primary-2);
  background: var(--primary-soft);
  transform: translateY(-2px);
}
.img-add-btn:hover .ia-icon { transform: translateY(-2px) scale(1.08); }
/* 拖拽悬停态：暖色光晕 + 边框流动 */
.img-add-btn.dragover,
.img-cell.dragover {
  border-color: var(--primary);
  border-style: solid;
  background: linear-gradient(135deg, var(--primary-soft), #FFF6E0);
  color: var(--primary-2);
  box-shadow: var(--shadow-glow);
  transform: scale(1.03);
}
.img-add-btn.dragover .ia-icon { animation: bounce 0.6s ease-in-out infinite; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.img-add-btn .ia-hint {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.5px;
}
.img-sort-btn {
  position: absolute;
  top: 4px;
  background: rgba(255,255,255,0.9);
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: var(--primary-2);
  padding: 1px 5px;
  z-index: 2;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s, transform 0.15s;
}
.img-sort-btn:hover { background: var(--primary); color: #fff; transform: scale(1.1); }
.img-sort-btn.left { left: 4px; }
.img-sort-btn.right { right: 4px; }
.img-order {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

/* ============ site-config 分类 ============ */
.config-group {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
  margin-bottom: 20px;
  background: var(--surface-2);
  transition: box-shadow 0.2s;
}
.config-group:hover { box-shadow: var(--shadow-sm); }
.config-group-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.config-group-title::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--cherry));
  box-shadow: 0 0 8px rgba(232, 144, 42, 0.5);
}
.config-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line-2);
}
.config-item:last-child { border-bottom: none; }
.config-item .ci-label {
  width: 190px;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
}
.config-item .ci-key {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
  display: block;
  margin-top: 3px;
}
.config-item .ci-control { flex: 1; min-width: 0; }

/* ============ 支付配置 ============ */
.pay-info-row {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 14px;
}
.pay-info-row:last-child { border-bottom: none; }
.pay-info-row .pir-label { color: var(--muted); }
.pay-info-row .pir-value { color: var(--ink); font-family: var(--font-mono); }

/* ============ Element Plus 暖色微调 ============ */
.el-button--primary {
  --el-button-bg-color: var(--primary);
  --el-button-border-color: var(--primary);
  --el-button-hover-bg-color: var(--primary-2);
  --el-button-hover-border-color: var(--primary-2);
  --el-button-active-bg-color: var(--primary-2);
  --el-button-active-border-color: var(--primary-2);
}
.el-button--success {
  --el-button-bg-color: var(--mint);
  --el-button-border-color: var(--mint);
  --el-button-hover-bg-color: #0DA378;
  --el-button-hover-border-color: #0DA378;
}
.el-button--danger {
  --el-button-bg-color: var(--danger);
  --el-button-border-color: var(--danger);
}
.el-button--warning {
  --el-button-bg-color: var(--warn);
  --el-button-border-color: var(--warn);
}
.el-tag { border-radius: 6px; font-weight: 500; }
.el-input__wrapper, .el-textarea__inner, .el-select__wrapper {
  border-radius: var(--r-sm) !important;
  box-shadow: 0 0 0 1px var(--line) inset !important;
}
.el-input__wrapper.is-focus, .el-select__wrapper.is-focused {
  box-shadow: 0 0 0 1px var(--primary) inset !important;
}
/* 修复：弹窗顶部超出屏幕 —— 统一从顶部定位，限制总高度，内容区滚动 */
.el-overlay-dialog {
  align-items: flex-start !important;
}
.el-dialog {
  border-radius: var(--r-lg) !important;
  overflow: hidden;
  box-shadow: var(--shadow-lg) !important;
  margin-top: 5vh !important;
  display: flex !important;
  flex-direction: column !important;
  max-height: calc(95vh - 24px) !important;
}
/* 商品编辑弹窗：内容多（含 SKU 矩阵），强制占据更大高度，避免内容挤压看不清 */
.dialog-product-edit {
  min-height: 80vh !important;
}
.el-dialog__header {
  background: linear-gradient(135deg, var(--surface-2), #FFF6E0);
  border-bottom: 1px solid var(--line-2);
  margin-right: 0 !important;
  padding: 20px 24px !important;
  flex-shrink: 0;
}
.el-dialog__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
}
.el-dialog__body {
  padding: 24px !important;
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
}
.el-dialog__footer {
  border-top: 1px solid var(--line-2);
  padding: 14px 24px !important;
  flex-shrink: 0;
}
.el-card, .el-table {
  border-radius: var(--r) !important;
}
.el-table {
  background: transparent;
}
.el-table th.el-table__cell {
  background: var(--bg-soft) !important;
  color: var(--ink-2) !important;
  font-weight: 600;
}
.el-table tr:hover > td { background: var(--primary-soft) !important; }
.el-pagination .el-pager li.is-active {
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: var(--r-sm);
}
.el-switch.is-checked .el-switch__core {
  background-color: var(--mint) !important;
  border-color: var(--mint) !important;
}
.el-alert--info {
  background: var(--sky-soft) !important;
  border: 1px solid #BBD9F4;
}
.el-alert__title { color: var(--ink-2) !important; }

/* ============ 响应式 ============ */
@media (max-width: 768px) {
  .sidebar { width: 64px; }
  .sidebar-logo span:not(.logo-icon), .menu-item .mi-text { display: none; }
  .menu-item { justify-content: center; padding: 12px 8px; }
  .menu-item.active::after { display: none; }
  .main-area { margin-left: 64px; }
  .content { padding: 14px; }
  .content-inner { padding: 16px; }
  .config-item { flex-wrap: wrap; }
  .config-item .ci-label { width: 100%; }
  .topbar { padding: 0 16px; }
  .topbar-title { font-size: 17px; }
}

/* ============ 通用滚动条 ============ */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #E0CDB2; border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #D0B894; }
::-webkit-scrollbar-track { background: transparent; }
