/* =========================================================
   STARWAY CRM 设计系统 v2
   主色取自 Logo：红 #C22D33 / 炭黑 #372C2B
   ========================================================= */
:root {
  /* 品牌色 */
  --brand-700: #9E1F26;
  --brand-600: #C22D33;
  --brand-500: #D9454B;
  --brand-200: #F3C6C8;
  --brand-100: #FBE9EA;
  --brand-50:  #FEF6F6;

  /* 炭黑（Logo 第二色） */
  --ink-900: #241A19;
  --ink-800: #372C2B;
  --ink-700: #4B3E3D;
  --ink-500: #6E6260;
  --ink-400: #8C807E;
  --ink-300: #A79C9A;

  /* 中性 */
  --bg: #F7F4F3;
  --surface: #FFFFFF;
  --surface-2: #FBF9F8;
  --border: #EBE5E3;
  --border-strong: #DCD4D1;

  /* 语义色 */
  --success: #2F9E5F;
  --success-bg: #EAF7EF;
  --warning: #D9822B;
  --warning-bg: #FDF3E7;
  --danger: #B3261E;
  --danger-bg: #FBEAE9;
  --info: #3B7EA1;
  --info-bg: #EAF3F8;

  /* 文字 */
  --text: #2A211F;
  --text-2: #6E6260;
  --text-3: #A79C9A;

  /* 形状与阴影 */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-xs: 0 1px 2px rgba(42, 33, 31, .05);
  --shadow-sm: 0 2px 8px rgba(42, 33, 31, .06);
  --shadow-md: 0 8px 24px rgba(42, 33, 31, .10);
  --shadow-brand: 0 6px 18px rgba(194, 45, 51, .28);

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font: 14px/1.6 var(--font); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }
::selection { background: var(--brand-100); color: var(--brand-700); }

/* ============ 应用骨架 ============ */
.app-shell { display: flex; min-height: 100vh; }

/* ---------- 侧边栏 ---------- */
.sidebar {
  width: 228px; flex-shrink: 0; background: var(--ink-800); color: #fff;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
  background-image: linear-gradient(180deg, rgba(194,45,51,.14) 0%, rgba(194,45,51,0) 32%);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 20px 18px 18px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--brand-600);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px;
  color: #fff; box-shadow: 0 4px 12px rgba(194,45,51,.45); flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text b { font-size: 15px; letter-spacing: .06em; font-weight: 700; color: #fff; }
.brand-text i { font-style: normal; font-size: 10px; letter-spacing: .12em; color: rgba(255,255,255,.5); }

.side-nav { flex: 1; padding: 6px 12px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.side-group { font-size: 10px; letter-spacing: .12em; color: rgba(255,255,255,.34); padding: 16px 10px 6px; }
.side-item {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px;
  color: rgba(255,255,255,.72); font-size: 13.5px; font-weight: 500; position: relative;
  transition: background .15s, color .15s;
}
.side-item svg { width: 17px; height: 17px; flex-shrink: 0; opacity: .85; }
.side-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.side-item.active { background: var(--brand-600); color: #fff; box-shadow: 0 4px 14px rgba(194,45,51,.4); }
.side-item.active svg { opacity: 1; }

.side-foot { padding: 12px; border-top: 1px solid rgba(255,255,255,.08); position: relative; }
.side-user {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px;
  cursor: pointer; transition: background .15s;
}
.side-user:hover { background: rgba(255,255,255,.07); }
.side-user .avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--brand-600); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.side-user .uinfo { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.side-user .uinfo b { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .uinfo i { font-style: normal; font-size: 11px; color: rgba(255,255,255,.45); }

/* ---------- 主区 ---------- */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 56px; background: rgba(255,255,255,.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border); display: flex; align-items: center;
  gap: 14px; padding: 0 28px; position: sticky; top: 0; z-index: 40;
}
.topbar .crumbs { font-size: 13px; color: var(--text-3); display: flex; align-items: center; gap: 8px; }
.topbar .crumbs b { color: var(--text); font-weight: 600; font-size: 14px; }
.topbar .spacer { flex: 1; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.bell { position: relative; cursor: pointer; width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; color: var(--ink-500); transition: all .15s; }
.bell:hover { background: var(--brand-50); color: var(--brand-600); }
.bell .cnt { position: absolute; top: 2px; right: 1px; min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--brand-600); color: #fff; border-radius: 8px; font-size: 10px; line-height: 16px;
  text-align: center; font-weight: 600; box-shadow: 0 0 0 2px #fff; }
.hamburger { display: none; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--border);
  background: #fff; align-items: center; justify-content: center; cursor: pointer; }

.page-wrap { padding: 24px 28px 56px; max-width: 1440px; width: 100%; }

/* ---------- 页面头 ---------- */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; }
.page-title { font-size: 22px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.page-sub { color: var(--text-2); font-size: 13px; margin-top: 3px; }

/* ---------- 卡片 ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); overflow: hidden; }
.card-pad { padding: 18px 22px; }
.card:hover { box-shadow: var(--shadow-sm); }
.card h3 { font-size: 14px; font-weight: 600; padding: 16px 20px 0; color: var(--text); }

/* ---------- 看板 Hero ---------- */
.hero-band {
  position: relative; border-radius: var(--radius-lg); padding: 22px 26px; margin-bottom: 18px;
  background: linear-gradient(112deg, #8E1B20 0%, var(--brand-600) 52%, #D9454B 100%);
  color: #fff; overflow: hidden; box-shadow: var(--shadow-brand);
}
.hero-band::after {
  content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px;
  border-radius: 50%; background: rgba(255,255,255,.09);
}
.hero-band::before {
  content: ""; position: absolute; right: 90px; bottom: -110px; width: 200px; height: 200px;
  border-radius: 50%; background: rgba(255,255,255,.06);
}
.hero-band .hb-title { font-size: 20px; font-weight: 700; letter-spacing: .01em; }
.hero-band .hb-sub { font-size: 13px; opacity: .86; margin-top: 4px; }
.hero-band .hb-tags { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.hero-band .hb-tag { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22);
  padding: 4px 12px; border-radius: 999px; font-size: 12px; }

/* ---------- KPI ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; position: relative; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.kpi::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand-600); opacity: .9; }
.kpi.k-green::after { background: var(--success); }
.kpi.k-amber::after { background: var(--warning); }
.kpi.k-red::after { background: var(--brand-600); }
.kpi .k-label { font-size: 12px; color: var(--text-2); font-weight: 500; }
.kpi .k-value { font-size: 26px; font-weight: 700; margin-top: 6px; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; color: var(--text); line-height: 1.15; }
.kpi .k-value.small { font-size: 19px; }
.kpi .k-foot { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; padding: 11px 14px; color: var(--text-3); font-weight: 600; font-size: 11.5px;
  letter-spacing: .03em; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl td { padding: 10px 14px; border-bottom: 1px solid #F3EEEC; vertical-align: middle; color: var(--text); white-space: nowrap; }
.tbl tbody tr { cursor: pointer; transition: background .12s; }
.tbl tbody tr:hover { background: var(--brand-50); }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl .num { font-variant-numeric: tabular-nums; text-align: right; }
.tbl th.num { text-align: right; }
.tbl th.sticky, .tbl td.sticky { position: sticky; left: 0; background: #fff; box-shadow: 1px 0 0 #F3EEEC; }
.tbl th.sticky { background: var(--surface-2); z-index: 2; }
.tbl td.sticky { z-index: 1; }
.tbl tbody tr:hover td.sticky { background: var(--brand-50); }
.mono { font-family: var(--mono); font-size: 12px; color: var(--ink-700); }

/* ---------- 徽章 ---------- */
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 1.6; }
.st-progress { background: var(--brand-100); color: var(--brand-700); }
.st-wait { background: var(--warning-bg); color: #A85F12; }
.st-done { background: var(--success-bg); color: #1E7A47; }
.st-cancel { background: #F1ECEA; color: var(--ink-500); }
.tag-new { background: var(--brand-600); color: #fff; }
.tag-old { background: #F1ECEA; color: var(--ink-500); }
.tag-warn { background: var(--brand-600); color: #fff; }
.rate-bar { display: inline-block; width: 56px; height: 6px; background: #F1ECEA; border-radius: 3px; overflow: hidden; vertical-align: middle; margin-right: 4px; }
.rate-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-500), var(--brand-600)); border-radius: 3px; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 16px;
  border-radius: 9px; border: 1px solid var(--border-strong); background: #fff; color: var(--text);
  font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--font);
  transition: all .15s; white-space: nowrap; }
.btn:hover { background: var(--surface-2); border-color: var(--ink-300); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-600); border-color: var(--brand-600); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.btn-sm { padding: 5px 11px; font-size: 12px; border-radius: 7px; }
.btn-danger { color: var(--danger); border-color: #F0CFCC; background: #fff; }
.btn-danger:hover { background: var(--danger-bg); border-color: var(--danger); color: var(--danger); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* ---------- 表单 ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filter-bar .grow { flex: 1; }
.input, .select { padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: 9px; font-size: 13px;
  font-family: var(--font); background: #fff; color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus, .select:focus { border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(194,45,51,.12); }
.input::placeholder { color: var(--text-3); }
.input.w-sm { width: 132px; }
.input.w-md { width: 240px; }
.select.w-sm { width: 128px; }

/* ---------- 弹窗 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(36, 26, 25, .52); z-index: 100; display: none;
  align-items: flex-start; justify-content: center; overflow-y: auto; padding: 44px 16px; backdrop-filter: blur(2px); }
.modal-mask.show { display: flex; }
.modal { background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 760px;
  box-shadow: 0 24px 64px rgba(36,26,25,.28); animation: modalIn .18s ease-out; }
@keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }
.modal.narrow { max-width: 470px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px;
  border-bottom: 1px solid var(--border); position: sticky; top: 0; background: #fff; border-radius: var(--radius-lg) var(--radius-lg) 0 0; z-index: 1; }
.modal-title { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.modal-close { border: none; background: none; font-size: 22px; color: var(--text-3); cursor: pointer; line-height: 1; padding: 2px 6px; border-radius: 6px; }
.modal-close:hover { color: var(--text); background: var(--surface-2); }
.modal-body { padding: 20px 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 15px 22px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 18px; }
.form-grid .span2 { grid-column: span 2; }
.form-grid .span3 { grid-column: span 3; }
.fi label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 5px; font-weight: 500; }
.fi label .req { color: var(--brand-600); }
.fi .input, .fi .select { width: 100%; }
.section-title { font-size: 13px; font-weight: 700; color: var(--text); margin: 20px 0 12px; padding-top: 16px;
  border-top: 1px dashed var(--border-strong); display: flex; align-items: center; justify-content: space-between; }
.section-title:first-child { margin-top: 0; padding-top: 0; border-top: none; }

/* ---------- 待办 ---------- */
.todo-item { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid #F5F0EE; cursor: pointer; transition: background .12s; }
.todo-item:hover { background: var(--brand-50); }
.todo-item:last-child { border-bottom: none; }
.todo-type { flex-shrink: 0; }
.todo-main { flex: 1; min-width: 0; }
.todo-desc { color: var(--text-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.todo-date { font-size: 12px; color: var(--text-3); flex-shrink: 0; font-variant-numeric: tabular-nums; }
.todo-group { border-bottom: 1px solid #F5F0EE; }
.todo-group:last-child { border-bottom: none; }
.todo-group-head { display: flex; align-items: center; gap: 8px; padding: 12px 18px; cursor: pointer; user-select: none; transition: background .12s; }
.todo-group-head:hover { background: var(--surface-2); }
.todo-group-body .todo-item { border-bottom: 1px solid #F8F4F2; }
.todo-group-body .todo-item:last-child { border-bottom: none; }
.empty { padding: 48px; text-align: center; color: var(--text-3); }

/* ---------- 时间轴 ---------- */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--border); border-radius: 1px; }
.tl-item { position: relative; padding: 0 0 20px 14px; }
.tl-item::before { content: ""; position: absolute; left: -22px; top: 6px; width: 10px; height: 10px;
  border-radius: 50%; background: #fff; border: 2px solid var(--brand-500); }
.tl-item.tl-warn::before { border-color: var(--brand-600); background: var(--brand-100); }
.tl-item.tl-ok::before { border-color: var(--success); }
.tl-date { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.tl-body { font-size: 13px; margin-top: 3px; }

/* ---------- tabs / 分页 ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.tabs a { padding: 10px 18px; color: var(--text-2); border-bottom: 2px solid transparent; font-weight: 600; font-size: 13px; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--brand-600); border-bottom-color: var(--brand-600); }
.pager { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; color: var(--text-2); font-size: 13px; border-top: 1px solid var(--border); }
.pager .btns { display: flex; gap: 8px; }

/* ---------- toast ---------- */
#toast-box { position: fixed; top: 68px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 11px 20px; border-radius: 10px; background: var(--ink-800); color: #fff; font-size: 13px;
  box-shadow: var(--shadow-md); animation: toastIn .2s ease-out; font-weight: 500; }
.toast.err { background: var(--brand-700); }
.toast.ok { background: #1E7A47; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; } }

/* ---------- 图表 ---------- */
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chart-box { height: 300px; padding: 10px 8px 6px; }
.chart-box.tall { height: 340px; }

/* ---------- 登录 ---------- */
.login-page { min-height: 100vh; display: flex; background: var(--ink-800); }
.login-aside { flex: 1; display: flex; flex-direction: column; justify-content: space-between;
  padding: 52px; background: linear-gradient(150deg, #8E1B20 0%, var(--brand-600) 58%, #D9454B 100%);
  color: #fff; position: relative; overflow: hidden; }
.login-aside::after { content: ""; position: absolute; right: -140px; bottom: -160px; width: 420px; height: 420px;
  border-radius: 50%; background: rgba(255,255,255,.08); }
.login-aside .la-brand { display: flex; align-items: center; gap: 12px; }
.login-aside .la-mark { width: 46px; height: 46px; border-radius: 10px; background: #fff; color: var(--brand-600);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px;
  overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.login-aside .la-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.login-aside h1 { font-size: 34px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; margin-bottom: 14px; }
.login-aside p { font-size: 14px; opacity: .88; max-width: 380px; line-height: 1.9; }
.login-aside .la-foot { font-size: 12px; opacity: .6; }
.login-main { width: 480px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-card { width: 100%; max-width: 340px; }
.login-card .lc-title { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.login-card .lc-sub { color: var(--text-2); font-size: 13px; margin-bottom: 28px; }
.login-card .input { width: 100%; padding: 11px 13px; margin-bottom: 14px; }
.login-err { background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-200); border-radius: 9px; padding: 9px 12px; font-size: 13px; margin-bottom: 14px; }
.login-btn { width: 100%; padding: 12px; font-size: 14px; border-radius: 10px; }
.login-tip { margin-top: 22px; font-size: 12px; color: var(--text-3); text-align: center; line-height: 1.9; }

/* ---------- 登录页动态增强（保持现有红色不变，仅增强动态与交互） ---------- */
/* 左侧红色背景叠加流动光斑 */
.login-aside::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(40% 42% at 18% 22%, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 70%),
    radial-gradient(34% 40% at 82% 78%, rgba(142,27,32,.35) 0%, rgba(142,27,32,0) 72%),
    radial-gradient(26% 30% at 60% 12%, rgba(255,255,255,.08) 0%, rgba(255,255,255,0) 70%);
  animation: laAurora 15s ease-in-out infinite; }
@keyframes laAurora {
  0%, 100% { transform: translate(0,0) rotate(0deg); }
  50%      { transform: translate(2%, -2%) rotate(2deg); }
}

/* 阳光洒进来的斜向光柱（左上角射入，动态） */
.login-aside .la-sun {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  overflow: hidden;
}
.login-aside .la-sun::before {
  content: ""; position: absolute; top: -30%; left: -15%;
  width: 45%; height: 160%;
  background: linear-gradient(100deg,
    rgba(255,236,200,.30) 0%,
    rgba(255,236,200,.14) 40%,
    rgba(255,236,200,0) 70%);
  transform: rotate(18deg);
  filter: blur(6px);
  animation: laSunSweep 11s ease-in-out infinite;
}
.login-aside .la-sun::after {
  content: ""; position: absolute; top: -35%; left: -5%;
  width: 30%; height: 170%;
  background: linear-gradient(100deg,
    rgba(255,244,214,.22) 0%,
    rgba(255,244,214,.08) 45%,
    rgba(255,244,214,0) 72%);
  transform: rotate(22deg);
  filter: blur(10px);
  animation: laSunSweep 14s ease-in-out infinite reverse;
}
@keyframes laSunSweep {
  0%, 100% { transform: rotate(18deg) translateX(-6%); opacity: .75; }
  50%      { transform: rotate(18deg) translateX(8%); opacity: 1; }
}

/* 粒子层 */
.la-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.la-dot { position: absolute; border-radius: 50%; background: rgba(255,255,255,.35);
  animation: laRise linear infinite; }
.la-dot.hot { background: rgba(255,255,255,.55); }
@keyframes laRise {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  12%  { opacity: .65; }
  85%  { opacity: .28; }
  100% { transform: translateY(-112vh) translateX(28px) scale(.7); opacity: 0; }
}

/* 品牌区内容层级（盖在粒子上方） */
.login-aside .la-brand,
.login-aside .la-center,
.login-aside .la-foot { position: relative; z-index: 2; }

/* Logo 适配空间（可替换为图片） */
.la-mark { transition: transform .3s ease; }
.la-mark:hover { transform: scale(1.06); }

/* 入场动画 */
.la-brand { animation: laIn .7s ease forwards; }
.la-center { animation: laIn .8s ease .15s forwards; }
.la-foot { animation: laIn .8s ease .3s forwards; }
@keyframes laIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 每日问候 */
.la-greet { font-size: 15px; letter-spacing: .04em; opacity: .92; margin-bottom: 16px; }
.la-day-badge { display: inline-block; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px; padding: 3px 13px; font-size: 12px; margin-left: 9px; }

/* 名言轮播 */
.la-quote { margin-top: 32px; min-height: 52px; display: flex; flex-direction: column; gap: 5px; }
.la-quote-text { font-size: 15px; line-height: 1.7; font-weight: 500;
  transition: opacity .5s ease, transform .5s ease; }
.la-quote-author { font-size: 12px; opacity: .62; letter-spacing: .04em; }
.la-quote-dots { display: flex; gap: 6px; margin-top: 10px; }
.la-quote-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.3);
  cursor: pointer; transition: all .3s ease; }
.la-quote-dots span.active { background: #fff; width: 22px; border-radius: 4px; }

/* 登录按钮流光（自动扫过，不影响可读性） */
.login-btn { position: relative; overflow: hidden; }
.login-btn::before { content: ""; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg); animation: laSheen 3.4s ease infinite; pointer-events: none; }
@keyframes laSheen {
  0%   { left: -100%; }
  55%  { left: 135%; }
  100% { left: 135%; }
}
.login-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(194,45,51,.4); }

/* ---------- 其他 ---------- */
.proc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; font-size: 13px; }
.proc-grid .k { color: var(--text-2); }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; bottom: calc(100% + 8px); background: #fff; border: 1px solid var(--border);
  border-radius: 10px; box-shadow: var(--shadow-md); min-width: 160px; padding: 5px; display: none; z-index: 60; }
.dropdown-menu.show { display: block; }
.dropdown-menu a { display: block; padding: 9px 12px; border-radius: 7px; color: var(--text); font-size: 13px; }
.dropdown-menu a:hover { background: var(--brand-50); color: var(--brand-700); }
.link { color: var(--brand-600); cursor: pointer; }
.link:hover { text-decoration: underline; }
.muted { color: var(--text-3); }
.hidden { display: none !important; }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .sidebar { width: 74px; }
  .brand-text, .side-item span, .side-group, .side-user .uinfo { display: none; }
  .brand { justify-content: center; padding: 18px 0; }
  .side-nav { padding: 6px 10px; }
  .side-item { justify-content: center; padding: 11px 0; }
  .side-user { justify-content: center; }
  .page-wrap { padding: 20px 20px 48px; }
  .chart-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .sidebar { position: fixed; left: 0; top: 0; z-index: 80; width: 228px; transform: translateX(-100%);
    transition: transform .2s; box-shadow: 12px 0 32px rgba(0,0,0,.2); }
  .sidebar.open { transform: none; }
  .sidebar .brand-text, .sidebar .side-item span, .sidebar .side-group, .sidebar .side-user .uinfo { display: flex; }
  .sidebar .brand { justify-content: flex-start; padding: 20px 18px 18px; }
  .sidebar .side-item { justify-content: flex-start; padding: 9px 12px; }
  .sidebar .side-user { justify-content: flex-start; }
  .hamburger { display: flex; }
  .page-wrap { padding: 16px 14px 40px; }
  .page-title { font-size: 19px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span2, .form-grid .span3 { grid-column: span 1; }
  .login-aside { display: none; }
  .login-main { width: 100%; }
}

/* 订单流程状态徽标（新增草稿 / 待评审 / 已评审） */
.st-draft { background: #F1ECEA; color: #6B5B57; }
.st-review { background: #FFF4E0; color: #A85F12; }
.st-approved { background: #E8F0FE; color: #1F4FA8; }

/* 多选勾选项（产品类型等） */
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px;
  color: var(--text); cursor: pointer; margin: 0; font-weight: 500; }
.chk input { width: auto; margin: 0; accent-color: var(--brand-600); }
