@import url("/common/tokens.css?v=20261022b");
/* ============================================================
 * 昌农牧业 SaaS 平台端 · 样式
 * 设计语言：浅绿/薄荷绿主色 + 极浅青绿底 + 活力点缀（四端统一）
 * 视觉基调：科技动漫插画感（几何线条、微网格、发光渐变、饱满圆角）
 * 定位：商务专业（信息密度高、动效克制）
 * 语义 token 统一收敛于 /common/tokens.css（见文件头 @import），此处仅留端特有变量
 * ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif;
  font-size: 14px; line-height: 1.6;
  color: var(--text-900);
  background-color: var(--cream);
  background-image: var(--grid-img);
  background-size: var(--grid-size);
}
.hidden { display: none !important; }
::-webkit-scrollbar { width: 0; height: 0; }
* { scrollbar-width: none; -ms-overflow-style: none; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; outline: none; }

/* 焦点可见性（无障碍） */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand-500); outline-offset: 2px; border-radius: var(--r-sm);
}

/* ================= 按钮 ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 18px; border: 1px solid transparent; border-radius: var(--r-sm);
  font-size: 14px; line-height: 1.2; background: #e6f6f0; color: var(--text-700);
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .12s ease;
}
.btn:hover { background: #d9efe6; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--grad-btn); color: var(--brand-900); font-weight: 600;
  box-shadow: 0 6px 18px rgba(52,211,153,.38);
}
.btn-primary:hover {
  box-shadow: 0 10px 26px rgba(52,211,153,.52); transform: translateY(-1px);
}
.btn-success { background: var(--brand-700); color: #fff; }
.btn-success:hover { background: var(--brand-800); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #c93b2c; }
.btn-default { background: #e6f6f0; color: var(--text-700); border-color: var(--line); }
.btn-default:hover { background: #d9efe6; }
.btn-plain { background: var(--paper); border-color: var(--line); color: var(--brand-700); }
.btn-plain:hover {
  border-color: var(--brand-400); background: var(--brand-50);
  box-shadow: 0 4px 14px rgba(52,211,153,.20);
}
.btn-ghost { background: transparent; color: var(--text-700); border-color: transparent; }
.btn-ghost:hover { background: #e6f6f0; }
.btn-mini { padding: 4px 12px; font-size: 12px; border-radius: 7px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn:disabled:hover { background: #e6f6f0; box-shadow: none; }
.btn-primary:disabled:hover { background: var(--grad-btn); transform: none; }

/* ================= 登录页（浅绿科技渐变品牌区 + 白色登录卡） ================= */
.login-view {
  position: fixed; inset: 0; display: flex; min-height: 100vh;
  background-color: var(--cream);
  background-image: var(--grid-img);
  background-size: var(--grid-size);
}
.login-left {
  flex: 1.1; display: flex; flex-direction: column; justify-content: center;
  padding: 60px 80px; color: var(--brand-900);
  background:
    radial-gradient(760px 380px at 86% 10%, rgba(255,255,255,.55), transparent 62%),
    radial-gradient(560px 340px at 6% 92%, rgba(255,255,255,.34), transparent 64%),
    linear-gradient(150deg, var(--brand-300) 0%, var(--brand-400) 44%, var(--pop-cyan) 100%);
}
.login-logo {
  width: 72px; height: 72px; border-radius: var(--r-lg); background: rgba(255,255,255,.55);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 700; margin-bottom: 26px;
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: 0 10px 28px rgba(15,118,110,.28);
}
.login-brand h1 {
  font-size: 32px; letter-spacing: 2px; font-weight: 800;
  color: var(--brand-900);
}
.login-brand p { margin-top: 14px; font-size: 16px; color: rgba(11,59,52,.78); letter-spacing: 3px; }
.login-feats { margin-top: 46px; list-style: none; }
.login-feats li {
  position: relative; padding: 10px 0 10px 28px; font-size: 16px; color: rgba(11,59,52,.9);
}
.login-feats li::before {
  content: ""; position: absolute; left: 0; top: 19px;
  width: 10px; height: 10px; border-radius: 50%; background: var(--brand-900);
  box-shadow: 0 0 0 3px rgba(255,255,255,.4);
}
.login-right {
  width: 480px; background: var(--paper); display: flex; align-items: center; justify-content: center;
}
.login-box { width: 340px; }
.login-box h2 {
  font-size: 24px; letter-spacing: .5px; font-weight: 800;
  background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.login-sub { margin: 10px 0 30px; color: var(--text-400); }
.field { display: block; margin-bottom: 18px; }
.field span { display: block; margin-bottom: 8px; color: var(--text-700); font-size: 14px; }
.field input {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: #f4fcf9; transition: all .18s; color: var(--text-900);
}
.field input::placeholder { color: var(--text-400); }
.field input:hover { border-color: var(--line-strong, #c7e8db); }
.field input:focus {
  border-color: var(--brand-500); background: #fff;
  box-shadow: 0 0 0 3px rgba(52,211,153,.22);
}
.login-demo { margin-top: 22px; border-top: 1px dashed var(--line); padding-top: 16px; }
.demo-title { font-size: 12px; color: var(--text-400); margin-bottom: 10px; }
.demo-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 9px 12px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 12px;
  background: #f4fcf9; transition: all .16s;
}
.demo-item:hover {
  border-color: var(--brand-400); background: var(--brand-50);
  box-shadow: 0 6px 18px rgba(52,211,153,.18);
}
.demo-item:active { transform: scale(.99); }
.demo-item b { color: var(--brand-800); min-width: 64px; }
.demo-item span { color: var(--text-400); font-size: 12px; }
.demo-item i { margin-left: auto; font-style: normal; color: var(--brand-600); font-size: 12px; }

/* ================= 主框架 ================= */
.app-view { display: flex; height: 100vh; overflow: hidden; }
.sidebar {
  width: 232px; flex: none;
  background: linear-gradient(180deg, #f5fffb 0%, #e9faf3 100%);
  color: var(--text-700);
  display: flex; flex-direction: column; overflow: hidden;
  border-right: 1px solid rgba(52,211,153,.28);
}
.sidebar-brand {
  display: flex; align-items: center; gap: 10px; padding: 20px 18px;
  border-bottom: 1px solid rgba(52,211,153,.22);
}
.sidebar-logo {
  width: 38px; height: 38px; border-radius: 12px; background: var(--grad-brand); color: var(--brand-900);
  display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700;
  box-shadow: 0 6px 16px rgba(52,211,153,.42);
}
.sidebar-title { font-size: 16px; color: var(--brand-900); font-weight: 700; }
.sidebar-sub { font-size: 11px; color: var(--text-500); margin-top: 3px; }
.menu-box { flex: 1; overflow-y: auto; padding: 12px 0; }
.menu-item {
  display: flex; align-items: center; gap: 10px; padding: 12px 18px;
  color: var(--text-700); font-size: 14px; border-left: 3px solid transparent; transition: all .16s;
}
.menu-item:hover { color: var(--brand-800); background: rgba(52,211,153,.14); }
.menu-item.active {
  color: var(--brand-900); font-weight: 600;
  background: linear-gradient(90deg, rgba(52,211,153,.30), rgba(34,211,238,.14));
  border-left-color: var(--brand-500);
  box-shadow: inset 0 0 18px rgba(52,211,153,.18);
}
.menu-icon { width: 18px; text-align: center; opacity: .85; }
.sidebar-foot {
  padding: 14px 18px; border-top: 1px solid rgba(52,211,153,.22);
  display: flex; align-items: center; justify-content: space-between;
}
.user-name { color: var(--brand-800); font-size: 14px; }
.sidebar-foot .btn-ghost { color: var(--text-500); }
.sidebar-foot .btn-ghost:hover { background: rgba(52,211,153,.16); color: var(--brand-800); }

.main-area { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 60px; flex: none; background: var(--paper); display: flex; align-items: center;
  justify-content: space-between; padding: 0 24px;
  border: 0; border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, rgba(52,211,153,.75), rgba(34,211,238,.5), rgba(52,211,153,.08)) 1;
}
.topbar-title {
  font-size: 16px; font-weight: 700;
  background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.topbar-user { color: var(--text-500); }
.page-root { flex: 1; overflow-y: auto; padding: 22px 24px 40px; }

/* ================= 面板 / 表格 ================= */
.panel {
  background: var(--paper); border-radius: var(--r-md); padding: 20px; margin-bottom: 18px;
  border: 1px solid rgba(52,211,153,.22); box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.panel:hover {
  box-shadow: var(--shadow-md); border-color: rgba(52,211,153,.4);
}
.block-title {
  font-size: 16px; color: var(--brand-800); font-weight: 700; margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.block-title::before {
  content: ""; width: 4px; height: 15px; border-radius: 2px; background: var(--grad-brand);
}
.loading, .empty { padding: 42px 0; text-align: center; color: var(--text-400); }
.loading::before {
  content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 8px;
  vertical-align: -3px; border-radius: 50%; border: 2px solid var(--brand-100);
  border-top-color: var(--brand-500); animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty {
  border: 1px dashed rgba(52,211,153,.45); border-radius: var(--r-lg);
  background: radial-gradient(240px 150px at 50% 0%, rgba(52,211,153,.16), transparent 72%);
}
.tip-line { color: var(--text-400); font-size: 14px; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: var(--paper); }
.table th, .table td {
  padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line-soft);
  white-space: nowrap; max-width: 320px; overflow: hidden; text-overflow: ellipsis;
}
.table th { background: #f0faf6; color: var(--text-500); font-weight: 600; font-size: 14px; }
.table tbody tr:hover { background: var(--brand-50); }
.table tbody tr:last-child td { border-bottom: none; }
/* 操作列不参与单元格截断：按钮多时按内容撑开，否则末尾按钮被裁剪点不到 */
.table td.col-ops { min-width: 150px; max-width: none; overflow: visible; }
.col-ops .btn { margin-right: 6px; }
.tag { padding: 2px 10px; border-radius: 999px; font-size: 12px; }
.tag-on { background: var(--brand-100); color: var(--brand-700); }
.tag-off { background: #e6f6f0; color: var(--text-400); }
.tag-blue { background: var(--warm-soft); color: var(--warm); }

/* ================= 工具栏 ================= */
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  background: var(--paper); border: 1px solid rgba(52,211,153,.22); border-radius: var(--r-md);
  padding: 16px 18px; margin-bottom: 18px; box-shadow: var(--shadow-sm);
}
.toolbar .toolbar-btns { margin-left: auto; display: flex; gap: 10px; }
.search-box input {
  width: 240px; padding: 9px 13px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #f4fcf9; transition: all .18s;
}
.search-box input:focus {
  border-color: var(--brand-500); background: #fff; box-shadow: 0 0 0 3px rgba(52,211,153,.22);
}

/* ================= 表单 ================= */
.form-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.form-item { width: calc(50% - 8px); display: flex; flex-direction: column; gap: 7px; }
.form-item-wide { width: 100%; }
.form-item label { font-size: 14px; color: var(--text-700); }
.req { color: var(--danger); font-style: normal; }
.form-item input, .form-item select, .form-item textarea {
  padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #f4fcf9; width: 100%; transition: all .18s;
}
.form-item input:hover, .form-item select:hover, .form-item textarea:hover { border-color: var(--line-strong, #c7e8db); }
.form-item input:focus, .form-item select:focus, .form-item textarea:focus {
  border-color: var(--brand-500); background: #fff; box-shadow: 0 0 0 3px rgba(52,211,153,.22);
}
.form-item textarea { resize: vertical; min-height: 70px; }
.form-item input:disabled { color: var(--text-400); background: #eef7f3; }

/* 插件勾选组 */
.check-grid {
  display: flex; flex-wrap: wrap; gap: 10px; padding: 12px;
  border: 1px solid var(--line-soft); border-radius: var(--r-sm); background: #f4fcf9;
  max-height: 160px; overflow-y: auto;
}
.check-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  cursor: pointer; font-size: 14px; transition: all .16s;
}
.check-chip:hover { border-color: var(--brand-400); box-shadow: 0 4px 14px rgba(52,211,153,.18); }
.check-chip input { accent-color: var(--brand-500); }
.check-chip.checked { border-color: var(--brand-400); background: var(--brand-50); color: var(--brand-700); }

/* ================= 弹窗 ================= */
.modal-mask {
  position: fixed; inset: 0; background: rgba(11,59,52,.44); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  width: 560px; max-width: 92vw; max-height: 86vh; background: var(--paper); border-radius: var(--r-lg);
  display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(52,211,153,.3);
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--line-soft);
}
.modal-head h3 {
  font-size: 16px; font-weight: 700;
  background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.modal-close { cursor: pointer; font-size: 22px; color: var(--text-400); line-height: 1; background: none; border: none; }
.modal-close:hover { color: var(--text-700); }
.modal-body { padding: 22px; overflow-y: auto; }
.modal-foot {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 16px 22px; border-top: 1px solid var(--line-soft); background: #f4fcf9;
}
.confirm-body { color: var(--text-700); line-height: 1.8; }

/* ================= 提示条 ================= */
.toast-box {
  position: fixed; top: 22px; left: 50%; transform: translateX(-50%);
  z-index: 2000; display: flex; flex-direction: column; gap: 10px; align-items: center;
}
.toast {
  padding: 11px 22px; border-radius: 12px; color: #fff; font-size: 14px;
  max-width: 560px; word-break: break-word;
  box-shadow: 0 10px 30px rgba(11,59,52,.22); animation: toast-in .22s ease;
}
.toast-success { background: linear-gradient(135deg, var(--brand-700), var(--brand-800)); }
.toast-error { background: var(--danger); }
.toast-info { background: var(--brand-900); }
.toast-out { opacity: 0; transition: opacity .4s; }
@keyframes toast-in { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ================= 统计卡片 ================= */
.stat-row { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; }
.stat-card {
  flex: 1; min-width: 180px; background: var(--paper);
  border: 1px solid rgba(52,211,153,.22); border-radius: var(--r-md); padding: 18px 20px;
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--grad-brand); opacity: .9;
}
.stat-val {
  font-size: 26px; font-weight: 800; letter-spacing: .5px;
  background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { margin-top: 8px; color: var(--text-500); font-size: 14px; }
.stat-sub { margin-top: 4px; color: var(--text-400); font-size: 12px; }

/* ================= 纯 CSS 图表 ================= */
.chart-row { display: flex; gap: 18px; flex-wrap: wrap; }
.chart-col { flex: 1; min-width: 380px; }
.bar-chart {
  display: flex; align-items: flex-end; gap: 14px; height: 220px;
  padding: 10px 6px 0; border-bottom: 1px solid var(--line-soft);
}
.bar-col {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: flex-end; height: 100%; gap: 8px;
}
.bar-val { font-size: 12px; color: var(--text-500); }
.bar {
  width: 60%; min-height: 3px; border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--brand-300), var(--brand-500));
  transition: height .3s ease;
}
.bar:hover { background: linear-gradient(180deg, var(--brand-400), var(--brand-600)); box-shadow: 0 4px 16px rgba(52,211,153,.4); }
.bar-date { font-size: 11px; color: var(--text-400); margin-bottom: -22px; transform: translateY(22px); }
.bar-chart-wrap { padding-bottom: 30px; }

.hbar-list { display: flex; flex-direction: column; gap: 14px; padding: 6px 2px; }
.hbar-item { display: flex; align-items: center; gap: 12px; }
.hbar-name { width: 110px; color: var(--text-700); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { flex: 1; height: 12px; border-radius: 8px; background: var(--line-soft); overflow: hidden; }
.hbar-fill {
  height: 100%; border-radius: 8px;
  background: linear-gradient(90deg, var(--brand-400), var(--pop-cyan));
}
.hbar-val { width: 40px; text-align: right; color: var(--brand-800); font-weight: 600; font-size: 14px; }

/* ================= 域名列表 ================= */
.domain-list { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.domain-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border: 1px solid var(--line-soft); border-radius: 12px; background: #f4fcf9;
}
.domain-item .domain-text { flex: 1; color: var(--brand-800); font-family: Consolas, monospace; }
.domain-add { display: flex; gap: 10px; margin-top: 14px; }
.domain-add input {
  flex: 1; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #f4fcf9;
}
.domain-add input:focus { border-color: var(--brand-500); background: #fff; }

/* ================= 插件明细小列表（站点弹窗） ================= */
.mini-section-title {
  margin: 16px 0 8px; color: var(--brand-800); font-size: 14px; font-weight: 600;
}
.mini-section-title:first-child { margin-top: 0; }
.mini-list { display: flex; flex-direction: column; gap: 8px; }
.mini-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 13px;
  border: 1px solid var(--line-soft); border-radius: 12px; background: #f4fcf9;
}
.mini-item .mini-name { flex: 1; color: var(--brand-800); }
.mini-item .mini-sub { color: var(--text-400); font-size: 12px; }

/* 版本记录 */
.version-item {
  padding: 11px 14px; border: 1px solid var(--line-soft); border-radius: 12px;
  background: #f4fcf9; margin-bottom: 10px;
}
.version-head {
  display: flex; align-items: center; gap: 10px; color: var(--brand-800); font-weight: 600;
}
.version-head .version-time { margin-left: auto; color: var(--text-400); font-size: 12px; font-weight: 400; }
.version-log { margin-top: 6px; color: var(--text-700); font-size: 14px; line-height: 1.7; }

/* ================= 插件市场优化 ================= */
.price-cell { line-height: 1.9; }
.price-val { font-weight: 600; color: var(--text-900); font-size: 14px; }
.price-unit { color: var(--text-400); font-size: 12px; margin-left: 2px; }
.tag-plain { background: var(--line-soft); color: var(--text-500); }
.tag-blue { background: #dbeafe; color: #1e40af; }
.table thead th { white-space: nowrap; font-size: 13px; color: var(--text-500); font-weight: 600; background: #f8faf8; }
.table tbody td { vertical-align: middle; }

/* ================= 存储与附件 ================= */
/* 存储方式单选卡片组 */
.radio-group { display: flex; flex-wrap: wrap; gap: 12px; }
.radio-card {
  flex: 1; min-width: 240px; position: relative; display: flex; flex-direction: column; gap: 3px;
  padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: #f4fcf9; cursor: pointer; transition: all .16s;
}
.radio-card:hover { border-color: var(--brand-400); box-shadow: 0 6px 18px rgba(52,211,153,.16); }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card .radio-title { font-weight: 600; color: var(--text-700); }
.radio-card .radio-sub { color: var(--text-400); font-size: 12px; }
.radio-card.checked {
  border-color: var(--brand-500); background: var(--brand-50);
  box-shadow: 0 6px 18px rgba(52,211,153,.22);
}
.radio-card.checked .radio-title { color: var(--brand-800); }
.radio-card.checked .radio-title::after {
  content: "✓"; margin-left: 8px; color: var(--brand-600); font-size: 12px;
}

/* 开关（允许空 Referer） */
.switch-line { display: flex; align-items: center; gap: 10px; cursor: pointer; color: var(--text-700); }
.switch { position: relative; width: 44px; height: 24px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-dot {
  position: absolute; inset: 0; border-radius: 999px; background: #d9efe6;
  transition: background .18s; cursor: pointer;
}
.switch-dot::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(13,148,136,.3);
  transition: transform .18s;
}
.switch input:checked + .switch-dot { background: var(--brand-500); }
.switch input:checked + .switch-dot::after { transform: translateX(20px); }

/* 站点容量用量进度条（超 80% 橙、超 95% 红） */
.quota-wrap { min-width: 220px; max-width: 320px; }
.quota-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--text-500); font-size: 12px; }
.quota-bar {
  height: 10px; border-radius: 8px; background: var(--line-soft);
  overflow: hidden; margin: 6px 0 2px;
}
.quota-fill {
  height: 100%; border-radius: 8px;
  background: linear-gradient(90deg, var(--brand-400), var(--pop-cyan));
  transition: width .3s ease;
}
.quota-fill.warn { background: linear-gradient(90deg, var(--pop-yellow), var(--pop-orange)); }
.quota-fill.danger { background: linear-gradient(90deg, #f87171, var(--danger)); }

/* 分页条 */
.pager { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.pager-info { margin-right: auto; color: var(--text-400); font-size: 14px; }

/* ================= 存储与数据库改版（设计稿组件，sd- 前缀避免与现有类冲突） ================= */
.sd-block { margin-bottom: 22px; }
.sd-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sd-card { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 14px; padding: 18px 20px 16px; }
.sd-card.sd-muted { background: #FDFDFC; }
.sd-card-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.sd-card-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--brand-100); display: flex; align-items: center; justify-content: center; flex: none; color: var(--brand-700); }
.sd-card-ico.gray { background: #F1EFE8; color: var(--text-400); }
.sd-card-ico svg, .sd-mig-ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sd-card-name { font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--text-900); }
.sd-card-name .sd-pill-on, .sd-card-name .sd-pill-off { margin-left: 8px; }
.sd-card-desc { font-size: 11px; color: var(--text-400); margin-top: 3px; }
.sd-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sd-num { background: #F2FAF7; border-radius: 9px; padding: 12px 14px; }
.sd-num b { display: block; font-size: 20px; font-weight: 600; letter-spacing: -.4px; color: var(--text-900); }
.sd-num b small { font-size: 11px; font-weight: 400; color: var(--text-400); margin-left: 2px; }
.sd-num span { font-size: 11px; color: var(--text-400); }
.sd-muted .sd-num { background: #F7F7F3; }
.sd-muted .sd-num b { color: #55544F; }
.sd-bar-wrap { margin-top: 14px; display: flex; align-items: center; gap: 10px; }
.sd-bar { width: 132px; height: 4px; border-radius: 3px; background: #EFEFEA; overflow: hidden; flex: none; }
.sd-bar i { display: block; height: 100%; background: #2FC48D; border-radius: 3px; }
.sd-bar-txt { font-size: 11px; color: var(--text-400); }
.sd-pill-on, .sd-pill-off { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; padding: 3px 8px; border-radius: 999px; font-weight: 600; vertical-align: middle; }
.sd-pill-on { background: var(--brand-100); color: var(--brand-900); }
.sd-pill-on::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #2FC48D; }
.sd-pill-off { background: #F1EFE8; color: var(--text-400); }
.sd-pill-off::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--text-400); }
.sd-migrate { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; background: var(--paper); border: 1px solid var(--line-soft); border-radius: 14px; padding: 18px 20px; margin-top: 14px; }
.sd-mig-left { display: flex; gap: 12px; flex: 1; min-width: 0; }
.sd-mig-ico { width: 32px; height: 32px; border-radius: 8px; background: var(--brand-100); display: flex; align-items: center; justify-content: center; flex: none; color: var(--brand-700); }
.sd-mig-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.sd-mig-title { font-size: 14px; font-weight: 600; color: var(--text-900); }
.sd-mig-desc { font-size: 11px; color: var(--text-400); margin-top: 3px; max-width: 420px; }
.sd-mig-rows { margin-top: 12px; display: grid; gap: 6px; }
.sd-mig-rows > div { display: flex; gap: 12px; align-items: baseline; font-size: 11px; }
.sd-mig-rows .k { width: 62px; flex: none; color: var(--text-400); }
.sd-mig-rows .v { color: var(--text-700); }
.sd-mig-note { margin-top: 10px; background: var(--brand-100); border-radius: 8px; padding: 10px 12px; font-size: 12px; color: #0C4F3C; }
.sd-mig-body { display: none; }
.sd-mig-body.on { display: block; }
.sd-seg { display: inline-flex; background: #F1EFE8; border-radius: 8px; padding: 2px; flex: none; }
.sd-seg button { border: 0; background: transparent; padding: 4px 12px; border-radius: 6px; font-size: 12px; color: #6B6A64; cursor: pointer; font-family: inherit; }
.sd-seg button.on { background: #FFF; color: var(--brand-900); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.sd-mig-right { text-align: right; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.sd-mig-tip { font-size: 11px; color: var(--text-400); line-height: 1.5; text-align: right; max-width: 180px; }
.sd-panel { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 14px; padding: 20px; margin-top: 14px; }
.sd-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); margin-bottom: 16px; }
.sd-panel-head .t { font-size: 14px; font-weight: 600; color: var(--text-900); }
.sd-panel-head .t span { font-size: 11px; color: var(--text-400); font-weight: 400; margin-left: 6px; }
.sd-fixed-mode { display: inline-flex; align-items: center; gap: 7px; background: #E9F7F1; border: 1px solid #CFEADF; color: #0C4F3C; border-radius: 8px; padding: 6px 12px; font-size: 12px; font-weight: 600; }
.sd-fixed-mode svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sd-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.sd-field label { display: block; font-size: 11px; color: var(--text-500); margin-bottom: 5px; }
.sd-field input { width: 100%; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; background: #FFF; color: var(--text-900); outline: none; }
.sd-field input:focus { border-color: var(--brand-500); }
.sd-field input[readonly] { background: #FAFAF8; color: #6B6A64; }
.sd-hint { font-size: 11px; color: var(--text-400); margin-top: 4px; display: flex; align-items: center; gap: 8px; }
.sd-link { color: var(--brand-700); font-size: 11px; cursor: pointer; text-decoration: underline; background: none; border: 0; padding: 0; font-family: inherit; }
.sd-link:hover { color: var(--brand-900); }
.sd-tip { background: #FBF3E4; border: 1px solid #F3E7CE; color: #7A5310; border-radius: 8px; padding: 9px 12px; font-size: 12px; margin-top: 14px; }
.sd-tip.ok { background: var(--brand-100); border-color: #CFEADF; color: #0C4F3C; }
.sd-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.sd-foot { text-align: center; font-size: 12px; color: var(--text-400); margin: 6px 0 18px; }

/* ================= 响应式 ================= */
@media (max-width: 1280px) {
  .login-left { padding: 40px; }
  .login-right { width: 420px; }
  .form-item { width: 100%; }
  .chart-col { min-width: 320px; }
}
