:root {
  --bg: #f4f5f7;
  --panel: #ffffff;
  --line: #e5e7eb;
  --line-soft: #f0f1f4;
  --ink: #11151f;
  --text: #1f2430;
  --muted: #6b7280;
  --faint: #9aa1ad;
  --accent: #2f5fe0;
  --accent-soft: #eaefff;
  --sidebar: #12161f;
  --sidebar-2: #1a1f2b;
  --danger: #dc2626;
  --warn: #d97706;
  --ok: #059669;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .04);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 13.5px;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #d6d9df; border-radius: 8px; border: 3px solid transparent; background-clip: content-box; }

/* ---------- login ---------- */
#login {
  height: 100vh; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(1100px 560px at 18% -6%, rgba(23, 92, 66, .55) 0%, rgba(23, 92, 66, 0) 62%),
    radial-gradient(900px 520px at 92% 108%, rgba(9, 52, 38, .8) 0%, rgba(9, 52, 38, 0) 68%),
    linear-gradient(168deg, #0a1d16 0%, #071510 52%, #040c08 100%);
}
.login-card {
  width: 340px; background: #fff; border-radius: 14px; padding: 30px 28px 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.login-card h1 { font-size: 17px; margin: 0 0 4px; font-weight: 600; letter-spacing: .3px; }
.login-card p.sub { margin: 0 0 22px; color: var(--muted); font-size: 12.5px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 62px; line-height: 1.6; }
.btn {
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; color: var(--text); font-size: 13px; font-weight: 500;
  transition: .15s; white-space: nowrap;
}
.btn:hover { border-color: #cfd4dc; background: #fbfbfc; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: #2a54c9; border-color: #2a54c9; }
.btn-danger { color: var(--danger); border-color: #f3d0d0; background: #fffafa; }
.btn-danger:hover { background: #fdf1f1; border-color: #eab8b8; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: #f2f3f5; color: var(--text); }
.btn-block { width: 100%; margin-top: 8px; padding: 10px; }
.btn-sm { padding: 4px 9px; font-size: 12px; border-radius: 7px; }
.login-err { color: var(--danger); font-size: 12.5px; height: 16px; margin-top: 10px; }

/* ---------- shell ---------- */
#app { display: flex; height: 100vh; overflow: hidden; }
aside {
  width: 208px; flex: 0 0 208px; background: var(--sidebar); color: #cbd2df;
  display: flex; flex-direction: column; padding: 18px 12px 12px;
  position: relative; overflow: hidden; isolation: isolate;
}
.brand { display: flex; align-items: center; gap: 9px; padding: 0 8px 20px; }
.brand .dot {
  width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, #4f7cff, #7c5cff);
  display: flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; font-weight: 700;
}
.brand .name { color: #fff; font-size: 13.5px; font-weight: 600; letter-spacing: .2px; }
.brand .sub { font-size: 10.5px; color: #6b7688; letter-spacing: .5px; margin-top: 1px; }
nav { display: flex; flex-direction: column; gap: 2px; }
nav a {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px;
  color: #a8b2c4; font-size: 13px; cursor: pointer; user-select: none;
}
nav a:hover { background: var(--sidebar-2); color: #e6eaf2; }
nav a.active { background: #222a3a; color: #fff; }
nav a .ico { width: 16px; text-align: center; opacity: .85; font-size: 13px; }
nav a .badge {
  margin-left: auto; background: #2c3446; color: #9aa6bd; font-size: 10.5px;
  padding: 1px 6px; border-radius: 20px;
}
nav a .badge:empty { display: none; }
nav a.active .badge { background: var(--accent); color: #fff; }
.side-foot { margin-top: auto; border-top: 1px solid #222836; padding-top: 10px; }
.side-user { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.side-user:hover { background: var(--sidebar-2); }
.avatar {
  width: 26px; height: 26px; border-radius: 50%; background: #2f3a52; color: #cfd8ea;
  display: flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 600; flex: 0 0 auto;
}
.side-user .nm { font-size: 12.5px; color: #e2e8f2; line-height: 1.3; }
.side-user .rl { font-size: 10.5px; color: #6b7688; }

main { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.topbar {
  height: 58px; flex: 0 0 58px; background: var(--panel); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; padding: 0 22px;
}
.topbar h2 { font-size: 15px; font-weight: 600; margin: 0; letter-spacing: .2px; }
.topbar .hint { color: var(--faint); font-size: 12px; }
.topbar .spacer { flex: 1; }
.content { flex: 1; overflow: auto; padding: 20px 22px 40px; }

/* ---------- generic ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line-soft); }
.card-h h3 { font-size: 13px; font-weight: 600; margin: 0; }
.card-h .spacer { flex: 1; }
.card-b { padding: 14px 16px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.row { display: flex; align-items: center; gap: 8px; }
.grid-kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 15px 12px; box-shadow: var(--shadow); }
.kpi .lb { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.kpi .vl { font-size: 25px; font-weight: 600; letter-spacing: -.5px; margin-top: 5px; line-height: 1.1; }
.kpi .ft { font-size: 11px; color: var(--faint); margin-top: 3px; }
.kpi.alert .vl { color: var(--danger); }
.two-col { display: grid; grid-template-columns: 1.45fr 1fr; gap: 14px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 14px; }

.chip {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11px; padding: 2px 7px;
  border-radius: 6px; background: #f2f3f5; color: var(--muted); white-space: nowrap;
}
.chip-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.st { font-size: 11px; padding: 2px 7px; border-radius: 6px; font-weight: 500; white-space: nowrap; }
.st-idea { background: #f1f2f4; color: #646b78; }
.st-shoot { background: #fdf2e3; color: #b45309; }
.st-edit { background: #f2ecfd; color: #6d28d9; }
.st-publish { background: #e6f4fd; color: #0369a1; }
.st-done { background: #e7f7f1; color: #047857; }

.empty { padding: 26px 10px; text-align: center; color: var(--faint); font-size: 12.5px; }

/* ---------- dashboard ---------- */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line-soft); }
.list-item:last-child { border-bottom: 0; }
.list-item:hover { background: #fbfbfd; }
.li-main { flex: 1; min-width: 0; }
.li-title { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; display: flex; gap: 8px; flex-wrap: wrap; }
.li-date { font-size: 11.5px; color: var(--muted); text-align: right; flex: 0 0 auto; }
.li-date b { display: block; color: var(--text); font-size: 12.5px; font-weight: 500; }
.overdue-tag { color: var(--danger); font-size: 11px; }

/* ---------- board ---------- */
.board { display: flex; gap: 12px; align-items: flex-start; }
.col {
  flex: 1 1 0; min-width: 0; background: #eef0f3; border-radius: var(--radius);
  display: flex; flex-direction: column; max-height: calc(100vh - 118px);
}
.col-h {
  display: flex; align-items: center; gap: 7px; padding: 10px 12px 8px; font-size: 12.5px; font-weight: 600;
  position: sticky; top: 0; z-index: 2;
}
.col-h .cnt { font-size: 11px; color: var(--muted); font-weight: 400; background: #e2e5ea; padding: 0 6px; border-radius: 20px; }
.col-h .bar { width: 3px; height: 13px; border-radius: 2px; }
.col-body { padding: 0 8px 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; min-height: 90px; }
.col.drag-over .col-body { background: var(--accent-soft); border-radius: 8px; }
.kcard {
  background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 10px 11px;
  cursor: grab; box-shadow: var(--shadow); transition: border-color .12s, transform .12s;
}
.kcard:hover { border-color: #c9d0dd; }
.kcard.dragging { opacity: .45; transform: rotate(.6deg); }
.kcard .k-top { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.kcard .k-client { font-size: 10.5px; color: var(--muted); }
.kcard .k-title { font-size: 12.5px; line-height: 1.5; font-weight: 500; margin-bottom: 8px; }
.kcard .k-foot { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--faint); }
.kcard .k-foot .who { margin-left: auto; }
.kcard.overdue { border-left: 2px solid var(--danger); }
.avatar-xs {
  width: 18px; height: 18px; border-radius: 50%; background: #eef1f6; color: #5a6475;
  display: inline-flex; align-items: center; justify-content: center; font-size: 9.5px; font-weight: 600;
}

/* ---------- calendar ---------- */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--line); }
.cal .dow { padding: 8px 10px; font-size: 11.5px; color: var(--muted); background: #fafbfc; border-bottom: 1px solid var(--line); }
.cal .day { min-height: 104px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 6px 7px; position: relative; }
.cal .day:nth-child(7n) { border-right: 0; }
.cal .day.out { background: #fafbfc; }
.cal .day.today { background: #f5f8ff; }
.cal .day .dnum { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.cal .day.today .dnum b { background: var(--accent); color: #fff; border-radius: 20px; padding: 0 6px; font-weight: 500; }
.cal .day .add {
  position: absolute; right: 6px; top: 5px; opacity: 0; color: var(--faint); font-size: 14px; line-height: 1;
  border: 0; background: transparent; padding: 0 3px; border-radius: 4px;
}
.cal .day:hover .add { opacity: 1; }
.cal .day .add:hover { background: #eceff4; color: var(--accent); }
.vchip {
  display: block; font-size: 11px; padding: 3px 6px; border-radius: 5px; margin-top: 4px;
  background: #fff; border: 1px solid var(--line); border-left: 2.5px solid var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer;
}
.vchip:hover { background: #fafbff; }
.vchip.shoot { border-left-color: #d97706; }
.vchip.edit { border-left-color: #7c3aed; }
.vchip.publish { border-left-color: #0ea5e9; }
.vchip.done { border-left-color: #10b981; }
.vchip.idea { border-left-color: #9aa1ad; }

/* ---------- table ---------- */
table.tb { width: 100%; border-collapse: collapse; }
table.tb th {
  text-align: left; font-size: 11.5px; font-weight: 500; color: var(--muted);
  padding: 9px 12px; border-bottom: 1px solid var(--line); background: #fafbfc; white-space: nowrap;
}
table.tb td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; vertical-align: middle; }
table.tb tr:hover td { background: #fbfbfd; }
table.tb td.ell { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.tb td.num { font-variant-numeric: tabular-nums; text-align: right; }
table.tb th.num { text-align: right; }

/* ---------- modal ---------- */
#modal { position: fixed; inset: 0; background: rgba(14, 18, 27, .42); display: none; align-items: flex-start; justify-content: center; z-index: 50; padding: 56px 16px; overflow: auto; }
#modal.open { display: flex; }
.modal-card { width: 520px; max-width: 100%; background: #fff; border-radius: 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, .28); animation: pop .16s ease-out; }
@keyframes pop { from { transform: translateY(-6px); opacity: .6; } to { transform: none; opacity: 1; } }
.modal-h { display: flex; align-items: center; padding: 15px 18px; border-bottom: 1px solid var(--line-soft); }
.modal-h h3 { margin: 0; font-size: 14px; font-weight: 600; }
.modal-h .x { margin-left: auto; border: 0; background: transparent; font-size: 18px; color: var(--faint); line-height: 1; padding: 0 4px; }
.modal-b { padding: 16px 18px; }
.modal-f { display: flex; gap: 8px; padding: 13px 18px; border-top: 1px solid var(--line-soft); justify-content: flex-end; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.form-grid .full { grid-column: 1 / -1; }

/* ---------- misc ---------- */
#toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%) translateY(10px);
  background: #171c26; color: #fff; font-size: 12.5px; padding: 9px 16px; border-radius: 8px;
  opacity: 0; pointer-events: none; transition: .2s; z-index: 99; box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.err { background: #b91c1c; }
.chart-wrap { padding: 4px 2px 0; }
.seg { display: inline-flex; background: #f1f2f5; border-radius: 8px; padding: 2px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 5px 11px; border-radius: 6px; font-size: 12px; color: var(--muted); }
.seg button.on { background: #fff; color: var(--text); box-shadow: var(--shadow); font-weight: 500; }
.toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.toolbar .spacer { flex: 1; }
select.mini, input.mini {
  padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: 12.5px; outline: none;
}
select.mini:focus, input.mini:focus { border-color: var(--accent); }
.stat-line { display: flex; gap: 22px; padding: 4px 0 2px; }
.stat-line .it .n { font-size: 18px; font-weight: 600; letter-spacing: -.3px; }
.stat-line .it .l { font-size: 11px; color: var(--muted); }
.pill-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.pill-tabs button { border: 1px solid var(--line); background: #fff; padding: 5px 11px; border-radius: 20px; font-size: 12px; color: var(--muted); }
.pill-tabs button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.note-box { background: #fafbfc; border: 1px dashed var(--line); border-radius: 8px; padding: 9px 11px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.kv { display: grid; grid-template-columns: 84px 1fr; gap: 6px 10px; font-size: 12.5px; }
.kv .k { color: var(--faint); }
.menu-btn { display: none; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 4px 9px; font-size: 14px; color: var(--muted); }
/* ---------- 新增：日期检索 / 拍摄安排 ---------- */
.chip-warn { background: #fdf2e3; color: #b45309; }
.notice {
  background: #eef4ff; border: 1px solid #dbe6ff; color: #33518f; font-size: 12px;
  padding: 7px 12px; border-radius: 8px; margin-bottom: 12px;
}
.echip {
  display: block; font-size: 11px; padding: 3px 6px; border-radius: 5px; margin-top: 4px;
  background: #fffaf2; border: 1px dashed #e0b878; color: #8a5a12;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: grab;
}
.echip:hover { background: #fdf5e8; }
.echip::before { content: "拍 "; opacity: .7; }
.unscheduled {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 9px 12px; margin-bottom: 12px; border: 1px dashed #d6dae2;
  border-radius: 10px; background: #fbfbfd;
}
.unscheduled .lbl { font-size: 12px; color: var(--muted); font-weight: 500; }
.unscheduled .vchip { margin-top: 0; max-width: 190px; }
.cal .day.drag-over { background: var(--accent-soft); outline: 1.5px dashed var(--accent); outline-offset: -2px; }
.vchip.dragging, .echip.dragging { opacity: .4; }
.cal-legend {
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  margin-top: 10px; font-size: 11.5px; color: var(--muted);
}
.cal-legend .lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.cal-legend .lg-ev { background: #fffaf2; border: 1px dashed #e0b878; }
.cal-legend .lg-pub { background: #fff; border: 1px solid #c9d0dd; border-left: 3px solid #0ea5e9; }
.choose { display: grid; gap: 10px; }
.choose-item {
  display: block; width: 100%; text-align: left; padding: 14px 16px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; transition: .15s;
}
.choose-item:hover { border-color: var(--accent); background: #f7f9ff; }
.choose-item b { display: block; font-size: 13.5px; font-weight: 500; margin-bottom: 3px; }
.choose-item span { font-size: 12px; color: var(--muted); line-height: 1.5; }
a.lk { display: inline-block; font-size: 11px; margin-top: 3px; }

@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  aside { position: fixed; z-index: 40; height: 100%; transform: translateX(-100%); transition: .2s; }
  aside.open { transform: none; }
  .board { flex-direction: column; }
  .col { width: 100%; max-height: none; }
  .grid-kpi { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr !important; }
  .content { padding: 14px 12px 40px; }
  .cal .day { min-height: 74px; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   v1.2 视觉与动效层
   参考：rauno.me 的手感（快、准、有回弹） + motion.dev 的可拖拽小球
   原则：动效服务于「感觉快」，不做慢淡入
   ============================================================ */
:root {
  --bg: #f2f3f7;
  --line: #e6e8ef;
  --line-soft: #f1f2f6;
  --accent: #3355e6;
  --accent-soft: #eaeeff;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 16px -12px rgba(16, 24, 40, .16);
  --shadow-lift: 0 2px 4px rgba(16, 24, 40, .05), 0 16px 32px -18px rgba(16, 24, 40, .28);
  --ease: cubic-bezier(.22, .9, .24, 1);
  --ease-spring: cubic-bezier(.2, 1.16, .32, 1);
}

body {
  background:
    radial-gradient(900px 420px at 12% -8%, #ffffff 0%, rgba(255, 255, 255, 0) 62%),
    var(--bg);
}

/* ---------- 焦点与按压：统一手感 ---------- */
.btn, .choose-item, .pill-tabs button, .seg button, nav a, .side-user, .menu-btn {
  transition: transform .12s var(--ease), background .16s var(--ease),
              border-color .16s var(--ease), color .16s var(--ease), box-shadow .16s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 3px 10px -6px rgba(16, 24, 40, .35); }
.btn:active, .choose-item:active, .pill-tabs button:active, .menu-btn:active { transform: scale(.972); box-shadow: none; }
.btn-primary:hover { background: #2c4bd8; box-shadow: 0 6px 16px -8px rgba(51, 85, 230, .7); }
.btn-ghost:hover { transform: none; box-shadow: none; }

:where(button, a, input, select, textarea):focus-visible {
  outline: 2px solid rgba(51, 85, 230, .55);
  outline-offset: 2px;
}

/* ============================================================
   侧边栏：墨绿体积光 + 鼠标遮挡（v1.6）
   参考 React Bits 的 Light Rays：光从上方照下来，鼠标挡住光，
   在下方投下一片软阴影 —— 是「缺一块光」，不是「发光晕」。
   1) 底：深墨绿哑光渐变（canvas 的兜底）
   2) 体积光：低分辨率 canvas 逐像素算「点光源 + 光束分裂 + 尘埃」，
      一束青绿光从顶部照下，缓慢流动、有体积感
   3) 鼠标遮挡：鼠标挡在光源与像素之间 → 投下软阴影锥
   文字清晰压在光层之上
   ============================================================ */
aside {
  background:
    radial-gradient(130% 85% at -8% -8%, #0e2b1f 0%, rgba(14, 43, 31, 0) 60%),
    radial-gradient(95% 60% at 105% 104%, #081a13 0%, rgba(8, 26, 19, 0) 72%),
    linear-gradient(172deg, #081a13 0%, #05110c 52%, #030a07 100%);
  color: #a7c1b4;
}

/* ---------- 材质层 ---------- */
.side-fx {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.side-fx > span { position: absolute; display: block; }

/* 体积光：低分辨率 canvas，JS 逐帧算光模型，平滑放大出柔和光束 */
.fx-rays {
  position: absolute; inset: 0; display: block;
  width: 100%; height: 100%;
}

/* ---------- 内容层压在材质层之上 ---------- */
.brand, #nav, .side-foot { position: relative; z-index: 3; }

/* ---------- 配色：绿（v1.4 提高文字对比，去掉所有外发光） ---------- */
.brand .dot {
  background: linear-gradient(150deg, #7ce8ae 0%, #2fb98a 48%, #0d7a58 100%);
  box-shadow: 0 5px 14px -8px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .35);
  color: #05241a;
}
.brand .name { color: #f2fbf7; text-shadow: 0 1px 0 rgba(0, 0, 0, .45); }
.brand .sub { color: #79a08f; }

nav { position: relative; }
nav a { position: relative; z-index: 1; color: #b3c9bd; text-shadow: 0 1px 0 rgba(0, 0, 0, .4); }
nav a:hover { background: rgba(110, 231, 183, .07); color: #f2fff9; }
nav a.active { background: transparent; color: #ffffff; }
nav a.active .badge { background: linear-gradient(135deg, #2c9c72, #0f7d58); color: #eafff5; }
nav a .badge { background: rgba(110, 231, 183, .12); color: #8fdcbd; }

.nav-ind {
  position: absolute; left: 0; right: 0; top: 0; height: 34px; border-radius: 8px;
  background: linear-gradient(90deg, rgba(16, 185, 129, .18) 0%, rgba(16, 185, 129, .04) 66%, rgba(16, 185, 129, 0) 100%);
  box-shadow: inset 0 0 0 1px rgba(110, 231, 183, .10);
  z-index: 0; pointer-events: none; opacity: 0;
  transition: transform .26s var(--ease), height .2s var(--ease), opacity .2s;
}
.nav-ind::before {
  content: ''; position: absolute; left: 0; top: 50%; width: 3px; height: 15px;
  transform: translateY(-50%); border-radius: 0 2px 2px 0;
  background: linear-gradient(180deg, #6fe3b0, #10b981);
}

.side-foot { border-top: 1px solid rgba(110, 231, 183, .12); }
.side-user:hover { background: rgba(110, 231, 183, .07); }
.side-user .nm { color: #e7fbf2; }
.side-user .rl { color: #79a08f; }
.avatar {
  background: rgba(16, 185, 129, .16); color: #a7f3d0;
  box-shadow: inset 0 0 0 1px rgba(110, 231, 183, .16);
}

/* ---------- 卡片与数字 ---------- */
.card { transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.kpi {
  position: relative; overflow: hidden;
  transition: transform .18s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.kpi::after {
  content: ''; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, rgba(51, 85, 230, .5), rgba(51, 85, 230, 0) 60%);
  opacity: 0; transition: opacity .2s;
}
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: #dbe0ea; }
.kpi:hover::after { opacity: 1; }
.kpi .vl { font-variant-numeric: tabular-nums; }

.list-item, table.tb tbody tr { transition: background .14s var(--ease); }
.list-item:hover { background: #f8f9fc; }
table.tb tbody tr:hover td { background: #f8f9fc; }

/* ---------- 看板卡片：轻微抬起 + 拖动时真的“拎起来” ---------- */
.kcard {
  transition: transform .14s var(--ease), box-shadow .16s var(--ease), border-color .16s var(--ease);
}
.kcard:hover { transform: translateY(-1px); box-shadow: 0 3px 10px -6px rgba(16, 24, 40, .3); border-color: #ccd3e0; }
.kcard:active { cursor: grabbing; }
.kcard.dragging {
  opacity: .32; transform: scale(.98) rotate(-.6deg);
  box-shadow: 0 18px 36px -18px rgba(16, 24, 40, .5);
}
.col { transition: background .18s var(--ease), box-shadow .18s var(--ease); }
.col.drag-over { background: #e8ecff; box-shadow: inset 0 0 0 1.5px rgba(51, 85, 230, .35); }
.col.drag-over .col-body { background: transparent; }

/* ---------- 页面入场：上浮 8px，逐个 16ms，总时长 260ms ---------- */
@keyframes riseIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.view-enter > * { animation: riseIn .26s var(--ease) both; }
.view-enter > *:nth-child(1) { animation-delay: 0ms; }
.view-enter > *:nth-child(2) { animation-delay: 16ms; }
.view-enter > *:nth-child(3) { animation-delay: 32ms; }
.view-enter > *:nth-child(4) { animation-delay: 48ms; }
.view-enter > *:nth-child(5) { animation-delay: 64ms; }
.view-enter > *:nth-child(n+6) { animation-delay: 80ms; }
/* 看板有 sticky 表头，位移动画会短暂影响定位，只用淡入 */
.view-enter > .board { animation-name: fadeIn; }

/* ---------- 图表：线条画出来 ---------- */
.chart-wrap svg { overflow: visible; }
.chart-wrap svg polyline {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: drawLine .62s var(--ease) forwards;
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }
.chart-wrap svg circle {
  transform-box: fill-box; transform-origin: center;
  animation: dotPop .3s var(--ease-spring) both; animation-delay: calc(var(--i, 0) * 34ms + 120ms);
}
@keyframes dotPop { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
/* 面积用 fill-opacity 动画，不能用 opacity，否则会覆盖 SVG 上的 0.07 */
.chart-wrap svg polygon { animation: areaIn .55s ease both; }
@keyframes areaIn { from { fill-opacity: 0; } to { fill-opacity: .095; } }

/* ---------- 弹窗与提示 ---------- */
#modal.open { animation: fadeIn .18s ease both; }
#modal { backdrop-filter: blur(2px); }
.modal-card { animation: modalIn .22s var(--ease-spring) both; }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(-10px) scale(.972); }
  to { opacity: 1; transform: none; }
}
#toast { transition: opacity .2s var(--ease), transform .26s var(--ease-spring); }


/* ---------- 登录页 ---------- */
.login-card { animation: loginIn .46s var(--ease-spring) both; }
@keyframes loginIn {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: none; }
}
#login .field, #login .btn-block, #login .login-err { animation: riseIn .34s var(--ease) both; }
#login .field:nth-of-type(1) { animation-delay: 60ms; }
#login .field:nth-of-type(2) { animation-delay: 96ms; }
#login .btn-block { animation-delay: 132ms; }
#login .login-err { animation: none; }

/* ---------- 日历芯片 ---------- */
.vchip, .echip { transition: transform .13s var(--ease), box-shadow .14s, background .14s; }
.vchip:hover, .echip:hover { transform: translateY(-1px); box-shadow: 0 3px 8px -5px rgba(16, 24, 40, .4); }

/* ---------- 减少动效 ---------- */
.no-motion *, .no-motion *::before, .no-motion *::after {
  animation-duration: .001ms !important; animation-iteration-count: 1 !important;
  transition-duration: .001ms !important; scroll-behavior: auto !important;
}
@media (prefers-reduced-motion: reduce) {
  .view-enter > * { animation: none; }
}

/* 窄屏顶部栏：标题不要折行，提示语让位 */
@media (max-width: 640px) {
  .topbar { gap: 10px; padding: 0 12px; }
  .topbar h2 { white-space: nowrap; }
  .topbar .hint { display: none; }
}

/* ============================================================
   数据看板（v1.7）
   账号级日报：粉丝累计 + 每日播放 + 互动
   ============================================================ */
.ana-kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }

.ana-tb tbody tr.ana-row { cursor: pointer; }
.ana-tb tbody tr.ana-row.on td { background: #f4f8ff; }
.ana-tb tbody tr.ana-row.on td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.ana-tb tbody tr.ana-row:hover td { background: #f8faff; }

.num.up, .stat-line .it .n.up { color: #0e9f6e; }
.num.down, .stat-line .it .n.down { color: var(--danger); }

.spark { display: block; }
.ana-legend { display: flex; gap: 16px; font-size: 11px; color: var(--faint); padding: 4px 6px 0; }
.ana-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; vertical-align: 1px; }

.tb-dense th { padding: 8px 10px; }
.tb-dense td { padding: 8px 10px; }

/* 录入表 */
.ana-entry td { padding: 7px 8px; vertical-align: middle; }
.ana-entry th { padding: 8px; }
.ana-entry input.st-in {
  padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; background: #fff;
  outline: none; font-variant-numeric: tabular-nums; text-align: right;
  transition: border-color .15s, box-shadow .15s;
}
.ana-entry input.st-in:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ana-entry input.st-in::placeholder { color: #c3c8d1; }
.ana-entry input[type=number]::-webkit-outer-spin-button,
.ana-entry input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ana-entry input[type=number] { -moz-appearance: textfield; }

#modalCard[data-kind="stats"] { width: 780px; }

/* 看板表格：窄屏横向滚动，别把卡片撑破 */
.tb-scroll { width: 100%; }
@media (max-width: 900px) {
  .tb-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tb-scroll > table { min-width: 560px; }
  .ana-legend { flex-wrap: wrap; gap: 8px 14px; }
}

@media (max-width: 1080px) {
  .ana-kpi { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .ana-kpi { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .ana-kpi .kpi .vl { font-size: 20px; }
  .ana-kpi .kpi { padding: 11px 12px 10px; }
  #modalCard[data-kind="stats"] { width: 100%; }
  /* 手机上先看关键列，走势和更新日期可以横滑 */
  .ana-tb th:nth-child(6), .ana-tb td:nth-child(6),
  .ana-tb th:nth-child(7), .ana-tb td:nth-child(7) { display: none; }
  .tb-scroll > table { min-width: 0; }
  .ana-tb td:first-child b {
    display: block; max-width: 100px; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
  }
}
