/* ============================================================
   AI 工作室 · 个人工作台 —— 糖果色新粗野主义（Neo-Brutalism）
   规则：纯黑实线边框 2-4px + 零模糊纯黑硬阴影（5px 5px 0 #000）
   禁用：模糊阴影 / 渐变 / 毛玻璃。文字近黑 #0A0A0A。页面底 #F5F5F0。黑底 Footer。
   质感：内联 SVG（噪点 / 斜条纹 / 圆点矩阵）。语义化 + 键盘可达 + 零框架。
   ============================================================ */

/* ---------- 糖果色板 + 设计令牌 ---------- */
:root {
  /* 页面 */
  --bg: #F5F5F0;
  --ink: #0A0A0A;          /* 近黑文字 */
  --ink-2: #2b2b2b;
  --ink-3: #5a5a5a;
  --line: #000000;         /* 纯黑边框 */
  --border-w: 3px;         /* 组件默认边框 */

  /* 糖果饱和色 + 淡色底 */
  --c-pink:   #FF1493; --c-pink-bg:   #FFE0F1;
  --c-yellow: #FFE135; --c-yellow-bg: #FFF7BE;
  --c-blue:   #00BFFF; --c-blue-bg:   #D4F1FF;
  --c-lime:   #B6FF00; --c-lime-bg:   #EDFFC2;
  --c-orange: #FF7A00; --c-orange-bg: #FFE0C2;
  --c-purple: #B026FF; --c-purple-bg: #EFD6FF;

  --accent: var(--c-pink);
  --accent-2: var(--c-blue);
  --accent-ink: #0A0A0A;
  --accent-soft: var(--c-pink-bg);
  --warm: var(--c-orange);
  --ai: var(--c-lime);
  --income: #1FA85C;
  --expense: #E11D2A;
  --danger: #E11D2A;
  --warn-bg: var(--c-yellow-bg);
  --warn-line: #000000;
  --warn-ink: #0A0A0A;

  /* 表面（纯色，无透明） */
  --surface: #FFFFFF;
  --surface-solid: #FFFFFF;
  --surface-2: #FBFBF6;

  --sidebar-bg: #FFFFFF;
  --sidebar-ink: #0A0A0A;
  --sidebar-line: #000000;
  --sidebar-muted: #5a5a5a;

  --topbar-bg: #FFFFFF;
  --field-bg: #FFFFFF;

  /* 硬阴影（零模糊） */
  --shadow: 5px 5px 0 #000;
  --shadow-lg: 8px 8px 0 #000;
  --shadow-sm: 3px 3px 0 #000;
  --shadow-press: 1px 1px 0 #000;

  --radius: 8px;
  --radius-sm: 5px;
  --radius-pill: 999px;

  --font-display: "Poppins", "PingFang SC", system-ui, sans-serif;
  --font-sans: "Poppins", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  --font-round: var(--font-sans);
  --gap: clamp(14px, 2vw, 22px);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-size: 15px; line-height: 1.55;
}

/* 内联 SVG 装饰层（圆点矩阵 + 噪点），置底、不挡交互；仅内容区透出 */
.bg-deco { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0;
  pointer-events: none; opacity: 1; }
/* 背景壁纸的底色跟随页面底色变量（粗野风：纯黑图案 + 淡底） */
.bg-fill { fill: var(--bg, #F5F5F0); }
/* 每种壁纸给整页基色一个不同的糖果色 wash，切换一眼可见 */
body[data-wall="dot"]    { --bg: #EAF6FF; }
body[data-wall="stripe"] { --bg: #FFEAF4; }
body[data-wall="grid"]   { --bg: #F4ECFF; }
body[data-wall="solid"]  { --bg: #FFE0C2; }
#wallBtn { min-width: 138px; text-align: left; font-variant-numeric: tabular-nums; }

/* ---------- 布局骨架 ---------- */
.app { display: grid; grid-template-columns: 252px 1fr; height: 100vh; overflow: hidden;
  border-right: var(--border-w) solid #000; }

/* ---------- 侧边栏 ---------- */
.sidebar {
  background: var(--sidebar-bg); color: var(--sidebar-ink);
  display: flex; flex-direction: column; padding: 22px 14px; gap: 6px;
  border-right: var(--border-w) solid #000; position: relative; z-index: 2;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 16px;
  border-bottom: var(--border-w) solid #000; margin-bottom: 10px; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--c-yellow); color: #0A0A0A; font-family: var(--font-mono); font-weight: 800;
  font-size: 15px; letter-spacing: .5px; border: var(--border-w) solid #000;
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 16px; letter-spacing: .5px; font-family: var(--font-display); font-weight: 800; }
.brand-text span { font-size: 12px; color: var(--sidebar-muted); }

.nav { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; flex: 1; }
.nav-group { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--sidebar-muted); padding: 14px 12px 6px; font-weight: 700; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 10px 12px;
  border: var(--border-w) solid #000; background: #fff; color: #0A0A0A;
  font-size: 14.5px; font-family: inherit; border-radius: var(--radius-sm);
  cursor: pointer; text-align: left; font-weight: 600;
  box-shadow: var(--shadow-sm); transition: transform .12s ease, box-shadow .12s ease, background .15s ease; }
.nav-item:hover { transform: translate(-2px,-2px); box-shadow: var(--shadow); background: var(--c-blue-bg); }
.nav-item:active { transform: translate(2px,2px); box-shadow: var(--shadow-press); }
.nav-item.is-active { background: var(--c-pink); color: #0A0A0A; box-shadow: var(--shadow); }
.nav-ico { font-size: 16px; }

.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 12px; }
.foot-btn { display: flex; align-items: center; gap: 9px; padding: 9px 12px;
  border: var(--border-w) solid #000; background: var(--c-lime-bg); color: #0A0A0A;
  border-radius: var(--radius-sm); cursor: pointer; font-family: inherit; font-size: 13.5px; font-weight: 700;
  box-shadow: var(--shadow-sm); transition: transform .12s ease, box-shadow .12s ease; }
.foot-btn:hover { transform: translate(-2px,-2px); box-shadow: var(--shadow); }
.foot-btn:active { transform: translate(2px,2px); box-shadow: var(--shadow-press); }
.foot-status { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--sidebar-muted); font-weight: 600; }
.foot-status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--income);
  border: 2px solid #000; }

/* ---------- 主区 ---------- */
.main { display: flex; flex-direction: column; overflow: hidden; position: relative; z-index: 1; }
.topbar { display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(20px, 3vw, 38px); border-bottom: var(--border-w) solid #000;
  background: var(--topbar-bg); position: relative; z-index: 2; }
.topbar-left h1 { margin: 0; font-size: 22px; letter-spacing: .3px; font-weight: 800; font-family: var(--font-display); }
.topbar-left .muted { margin: 2px 0 0; font-size: 13px; }
.muted { color: var(--ink-3); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.date-chip { font-family: var(--font-mono); font-size: 13px; color: #0A0A0A; font-weight: 700;
  background: var(--c-yellow-bg); padding: 6px 12px; border: var(--border-w) solid #000; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm); }
.clock-chip { font-family: var(--font-mono); font-size: 13px; font-weight: 800;
  color: #0A0A0A; background: var(--c-blue-bg); padding: 6px 12px;
  border: var(--border-w) solid #000; border-radius: var(--radius-pill); letter-spacing: .5px;
  font-variant-numeric: tabular-nums; box-shadow: var(--shadow-sm); }

/* ---------- 按钮 ---------- */
.btn { font-family: var(--font-sans); font-weight: 700; font-size: 14px;
  border: var(--border-w) solid #000; padding: 9px 16px; border-radius: var(--radius-sm); cursor: pointer;
  background: #fff; color: #0A0A0A; box-shadow: var(--shadow-sm);
  transition: transform .1s ease, box-shadow .1s ease, background .15s ease; }
.btn:hover { transform: translate(-2px,-2px); box-shadow: var(--shadow); }
.btn:active { transform: translate(2px,2px); box-shadow: var(--shadow-press); }
.btn:focus-visible { outline: 3px solid var(--c-purple); outline-offset: 2px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-primary { background: var(--c-pink); color: #0A0A0A; }
.btn-primary:hover { background: var(--c-pink); }
.btn-ghost { background: #fff; color: #0A0A0A; }
.btn-ghost:hover { background: var(--c-blue-bg); }
.btn-danger { background: #fff; color: #0A0A0A; border-color: #000; }
.btn-danger:hover { background: var(--c-pink-bg); }
.btn-warm { background: var(--c-orange); color: #0A0A0A; }

/* ---------- 账号（登录 / 注册） ---------- */
.auth-area { display: flex; align-items: center; gap: 10px; }
.user-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px;
  border: var(--border-w) solid #000; border-radius: var(--radius-pill);
  background: var(--c-lime-bg); color: #0A0A0A; font-weight: 800; font-size: 13px;
  box-shadow: var(--shadow-sm); max-width: 190px; }
.user-chip .uc-ico { font-size: 14px; flex: none; }
.user-chip .uc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); }
.auth-note { font-size: 12.5px; color: var(--ink-2); font-weight: 600; line-height: 1.55;
  background: var(--c-yellow-bg); border: 2px solid #000; border-radius: var(--radius-sm); padding: 9px 12px; }
.auth-msg { font-size: 13px; font-weight: 800; color: var(--expense); }
.auth-msg:empty { display: none; }
.auth-switch { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.link-btn { background: none; border: none; padding: 0; cursor: pointer; font: inherit; font-weight: 800;
  color: #0A0A0A; border-bottom: 3px solid var(--c-pink); }
.link-btn:hover { color: var(--c-pink); }

/* ---------- 视图 ---------- */
.view { flex: 1; overflow: auto; padding: clamp(20px, 3vw, 38px); }
.loading { color: var(--ink-3); padding: 40px; text-align: center; font-weight: 600; }

/* ---------- 全局提示条（所有页面顶部） ---------- */
.global-notice {
  display: flex; align-items: center; gap: 10px;
  margin: 16px clamp(20px, 3vw, 38px) 0; padding: 11px 16px;
  border: var(--border-w) solid #000; border-radius: var(--radius-sm);
  background: var(--c-yellow-bg); color: #0A0A0A; font-size: 13.5px; line-height: 1.5;
  box-shadow: var(--shadow-sm); font-weight: 600;
}
.global-notice .gn-ico { font-size: 16px; line-height: 1; flex: none; }
.global-notice .gn-text { font-weight: 700; color: #0A0A0A; }

/* ---------- 通用区块 ---------- */
.section { margin-bottom: 34px; }
.section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px;
  border-bottom: var(--border-w) solid #000; padding-bottom: 10px; }
.section-head h2 { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: .3px;
  color: #0A0A0A; font-family: var(--font-display);
  background: var(--c-yellow); padding: 3px 10px; border: 2px solid #000; border-radius: var(--radius-sm); }
.section-head .sec-sub { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.section-head .spacer { flex: 1; }

.panel { background: var(--surface); border: var(--border-w) solid #000; border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow); }
.row { display: flex; gap: var(--gap); flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--gap); }

/* 统计数字 */
.stat { background: var(--surface); border: var(--border-w) solid #000; border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow); position: relative;
  transition: transform .12s ease, box-shadow .12s ease; }
.stat:nth-child(6n+1) { background: var(--c-pink-bg); }
.stat:nth-child(6n+2) { background: var(--c-yellow-bg); }
.stat:nth-child(6n+3) { background: var(--c-blue-bg); }
.stat:nth-child(6n+4) { background: var(--c-lime-bg); }
.stat:nth-child(6n+5) { background: var(--c-orange-bg); }
.stat:nth-child(6n+6) { background: var(--c-purple-bg); }
.stat:hover { transform: translate(-3px,-3px); box-shadow: var(--shadow-lg); }
.stat .stat-label { font-size: 12.5px; color: #0A0A0A; font-weight: 700; }
.stat .stat-value { font-size: 26px; font-weight: 800; font-family: var(--font-mono); margin-top: 6px;
  letter-spacing: -.5px; color: #0A0A0A; }
.stat .stat-value.warm { color: #0A0A0A; }
.stat .stat-value.blue { color: #0A0A0A; }
.stat .stat-value.green { color: #0A0A0A; }
.stat .stat-sub { font-size: 12px; color: var(--ink-3); margin-top: 4px; font-weight: 600; }

/* ---------- 提醒条 / 损坏条 ---------- */
.remind-bar { position: fixed; top: 0; left: 252px; right: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px; padding: 10px 22px;
  background: var(--c-yellow); color: #0A0A0A; font-size: 13.5px; font-weight: 700;
  border-bottom: var(--border-w) solid #000; box-shadow: var(--shadow-sm); }
.remind-bar[hidden] { display: none; }
.remind-bar .spacer { flex: 1; }
.remind-ico { font-size: 16px; }
.remind-bar b { color: #0A0A0A; }

.corrupt-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; background: var(--c-pink-bg); border: var(--border-w) solid #000;
  color: #0A0A0A; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px;
  box-shadow: var(--shadow-sm); font-weight: 600; }
.corrupt-bar strong { display: block; }
.corrupt-actions { display: flex; gap: 8px; }

/* ---------- 弹层 ---------- */
.modal { position: fixed; inset: 0; display: grid; place-items: center; z-index: 60; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.modal-panel { position: relative; width: min(560px, 92vw); background: #fff;
  border: var(--border-w) solid #000; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
  animation: pop .18s cubic-bezier(.2,.9,.3,1.1); }
@keyframes pop { from { transform: translateY(14px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head, .modal-foot { display: flex; align-items: center; padding: 16px 20px; }
.modal-head { border-bottom: var(--border-w) solid #000; background: var(--c-blue-bg); }
.modal-head h3 { margin: 0; font-size: 16px; font-family: var(--font-display); font-weight: 800; }
.modal-foot { border-top: var(--border-w) solid #000; gap: 10px; }
.modal-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; max-height: 70vh; overflow: auto; }
.spacer { flex: 1; }
.icon-btn { border: 2px solid #000; background: #fff; border-radius: var(--radius-sm); width: 30px; height: 30px;
  font-size: 15px; cursor: pointer; color: #0A0A0A; box-shadow: var(--shadow-press); }
.icon-btn:hover { background: var(--c-yellow-bg); }
.icon-btn:active { transform: translate(1px,1px); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 13px; color: #0A0A0A; font-weight: 700; }
.field label.inline { flex-direction: row; align-items: center; gap: 8px; font-size: 13px; color: #0A0A0A; font-weight: 600; }
.field input, .field textarea, .field select { font-family: inherit; font-size: 14px; color: #0A0A0A;
  border: var(--border-w) solid #000; border-radius: var(--radius-sm); padding: 10px 12px;
  background: #fff; resize: vertical; transition: box-shadow .12s ease; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; box-shadow: 4px 4px 0 var(--c-purple); }
.field-row { display: flex; gap: 12px; }
.field-row > * { flex: 1; }

/* ---------- 数据管理弹层 ---------- */
.data-stat { display: flex; gap: 22px; flex-wrap: wrap; padding: 4px 0 8px; }
.data-stat > div { display: flex; flex-direction: column; }
.data-stat strong { font-size: 16px; font-family: var(--font-mono); }
.data-tip { font-size: 12.5px; font-weight: 600; }
.data-tip code { background: var(--c-yellow-bg); padding: 1px 6px; border-radius: 5px; border: 2px solid #000; font-family: var(--font-mono); }
.data-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--c-lime); color: #0A0A0A; padding: 11px 18px; border-radius: var(--radius-pill);
  font-size: 13.5px; font-weight: 700; box-shadow: var(--shadow); z-index: 90; border: var(--border-w) solid #000;
  animation: rise .2s cubic-bezier(.2,.9,.3,1.1); }
.toast[hidden] { display: none; }
.toast-err { background: var(--c-pink-bg); color: #0A0A0A; border-color: #000; }
@keyframes rise { from { transform: translate(-50%, 12px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

/* ---------- 图表文字 ---------- */
.chart-line, .chart-bars, .chart-donut { width: 100%; height: auto; overflow: visible; }
.bar-label { font-size: 12px; fill: #0A0A0A; font-family: var(--font-sans); font-weight: 700; }
.bar-val { font-size: 11.5px; fill: #0A0A0A; font-family: var(--font-mono); font-weight: 700; }
.donut-center { font-size: 18px; font-weight: 800; fill: #0A0A0A; font-family: var(--font-mono); }
.donut-sub { font-size: 10.5px; fill: var(--ink-3); }

/* ============================================================
   热点
   ============================================================ */
.hotbar { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; flex-wrap: wrap; }
.hot-meta { font-size: 13px; color: var(--ink-3); font-family: var(--font-mono); font-weight: 700; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track { width: 46px; height: 26px; border-radius: var(--radius-pill); background: #fff;
  border: var(--border-w) solid #000; position: relative; transition: background .15s ease; }
.switch-thumb { position: absolute; top: 1px; left: 1px; width: 18px; height: 18px; border-radius: 50%;
  background: #0A0A0A; transition: transform .18s cubic-bezier(.2,.8,.2,1); }
.switch input:checked + .switch-track { background: var(--c-lime); }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(20px); }
.switch-label { font-size: 14px; font-weight: 700; }

.hot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--gap); align-items: start; }
.plat-card { background: #fff; border: var(--border-w) solid #000; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; transition: transform .12s ease, box-shadow .12s ease; }
.plat-card:hover { transform: translate(-3px,-3px); box-shadow: var(--shadow-lg); }
.plat-head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: var(--border-w) solid #000;
  background: var(--c-blue-bg); }
.plat-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #000; }
.plat-name { font-weight: 800; font-size: 15px; }
.plat-count { margin-left: auto; font-family: var(--font-mono); font-size: 12px; font-weight: 700; }
.hot-list { list-style: none; margin: 0; padding: 6px; }
.hot-item { display: flex; align-items: baseline; gap: 10px; padding: 9px 10px; border-radius: var(--radius-sm);
  text-decoration: none; color: #0A0A0A; font-weight: 500; transition: background .12s ease; }
.hot-item:hover { background: var(--c-yellow-bg); }
.hot-rank { font-family: var(--font-mono); font-size: 12px; font-weight: 700; min-width: 20px; text-align: right; }
.hot-title { flex: 1; font-size: 14px; line-height: 1.45; }
.hot-item:hover .hot-title { color: #0A0A0A; }
.hot-count { font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.plat-bd .plat-dot { background: #2932e1; } .plat-zh .plat-dot { background: #0a6cff; }
.plat-wb .plat-dot { background: #e6162d; } .plat-dy .plat-dot { background: #161823; }
.plat-bz .plat-dot { background: #fb7299; } .plat-ks .plat-dot { background: #ff4906; }
.plat-tt .plat-dot { background: #e83015; }
.plat-expand { display: block; width: 100%; border: none; cursor: pointer;
  background: var(--c-yellow); color: #0A0A0A; font: inherit; font-size: 13px; font-weight: 800;
  padding: 9px 16px; border-top: var(--border-w) solid #000; border-bottom: var(--border-w) solid #000;
  letter-spacing: .03em; transition: background .12s ease; }
.plat-expand:hover { background: var(--c-orange); }

/* ---------- 空状态 ---------- */
.empty-state { display: grid; place-items: center; min-height: 46vh; text-align: center; }
.empty-state[hidden] { display: none; }
.empty-card { max-width: 420px; background: #fff; border: var(--border-w) solid #000;
  border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow); }
.empty-emoji { font-size: 38px; }
.empty-card h3 { margin: 10px 0 6px; font-family: var(--font-display); font-weight: 800; }
.empty-card .link { display: inline-block; margin-top: 10px; color: #0A0A0A; font-weight: 800;
  border-bottom: 3px solid var(--c-pink); }
.empty-inline { color: var(--ink-3); padding: 26px; text-align: center; font-size: 13.5px; font-weight: 600; }

/* ============================================================
   看板
   ============================================================ */
.board-tools { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(264px, 1fr);
  gap: var(--gap); align-items: start; overflow-x: auto; padding-bottom: 8px; }
.col { background: var(--c-purple-bg); border: var(--border-w) solid #000; border-radius: var(--radius);
  display: flex; flex-direction: column; max-height: calc(100vh - 210px); box-shadow: var(--shadow); }
.col-head { display: flex; align-items: center; gap: 8px; padding: 13px 14px; border-bottom: var(--border-w) solid #000;
  background: #fff; }
.col-no { width: 24px; height: 24px; border-radius: var(--radius-sm); display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 12px; color: #fff; font-weight: 800; border: 2px solid #000; }
.col-name { font-weight: 800; font-size: 14.5px; }
.col-num { margin-left: auto; font-family: var(--font-mono); font-size: 12px; font-weight: 700; }
.col-body { padding: 10px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; flex: 1; min-height: 60px; }
.col-body.drag-over { background: var(--c-lime-bg); outline: 3px dashed #000; outline-offset: -6px; border-radius: var(--radius-sm); }
.col[data-status="idea"]   .col-no { background: #6b7280; }
.col[data-status="prepare"] .col-no { background: var(--c-orange); }
.col[data-status="dev"]    .col-no { background: var(--c-blue); }
.col[data-status="deploy"] .col-no { background: var(--c-lime); color: #0A0A0A; }
.col[data-status="done"]   .col-no { background: var(--income); }
.card { background: #fff; border: var(--border-w) solid #000; border-radius: var(--radius-sm);
  padding: 12px 13px; box-shadow: var(--shadow-sm); cursor: grab;
  transition: transform .12s ease, box-shadow .12s ease; }
.card:hover { border-color: #000; box-shadow: var(--shadow); transform: translate(-3px,-3px); }
.card:active { transform: translate(2px,2px); box-shadow: var(--shadow-press); cursor: grabbing; }
.card.dragging { opacity: .55; cursor: grabbing; }
.card-title { font-size: 14.5px; font-weight: 800; line-height: 1.4; }
.card-desc { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; display: -webkit-box;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.tag { font-size: 11px; font-family: var(--font-mono); background: var(--c-yellow-bg); color: #0A0A0A;
  padding: 2px 8px; border-radius: 999px; border: 2px solid #000; font-weight: 700; }
.card-time { margin-left: auto; font-size: 11px; color: var(--ink-3); font-family: var(--font-mono); font-weight: 700; }
.col-add { border: var(--border-w) dashed #000; background: #fff; color: #0A0A0A;
  border-radius: var(--radius-sm); padding: 9px; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 700;
  transition: background .12s ease; }
.col-add:hover { background: var(--c-lime-bg); }

/* ============================================================
   生活指数（首页）
   ============================================================ */
.hero { border-bottom: var(--border-w) solid #000; padding-bottom: 22px; margin-bottom: 26px; }
.hero .hero-greet { font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: .5px; }
.hero .hero-date { color: var(--ink-3); font-size: 13.5px; margin-top: 4px; font-family: var(--font-mono); font-weight: 700; }
.hero .hero-line { margin-top: 14px; font-size: 15px; color: var(--ink-2); max-width: 640px; font-weight: 600; }

/* ============================================================
   记账理财
   ============================================================ */
.fin-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: var(--gap); margin-bottom: 22px; }
.fin-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.fin-toolbar .spacer { flex: 1; }
.rec-list { display: flex; flex-direction: column; border: var(--border-w) solid #000; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.rec { display: grid; grid-template-columns: 90px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 14px; border-bottom: 2px solid #000; cursor: pointer; transition: background .12s; }
.rec:last-child { border-bottom: none; }
.rec:hover { background: var(--c-blue-bg); }
.rec .rec-date { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-3); font-weight: 700; }
.rec .rec-main { min-width: 0; }
.rec .rec-cat { font-weight: 800; font-size: 14px; }
.rec .rec-note { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.rec .rec-amt { font-family: var(--font-mono); font-size: 15px; font-weight: 800; text-align: right; }
.rec .rec-amt.out { color: var(--expense); }
.rec .rec-amt.in { color: var(--income); }
.pill { font-size: 11px; padding: 1px 8px; border-radius: 999px; border: 2px solid #000; color: #0A0A0A; font-weight: 700; background: #fff; }
.pill.in { background: var(--c-lime-bg); }
.pill.out { background: var(--c-pink-bg); }

/* ============================================================
   习惯健康（热力图）
   ============================================================ */
.habit { background: #fff; border: var(--border-w) solid #000; border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow); margin-bottom: 14px; }
.habit-head { display: flex; align-items: center; gap: 12px; }
.habit-name { font-weight: 800; font-size: 15px; }
.habit-meta { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.habit-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.heatmap { display: grid; grid-template-columns: repeat(30, 1fr); gap: 4px; margin-top: 14px; }
.heat-cell { aspect-ratio: 1; border-radius: 3px; background: #fff; border: 2px solid #000; }
.heat-cell[data-lvl="1"] { background: var(--c-lime-bg); }
.heat-cell[data-lvl="2"] { background: var(--c-lime); }
.heat-cell[data-lvl="3"] { background: var(--c-orange); }
.heat-cell.today { outline: 3px solid #000; outline-offset: 1px; }
.counter-btn { width: 34px; height: 34px; border-radius: var(--radius-sm); border: var(--border-w) solid #000;
  background: var(--c-yellow-bg); font-size: 17px; font-weight: 800; cursor: pointer; line-height: 1;
  transition: transform .1s ease, box-shadow .1s ease; box-shadow: var(--shadow-press); }
.counter-btn:hover { transform: translate(-1px,-1px); box-shadow: var(--shadow-sm); }
.counter-btn:active { transform: translate(2px,2px); box-shadow: none; }
.chk-btn { padding: 7px 16px; border-radius: var(--radius-sm); border: var(--border-w) solid #000; background: #fff;
  cursor: pointer; font-size: 13.5px; font-family: var(--font-sans); font-weight: 700; transition: transform .1s ease, box-shadow .1s ease; box-shadow: var(--shadow-sm); }
.chk-btn:hover { transform: translate(-1px,-1px); box-shadow: var(--shadow); }
.chk-btn:active { transform: translate(2px,2px); box-shadow: var(--shadow-press); }
.chk-btn.done { background: var(--c-lime); color: #0A0A0A; }

/* ============================================================
   减脂健身
   ============================================================ */
.fit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: var(--gap); margin-bottom: 20px; }
.week-plan { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.wp-day { background: #fff; border: var(--border-w) solid #000; border-radius: var(--radius-sm);
  padding: 10px; min-height: 70px; box-shadow: var(--shadow-sm); transition: transform .12s ease, box-shadow .12s ease; }
.wp-day:hover { transform: translate(-2px,-2px); box-shadow: var(--shadow); }
.wp-day .wp-dname { font-size: 12px; color: var(--ink-3); font-weight: 800; }
.wp-day .wp-dtext { font-size: 13px; margin-top: 6px; line-height: 1.4; font-weight: 600; }
.wp-day.rest .wp-dtext { color: var(--ink-3); }

/* ============================================================
   日程统筹
   ============================================================ */
.sch-group { margin-bottom: 18px; }
.sch-date { font-size: 13px; color: var(--ink-3); font-family: var(--font-mono); margin-bottom: 8px;
  border-bottom: 2px dashed #000; padding-bottom: 4px; font-weight: 700; }
.sch-item { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: var(--radius-sm);
  border: var(--border-w) solid #000; background: #fff; margin-bottom: 8px; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: transform .1s ease, box-shadow .1s ease, background .12s; }
.sch-item:active { transform: translate(2px,2px); box-shadow: var(--shadow-press); }
.sch-item:hover { background: var(--c-purple-bg); transform: translate(-2px,-2px); box-shadow: var(--shadow); }
.sch-time { font-family: var(--font-mono); font-size: 13px; color: #0A0A0A; min-width: 48px; font-weight: 800; }
.sch-title { flex: 1; font-size: 14.5px; font-weight: 700; }
.sch-item.done .sch-title { text-decoration: line-through; color: var(--ink-3); }
.sch-item.done .sch-time { color: var(--ink-3); }
.dot-done { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #000; display: grid; place-items: center; font-size: 11px; }
.sch-item.done .dot-done { background: var(--income); border-color: #000; color: #fff; }

/* ============================================================
   待买清单
   ============================================================ */
.shop-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
@media (max-width: 720px){ .shop-cols { grid-template-columns: 1fr; } }
.shop-list { display: flex; flex-direction: column; gap: 8px; }
.shop-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: var(--border-w) solid #000;
  background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); transition: transform .1s ease, box-shadow .1s ease; }
.shop-item:hover { transform: translate(-2px,-2px); box-shadow: var(--shadow); }
.shop-item:active { transform: translate(2px,2px); box-shadow: var(--shadow-press); }
.shop-item.bought { opacity: .65; background: var(--c-lime-bg); }
.shop-item.bought .shop-name { text-decoration: line-through; }
.shop-name { flex: 1; font-size: 14.5px; font-weight: 700; }
.shop-note { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.prio { font-size: 11px; padding: 1px 8px; border-radius: 999px; font-weight: 800; border: 2px solid #000; }
.prio.高 { background: var(--c-pink); }
.prio.中 { background: var(--c-yellow); }
.prio.低 { background: #fff; }

/* ============================================================
   书影音收藏
   ============================================================ */
.media-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
.media-card { border: var(--border-w) solid #000; border-radius: var(--radius-sm); overflow: hidden; background: #fff;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; box-shadow: var(--shadow-sm); }
.media-card:hover { transform: translate(-3px,-3px); box-shadow: var(--shadow-lg); }
.media-card:active { transform: translate(2px,2px); box-shadow: var(--shadow-press); }
.media-cover { height: 170px; display: grid; place-items: center; color: #0A0A0A; font-size: 30px; font-family: var(--font-display); font-weight: 800;
  position: relative; border-bottom: var(--border-w) solid #000; }
.media-cover .m-type { position: absolute; top: 8px; left: 8px; font-size: 11px; background: #fff;
  padding: 2px 8px; border-radius: 999px; border: 2px solid #000; font-weight: 700; }
.media-cover .m-stars { position: absolute; bottom: 8px; right: 8px; font-size: 12px; background: #fff;
  padding: 2px 8px; border-radius: 999px; border: 2px solid #000; font-weight: 700; }
.media-info { padding: 9px 11px; }
.media-info .m-title { font-size: 13.5px; font-weight: 800; line-height: 1.35; }
.media-info .m-status { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; font-weight: 600; }

/* ============================================================
   滚动进度条 + 滚动揭示 + 黑底 Footer
   ============================================================ */
.scroll-progress { position: fixed; top: 0; left: 0; height: 6px; width: 0%;
  background: var(--c-pink); border-right: 3px solid #000; border-bottom: 3px solid #000;
  z-index: 100; transition: width .08s linear; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

.site-footer { background: #000; color: #F5F5F0; border-top: var(--border-w) solid #000;
  padding: 26px clamp(20px, 3vw, 38px); position: relative; z-index: 2; overflow: hidden; }
.site-footer .foot-stripes { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .18; pointer-events: none; }
.site-footer .foot-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; }
.site-footer strong { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--c-yellow); }
.site-footer .foot-meta { font-size: 12.5px; color: #cfcfcf; font-weight: 600; }
.site-footer .foot-tag { font-family: var(--font-mono); font-weight: 700; font-size: 12px;
  background: var(--c-pink); color: #0A0A0A; padding: 4px 10px; border: 2px solid #fff; border-radius: var(--radius-sm); }

/* ---------- 响应式 ---------- */
@media (max-width: 760px) {
  .app { grid-template-columns: 64px 1fr; }
  .brand-text, .nav-group, .nav-item span:not(.nav-ico), .sidebar-foot span { display: none; }
  .nav-item { justify-content: center; }
  .remind-bar { left: 64px; }
  .board { grid-auto-columns: 82vw; }
}

/* ---------- 尊重 prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .scroll-progress { transition: none; }
}

/* ---------- 未登录门（强制登录后才显示数据） ---------- */
.auth-gate { display: flex; align-items: center; justify-content: center; min-height: 54vh; padding: 24px; }
.auth-gate-card { background: #fff; border: var(--border-w) solid #0A0A0A; border-radius: 20px;
  box-shadow: 8px 8px 0 #000; padding: 34px 38px; text-align: center; max-width: 440px; }
.auth-gate-emoji { font-size: 50px; line-height: 1; }
.auth-gate-card h2 { margin: 10px 0 6px; font-family: var(--font-display); font-weight: 800; font-size: 26px; color: #0A0A0A; }
.auth-gate-card .muted { color: var(--ink-2); margin: 0 0 20px; font-weight: 600; line-height: 1.6; }
.auth-gate-btns { display: flex; gap: 12px; justify-content: center; }
.auth-gate-btns .btn { min-width: 104px; }
