/* =============================================================
   丽人荟 CRM · 东方美学 · 离火紫 · 熔金
   ============================================================= */
:root {
  --bg-0: #0B0614;
  --bg-1: #1A0D2E;
  --bg-2: #2A1040;
  --bg-3: #120028;
  --gold: #E2B86C;
  --gold-soft: #D4A574;
  --gold-dim: #A98A5B;
  --rose: #C44D8C;
  --rose-deep: #9E3570;
  --violet: #8B3AAF;
  --ink: #F2EAF8;
  --ink-2: #D4C5E2;
  --ink-dim: #9B8AAA;
  --line: rgba(226, 184, 108, 0.14);
  --line-strong: rgba(226, 184, 108, 0.28);
  --card: rgba(255, 255, 255, 0.035);
  --card-hover: rgba(255, 255, 255, 0.065);
  --card-rose: rgba(196, 77, 140, 0.08);
  --shadow: 0 14px 44px rgba(5, 0, 16, 0.45);
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  --r-lg: 18px;
  --r-md: 13px;
  --r-sm: 9px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink-2);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-size: 14px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
.hidden { display: none !important; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: rgba(226,184,108,0.16); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(226,184,108,0.3); }
::-webkit-scrollbar-track { background: transparent; }

/* ============ 背景氛围 ============ */
#bg-fx {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1100px 620px at 82% -8%, rgba(196, 77, 140, 0.16), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(139, 58, 175, 0.14), transparent 55%),
    radial-gradient(760px 520px at 55% 118%, rgba(226, 184, 108, 0.08), transparent 55%),
    linear-gradient(160deg, #0B0614 0%, #140B26 34%, #1A0D2E 58%, #120028 100%);
}
#fx-layer { position: fixed; inset: 0; z-index: 9998; pointer-events: none; overflow: hidden; }

/* ============ 金色线性 SVG 图标 ============ */
svg.ic { width: 1.35em; height: 1.35em; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--r-sm); border: 1px solid transparent;
  font-size: 14px; font-weight: 600; letter-spacing: .02em;
  transition: all .22s cubic-bezier(.4, 0, .2, 1); position: relative; overflow: hidden;
}
.btn-primary {
  color: #1A0D2E; background: linear-gradient(135deg, #F0D08A 0%, #E2B86C 45%, #C9944B 100%);
  box-shadow: 0 6px 20px rgba(226, 184, 108, 0.22);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(226, 184, 108, 0.34); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  color: var(--gold); background: rgba(226, 184, 108, 0.06); border-color: var(--line-strong);
}
.btn-ghost:hover { background: rgba(226, 184, 108, 0.12); }
.btn-rose { color: #fff; background: linear-gradient(135deg, #D76C9F, #C44D8C); box-shadow: 0 6px 20px rgba(196,77,140,0.24); }
.btn-rose:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(196,77,140,0.36); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--gold); display: inline-flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.icon-btn:hover { background: var(--card-hover); border-color: var(--line-strong); }

/* ============ 登录 ============ */
.login-view {
  position: relative; z-index: 2; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.login-aurora {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.login-aurora::before {
  content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%;
  left: 50%; top: 42%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(196,77,140,0.22), rgba(139,58,175,0.10) 45%, transparent 70%);
  animation: auroraPulse 7s ease-in-out infinite;
}
.login-card {
  position: relative; width: 100%; max-width: 400px; padding: 46px 40px 38px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 22px;
  backdrop-filter: blur(18px); box-shadow: var(--shadow);
  animation: riseIn .8s cubic-bezier(.22, 1, .36, 1) both;
}
.login-brand { text-align: center; margin-bottom: 30px; }
.brand-mark {
  width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 16px;
  background: linear-gradient(140deg, #1A0D2E, #2A1040);
  border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(196,77,140,0.28), inset 0 0 22px rgba(226,184,108,0.08);
}
.brand-mark.sm { width: 38px; height: 38px; margin: 0; border-radius: 11px; }
.brand-name { font-family: var(--serif); font-size: 27px; font-weight: 700; color: var(--ink); letter-spacing: .04em; }
.brand-name span { color: var(--gold); font-weight: 600; }
.brand-sub { margin-top: 7px; font-size: 12.5px; color: var(--ink-dim); letter-spacing: .22em; }
.field { display: block; margin-bottom: 18px; }
.field-label { display: block; font-size: 12.5px; color: var(--gold); letter-spacing: .1em; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.045); border: 1px solid var(--line);
  color: var(--ink); font-size: 14px; outline: none; transition: border .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(226, 184, 108, 0.12);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-dim); }
.login-hint { text-align: center; margin-top: 16px; font-size: 12.5px; color: var(--ink-dim); min-height: 18px; }

/* ============ 应用布局 ============ */
.app-shell { position: relative; z-index: 2; display: flex; min-height: 100vh; }
.sidebar {
  width: 232px; flex-shrink: 0; display: flex; flex-direction: column;
  background: rgba(11, 6, 20, 0.72); backdrop-filter: blur(20px);
  border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh;
  padding: 22px 14px;
}
.side-brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 20px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.side-brand-name { font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.1; }
.side-brand-sub { font-size: 10.5px; letter-spacing: .34em; color: var(--gold); }
.side-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: var(--r-sm);
  color: var(--ink-dim); font-size: 14px; font-weight: 500; transition: all .2s; cursor: pointer;
}
.nav-item .nav-ic { display: inline-flex; align-items: center; justify-content: center; width: 20px; }
.nav-item:hover { color: var(--ink-2); background: rgba(255, 255, 255, 0.04); }
.nav-item.active {
  color: var(--gold); background: linear-gradient(135deg, rgba(226,184,108,0.14), rgba(196,77,140,0.10));
  border: 1px solid var(--line-strong);
}
.nav-item.active .nav-ic { color: var(--gold); }
.side-foot { border-top: 1px solid var(--line); padding-top: 14px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 6px 8px; cursor: pointer; border-radius: var(--r-sm); transition: background .2s; }
.side-user:hover { background: rgba(255,255,255,0.04); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #E2B86C, #C44D8C); color: #1A0D2E;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; font-family: var(--serif);
}
.side-user-info { min-width: 0; }
.side-user-name { font-size: 13px; color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user-role { font-size: 11px; color: var(--ink-dim); }

/* 主区域 */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px; gap: 16px;
  background: rgba(11, 6, 20, 0.62); backdrop-filter: blur(20px); border-bottom: 1px solid var(--line);
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--gold); width: 38px; height: 38px; border-radius: 10px; align-items: center; justify-content: center; }
.page-title { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: .03em; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.top-search { position: relative; display: flex; align-items: center; }
.search-ic { position: absolute; left: 13px; color: var(--ink-dim); display: inline-flex; }
.top-search input {
  width: 240px; padding: 10px 14px 10px 40px; border-radius: 10px;
  background: rgba(255,255,255,0.045); border: 1px solid var(--line); color: var(--ink);
  font-size: 13.5px; outline: none; transition: all .2s;
}
.top-search input:focus { border-color: var(--gold); width: 300px; box-shadow: 0 0 0 3px rgba(226,184,108,0.1); }
.top-user { display: flex; align-items: center; gap: 9px; padding: 5px 6px 5px 10px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); cursor: pointer; }
.top-user .side-user-name { font-size: 13px; }

.content { flex: 1; padding: 26px 28px 48px; max-width: 1400px; width: 100%; margin: 0 auto; }

/* ============ 通用组件 ============ */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head-t { }
.page-head-title { font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--ink); letter-spacing: .03em; }
.page-head-sub { font-size: 13px; color: var(--ink-dim); margin-top: 4px; }
.page-head-actions { display: flex; gap: 10px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 20px; transition: all .25s;
}
.card-glass { backdrop-filter: blur(10px); }
.card:hover { border-color: var(--line-strong); background: var(--card-hover); }

.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* 统计卡 */
.stat-card { position: relative; overflow: hidden; }
.stat-card::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle, rgba(226,184,108,0.10), transparent 70%);
}
.stat-label { font-size: 12.5px; color: var(--ink-dim); letter-spacing: .06em; }
.stat-value { font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--ink); margin-top: 6px; line-height: 1.1; }
.stat-value small { font-size: 14px; color: var(--gold); margin-left: 4px; }
.stat-ic { position: absolute; right: 16px; top: 16px; color: var(--gold); opacity: .8; }
.stat-sub { font-size: 12px; color: var(--ink-dim); margin-top: 8px; }
.stat-sub b { color: var(--gold); }

/* 分段标题 */
.sec-title { font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: .04em; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.sec-title::before { content: ""; width: 3px; height: 16px; border-radius: 2px; background: linear-gradient(180deg, #E2B86C, #C44D8C); }

/* 漏斗 */
.funnel { display: flex; flex-direction: column; gap: 10px; }
.funnel-row { display: flex; align-items: center; gap: 12px; }
.funnel-label { width: 44px; text-align: right; font-size: 13px; color: var(--ink-2); flex-shrink: 0; }
.funnel-bar-wrap { flex: 1; height: 26px; border-radius: 7px; background: rgba(255,255,255,0.04); overflow: hidden; position: relative; }
.funnel-bar { height: 100%; border-radius: 7px; transition: width .8s cubic-bezier(.22,1,.36,1); display: flex; align-items: center; padding-left: 10px; font-size: 12px; color: #1A0D2E; font-weight: 700; min-width: 0; }
.funnel-count { width: 34px; font-size: 13px; color: var(--gold); font-weight: 600; }

/* 分层环 / 卡片 */
.layer-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.layer-item { text-align: center; padding: 16px 8px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); position: relative; overflow: hidden; transition: all .22s; cursor: pointer; }
.layer-item:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.layer-dot { width: 12px; height: 12px; border-radius: 50%; margin: 0 auto 8px; box-shadow: 0 0 12px currentColor; }
.layer-name { font-family: var(--serif); font-size: 15px; font-weight: 700; color: var(--ink); }
.layer-count { font-size: 24px; font-weight: 700; color: var(--ink); margin-top: 2px; }
.layer-amount { font-size: 11.5px; color: var(--ink-dim); margin-top: 4px; }

/* 标签 pill */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 20px; font-size: 12px; border: 1px solid; white-space: nowrap; }
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* 徽章 */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; border: 1px solid; }

/* 客户卡片 / 表格 */
.customer-table { width: 100%; border-collapse: collapse; }
.customer-table th { text-align: left; padding: 12px 14px; font-size: 12px; color: var(--ink-dim); letter-spacing: .06em; font-weight: 500; border-bottom: 1px solid var(--line); white-space: nowrap; }
.customer-table td { padding: 13px 14px; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 13.5px; vertical-align: middle; }
.customer-table tbody tr { transition: background .15s; cursor: pointer; }
.customer-table tbody tr:hover { background: rgba(226,184,108,0.05); }
.customer-name { color: var(--ink); font-weight: 600; font-family: var(--serif); font-size: 14.5px; }
.customer-sub { font-size: 12px; color: var(--ink-dim); }
.customer-cell { display: flex; align-items: center; gap: 11px; }

/* 筛选栏 */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font-size: 13px; cursor: pointer; transition: all .18s; white-space: nowrap; }
.filter-chip:hover { border-color: var(--line-strong); }
.filter-chip.active { color: #1A0D2E; background: linear-gradient(135deg, #F0D08A, #E2B86C); border-color: transparent; font-weight: 600; }
.filter-chip .chip-dot { width: 8px; height: 8px; border-radius: 50%; }
.filter-chip.active .chip-dot { display: none; }

/* 详情 */
.detail-hero { display: flex; align-items: center; gap: 18px; padding: 26px; flex-wrap: wrap; }
.detail-avatar { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, #E2B86C, #C44D8C); color: #1A0D2E; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 28px; font-weight: 700; box-shadow: 0 10px 30px rgba(196,77,140,0.3); flex-shrink: 0; }
.detail-id { flex: 1; min-width: 180px; }
.detail-name { font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.detail-meta { font-size: 13px; color: var(--ink-dim); margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.detail-meta b { color: var(--ink-2); font-weight: 500; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.rfm-panel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.rfm-box { text-align: center; padding: 16px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); }
.rfm-box .rfm-label { font-size: 12px; color: var(--ink-dim); letter-spacing: .1em; }
.rfm-box .rfm-value { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--gold); margin-top: 4px; }
.rfm-box .rfm-sub { font-size: 11px; color: var(--ink-dim); margin-top: 2px; }

/* 时间线 */
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: var(--line-strong); }
.tl-item { position: relative; padding: 0 0 20px 10px; }
.tl-item::before { content: ""; position: absolute; left: -19px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px rgba(226,184,108,0.6); }
.tl-item.rose::before { background: var(--rose); box-shadow: 0 0 10px rgba(196,77,140,0.6); }
.tl-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tl-type { font-size: 12px; padding: 1px 8px; border-radius: 20px; border: 1px solid var(--line-strong); color: var(--gold); }
.tl-time { font-size: 11.5px; color: var(--ink-dim); }
.tl-content { font-size: 13.5px; color: var(--ink-2); margin-top: 5px; }
.tl-next { font-size: 12px; color: var(--gold); margin-top: 4px; }

/* 表单 */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.tag-select { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: rgba(255,255,255,0.03); min-height: 44px; }
.tag-option { padding: 5px 13px; border-radius: 20px; border: 1px solid var(--line); color: var(--ink-dim); font-size: 13px; cursor: pointer; transition: all .15s; }
.tag-option:hover { border-color: var(--line-strong); color: var(--ink-2); }
.tag-option.on { color: #1A0D2E; background: linear-gradient(135deg, #F0D08A, #E2B86C); border-color: transparent; font-weight: 600; }

/* 模态 */
.modal-overlay { position: fixed; inset: 0; z-index: 9990; background: rgba(5,0,16,0.62); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn .25s both; }
.modal { width: 100%; max-width: 720px; max-height: 90vh; overflow-y: auto; background: linear-gradient(160deg, #1A0D2E, #140B26); border: 1px solid var(--line-strong); border-radius: 20px; box-shadow: var(--shadow); padding: 26px; animation: riseIn .35s cubic-bezier(.22,1,.36,1) both; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-title { font-family: var(--serif); font-size: 19px; font-weight: 700; color: var(--ink); }
.modal-close { background: none; border: 1px solid var(--line); color: var(--ink-dim); width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.modal-close:hover { color: var(--ink); border-color: var(--line-strong); }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

/* toast */
#toast-root { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { padding: 12px 18px; border-radius: 11px; background: linear-gradient(135deg, #1A0D2E, #2A1040); border: 1px solid var(--line-strong); color: var(--ink); font-size: 13.5px; box-shadow: var(--shadow); animation: toastIn .3s cubic-bezier(.22,1,.36,1) both; display: flex; align-items: center; gap: 9px; }
.toast.ok { border-color: rgba(111,183,160,0.5); }
.toast.err { border-color: rgba(232,114,106,0.5); }

/* 空状态 */
.empty { text-align: center; padding: 60px 20px; color: var(--ink-dim); }
.empty .empty-ic { font-size: 40px; color: var(--gold); opacity: .4; margin-bottom: 14px; display: flex; justify-content: center; }
.empty-title { font-family: var(--serif); font-size: 16px; color: var(--ink-2); margin-bottom: 6px; }

/* AI 卡片 */
.ai-box { border: 1px solid rgba(196,77,140,0.3); background: linear-gradient(150deg, rgba(196,77,140,0.07), rgba(139,58,175,0.05)); border-radius: var(--r-md); padding: 18px; }
.ai-box-head { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.ai-box-head .ai-ic { color: var(--rose); display: inline-flex; }
.ai-box-head span { font-family: var(--serif); font-size: 14.5px; color: var(--ink); font-weight: 700; letter-spacing: .04em; }
.ai-box-head .ai-badge { margin-left: auto; font-size: 10.5px; letter-spacing: .2em; color: var(--rose); border: 1px solid rgba(196,77,140,0.4); padding: 1px 8px; border-radius: 20px; }
.ai-content { font-size: 13.5px; color: var(--ink-2); white-space: pre-wrap; line-height: 1.85; }

/* ============ 动画 ============ */
@keyframes riseIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes auroraPulse { 0%,100% { transform: translate(-50%,-50%) scale(1); opacity: .8; } 50% { transform: translate(-50%,-50%) scale(1.12); opacity: 1; } }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp .5s cubic-bezier(.22,1,.36,1) both; }
.stagger > * { animation: fadeUp .5s cubic-bezier(.22,1,.36,1) both; }
.stagger > *:nth-child(1) { animation-delay: .02s; } .stagger > *:nth-child(2) { animation-delay: .07s; }
.stagger > *:nth-child(3) { animation-delay: .12s; } .stagger > *:nth-child(4) { animation-delay: .17s; }
.stagger > *:nth-child(5) { animation-delay: .22s; } .stagger > *:nth-child(6) { animation-delay: .27s; }

/* 熔金流光标题 */
.gold-shimmer {
  background: linear-gradient(100deg, #E2B86C 20%, #F7E3B0 42%, #E2B86C 60%);
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shimmer 5s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

/* ============ 响应式 ============ */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .layer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .sidebar { position: fixed; left: -250px; z-index: 100; transition: left .28s cubic-bezier(.22,1,.36,1); height: 100vh; }
  .sidebar.open { left: 0; box-shadow: 20px 0 60px rgba(5,0,16,0.6); }
  .menu-toggle { display: inline-flex; }
  .content { padding: 20px 16px 44px; }
  .topbar { padding: 12px 16px; }
  .top-search input { width: 130px; }
  .top-search input:focus { width: 160px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .layer-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .rfm-panel { grid-template-columns: repeat(3, 1fr); }
  .customer-table { display: block; overflow-x: auto; }
}
@media (max-width: 520px) {
  .layer-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-hero { padding: 20px; }
  .stat-value { font-size: 24px; }
  .page-head-title { font-size: 20px; }
  .brand-name { font-size: 24px; }
  .login-card { padding: 36px 24px 30px; }
}
