:root {
  --bg: #f4f6f9;
  --card: #ffffff;
  --ink: #1a2233;
  --muted: #6b7280;
  --line: #e5e9f0;
  --brand: #1f6f5c;
  --brand-2: #2d9a7d;
  --accent: #0f6cbd;
  --warn: #c77d0a;
  --danger: #c0392b;
  --ok: #1f8a4c;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(16,24,40,.08), 0 4px 14px rgba(16,24,40,.05);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.55;
}
.hidden { display: none !important; }
a { color: var(--accent); text-decoration: none; }

/* 登录 */
#login-view {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #134e40 0%, #1f6f5c 55%, #2d9a7d 100%);
  padding: 20px;
}
.login-card {
  background: #fff; border-radius: 18px; padding: 36px 32px; width: 100%; max-width: 380px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.logo { font-size: 26px; font-weight: 700; color: var(--brand); text-align: center; }
.sub { text-align: center; color: var(--muted); font-size: 13px; margin: 4px 0 24px; }
#login-form label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; }
#login-form input {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px;
  font-size: 15px; outline: none;
}
#login-form input:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(45,154,125,.15); }
.hint { margin-top: 20px; font-size: 12px; color: var(--muted); background: var(--bg);
  border-radius: 9px; padding: 12px; line-height: 1.7; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 15px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 14px; cursor: pointer;
  transition: .15s; white-space: nowrap;
}
.btn:hover { border-color: #cdd4de; background: #f8fafc; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: #185a4c; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.danger { color: var(--danger); border-color: #f3c9c4; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.block { width: 100%; }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* 顶栏 */
.topbar {
  position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; padding: 10px 18px;
}
.brand { font-weight: 700; font-size: 17px; color: var(--brand); }
.brand-sub { font-weight: 400; font-size: 13px; color: var(--muted); }
.userbox { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.role-badge {
  font-size: 12px; padding: 2px 8px; border-radius: 20px; background: #eef2f7; color: var(--muted);
}
.role-badge.boss { background: #fdeeea; color: var(--danger); }
.role-badge.manager { background: #fef3e0; color: var(--warn); }
.role-badge.staff { background: #e8f3ee; color: var(--brand); }

/* 导航 */
.nav {
  position: sticky; top: 49px; z-index: 15; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; gap: 2px; padding: 0 10px; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.nav a {
  padding: 11px 14px; color: var(--muted); font-size: 14px; border-bottom: 2px solid transparent;
  white-space: nowrap; flex: 0 0 auto;
}
.nav a.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.nav a .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--danger); margin-left: 4px; vertical-align: 2px; }

/* 内容 */
.content { max-width: 1080px; margin: 0 auto; padding: 20px 16px 90px; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; margin-bottom: 16px; }
.card h3 { margin: 0 0 12px; font-size: 16px; }
.card h3 .tag { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 8px; }
.section-title { font-size: 18px; font-weight: 700; margin: 4px 0 14px; }

/* 首页 */
.hero-banner { background: linear-gradient(120deg, #134e40, #1f6f5c); color: #fff;
  border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.hero-banner h2 { margin: 0 0 6px; font-size: 19px; }
.hero-banner p { margin: 0; opacity: .92; font-size: 14px; }
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px;
  margin-bottom: 16px; }
.kpi { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px; text-align: center; }
.kpi .num { font-size: 30px; font-weight: 700; color: var(--brand); }
.kpi .num.warn { color: var(--warn); }
.kpi .num.danger { color: var(--danger); }
.kpi .lbl { font-size: 13px; color: var(--muted); margin-top: 2px; }
.entry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.entry { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 16px; text-align: center; cursor: pointer; transition: .15s; border: 1px solid transparent; }
.entry:hover { transform: translateY(-2px); border-color: var(--brand-2); }
.entry .ic { font-size: 28px; }
.entry .t { font-weight: 600; margin-top: 8px; }
.entry .d { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* 表格 */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 13px; white-space: nowrap; }
tr:hover td { background: #f8fafc; }
.empty { text-align: center; color: var(--muted); padding: 34px 0; font-size: 14px; }
.table-wrap { overflow-x: auto; }

/* 徽标 / 状态 */
.pill { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 20px; }
.pill.pending { background: #fef3e0; color: var(--warn); }
.pill.active { background: #e8f3ee; color: var(--brand); }
.pill.done { background: #e8eefd; color: var(--accent); }
.pill.rejected { background: #fdeeea; color: var(--danger); }
.pill.submitted { background: #e8f3ee; color: var(--brand); }
.pill.draft { background: #eef2f7; color: var(--muted); }
.pill.off { background: #eef2f7; color: var(--muted); }

/* 表单 */
label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 5px; }
input, select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px;
  font-size: 14px; outline: none; background: #fff; font-family: inherit;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand-2); }
textarea { resize: vertical; min-height: 76px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 14px; }
.form-grid label { grid-column: 1 / -1; }
.form-grid .full { grid-column: 1 / -1; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

/* 消息 / toast */
.msg { margin-top: 12px; font-size: 13px; color: var(--danger); min-height: 18px; }
.msg.ok { color: var(--ok); }
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  background: #111827; color: #fff; padding: 11px 18px; border-radius: 10px; font-size: 14px;
  z-index: 100; box-shadow: 0 8px 24px rgba(0,0,0,.3); max-width: 90vw;
}
.toast.err { background: var(--danger); }

/* 匹配理由 */
.reason-box { background: #f6faf8; border: 1px solid #d6ece3; border-radius: 9px;
  padding: 10px 12px; font-size: 14px; }
.score { font-weight: 700; color: var(--brand); font-size: 15px; }

/* 弹窗 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(10,16,28,.45); z-index: 50;
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.modal { background: #fff; border-radius: 14px; padding: 22px; width: 100%; max-width: 520px;
  max-height: 88vh; overflow-y: auto; }

.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .spacer { flex: 1; }
.search { max-width: 260px; }

@media (max-width: 640px) {
  .topbar { padding: 9px 12px; }
  .brand { font-size: 15px; }
  .brand-sub, .userbox #user-name { display: none; }
  .nav { top: 46px; }
  .content { padding: 14px 10px 90px; }
  .kpi-row { grid-template-columns: repeat(3, 1fr); }
  .entry-grid { grid-template-columns: repeat(3, 1fr); }
  .entry { padding: 16px 8px; }
}

/* ===== AI 悬浮机器人 ===== */
#ai-fab {
  position: fixed; right: 18px; bottom: 18px; width: 64px; height: 64px;
  cursor: pointer; z-index: 900; transition: transform .2s; border: none;
  background: transparent; padding: 0;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.22));
}
#ai-fab:hover { transform: scale(1.1) rotate(-4deg); }
.ai-head-mochi { width: 26px; height: 26px; display: inline-block; }
.ai-chat {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 660px; max-width: 94vw; height: 74vh;
  background: #fff; border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.3);
  display: flex; flex-direction: column; z-index: 901; overflow: hidden;
  border: 1px solid #e6e8ef;
}
.ai-hidden { display: none !important; }
.ai-chat-head { background: linear-gradient(135deg,#667eea,#764ba2); color:#fff; padding: 12px 14px; font-weight:600; display:flex; justify-content:space-between; align-items:center; }
.ai-x { background:transparent; border:none; color:#fff; font-size:16px; cursor:pointer; }
.ai-chat-body { flex:1; overflow-y:auto; padding: 12px; display:flex; flex-direction:column; gap:8px; background:#f7f8fb; }
.ai-bubble { max-width: 85%; padding: 9px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.ai-bot { background:#fff; border:1px solid #e6e8ef; align-self:flex-start; border-bottom-left-radius: 4px; }
.ai-user { background: #2563eb; color:#fff; align-self:flex-end; border-bottom-right-radius: 4px; }
.ai-chat-input { display:flex; gap:8px; padding:10px; border-top:1px solid #e6e8ef; background:#fff; }
.ai-chat-input input { flex:1; }

/* 两列布局（首页记事本 + 下达任务） */
.row-2col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
@media (max-width: 820px) { .row-2col { grid-template-columns: 1fr; } }

/* 麻薯通知气泡 */
.mochi-notice { display: flex; gap: 14px; align-items: flex-start; max-width: 420px; }
.mochi-avatar { width: 72px; height: 72px; flex: 0 0 72px; animation: mochi-pop .5s cubic-bezier(.34,1.56,.64,1); }
.mochi-bubble {
  flex: 1; background: #fff; border-radius: 16px 16px 16px 4px; padding: 16px 18px;
  box-shadow: 0 8px 30px rgba(0,0,0,.18); border: 1px solid #f0e2d8;
}
.mochi-name { font-size: 13px; color: #b98a63; font-weight: 600; margin-bottom: 6px; }
.mochi-text { font-size: 15px; line-height: 1.6; margin-bottom: 12px; }
@keyframes mochi-pop { 0% { transform: scale(0) rotate(-20deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }

/* 麻薯快捷问题 */
.ai-quick { display: flex; gap: 6px; padding: 8px 10px; border-top: 1px solid #f0e2d8; background: #fdfaf7; flex-wrap: wrap; }
.ai-quick button {
  border: 1px solid #ecd6c8; background: #fff; border-radius: 999px; padding: 4px 10px;
  font-size: 12px; cursor: pointer; color: #7a5a44; transition: all .15s;
}
.ai-quick button:hover { background: #fde7d5; border-color: #e6b897; }

/* 置顶公告横幅 */
.announce-banner { background: linear-gradient(135deg,#fff7e6,#fff3d6); border:1px solid #f0d9a8; border-radius:12px; padding:12px 14px; margin-bottom:14px; }
.announce-item { font-size:14px; line-height:1.6; color:#6b4e1e; }
.announce-item + .announce-item { margin-top:8px; padding-top:8px; border-top:1px dashed #ecd7a8; }

/* 反馈按钮 */
#fb-fab {
  position: fixed; left: 18px; bottom: 18px; width: 48px; height: 48px;
  border-radius: 50%; background: #fff; border: 1px solid #e6e8ef;
  font-size: 22px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.15); z-index: 900;
  transition: transform .2s;
}
#fb-fab:hover { transform: scale(1.08); }

/* 首页内嵌麻薯对话框 */
.ai-inline-body { max-height: 240px; overflow-y: auto; padding: 4px 0; display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; background: #fafafc; border-radius: 10px; padding: 10px; }

/* 转化漏斗 */
.funnel-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.funnel-label { width: 40px; flex: 0 0 40px; font-size: 13px; color: var(--muted); }
.funnel-bar-wrap { flex: 1; background: #f1f3f7; border-radius: 6px; overflow: hidden; }
.funnel-bar { height: 28px; line-height: 28px; padding: 0 10px; font-size: 13px; color: #fff; font-weight: 600; background: linear-gradient(90deg, #22c55e, #16a34a); border-radius: 6px; min-width: 28px; transition: width .4s; }
.funnel-rate { width: 64px; flex: 0 0 64px; font-size: 12px; color: #8a93a6; text-align: right; }

/* 全局公告栏（全页置顶） */
.global-announce { background: linear-gradient(135deg,#fff7e6,#fff3d6); border-bottom:1px solid #f0d9a8; padding: 8px 16px; overflow-x: auto; white-space: nowrap; }
.ga-item { font-size: 13px; color: #6b4e1e; margin-right: 28px; display: inline-block; }

/* 消息铃铛 */
.bell { position: relative; font-size: 20px; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.bell:hover { background: #f0f2f7; }
.bell-dot { position: absolute; top: 2px; right: 4px; width: 16px; height: 16px; border-radius: 50%; background: #ef4444; color: #fff; font-size: 10px; line-height: 16px; text-align: center; }

/* tab 栏 */
.tab-bar { display: flex; gap: 8px; margin-bottom: 14px; border-bottom: 2px solid var(--line); }
.tab-btn { border: none; background: none; padding: 10px 16px; font-size: 15px; cursor: pointer; color: var(--muted); border-bottom: 3px solid transparent; }
.tab-btn.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }

/* 附件按钮 */
.ai-attach { border: none; background: none; font-size: 18px; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.ai-attach:hover { background: #f0f2f7; }
/* 确认卡片 */
.confirm-card { background: #f0fdf4; border: 1px solid #86efac; border-radius: 12px; padding: 12px 14px; margin: 8px 0; }
.confirm-card h4 { margin: 0 0 6px; font-size: 14px; color: #166534; }
.confirm-card .cc-field { font-size: 13px; color: #374151; margin: 4px 0; }
.confirm-card .cc-field input, .confirm-card .cc-field select { width: 100%; margin-top: 2px; }

/* 首页区块（记事本/待办） */
.home-block .block-scroll { max-height: 300px; overflow-y: auto; }
.home-block h3 { display: flex; align-items: center; gap: 8px; }
.block-tag { font-size: 11px; color: var(--muted); font-weight: 400; background: #f0f2f7; padding: 2px 8px; border-radius: 999px; }

/* 2026-12 商业版统一视觉：品牌绿、暖白与低干扰状态色 */
:root {
  --bg: #f5f6f2; --card: #fffefb; --ink: #17251f; --muted: #68756e;
  --line: #e3e8e2; --brand: #176b52; --brand-2: #2d8b6d; --accent: #176b52;
  --warn: #a96912; --danger: #b44437; --ok: #237a51; --radius: 14px;
  --shadow: 0 1px 2px rgba(26,48,38,.04), 0 8px 24px rgba(26,48,38,.045);
}
body { background: var(--bg); letter-spacing: .01em; }
a { color: var(--brand); }
.content { max-width: 1320px; padding: 24px 24px 100px; }
.card { border: 1px solid rgba(220,228,220,.82); box-shadow: var(--shadow); padding: 20px; }
.card[style*="border-left"] { border-left: 1px solid rgba(220,228,220,.82) !important; }
.section-title { font-size: 22px; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.topbar { min-height: 62px; padding: 10px 24px; background: rgba(255,254,251,.96); backdrop-filter: blur(12px); }
.nav { top: 62px; padding: 0 18px; background: rgba(255,254,251,.96); backdrop-filter: blur(12px); }
.nav a { color: #53645b; }
.hero-banner { background: linear-gradient(120deg, #164f40, #23775d); padding: 26px; }
.hero-banner h2 { font-size: 24px; }
.kpi { border: 1px solid rgba(220,228,220,.82); box-shadow: var(--shadow); text-align: left; padding: 20px; }
.kpi .num { font-size: 32px; font-variant-numeric: tabular-nums; }
.kpi .lbl { margin-top: 6px; }
.account-button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 5px 8px; border-radius: 9px; color: var(--ink); cursor: pointer; }
.account-button:hover { background: #eef4ef; }
.account-button > span:last-child { color: var(--muted); font-size: 13px; }
.mochi-avatar, .ai-head-mochi, #ai-fab { overflow: visible; border-radius: 50%; background: radial-gradient(circle at 50% 60%, #fff6ec 0%, #fde8de 70%); }
.mochi-avatar img, .ai-head-mochi img, #ai-fab img { display: block; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(120,70,40,.18)); }
#ai-fab { border: 3px solid #fff; box-shadow: 0 8px 24px rgba(38,56,45,.2); }
.ai-chat-head { background: #1c6651; }
.ai-user { background: var(--brand); }
.ai-chat-input input { min-width: 0; }
.btn { min-height: 38px; }
.btn.small { min-height: 32px; }
.btn.primary { background: var(--brand); border-color: var(--brand); }
.btn.accent { background: #a65b46; border-color: #a65b46; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(45,139,109,.24); outline-offset: 2px; }
input, select, textarea { min-height: 40px; border-color: #dbe2dc; }
.form-grid { gap: 2px 16px; }
.form-grid > div > label { grid-column: auto; }
.modal { max-width: 600px; border: 1px solid var(--line); box-shadow: 0 24px 80px rgba(22,42,32,.2); }
.modal.wide { max-width: 920px; }
.modal h3 { margin-top: 0; }
.table-wrap { max-width: 100%; overscroll-behavior-x: contain; }
th { background: #f7f9f6; }
td { overflow-wrap: anywhere; }
.toolbar { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,254,251,.7); }
.toolbar .search { max-width: 300px; }
.helper { color: var(--muted); font-size: 13px; line-height: 1.65; }
.inline-alert { padding: 12px 14px; border-radius: 10px; background: #fff6e7; color: #855817; border: 1px solid #eedfbf; margin-bottom: 14px; }
.inline-success { padding: 12px 14px; border-radius: 10px; background: #edf7f0; color: #206345; border: 1px solid #d3e8da; margin-bottom: 14px; }
.progress-track { height: 8px; background: #e8ede8; border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--brand); border-radius: inherit; transition: width .25s; }
.property-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(270px,1fr)); gap: 16px; }
.property-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; min-width: 0; }
.property-cover { position: relative; aspect-ratio: 16/10; background: #e9eee9; overflow: hidden; }
.property-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.property-card:hover .property-cover img { transform: scale(1.015); }
.property-placeholder { height: 100%; display: grid; place-items: center; color: #7a8980; font-size: 14px; }
.property-body { padding: 16px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.property-title { font-size: 17px; font-weight: 700; line-height: 1.4; }
.property-price { font-size: 20px; font-weight: 750; color: #a6533f; font-variant-numeric: tabular-nums; }
.property-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--muted); font-size: 13px; }
.property-actions { margin-top: auto; display: flex; gap: 8px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 10px; }
.gallery-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; background: #eef1ed; }
.detail-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 20px; margin: 16px 0; }
.detail-list > div { min-width: 0; }
.detail-list dt { color: var(--muted); font-size: 12px; margin-bottom: 3px; }
.detail-list dd { margin: 0; overflow-wrap: anywhere; }
.account-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,.8fr); gap: 16px; }
.user-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.user-row:last-child { border-bottom: 0; }
.user-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.clickable-message { cursor: pointer; }
.sync-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.source-chip { font-size: 11px; border: 1px solid #dce6df; border-radius: 999px; padding: 2px 7px; color: var(--muted); }
.loading-page { padding: 70px 20px; text-align: center; color: var(--muted); }

@media (max-width: 900px) {
  .content { padding: 18px 16px 100px; }
  .account-grid { grid-template-columns: 1fr; }
  .property-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .topbar { padding: 10px 14px; }
  .nav { top: 62px; }
}
@media (max-width: 640px) {
  .content { padding: 14px 10px 100px; }
  .topbar { min-height: 56px; }
  .nav { top: 56px; padding: 0 6px; }
  .brand-sub { display: none; }
  .account-button > span:last-child { display: none; }
  .userbox { gap: 2px; }
  .section-title { font-size: 20px; }
  .card { padding: 15px; }
  .kpi-row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .kpi { padding: 15px; }
  .kpi .num { font-size: 26px; }
  .entry-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .property-grid { grid-template-columns: 1fr; }
  .property-cover { aspect-ratio: 16/9; }
  .detail-list { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .toolbar { align-items: stretch; }
  .toolbar input, .toolbar select, .toolbar .search { max-width: none; width: 100%; }
  .toolbar .spacer { display: none; }
  .modal-mask { padding: 10px; align-items: flex-end; }
  .modal { max-height: 92vh; border-radius: 16px 16px 10px 10px; padding: 18px; }
  .ai-chat { width: 100vw; max-width: 100vw; height: 88dvh; top: auto; bottom: 0; left: 0; transform: none; border-radius: 18px 18px 0 0; }
  #ai-fab { width: 58px; height: 58px; right: 12px; bottom: 12px; }
  .mochi-notice { max-width: calc(100vw - 20px); }
  .mochi-avatar { width: 58px; height: 58px; flex-basis: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- 任务中心 ---------- */
.task-tabs, .task-counts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.chip { border: 1px solid var(--line); background: #fff; color: var(--ink, #17251f); border-radius: 20px; padding: 5px 14px; font-size: 13px; cursor: pointer; }
.chip:hover { border-color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip.count b { margin-left: 2px; }
.chip.count.danger:not(.on) { color: var(--danger); border-color: #f0c9c3; background: #fdf4f2; }
.task-filters select { width: auto; min-width: 120px; }
.task-filters input { flex: 1; min-width: 160px; }
.task-filter-note { font-size: 13px; color: var(--muted); margin: -4px 0 10px; }
.task-group { margin-bottom: 14px; }
.task-group-title { font-weight: 600; font-size: 14px; margin: 6px 0; color: var(--ink, #17251f); }
.task-group.overdue .task-group-title { color: var(--danger); }
.task-row { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.task-row:hover { border-color: var(--brand); box-shadow: 0 2px 10px rgba(22,42,32,.06); }
.task-row.overdue { border-left: 4px solid var(--danger); }
.task-row.closed { opacity: .72; }
.task-row.closed .task-title { text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }
.task-main { flex: 1; min-width: 0; }
.task-title { font-size: 14px; line-height: 1.5; word-break: break-word; }
.task-meta { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.task-due { font-size: 12px; color: var(--muted); white-space: nowrap; }
.task-due.danger { color: var(--danger); font-weight: 600; }
.task-btns { display: flex; gap: 6px; }
.task-pager { display: flex; gap: 10px; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); margin-top: 8px; }
.pill.task-st.pending { background: #fef3e0; color: var(--warn); }
.pill.task-st.doing { background: #e8eefd; color: #2f5bd3; }
.pill.task-st.blocked { background: #eef2f7; color: #6b7280; }
.pill.task-st.done { background: #e8f3ee; color: var(--ok); }
.pill.task-st.cancelled { background: #f3f4f6; color: #9ca3af; text-decoration: line-through; }
.pill.prio-urgent { background: #fdeeea; color: var(--danger); font-weight: 600; }
.pill.prio-high { background: #fff4e5; color: #b45309; }
.td-desc { white-space: pre-wrap; background: #f8faf8; border-radius: 10px; padding: 10px 12px; margin: 10px 0; font-size: 14px; }
.td-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; margin: 12px 0; }
.td-field { font-size: 13px; }
.td-field span { color: var(--muted); font-size: 12px; display: block; }
.td-actions { flex-wrap: wrap; justify-content: flex-start; }
.danger-text { color: var(--danger) !important; }
.timeline { border-left: 2px solid var(--line); margin: 6px 0 10px 6px; padding-left: 14px; max-height: 260px; overflow-y: auto; }
.tl-item { position: relative; padding: 4px 0 10px; font-size: 13px; }
.tl-dot { position: absolute; left: -20px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.tl-item.complete .tl-dot { background: var(--ok); }
.tl-item.cancel .tl-dot, .tl-item.block .tl-dot { background: var(--danger); }
.tl-item.comment .tl-dot { background: var(--brand); }
.tl-time { color: var(--muted); font-size: 12px; margin-left: 4px; }
.tl-detail { color: #374151; background: #f8faf8; border-radius: 8px; padding: 5px 9px; margin-top: 4px; white-space: pre-wrap; }
.td-comment { display: flex; gap: 8px; }
.td-comment input { flex: 1; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.collab-box { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; max-height: 120px; overflow-y: auto; }
.collab-opt { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; margin: 0; }
.collab-opt input, .inline-check input { width: auto; }
.inline-check { display: flex; align-items: center; gap: 6px; font-size: 13px; margin-top: 10px; }
.cust-pick { position: relative; }
.cust-results { position: absolute; left: 0; right: 0; z-index: 5; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.cust-results:empty { display: none; }
.cust-item { padding: 8px 12px; cursor: pointer; font-size: 14px; }
.cust-item:hover { background: #f3f7f4; }
.pa-summary { font-size: 14px; margin: 6px 0 4px; white-space: pre-wrap; }
@media (max-width: 640px) {
  .task-row { flex-wrap: wrap; }
  .task-due { order: 3; }
  .task-btns { order: 4; width: 100%; justify-content: flex-end; }
  .td-grid, .form-2col { grid-template-columns: 1fr; }
}

/* ---------- 质感与动效 ---------- */
.btn { transition: transform .08s ease, box-shadow .15s ease, background .15s ease; }
.btn:active:not(:disabled), .chip:active { transform: scale(.96); }
.btn.primary { box-shadow: 0 2px 8px rgba(23,107,82,.18); }
.card { transition: box-shadow .2s ease; }
.card:hover { box-shadow: 0 6px 22px rgba(60,40,20,.06); }
.kpi .num { font-variant-numeric: tabular-nums; }
#ai-fab { transition: transform .2s cubic-bezier(.34,1.56,.64,1); }
#ai-fab:hover { transform: translateY(-3px) rotate(-4deg); }
.confetti-box { position: fixed; z-index: 3000; pointer-events: none; width: 0; height: 0; }
.confetti-box i { position: absolute; width: 8px; height: 8px; border-radius: 2px; animation: confetti-fly .9s cubic-bezier(.2,.8,.3,1) forwards; }
.confetti-box .big-check { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; background: var(--ok); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 26px; animation: check-pop .9s ease forwards; }
@keyframes confetti-fly { 0% { transform: translate(0,0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), calc(var(--dy) + 60px)) rotate(360deg); opacity: 0; } }
@keyframes check-pop { 0% { transform: scale(.2); opacity: 0; } 25% { transform: scale(1.15); opacity: 1; } 60% { transform: scale(1); opacity: 1; } 100% { transform: scale(.9); opacity: 0; } }
.task-row.fresh, .ib-item.fresh { animation: bounce-in .7s cubic-bezier(.34,1.56,.64,1); border-color: #f5c46b; }
@keyframes bounce-in { 0% { transform: translateY(-8px) scale(.98); opacity: .2; } 60% { transform: translateY(2px) scale(1.01); opacity: 1; } 100% { transform: none; } }
.modal-mask:not(.hidden) .modal { animation: modal-in .22s ease-out; }
@keyframes modal-in { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
/* 公告弹窗 */
.ann-pop { text-align: left; border-top: 5px solid #f59e0b; }
.ann-pop-tag { display: inline-block; background: #fff4e0; color: #a96912; font-size: 12px; padding: 2px 10px; border-radius: 20px; margin-bottom: 6px; }
.ann-pop-body { white-space: pre-wrap; font-size: 15px; line-height: 1.7; margin: 8px 0 12px; }
/* 麻薯问候 */
.ai-bubble.greet .greet-quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.ai-bubble.greet .chip { font-size: 12px; padding: 4px 10px; }
/* 全局搜索 */
.gsearch { position: relative; margin-right: 12px; }
.gsearch input { width: 230px; padding: 6px 12px; border-radius: 20px; font-size: 13px; background: #f7f5ef; }
.gsearch-res { position: absolute; right: 0; top: 36px; width: 320px; max-height: 420px; overflow-y: auto; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.12); z-index: 200; padding: 6px; }
.gs-sec { font-size: 12px; color: var(--muted); padding: 6px 8px 2px; }
.gs-item { display: block; padding: 7px 10px; border-radius: 8px; color: inherit; text-decoration: none; font-size: 14px; }
.gs-item:hover { background: #f3f7f4; }
.gs-empty { padding: 10px; color: var(--muted); font-size: 13px; }
@media (max-width: 760px) { .gsearch input { width: 130px; } .gsearch-res { width: 280px; right: -60px; } }
/* 一键跟进 */
.quick-fu { border-left: 4px solid #f59e0b; }
.qf-choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.qf-extra { display: flex; gap: 8px; flex-wrap: wrap; }
.qf-extra input[type=text], .qf-extra #qf-note { flex: 1; min-width: 160px; }
.qf-extra input[type=date] { width: 160px; }
/* AI 收件箱 */
.ib-drop { border: 2px dashed #e2c9a8; border-radius: 14px; padding: 22px; text-align: center; background: linear-gradient(180deg,#fffaf3,#fff); transition: background .15s, border-color .15s; }
.ib-drop.over { background: #fff1dc; border-color: #f59e0b; }
.ib-drop-ic { font-size: 34px; }
.ib-actions { margin-top: 8px; }
.ib-paste { display: flex; gap: 8px; margin-top: 12px; }
.ib-paste textarea { flex: 1; min-height: 44px; }
.ib-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.tagchip { border: none; background: #f3efe6; color: #6b5a3c; border-radius: 12px; padding: 2px 9px; font-size: 12px; cursor: pointer; }
.tagchip.on { background: #f59e0b; color: #fff; }
.ib-item { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: #fff; }
.ib-ic { font-size: 26px; width: 36px; text-align: center; }
.ib-main { flex: 1; min-width: 0; }
.ib-title { font-weight: 600; word-break: break-all; }
.ib-meta { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ib-ops { display: flex; flex-direction: column; gap: 6px; }
.ib-ops select { width: 110px; font-size: 12px; }
.dup-group { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }

/* ===== 第三轮：筛选标签、徽章、批量条、分页、面板 v2、注册、命令面板 ===== */
.section-title .sub{font-size:12px;color:var(--muted);font-weight:normal;margin-left:8px}
.chips{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:6px 0}
.chip{border:1px solid #d6dbe4;background:#fff;border-radius:999px;padding:5px 12px;font-size:13px;cursor:pointer;color:#334155;line-height:1.3}
.chip b{font-weight:600;color:#64748b;margin-left:2px}
.chip.small{padding:2px 9px;font-size:12px}
.chip.on{background:var(--brand,#2563eb);border-color:var(--brand,#2563eb);color:#fff}
.chip.on b{color:#fff}
.chip.hot:not(.on){border-color:#f59e0b;color:#b45309}
.chip.view{background:#f1f5f9}
.chip.view i{font-style:normal;margin-left:4px;color:#94a3b8}
.chip.view i:hover{color:#dc2626}
.badge{display:inline-block;font-size:11px;padding:1px 7px;border-radius:999px;white-space:nowrap;margin:1px 0}
.badge.ok{background:#dcfce7;color:#166534}.badge.warn{background:#fef3c7;color:#92400e}.badge.muted{background:#f1f5f9;color:#64748b}
.warn-text{color:#b45309;font-weight:600}
.muted{color:var(--muted,#64748b)}.small{font-size:12px}
.star-btn{border:none;background:none;font-size:16px;cursor:pointer}
.batch-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;background:#eff6ff;border:1px solid #bfdbfe;border-radius:10px;padding:8px 12px;margin:8px 0;font-size:13px}
.batch-bar select{width:auto}
.pager{display:flex;gap:8px;align-items:center;justify-content:flex-end;padding:10px 4px 2px}
.toast-act{margin-left:10px;background:#fff;color:#111;border:none;border-radius:6px;padding:2px 10px;cursor:pointer;font-weight:600}
.dash-v2 .dash-head{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.dash-v2 .dash-head h3{margin:0}
.dash-v2.loading,#dash-v2.loading{opacity:.6}
.kpi-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;margin:12px 0}
.kpi2{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:10px 12px}
.kpi2 .lbl{font-size:12px;color:#64748b}.kpi2 .num{font-size:22px;font-weight:700;margin:2px 0}
.delta{font-size:12px;font-weight:600}.delta.up{color:#16a34a}.delta.down{color:#dc2626}.delta.flat{color:#94a3b8}
.dash-2col{display:grid;grid-template-columns:1fr 1.3fr;gap:18px}
.chart{width:100%;height:auto}.chart .grid{stroke:#e2e8f0}.chart .axis{font-size:10px;fill:#94a3b8}
.legends{display:flex;gap:12px;flex-wrap:wrap;font-size:12px;color:#475569}
.legend i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:4px;vertical-align:middle}
.emp-table th.sortable{cursor:pointer;white-space:nowrap}.emp-table th.on{color:var(--brand,#2563eb)}
.mini-bar{height:4px;background:#e2e8f0;border-radius:2px;margin-top:3px;width:90px}.mini-bar i{display:block;height:4px;background:var(--brand,#2563eb);border-radius:2px}
.auth-switch{text-align:center;margin-top:10px}
.link-btn{background:none;border:none;color:var(--brand,#2563eb);cursor:pointer;font-size:13px;text-decoration:underline}
.msg.ok{color:#166534}.msg.info{color:#1d4ed8}
input.invalid,select.invalid{border-color:#dc2626!important;box-shadow:0 0 0 2px #fecaca}
.account-button{position:relative}
.badge-dot{position:absolute;top:-6px;right:-6px;min-width:18px;height:18px;border-radius:9px;background:#dc2626;color:#fff;font-size:11px;line-height:18px;text-align:center;padding:0 4px}
.reg-row .user-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.reg-row select{width:auto}
.cmdk-mask{position:fixed;inset:0;background:rgba(15,23,42,.35);display:flex;justify-content:center;align-items:flex-start;padding-top:12vh;z-index:9999}
.cmdk{background:#fff;width:min(560px,92vw);border-radius:12px;box-shadow:0 20px 50px rgba(0,0,0,.25);overflow:hidden}
.cmdk input{border:none;border-bottom:1px solid #e2e8f0;border-radius:0;padding:14px 16px;font-size:16px;width:100%;box-sizing:border-box}
.cmdk-list{max-height:52vh;overflow:auto}
.cmdk-item{padding:9px 16px;cursor:pointer;display:flex;justify-content:space-between;font-size:14px}
.cmdk-item.on,.cmdk-item:hover{background:#eff6ff}
.cmdk-sec{padding:6px 16px;font-size:11px;color:#94a3b8;background:#f8fafc}
.cmdk-foot{padding:6px 16px;font-size:11px;color:#94a3b8;border-top:1px solid #e2e8f0}
.workbench{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}
.wb-item{display:block;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:10px 12px;color:inherit;text-decoration:none}
.wb-item:hover{border-color:var(--brand,#2563eb)}
.wb-item .n{font-size:22px;font-weight:700}.wb-item.alert .n{color:#b45309}
.wb-item .l{font-size:12px;color:#64748b}
@media (max-width:760px){
  .dash-2col{grid-template-columns:1fr}
  .cust-table thead{display:none}
  .cust-table,.cust-table tbody,.cust-table tr,.cust-table td{display:block;width:100%}
  .cust-table tr{border:1px solid #e2e8f0;border-radius:10px;margin-bottom:8px;padding:6px 8px;background:#fff}
  .cust-table td{border:none;padding:3px 0}
  .cust-table td[data-label]::before{content:attr(data-label)"：";color:#94a3b8;font-size:12px}
  .chips{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px}
  .chip{flex:0 0 auto}
  .kpi-grid{grid-template-columns:repeat(2,1fr)}
}
/* 第三轮模拟发现的版面问题修正 */
.toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.toolbar select{width:auto;flex:0 0 auto;min-width:120px}
.toolbar input.search{flex:1 1 180px;width:auto;min-width:160px}
.cust-table input[type=checkbox],#cust-all{width:16px;height:16px;padding:0;margin:0}
.funnel-rate{white-space:nowrap;font-size:12px}
.dash-2col .funnel-label{white-space:nowrap}
.badge-dot{font-weight:700}
@media (max-width:760px){.toolbar select,.toolbar input.search{flex:1 1 45%;min-width:0}}
@media (max-width:760px){
  .account-button > span:nth-child(3){display:none}
  #cust-purpose,#cust-budget,#cust-fu,#cust-score,#cust-export,#cust-import-btn{display:none}
  .section-title .sub{display:block;margin:4px 0 0}
}

/* ===== 第四轮：任务核心化、催办、跟进表单、房源卡片、记忆、统一动效 ===== */
:root{--ease-out:cubic-bezier(.22,1,.36,1);--t-fast:.14s;--t-med:.22s}
/* 导航：任务与日报突出 */
#nav a.nav-core{font-weight:700;color:var(--brand);background:rgba(22,101,52,.07);border-radius:8px}
#nav a.nav-core.active{background:var(--brand);color:#fff}
.nav-count{display:inline-block;min-width:18px;height:18px;line-height:18px;padding:0 5px;margin-left:5px;border-radius:9px;background:#dc2626;color:#fff;font-size:11px;font-weight:700;text-align:center;vertical-align:1px}
.home-task-hero{display:flex;align-items:center;gap:16px;background:linear-gradient(135deg,#166534,#15803d);color:#fff;border-radius:14px;padding:18px 22px;margin-bottom:14px;text-decoration:none;transition:transform var(--t-fast) var(--ease-out),box-shadow var(--t-fast)}
.home-task-hero:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(22,101,52,.25)}
.home-task-hero .big{font-size:34px;font-weight:800;line-height:1}
.home-task-hero .lbl{font-size:13px;opacity:.9}
.home-task-hero .go{margin-left:auto;background:#fff;color:#166534;border-radius:999px;padding:8px 16px;font-weight:700}
/* 催办 */
.nudge-btn{border-color:#f59e0b!important;color:#b45309!important;background:#fffbeb!important}
.nudge-btn:hover{background:#fef3c7!important}
.pill.nudge{background:#fee2e2;color:#b91c1c;font-weight:700;animation:nudge-pulse 1.6s ease-in-out 2}
.task-row.nudged{border-left:4px solid #dc2626}
.nudge-card{border-left:4px solid #dc2626;background:#fff7f7}
.nudge-item{padding:6px 0;border-bottom:1px dashed #fecaca;font-size:14px}
.missing-list{display:flex;flex-wrap:wrap;gap:8px}
.missing-item{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:10px;padding:6px 10px;background:#fff}
@keyframes nudge-pulse{0%,100%{box-shadow:0 0 0 0 rgba(220,38,38,.0)}50%{box-shadow:0 0 0 4px rgba(220,38,38,.18)}}
/* 跟进表单 */
.qf-group{display:flex;gap:10px;align-items:flex-start;margin:8px 0}
.qf-label{flex:0 0 72px;font-size:13px;color:var(--muted);padding-top:6px}
.qf-opts{display:flex;flex-wrap:wrap;gap:6px}
.qf-deal{display:flex;gap:8px;margin:6px 0 6px 82px}.qf-deal input{max-width:200px}
#qf-date{margin-left:82px;max-width:180px}
.badge.info{background:#dbeafe;color:#1e40af}
/* 房源卡片 */
.property-card.pc2{flex-direction:row;height:172px}
.pc2-cover{position:relative;flex:0 0 38%;max-width:200px;background:#e9eee9;overflow:hidden}
.pc2-cover img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s var(--ease-out)}
.pc2:hover .pc2-cover img{transform:scale(1.04)}
.pc2-status{position:absolute;left:8px;top:8px;font-size:11px;padding:2px 8px;border-radius:999px;background:rgba(255,255,255,.92);color:#166534;font-weight:600}
.pc2-status.wait{color:#b45309}
.pc2-body{flex:1;min-width:0;padding:10px 12px;display:flex;flex-direction:column;gap:4px}
.pc2-title{font-weight:600;font-size:14px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.7em}
.pc2-price{font-size:18px;font-weight:800;color:var(--brand)}.pc2-price small{font-size:12px;color:var(--muted);font-weight:400}
.pc2-yield{font-size:11px;font-weight:600;color:#1e40af;background:#dbeafe;border-radius:999px;padding:1px 7px;vertical-align:2px}
.pc2-grid{display:grid;grid-template-columns:1fr 1fr;gap:2px 10px;font-size:12px;color:#334155}
.pc2-grid span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pc2-grid i{font-style:normal;color:#94a3b8;margin-right:4px}
.pc2-foot{display:flex;align-items:center;gap:6px;margin-top:auto}
.property-grid{grid-template-columns:repeat(auto-fill,minmax(360px,1fr))}
@media (max-width:760px){.property-grid{grid-template-columns:1fr}.property-card.pc2{height:150px}.pc2-cover{flex-basis:34%}}
/* 记忆 */
.mem-add{display:flex;gap:8px;flex-wrap:wrap}.mem-add select{width:auto}.mem-add input{flex:1;min-width:200px}
.mem-list{margin:10px 0}.mem-item{display:flex;align-items:center;gap:6px;padding:6px 0;border-bottom:1px solid #f1f5f9;font-size:14px}
.mem-text{min-width:0;overflow:hidden;text-overflow:ellipsis}
/* 骨架屏 */
.skeleton-line{height:14px;margin:10px 0;border-radius:6px;background:linear-gradient(90deg,#eef2f0 25%,#f7f9f8 37%,#eef2f0 63%);background-size:400% 100%;animation:skeleton 1.2s ease infinite}
.skeleton-line:nth-child(2){width:80%}.skeleton-line:nth-child(3){width:60%}
@keyframes skeleton{0%{background-position:100% 50%}100%{background-position:0 50%}}
/* 统一动效：按压、切页、列表进入、提示、弹窗 */
.btn,.chip,.wb-item,.entry,#nav a{transition:background-color var(--t-fast),border-color var(--t-fast),color var(--t-fast),transform var(--t-fast) var(--ease-out),box-shadow var(--t-fast)}
.btn:active:not(:disabled),.chip:active,.wb-item:active,.entry:active{transform:scale(.97)}
.btn:disabled{opacity:.6;cursor:not-allowed}
#content.route-in{animation:route-in var(--t-med) var(--ease-out)}
@keyframes route-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.task-row,.cust-table tbody tr,.mem-item,.ib-item,.missing-item,.property-card{animation:list-in .28s var(--ease-out) both}
.task-row:nth-child(2),.cust-table tbody tr:nth-child(2),.property-card:nth-child(2){animation-delay:.03s}
.task-row:nth-child(3),.cust-table tbody tr:nth-child(3),.property-card:nth-child(3){animation-delay:.06s}
.task-row:nth-child(4),.cust-table tbody tr:nth-child(4),.property-card:nth-child(4){animation-delay:.09s}
.task-row:nth-child(n+5),.cust-table tbody tr:nth-child(n+5),.property-card:nth-child(n+5){animation-delay:.12s}
@keyframes list-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.toast.toast-in{animation:toast-in .24s var(--ease-out)}
@keyframes toast-in{from{opacity:0;transform:translate(-50%,10px)}to{opacity:1;transform:translate(-50%,0)}}
.modal-mask{animation:mask-in var(--t-fast) ease-out}
@keyframes mask-in{from{opacity:0}to{opacity:1}}
.modal-mask.closing{animation:mask-out .14s ease-in forwards}.modal-mask.closing .modal{animation:modal-out .14s ease-in forwards}
@keyframes mask-out{to{opacity:0}}@keyframes modal-out{to{opacity:0;transform:translateY(6px) scale(.98)}}
.cmdk-mask{animation:mask-in var(--t-fast) ease-out}.cmdk{animation:modal-in .18s var(--ease-out)}
/* 图表不随卡片宽度无限放大（字体保持清晰比例） */
.chart{max-width:760px;display:block;margin:0 auto}
svg.chart text{font-size:10px}
@media (prefers-reduced-motion: reduce){
  #content.route-in,.task-row,.cust-table tbody tr,.mem-item,.ib-item,.missing-item,.property-card,.toast.toast-in,.modal-mask,.modal-mask .modal,.cmdk,.cmdk-mask,.pill.nudge,.skeleton-line{animation:none!important}
  .btn:active,.chip:active,.wb-item:active,.entry:active{transform:none}
}
/* 第四轮修正：房源卡片左对齐、不受旧卡片样式影响 */
.property-card.pc2{display:flex;text-align:left;padding:0;overflow:hidden;align-items:stretch}
.pc2-body,.pc2-title,.pc2-price,.pc2-grid{text-align:left}
.pc2-cover .property-placeholder{height:100%;display:flex;align-items:center;justify-content:center}
.mem-item .spacer,.pc2-foot .spacer{flex:1}
