/* ============================================================
   心商客户分层运营维护管理平台 · 设计系统
   风格：玉衡墨卷 —— 墨绿 + 鎏金 + 骨白，克制的高级感
   ============================================================ */
:root {
  --bg: #F3F0E8;
  --bg-deep: #EAE5DA;
  --surface: #FFFFFF;
  --surface-2: #FAF8F2;
  --surface-3: #F5F1E8;
  --ink: #172A2C;
  --ink-2: #3E5254;
  --muted: #7C8B8B;
  --muted-2: #9AA6A4;
  --line: #E5DED1;
  --line-strong: #D6CCBA;
  --jade: #0E7C67;
  --jade-2: #2FA98F;
  --jade-soft: #E4F2ED;
  --gold: #A97B3F;
  --gold-2: #C9A564;
  --gold-soft: #F6EEDC;
  --coral: #C0553F;
  --coral-soft: #FBEAE5;
  --blue: #3C6C97;
  --blue-soft: #EAF1F7;
  --violet: #65539A;
  --violet-soft: #EFEBF8;
  --ink-soft: #E8EDEB;
  --sidebar: #0C211E;
  --sidebar-2: #10302B;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-1: 0 1px 2px rgba(23, 42, 44, .04), 0 8px 24px -18px rgba(23, 42, 44, .35);
  --shadow-2: 0 2px 4px rgba(23, 42, 44, .04), 0 22px 48px -28px rgba(23, 42, 44, .45);
  --shadow-3: 0 30px 80px -24px rgba(12, 33, 30, .45), 0 10px 24px -12px rgba(12, 33, 30, .25);
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", sans-serif;
  --font-display: "Songti SC", "Source Han Serif SC", "STSong", "SimSun", Georgia, serif;
  --font-num: "Georgia", "Times New Roman", serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(1200px 600px at 82% -10%, rgba(201, 165, 100, .10), transparent 60%),
    radial-gradient(900px 500px at -10% 100%, rgba(14, 124, 103, .07), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.4), transparent 30%);
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--ink); }
::selection { background: rgba(14, 124, 103, .18); }
.ic { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: -3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(23,42,44,.18); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 登录 / 注册 ---------- */
.auth-body { background: #0C211E; overflow-x: hidden; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 46%) 1fr; }
.auth-art {
  position: relative; overflow: hidden; color: #EDE7D8;
  background:
    radial-gradient(900px 500px at 70% 20%, rgba(47, 169, 143, .16), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(201, 165, 100, .14), transparent 60%),
    linear-gradient(145deg, #0B201D, #123B33 55%, #0B2622);
  display: flex; align-items: center; padding: 72px 8%;
}
.auth-art::after {
  content: ""; position: absolute; inset: 24px; border: 1px solid rgba(201, 165, 100, .22);
  border-radius: 24px; pointer-events: none;
}
.auth-art-inner { position: relative; z-index: 2; max-width: 520px; }
.auth-brand { display: flex; align-items: center; gap: 14px; letter-spacing: .16em; font-size: 13px; color: #C9A564; text-transform: uppercase; }
.brand-mark.lg { width: 52px; height: 52px; color: #D5AE6E; }
.brand-mark.lg svg { width: 100%; height: 100%; }
.auth-art h1 {
  font-family: var(--font-display); font-size: clamp(34px, 3.6vw, 54px); line-height: 1.25;
  margin: 44px 0 22px; font-weight: 500; letter-spacing: .02em;
  background: linear-gradient(100deg, #FFFDF5, #E8D9BB 60%, #C9A564);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.auth-lead { color: rgba(237, 231, 216, .68); font-size: 15px; line-height: 1.9; max-width: 430px; }
.auth-points { margin-top: 52px; display: grid; gap: 18px; }
.auth-points > div { display: grid; grid-template-columns: 34px auto; grid-template-rows: auto auto; column-gap: 14px; align-items: center; }
.auth-points .dot-line { grid-row: span 2; width: 34px; height: 1px; background: linear-gradient(90deg, #C9A564, rgba(201,165,100,.1)); }
.auth-points strong { font-weight: 500; font-size: 15px; color: #F1EADA; letter-spacing: .06em; }
.auth-points em { font-style: normal; font-size: 12.5px; color: rgba(237,231,216,.5); }
.auth-signature { margin-top: 64px; display: flex; justify-content: space-between; font-size: 12px; color: rgba(237,231,216,.35); letter-spacing: .08em; }
.auth-arcs { position: absolute; right: -110px; top: -80px; width: 720px; height: 720px; color: #C9A564; z-index: 1; }
.auth-form-side { display: flex; align-items: center; justify-content: center; background: var(--bg); padding: 48px 6%; position: relative; }
.auth-form-side::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(23,42,44,.055) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .5;
}
.auth-card { position: relative; width: 100%; max-width: 470px; }
.auth-card-head .eyebrow { color: var(--gold); letter-spacing: .22em; font-size: 11px; }
.auth-card-head h2 { font-family: var(--font-display); font-size: 30px; font-weight: 600; margin: 12px 0 10px; letter-spacing: .02em; }
.auth-card-head p { color: var(--muted); margin-bottom: 30px; font-size: 13.5px; }
.auth-form { display: grid; gap: 18px; }
.auth-row { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted); }
.check { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.check input { accent-color: var(--jade); }
.link { color: var(--jade); border-bottom: 1px solid rgba(14,124,103,.25); padding-bottom: 1px; }
.link:hover { border-color: var(--jade); }
.auth-foot { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.auth-foot .ic { width: 14px; height: 14px; }
.form-alert {
  display: flex; gap: 8px; align-items: center; padding: 11px 14px; margin-bottom: 18px;
  background: var(--coral-soft); color: var(--coral); border: 1px solid rgba(192,85,63,.18);
  border-radius: 10px; font-size: 13px;
}
.form-alert .ic { width: 16px; height: 16px; }

/* ---------- 通用表单 ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field-label { font-size: 12.5px; color: var(--ink-2); font-weight: 500; letter-spacing: .02em; }
.field-label .req { color: var(--coral); margin-left: 2px; }
.input-wrap {
  display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.input-wrap .ic { color: var(--muted-2); width: 17px; height: 17px; }
.input-wrap input { border: 0; outline: 0; background: transparent; width: 100%; height: 100%; }
.input-wrap:focus-within { border-color: var(--jade-2); box-shadow: 0 0 0 3px rgba(47,169,143,.12); background: #fff; }
.input, .select, .textarea {
  width: 100%; height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); outline: 0; transition: border-color .2s, box-shadow .2s;
}
.textarea { height: auto; min-height: 92px; padding: 11px 13px; resize: vertical; line-height: 1.7; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--jade-2); box-shadow: 0 0 0 3px rgba(47,169,143,.1); }
.select { appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%237C8B8B' stroke-width='1.6'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.span-2 { grid-column: span 2; }
.hint { font-size: 11.5px; color: var(--muted-2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.form-grid .span-2 { grid-column: span 2; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  background: var(--surface); color: var(--ink-2); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all .18s ease; white-space: nowrap;
}
.btn .ic { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, #116B5A, #0E7C67 55%, #15957B);
  color: #F7F3E8; box-shadow: 0 8px 20px -10px rgba(14,124,103,.65);
}
.btn-primary:hover { box-shadow: 0 12px 26px -10px rgba(14,124,103,.75); }
.btn-gold { background: linear-gradient(135deg, #A97B3F, #C9A564); color: #fff; box-shadow: 0 8px 20px -10px rgba(169,123,63,.55); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink-2); }
.btn-soft { background: var(--jade-soft); color: var(--jade); }
.btn-soft:hover { background: #D9EDE7; }
.btn-danger { background: var(--coral-soft); color: var(--coral); }
.btn-danger:hover { background: #F7DBD4; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12px; border-radius: 8px; }
.btn-xs { height: 27px; padding: 0 10px; font-size: 11.5px; border-radius: 7px; }
.btn-lg { height: 48px; font-size: 14px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; background: transparent; color: var(--ink-2); border-radius: 10px; cursor: pointer;
  transition: all .18s;
}
.icon-btn:hover { background: rgba(23,42,44,.06); }
.icon-btn .ic { width: 19px; height: 19px; }
.btn-group { display: inline-flex; gap: 8px; align-items: center; }

/* ---------- 徽标 / 头像 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px;
  border-radius: 20px; font-size: 11.5px; font-weight: 500; white-space: nowrap;
  background: var(--ink-soft); color: var(--ink-2); border: 1px solid transparent;
}
.badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-gold { background: var(--gold-soft); color: var(--gold); }
.badge-jade { background: var(--jade-soft); color: var(--jade); }
.badge-coral { background: var(--coral-soft); color: var(--coral); }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-violet { background: var(--violet-soft); color: var(--violet); }
.badge-ink { background: #EEF0EC; color: #5A6867; }
.avatar {
  width: 34px; height: 34px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: #fff; flex: none; letter-spacing: .02em;
  background: linear-gradient(135deg, #2FA98F, #0E7C67);
}
.avatar.sm { width: 30px; height: 30px; border-radius: 9px; font-size: 12px; }
.avatar-lg { width: 46px; height: 46px; border-radius: 14px; font-size: 17px; }
.avatar-gold { background: linear-gradient(135deg, #D5AE6E, #A97B3F); }
.avatar-blue { background: linear-gradient(135deg, #6FA0C9, #3C6C97); }
.avatar-violet { background: linear-gradient(135deg, #9A86C9, #65539A); }
.avatar-coral { background: linear-gradient(135deg, #E08D77, #C0553F); }
.avatar-ink { background: linear-gradient(135deg, #6C7C7A, #3E5254); }
.tag-chip {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; font-size: 11.5px;
  color: var(--ink-2); background: var(--surface-3); border-radius: 7px; border: 1px solid var(--line);
}
.tag-chip.tone-gold { background: var(--gold-soft); color: var(--gold); border-color: transparent; }
.tag-chip.tone-jade { background: var(--jade-soft); color: var(--jade); border-color: transparent; }
.tag-chip.tone-coral { background: var(--coral-soft); color: var(--coral); border-color: transparent; }
.tag-chip.tone-blue { background: var(--blue-soft); color: var(--blue); border-color: transparent; }
.tag-chip.tone-violet { background: var(--violet-soft); color: var(--violet); border-color: transparent; }

/* ---------- 应用框架 ---------- */
.app-shell { display: flex; min-height: 100vh; position: relative; z-index: 1; }
.sidebar {
  width: 252px; flex: none; position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; color: #E7E2D4;
  background:
    radial-gradient(700px 380px at 10% 0%, rgba(47,169,143,.16), transparent 60%),
    radial-gradient(600px 500px at 90% 100%, rgba(201,165,100,.10), transparent 55%),
    linear-gradient(180deg, #0D2522 0%, #0A1D1A 100%);
  border-right: 1px solid rgba(201,165,100,.14);
  transition: width .25s ease;
  z-index: 30;
}
.sidebar::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, transparent, rgba(201,165,100,.35), transparent); }
.brand { display: flex; align-items: center; gap: 11px; padding: 22px 20px 18px; position: relative; }
.brand-mark { width: 38px; height: 38px; color: #D5AE6E; flex: none; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-display); font-size: 21px; letter-spacing: .14em; color: #F7F2E4; font-weight: 500; }
.brand-text span { font-size: 10.5px; letter-spacing: .2em; color: rgba(231,226,212,.45); margin-top: 4px; }
.sidebar-toggle { margin-left: auto; background: transparent; border: 0; color: rgba(231,226,212,.5); cursor: pointer; padding: 6px; border-radius: 8px; }
.sidebar-toggle:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-scroll { flex: 1; overflow-y: auto; padding: 6px 12px 20px; scrollbar-width: thin; }
.nav-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); }
.nav-standalone { margin-bottom: 6px; }
.nav-group { margin-top: 18px; }
.nav-group-title { padding: 0 10px 8px; display: flex; align-items: center; gap: 8px; }
.nav-group-title span { font-size: 10.5px; letter-spacing: .18em; color: rgba(231,226,212,.34); white-space: nowrap; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 11px; height: 40px; padding: 0 12px;
  border-radius: 10px; color: rgba(231,226,212,.66); font-size: 13px; margin-bottom: 2px;
  transition: all .16s ease; white-space: nowrap;
}
.nav-item .ic { width: 17px; height: 17px; opacity: .8; }
.nav-item:hover { background: rgba(255,255,255,.055); color: #F5EFE1; }
.nav-item.active {
  background: linear-gradient(90deg, rgba(47,169,143,.22), rgba(47,169,143,.06));
  color: #FFF8E9; box-shadow: inset 0 0 0 1px rgba(47,169,143,.28);
}
.nav-item.active::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, #D5AE6E, #2FA98F); }
.nav-item.active .ic { color: #8FE3CF; opacity: 1; }
.sidebar-foot { padding: 14px 20px 18px; border-top: 1px solid rgba(255,255,255,.06); }
.sidebar-foot .company { font-size: 10.5px; color: rgba(231,226,212,.4); letter-spacing: .05em; }
.sidebar-foot .version { font-size: 10.5px; color: rgba(201,165,100,.55); margin-top: 4px; letter-spacing: .1em; }
body.sidebar-collapsed .sidebar { width: 78px; }
body.sidebar-collapsed .brand-text, body.sidebar-collapsed .nav-item span,
body.sidebar-collapsed .nav-group-title span, body.sidebar-collapsed .sidebar-foot,
body.sidebar-collapsed .sidebar-toggle { display: none; }
body.sidebar-collapsed .brand { justify-content: center; padding: 22px 0 18px; }
body.sidebar-collapsed .nav-item { justify-content: center; padding: 0; }
body.sidebar-collapsed .nav-item.active::before { left: -12px; }
body.sidebar-collapsed .nav-group { margin-top: 10px; }

.main-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 30px; position: sticky; top: 0; z-index: 20;
  background: rgba(243, 240, 232, .82); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(214, 204, 186, .55);
}
.topbar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.menu-btn { display: none; }
.crumb { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.crumb-group { letter-spacing: .06em; }
.crumb-sep { color: var(--line-strong); }
.crumb-current { color: var(--ink); font-weight: 500; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.global-search {
  display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 12px; width: 260px;
  background: rgba(255,255,255,.7); border: 1px solid var(--line); border-radius: 10px; transition: all .2s;
}
.global-search .ic { color: var(--muted-2); width: 16px; height: 16px; }
.global-search input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 12.5px; }
.global-search kbd { font-family: var(--font); font-size: 9.5px; color: var(--muted-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 4px; }
.global-search:focus-within { width: 300px; background: #fff; border-color: var(--jade-2); box-shadow: 0 0 0 3px rgba(47,169,143,.1); }
.notify-wrap, .user-wrap { position: relative; }
.notify-btn { position: relative; }
.notify-btn .dot {
  position: absolute; top: 4px; right: 3px; min-width: 16px; height: 16px; border-radius: 9px; padding: 0 4px;
  background: var(--coral); color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}
.user-chip { display: flex; align-items: center; gap: 9px; background: transparent; border: 0; cursor: pointer; padding: 4px 6px; border-radius: 12px; }
.user-chip:hover { background: rgba(255,255,255,.6); }
.user-meta { display: flex; flex-direction: column; text-align: left; line-height: 1.25; }
.user-meta strong { font-size: 12.5px; font-weight: 600; }
.user-meta em { font-style: normal; font-size: 10.5px; color: var(--muted); }
.user-chip > .ic { width: 14px; height: 14px; color: var(--muted); }
.popover {
  position: absolute; top: calc(100% + 10px); right: 0; width: 340px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-3);
  opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none; transition: all .18s ease; z-index: 40;
}
.popover.open { opacity: 1; transform: none; pointer-events: auto; }
.notify-pop .pop-head { padding: 16px 18px 12px; display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); }
.notify-pop .pop-head strong { font-size: 14px; }
.notify-pop .pop-head span { font-size: 11px; color: var(--muted); }
.pop-list { max-height: 320px; overflow-y: auto; padding: 8px; }
.notify-item { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; }
.notify-item:hover { background: var(--surface-2); }
.notify-item > div { flex: 1; min-width: 0; }
.notify-item strong { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notify-item span { font-size: 11px; color: var(--muted); }
.notify-item em { font-style: normal; font-size: 10.5px; color: var(--muted-2); }
.risk-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.risk-high { background: var(--coral); box-shadow: 0 0 0 4px rgba(192,85,63,.12); }
.risk-mid { background: var(--gold-2); box-shadow: 0 0 0 4px rgba(201,165,100,.15); }
.risk-low { background: var(--jade-2); box-shadow: 0 0 0 4px rgba(47,169,143,.12); }
.pop-foot { border-top: 1px solid var(--line); padding: 10px 18px; }
.pop-foot a { font-size: 12px; color: var(--jade); display: flex; justify-content: space-between; align-items: center; }
.empty-pop { padding: 28px; text-align: center; color: var(--muted-2); font-size: 12px; }
.user-pop { width: 290px; padding: 6px; }
.user-pop-head { display: flex; gap: 12px; align-items: center; padding: 14px; border-bottom: 1px solid var(--line); }
.user-pop-head strong { display: block; font-size: 14px; }
.user-pop-head span { font-size: 11.5px; color: var(--muted); }
.user-pop-body { padding: 8px; }
.user-pop-body a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; font-size: 12.5px; color: var(--ink-2); border-radius: 8px; }
.user-pop-body a:hover { background: var(--surface-2); color: var(--jade); }
.user-pop-body .ic { width: 16px; height: 16px; }
.user-pop-foot { border-top: 1px solid var(--line); padding: 8px; }
.user-pop-foot a { display: flex; align-items: center; gap: 9px; padding: 9px 10px; font-size: 12.5px; color: var(--coral); border-radius: 8px; }
.user-pop-foot a:hover { background: var(--coral-soft); }

.page-main { flex: 1; padding: 26px 30px 48px; min-width: 0; }
.page-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 50vh; color: var(--muted); gap: 14px; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(14,124,103,.15); border-top-color: var(--jade); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 页头 / KPI ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.page-title .eyebrow { font-size: 10.5px; letter-spacing: .2em; color: var(--gold); display: flex; align-items: center; gap: 8px; }
.page-title .eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--gold-2); }
.page-title h1 { font-family: var(--font-display); font-size: 29px; font-weight: 600; letter-spacing: .02em; margin: 8px 0 6px; }
.page-title p { color: var(--muted); font-size: 12.5px; max-width: 760px; }
.page-actions { display: flex; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.kpi-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.kpi-card {
  position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px 16px; box-shadow: var(--shadow-1);
  transition: transform .2s, box-shadow .2s;
}
.kpi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.kpi-card::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px; border-radius: 2px; background: var(--jade-2); opacity: .8; }
.kpi-card.tone-gold::before { background: var(--gold-2); }
.kpi-card.tone-coral::before { background: var(--coral); }
.kpi-card.tone-blue::before { background: var(--blue); }
.kpi-card.tone-violet::before { background: var(--violet); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi-label { font-size: 11.5px; color: var(--muted); letter-spacing: .05em; }
.kpi-icon { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--jade-soft); color: var(--jade); }
.kpi-icon .ic { width: 16px; height: 16px; }
.tone-gold .kpi-icon { background: var(--gold-soft); color: var(--gold); }
.tone-coral .kpi-icon { background: var(--coral-soft); color: var(--coral); }
.tone-blue .kpi-icon { background: var(--blue-soft); color: var(--blue); }
.tone-violet .kpi-icon { background: var(--violet-soft); color: var(--violet); }
.kpi-value { font-family: var(--font-num); font-size: 31px; line-height: 1.15; margin-top: 12px; letter-spacing: .01em; }
.kpi-value small { font-family: var(--font); font-size: 12px; color: var(--muted); margin-left: 4px; font-weight: 400; }
.kpi-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 11px; color: var(--muted); }
.delta { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 500; padding: 1px 6px; border-radius: 5px; }
.delta.up { color: var(--jade); background: var(--jade-soft); }
.delta.down { color: var(--coral); background: var(--coral-soft); }
.delta.flat { color: var(--muted); background: var(--surface-3); }

/* ---------- 面板 / 栅格 ---------- */
.grid-layout { display: grid; gap: 16px; }
.grid-2col { grid-template-columns: 1fr 1fr; }
.grid-3col { grid-template-columns: repeat(3, 1fr); }
.grid-8-4 { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
.grid-4-8 { grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr); }
.grid-5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-1); overflow: hidden; min-width: 0;
}
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 18px 20px 14px; }
.panel-head h3 { font-size: 15px; font-weight: 600; letter-spacing: .01em; display: flex; align-items: center; gap: 9px; }
.panel-head h3 .num { font-family: var(--font-num); font-size: 11px; color: var(--gold); border: 1px solid rgba(169,123,63,.25); border-radius: 4px; padding: 0 4px; line-height: 16px; }
.panel-head p { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.panel-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.panel-body { padding: 0 20px 20px; }
.panel-body.flush { padding: 0; }
.panel-body.pad { padding: 18px 20px; }
.chart { width: 100%; height: 300px; }
.chart.sm { height: 220px; }
.chart.lg { height: 380px; }
.chart.xl { height: 460px; }
.panel-foot { border-top: 1px solid var(--line); padding: 11px 20px; display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--muted); }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 12px; }
.section-title h4 { font-size: 13px; display: flex; align-items: center; gap: 8px; }
.section-title h4::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: linear-gradient(180deg, var(--gold-2), var(--jade-2)); }
.section-title span { font-size: 11.5px; color: var(--muted); }

/* ---------- 表格 ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.search-box { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; min-width: 220px; }
.search-box .ic { color: var(--muted-2); width: 15px; height: 15px; }
.search-box input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 12.5px; }
.search-box:focus-within { border-color: var(--jade-2); background: #fff; }
.toolbar .select { height: 38px; width: auto; min-width: 120px; font-size: 12.5px; background-color: var(--surface-2); }
.toolbar .input { height: 38px; width: 150px; font-size: 12.5px; background-color: var(--surface-2); }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.8px; }
.data-table thead th {
  position: sticky; top: 0; z-index: 2; text-align: left; font-weight: 500; font-size: 11.5px;
  color: var(--muted); letter-spacing: .04em; background: var(--surface-2);
  padding: 11px 16px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.data-table tbody td { padding: 12px 16px; border-bottom: 1px solid rgba(229,222,209,.65); vertical-align: middle; }
.data-table tbody tr { transition: background .15s; }
.data-table tbody tr:hover { background: #FBFAF5; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table .num { font-family: var(--font-num); font-size: 13.5px; letter-spacing: .01em; }
.data-table .muted { color: var(--muted); }
.data-table .name-link { font-weight: 600; color: var(--ink); cursor: pointer; border-bottom: 1px dashed transparent; }
.data-table .name-link:hover { color: var(--jade); border-bottom-color: rgba(14,124,103,.35); }
.data-table .cell-sub { display: block; font-size: 11px; color: var(--muted-2); margin-top: 2px; }
.data-table .actions { display: flex; gap: 4px; justify-content: flex-end; white-space: nowrap; }
.link-btn { background: transparent; border: 0; color: var(--jade); font-size: 12px; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.link-btn:hover { background: var(--jade-soft); }
.link-btn.danger { color: var(--coral); }
.link-btn.danger:hover { background: var(--coral-soft); }
.pager { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.pager-btns { display: flex; gap: 4px; }
.pager-btns button { min-width: 30px; height: 30px; border: 1px solid var(--line); background: #fff; border-radius: 7px; cursor: pointer; font-size: 12px; color: var(--ink-2); }
.pager-btns button:hover { border-color: var(--jade-2); color: var(--jade); }
.pager-btns button.active { background: var(--ink); color: #F5EFE1; border-color: var(--ink); }
.pager-btns button:disabled { opacity: .4; cursor: default; }
.empty-state { padding: 52px 20px; text-align: center; color: var(--muted-2); }
.empty-state .ic { width: 34px; height: 34px; opacity: .4; margin-bottom: 10px; }
.empty-state p { font-size: 12.5px; }
.view-switch { display: flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.view-switch button { border: 0; background: #fff; height: 36px; padding: 0 12px; font-size: 12px; color: var(--muted); cursor: pointer; display: flex; gap: 6px; align-items: center; }
.view-switch button.active { background: var(--ink); color: #F5EFE1; }
.view-switch .ic { width: 14px; height: 14px; }

/* ---------- 卡片布局 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; padding: 16px; }
.entity-card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 15px;
  padding: 16px; transition: all .2s; cursor: pointer; overflow: hidden;
}
.entity-card:hover { border-color: rgba(14,124,103,.35); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.entity-card::after { content: ""; position: absolute; top: 0; right: 0; width: 84px; height: 84px; background: radial-gradient(circle at 100% 0, rgba(201,165,100,.14), transparent 70%); pointer-events: none; }
.entity-card .ec-head { display: flex; gap: 11px; align-items: flex-start; }
.entity-card .ec-title { flex: 1; min-width: 0; }
.entity-card .ec-title strong { display: block; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entity-card .ec-title span { font-size: 11px; color: var(--muted); }
.entity-card .ec-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; margin-top: 14px; }
.entity-card .ec-meta label { display: block; font-size: 10px; color: var(--muted-2); letter-spacing: .06em; text-transform: uppercase; }
.entity-card .ec-meta b { font-family: var(--font-num); font-size: 15px; font-weight: 500; }
.entity-card .ec-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.entity-card .ec-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.entity-card .quick-actions { display: flex; gap: 4px; }

/* ---------- 时间轴 ---------- */
.timeline { position: relative; padding: 6px 0 6px 4px; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 10px; bottom: 12px; width: 1px; background: linear-gradient(180deg, var(--line-strong), rgba(214,204,186,.2)); }
.tl-item { position: relative; display: flex; gap: 14px; padding: 0 0 20px; }
.tl-dot { width: 32px; height: 32px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--jade); z-index: 1; }
.tl-dot .ic { width: 15px; height: 15px; }
.tl-body { flex: 1; min-width: 0; }
.tl-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.tl-head strong { font-size: 13px; }
.tl-head em { font-style: normal; font-size: 11px; color: var(--muted-2); }
.tl-text { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; line-height: 1.7; }
.tl-sub { font-size: 11px; color: var(--muted); margin-top: 5px; }

/* ---------- 详情 / 抽屉 / 弹窗 ---------- */
.overlay-root { position: relative; z-index: 100; }
.modal-layer { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal-mask { position: absolute; inset: 0; background: rgba(10, 27, 25, .48); backdrop-filter: blur(5px); animation: fadeIn .2s ease; }
.modal {
  position: relative; width: min(720px, 100%); max-height: min(86vh, 900px); display: flex; flex-direction: column;
  background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-3); overflow: hidden;
  animation: modalIn .24s cubic-bezier(.2, .8, .25, 1); border: 1px solid rgba(255,255,255,.6);
}
.modal.modal-lg { width: min(980px, 100%); }
.modal.modal-sm { width: min(480px, 100%); }
.modal::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold-2), var(--jade-2) 55%, transparent); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 14px; border-bottom: 1px solid var(--line); }
.modal-head .eyebrow { font-size: 10px; letter-spacing: .2em; color: var(--gold); }
.modal-head h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; margin-top: 5px; }
.modal-head p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.modal-close { width: 32px; height: 32px; border: 0; background: var(--surface-3); border-radius: 9px; cursor: pointer; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: var(--coral-soft); color: var(--coral); }
.modal-body { padding: 20px 24px; overflow-y: auto; flex: 1; }
.modal-body.flush { padding: 0; }
.modal-foot { padding: 14px 24px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 9px; background: var(--surface-2); }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } }
.drawer-layer { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: flex-end; }
.drawer-mask { position: absolute; inset: 0; background: rgba(10, 27, 25, .42); backdrop-filter: blur(3px); animation: fadeIn .2s; }
.drawer {
  position: relative; width: min(780px, 94vw); height: 100%; background: var(--bg); display: flex; flex-direction: column;
  box-shadow: -30px 0 80px -30px rgba(10,27,25,.5); animation: drawerIn .28s cubic-bezier(.2,.8,.25,1);
}
.drawer.wide { width: min(920px, 96vw); }
.drawer-head { padding: 22px 26px 16px; background: linear-gradient(135deg, #0C211E, #123B33); color: #F3EDDD; position: relative; }
.drawer-head::after { content: ""; position: absolute; left: 26px; right: 26px; bottom: 0; height: 1px; background: linear-gradient(90deg, rgba(201,165,100,.5), transparent); }
.drawer-head .eyebrow { font-size: 10px; letter-spacing: .2em; color: var(--gold-2); }
.drawer-head h2 { font-family: var(--font-display); font-size: 24px; font-weight: 500; margin: 8px 0 5px; }
.drawer-head p { font-size: 12px; color: rgba(243,237,221,.55); }
.drawer-close { position: absolute; top: 18px; right: 20px; background: rgba(255,255,255,.08); color: #fff; border: 0; width: 32px; height: 32px; border-radius: 9px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.drawer-close:hover { background: rgba(255,255,255,.18); }
.drawer-tabs { display: flex; gap: 2px; padding: 0 22px; background: #fff; border-bottom: 1px solid var(--line); overflow-x: auto; }
.drawer-tab { border: 0; background: transparent; padding: 14px 14px 12px; font-size: 12.5px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.drawer-tab:hover { color: var(--ink); }
.drawer-tab.active { color: var(--jade); border-bottom-color: var(--jade); font-weight: 500; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px 32px; }
.drawer-foot { padding: 14px 24px; background: #fff; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 9px; }
@keyframes drawerIn { from { transform: translateX(40px); opacity: .4; } }
.modal-stack .modal-layer { z-index: auto; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tab { border: 0; background: transparent; padding: 10px 14px; font-size: 12.5px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.tab.active { color: var(--jade); border-bottom-color: var(--jade); font-weight: 500; }
.segmented { display: inline-flex; padding: 3px; background: var(--surface-3); border-radius: 9px; gap: 2px; }
.segmented button { border: 0; background: transparent; height: 30px; padding: 0 12px; border-radius: 7px; font-size: 12px; color: var(--muted); cursor: pointer; }
.segmented button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(23,42,44,.1); }

/* ---------- 详情信息 ---------- */
.detail-hero { display: flex; gap: 16px; align-items: center; padding: 4px 0 18px; }
.detail-hero .avatar-lg { width: 58px; height: 58px; border-radius: 16px; font-size: 20px; }
.detail-hero h3 { font-size: 18px; font-weight: 600; }
.detail-hero p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.detail-row label { display: block; font-size: 10.5px; color: var(--muted-2); letter-spacing: .06em; margin-bottom: 3px; }
.detail-row span, .detail-row b { font-size: 13px; font-weight: 500; }
.detail-section { margin-top: 22px; }
.detail-section > h4 { font-size: 12.5px; color: var(--ink-2); letter-spacing: .04em; margin-bottom: 11px; display: flex; align-items: center; gap: 7px; }
.detail-section > h4::before { content: ""; width: 3px; height: 12px; background: var(--gold-2); border-radius: 2px; }
.insight-strip { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; background: var(--gold-soft); border-radius: 12px; border: 1px solid rgba(201,165,100,.25); font-size: 12px; color: #7A5A2C; line-height: 1.7; }
.insight-strip .ic { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.mini-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mini-stat { padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.mini-stat label { font-size: 10.5px; color: var(--muted); }
.mini-stat b { display: block; font-family: var(--font-num); font-size: 20px; margin-top: 3px; }
.score-ring { position: relative; width: 96px; height: 96px; flex: none; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring .inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score-ring .inner b { font-family: var(--font-num); font-size: 24px; line-height: 1; }
.score-ring .inner span { font-size: 9.5px; color: var(--muted); margin-top: 3px; letter-spacing: .08em; }

/* ---------- 流程 / 画布 ---------- */
.flow-canvas { position: relative; width: 100%; min-height: 460px; overflow: auto; background:
  linear-gradient(rgba(23,42,44,.045) 1px, transparent 1px),
  linear-gradient(90deg, rgba(23,42,44,.045) 1px, transparent 1px),
  radial-gradient(600px 300px at 30% 20%, rgba(47,169,143,.05), transparent 70%);
  background-size: 26px 26px, 26px 26px, auto; border-radius: 14px; border: 1px solid var(--line); }
.flow-inner { position: relative; width: 1080px; height: 460px; }
.flow-node {
  position: absolute; width: 172px; min-height: 66px; padding: 11px 13px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 22px -16px rgba(23,42,44,.5); z-index: 2;
}
.flow-node .fn-type { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.flow-node strong { display: block; font-size: 12.5px; margin-top: 3px; }
.flow-node span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.flow-node.type-trigger { border-left: 3px solid var(--gold-2); }
.flow-node.type-condition { border-left: 3px solid var(--violet); }
.flow-node.type-action { border-left: 3px solid var(--jade-2); }
.flow-node.type-notice { border-left: 3px solid var(--blue); }
.flow-node.type-end { border-left: 3px solid var(--ink-2); }
.flow-node:hover { box-shadow: var(--shadow-2); border-color: var(--jade-2); }
.flow-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.flow-svg path { fill: none; stroke: rgba(14,124,103,.4); stroke-width: 1.4; stroke-dasharray: 4 4; }
.flow-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
.flow-legend span { display: flex; align-items: center; gap: 6px; }
.flow-legend i { width: 8px; height: 8px; border-radius: 3px; }
.process-steps { display: flex; gap: 6px; flex-wrap: wrap; }
.step-pill { display: flex; align-items: center; gap: 7px; padding: 6px 11px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 20px; font-size: 11.5px; }
.step-pill i { width: 18px; height: 18px; border-radius: 50%; background: var(--jade-soft); color: var(--jade); display: flex; align-items: center; justify-content: center; font-size: 9.5px; font-style: normal; }

/* ---------- 组织树 / 标签云 ---------- */
.org-tree { padding: 4px 0; }
.org-node { padding: 8px 10px; border-radius: 9px; display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: 12.5px; }
.org-node:hover { background: var(--surface-2); }
.org-node.active { background: var(--jade-soft); color: var(--jade); }
.org-node .ic { width: 15px; height: 15px; color: var(--muted); }
.org-node b { font-weight: 500; }
.org-node span { margin-left: auto; font-size: 10.5px; color: var(--muted); }
.org-children { margin-left: 18px; border-left: 1px dashed var(--line-strong); padding-left: 8px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 9px; padding: 6px 0; }
.tag-cloud .tag-chip { height: 30px; padding: 0 13px; font-size: 12px; cursor: pointer; transition: all .15s; }
.tag-cloud .tag-chip:hover { transform: translateY(-1px); box-shadow: var(--shadow-1); }
.perm-matrix { width: 100%; border-collapse: collapse; font-size: 12px; }
.perm-matrix th, .perm-matrix td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.perm-matrix th { font-weight: 500; color: var(--muted); font-size: 11px; }
.perm-check { width: 16px; height: 16px; accent-color: var(--jade); }

/* ---------- 内容素材 ---------- */
.asset-card { display: flex; flex-direction: column; cursor: pointer; }
.asset-cover { height: 108px; border-radius: 11px; position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 12px; }
.asset-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 15%, rgba(255,255,255,.35), transparent 45%); }
.asset-cover .type-chip { position: relative; z-index: 1; background: rgba(255,255,255,.85); color: var(--ink); font-size: 10.5px; padding: 3px 8px; border-radius: 6px; }
.asset-cover.g1 { background: linear-gradient(135deg, #123B33, #2FA98F); }
.asset-cover.g2 { background: linear-gradient(135deg, #5C4323, #C9A564); }
.asset-cover.g3 { background: linear-gradient(135deg, #2C4661, #6FA0C9); }
.asset-cover.g4 { background: linear-gradient(135deg, #3F3564, #9A86C9); }
.asset-cover.g5 { background: linear-gradient(135deg, #5E2F26, #E08D77); }
.asset-cover.g6 { background: linear-gradient(135deg, #263A38, #7C8B8B); }
.asset-card h4 { font-size: 13.5px; margin: 12px 0 4px; line-height: 1.45; }
.asset-card p { font-size: 11.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 规则条件 ---------- */
.rule-list { display: grid; gap: 12px; }
.rule-card { border: 1px solid var(--line); border-radius: 14px; padding: 15px 17px; background: #fff; transition: all .18s; cursor: pointer; }
.rule-card:hover { border-color: rgba(14,124,103,.35); box-shadow: var(--shadow-1); }
.rule-card .rc-head { display: flex; align-items: center; gap: 10px; }
.rule-card .rc-head strong { font-size: 13.5px; flex: 1; }
.rule-card .rc-cond { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cond-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; padding: 4px 9px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.cond-chip b { color: var(--jade); font-weight: 500; }
.cond-builder { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 13px; }
.cond-row { display: grid; grid-template-columns: 1.2fr 100px 1fr 30px; gap: 8px; margin-bottom: 8px; }
.cond-row .select, .cond-row .input { height: 36px; font-size: 12px; background: #fff; }

/* ---------- 提示 / 其他 ---------- */
.toast-root { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { display: flex; align-items: center; gap: 9px; background: #102B27; color: #F3EDDD; padding: 10px 18px; border-radius: 10px; font-size: 12.5px; box-shadow: var(--shadow-3); animation: toastIn .22s ease; }
.toast.success { border-left: 3px solid var(--jade-2); }
.toast.error { border-left: 3px solid var(--coral); }
.toast .ic { width: 16px; height: 16px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } }
.banner {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 16px; margin-bottom: 16px;
  background: linear-gradient(120deg, #0D2522, #17443B); color: #F0E9D8; position: relative; overflow: hidden;
}
.banner::after { content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(201,165,100,.25); }
.banner h2 { font-family: var(--font-display); font-size: 20px; font-weight: 500; }
.banner p { font-size: 11.5px; color: rgba(240,233,216,.55); margin-top: 3px; }
.banner .kpi-inline { margin-left: auto; display: flex; gap: 30px; position: relative; z-index: 1; }
.banner .kpi-inline div { text-align: right; }
.banner .kpi-inline b { font-family: var(--font-num); font-size: 24px; font-weight: 500; }
.banner .kpi-inline span { display: block; font-size: 10px; color: rgba(240,233,216,.5); letter-spacing: .08em; }
.check-list { display: grid; gap: 9px; }
.check-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface-2); border-radius: 10px; font-size: 12px; }
.check-item .ic { width: 15px; height: 15px; color: var(--jade); }
.check-item.warn .ic { color: var(--coral); }
.check-item b { margin-left: auto; font-weight: 500; }
.progress { height: 6px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--jade), var(--jade-2)); }
.progress.gold > i { background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.progress.coral > i { background: linear-gradient(90deg, var(--coral), #E08D77); }
.progress-row { display: flex; align-items: center; gap: 10px; font-size: 11.5px; }
.progress-row .progress { flex: 1; }
.progress-row b { font-family: var(--font-num); font-weight: 500; min-width: 38px; text-align: right; }
.legend-dots { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; color: var(--muted); }
.legend-dots span { display: flex; align-items: center; gap: 5px; }
.legend-dots i { width: 7px; height: 7px; border-radius: 50%; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.flex { display: flex; } .flex-between { display: flex; align-items: center; justify-content: space-between; } .items-center { align-items: center; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.muted { color: var(--muted); }
.small { font-size: 11.5px; }
.nowrap { white-space: nowrap; }
.fade-in { animation: fadeIn .3s ease; }

/* ---------- 响应式 ---------- */
@media (max-width: 1360px) {
  .kpi-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
  .global-search { width: 210px; }
}
@media (max-width: 1180px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-8-4, .grid-4-8, .grid-5-7, .grid-2col, .grid-3col { grid-template-columns: 1fr; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-form-side { min-height: 100vh; }
}
@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .sidebar { position: fixed; left: 0; transform: translateX(-100%); }
  body.sidebar-open .sidebar { transform: none; }
  .page-main { padding: 20px 16px 40px; }
  .topbar { padding: 0 16px; }
  .global-search { display: none; }
  .user-meta { display: none; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .form-grid, .grid-2, .grid-3, .detail-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .modal { max-height: 92vh; }
  .card-grid { grid-template-columns: 1fr; }
  .banner { flex-direction: column; align-items: flex-start; }
  .banner .kpi-inline { margin-left: 0; }
}
