/* 消防台账系统样式 - 政务清晰风 */
:root {
  --primary: #c0392b;
  --primary-dark: #96281b;
  --primary-light: #fdf2f0;
  --danger: #c0392b;
  --warn: #e67e22;
  --ok: #27ae60;
  --info: #2980b9;
  --bg: #f4f5f7;
  --card: #ffffff;
  --border: #e3e6ea;
  --text: #2c3e50;
  --text-light: #7f8c8d;
  --sidebar-bg: #1f2a38;
  --sidebar-text: #b8c5d1;
  --sidebar-active: #c0392b;
  --shadow: 0 2px 12px rgba(0,0,0,.06);
  --radius: 10px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 14px; color: var(--text); background: var(--bg); line-height: 1.6; }
.hidden { display: none !important; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
a { color: inherit; text-decoration: none; }

/* ---------- 登录页 ---------- */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: radial-gradient(circle at 15% 20%, #eef1f5 0%, #e4e8ee 45%, #dde2e9 100%); }
.login-shell { width: 100%; max-width: 1080px; min-height: 640px; display: grid; grid-template-columns: 1.05fr .95fr; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 90px rgba(20,32,48,.18), 0 4px 18px rgba(20,32,48,.06); }

/* 左侧品牌展示区 */
.login-showcase { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 44px 48px 36px; color: #fff; background: linear-gradient(150deg, #172334 0%, #1e2d40 40%, #2b2c3b 70%, #6d211a 100%); overflow: hidden; isolation: isolate; }
.showcase-grid { position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 42px 42px; -webkit-mask-image: linear-gradient(to bottom right, #000, transparent 80%); mask-image: linear-gradient(to bottom right, #000, transparent 80%); }
.showcase-glow { position: absolute; width: 460px; height: 460px; right: -180px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(192,57,43,.55) 0%, rgba(192,57,43,0) 70%); z-index: -1; animation: glowFloat 9s ease-in-out infinite alternate; }
@keyframes glowFloat { from { transform: translate(0,0); } to { transform: translate(-30px,40px); } }
.showcase-top { display: flex; align-items: center; gap: 14px; }
.showcase-logo { width: 54px; height: 54px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.showcase-logo svg { width: 34px; height: 34px; }
.showcase-brand { display: flex; flex-direction: column; line-height: 1.4; }
.showcase-brand strong { font-size: 13px; letter-spacing: 2px; font-weight: 700; }
.showcase-brand span { font-size: 12px; color: rgba(255,255,255,.6); letter-spacing: 1px; }
.showcase-main { margin: auto 0; padding: 30px 0; }
.showcase-main h1 { font-size: 40px; line-height: 1.3; font-weight: 700; letter-spacing: 1px; margin-bottom: 14px; }
.showcase-main h1 span { display: block; color: #ff6b5e; }
.showcase-unit { font-size: 13px; color: rgba(255,255,255,.62); letter-spacing: .5px; }
.showcase-divider { width: 46px; height: 3px; border-radius: 3px; background: #c0392b; margin: 28px 0; }
.showcase-features { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.showcase-features li { display: flex; align-items: center; gap: 14px; }
.feature-no { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #ff8a7a; background: rgba(192,57,43,.18); border: 1px solid rgba(231,76,60,.35); }
.showcase-features strong { display: block; font-size: 14px; font-weight: 600; letter-spacing: .5px; }
.showcase-features small { display: block; font-size: 12px; color: rgba(255,255,255,.55); margin-top: 2px; }
.showcase-bottom { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: 1.5px; color: rgba(255,255,255,.38); }

/* 右侧登录表单区 */
.login-panel { display: flex; align-items: center; justify-content: center; padding: 48px 56px; background: linear-gradient(180deg, #fff 0%, #fafbfc 100%); }
.login-card { width: 100%; max-width: 360px; animation: cardIn .55s cubic-bezier(.22,.9,.3,1) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.login-card-head { text-align: center; margin-bottom: 34px; }
.login-mini-logo { width: 52px; height: 52px; margin: 0 auto 16px; color: #c0392b; }
.login-mini-logo svg { width: 100%; height: 100%; }
.login-card-head h2 { font-size: 26px; color: #1f2a38; font-weight: 700; letter-spacing: 1px; }
.login-card-head p { color: #8b98a5; font-size: 13px; margin-top: 6px; }
.login-card .form-group { margin-bottom: 20px; }
.login-card .form-group label { display: block; font-size: 12px; font-weight: 600; color: #5d6b7a; margin-bottom: 8px; letter-spacing: .5px; }
.input-wrap { position: relative; }
.input-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: none; stroke: #a8b3bf; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; transition: stroke .2s; }
.login-input { width: 100%; height: 50px; padding: 0 16px 0 46px; border: 1px solid #dfe4ea; border-radius: 11px; background: #fff; color: #2c3e50; font-size: 14px; transition: border-color .2s, box-shadow .2s, background .2s; }
.login-input::placeholder { color: #b6c0ca; }
.login-input:hover { border-color: #c8d0d9; }
.login-input:focus { outline: none; border-color: #c0392b; background: #fff; box-shadow: 0 0 0 4px rgba(192,57,43,.09); }
.input-wrap:focus-within .input-icon { stroke: #c0392b; }
.login-err { color: var(--danger); font-size: 12px; min-height: 22px; display: flex; align-items: center; justify-content: center; text-align: center; }
.login-err:not(:empty) { background: #fdf2f0; border: 1px solid #f5d5d0; border-radius: 8px; padding: 6px 10px; margin-bottom: 10px; }
.login-submit { width: 100%; height: 52px; position: relative; border: none; border-radius: 11px; background: linear-gradient(135deg, #d64532 0%, #b0271b 100%); color: #fff; font-size: 15px; font-weight: 600; letter-spacing: 6px; cursor: pointer; box-shadow: 0 10px 22px rgba(176,39,27,.28); transition: transform .2s, box-shadow .2s, filter .2s; }
.login-submit span { display: inline-block; transform: translateX(-8px); }
.login-submit svg { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .85; transition: transform .2s; }
.login-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(176,39,27,.36); filter: brightness(1.06); }
.login-submit:hover svg { transform: translate(3px, -50%); }
.login-submit:active { transform: translateY(0); }
.login-card-foot { margin-top: 28px; text-align: center; font-size: 11px; color: #a2acb7; letter-spacing: .5px; }
.login-card-foot i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #27ae60; margin-right: 6px; vertical-align: 1px; box-shadow: 0 0 0 3px rgba(39,174,96,.12); }

/* ---------- 登录页响应式 ---------- */
@media (max-width: 900px) {
  .login-page { padding: 0; }
  .login-shell { min-height: 100vh; border-radius: 0; grid-template-columns: 1fr; box-shadow: none; }
  .login-showcase { display: none; }
  .login-panel { padding: 32px 24px; }
}
@media (max-width: 480px) {
  .login-card-head h2 { font-size: 23px; }
  .login-panel { padding: 24px 20px; }
}

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 16px; border: 1px solid transparent; border-radius: 7px; cursor: pointer; font-weight: 500; font-size: 13px; transition: all .2s; white-space: nowrap; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: #fff; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #a93226; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-block { width: 100%; padding: 11px; font-size: 15px; }
.btn-info { background: var(--info); color: #fff; }
.btn-info:hover { background: #2471a3; }
.icon-btn { background: none; border: none; cursor: pointer; font-size: 18px; padding: 4px 8px; border-radius: 6px; }
.icon-btn:hover { background: var(--bg); }

/* ---------- 布局 ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar { width: 240px; background: var(--sidebar-bg); color: var(--sidebar-text); flex-shrink: 0; display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; z-index: 50; transition: transform .3s; }
.sidebar-head { display: flex; align-items: center; gap: 12px; padding: 20px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-icon { font-size: 30px; }
.brand-text strong { display: block; color: #fff; font-size: 16px; }
.brand-text span { display: block; font-size: 11px; opacity: .7; margin-top: 2px; }
.nav { flex: 1; overflow-y: auto; padding: 12px 10px; }
.nav::-webkit-scrollbar { width: 4px; }
.nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 4px; }
.nav-section { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; padding: 16px 12px 6px; opacity: .45; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 7px; cursor: pointer; font-size: 13px; transition: background .15s, color .15s; margin-bottom: 2px; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: var(--sidebar-active); color: #fff; font-weight: 600; }
.nav-icon { font-size: 15px; width: 20px; text-align: center; }
.nav-badge { margin-left: auto; background: rgba(255,255,255,.15); padding: 1px 7px; border-radius: 10px; font-size: 11px; }
.sidebar-foot { padding: 14px 18px; border-top: 1px solid rgba(255,255,255,.08); font-size: 11px; opacity: .7; }

.main { flex: 1; margin-left: 240px; min-width: 0; }
.topbar { height: 60px; background: #fff; border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 24px; gap: 16px; position: sticky; top: 0; z-index: 30; }
.topbar-title { font-size: 17px; font-weight: 600; flex: 1; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-date { color: var(--text-light); font-size: 12px; }
.user-menu { display: flex; align-items: center; gap: 8px; border-left: 1px solid var(--border); padding-left: 14px; font-size: 13px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.menu-toggle { display: none; background: none; border: none; font-size: 20px; cursor: pointer; }
.content { padding: 22px 24px 40px; max-width: 1600px; margin: 0 auto; }

/* ---------- 卡片 ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 18px; }
.card-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-head h3 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.card-body { padding: 20px; }

/* ---------- 工作台 ---------- */
.welcome-banner { background: linear-gradient(135deg, #c0392b, #96281b); color: #fff; border-radius: var(--radius); padding: 24px 28px; margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.welcome-banner h2 { font-size: 20px; margin-bottom: 4px; }
.welcome-banner p { opacity: .85; font-size: 13px; }
.unit-chip { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); padding: 8px 14px; border-radius: 8px; font-size: 12px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px; transition: transform .2s, box-shadow .2s; cursor: pointer; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.09); }
.stat-icon { width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.stat-num { font-size: 26px; font-weight: 700; line-height: 1; }
.stat-label { color: var(--text-light); font-size: 12px; margin-top: 4px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1000px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
/* min-width:0 让 grid 子项可以收缩，避免内容撑破列宽 */
.grid-2 > * { min-width: 0; }

.alert-list { display: flex; flex-direction: column; gap: 10px; max-height: 340px; overflow-y: auto; }
.alert-item { display: flex; gap: 12px; padding: 12px 14px; border-radius: 8px; border-left: 3px solid; align-items: flex-start; }
.alert-item.danger { background: #fdf2f0; border-color: var(--danger); }
.alert-item.warn { background: #fdf6ec; border-color: var(--warn); }
.alert-item.info { background: #eef6fb; border-color: var(--info); }
.alert-icon { font-size: 16px; }
.alert-content { flex: 1; min-width: 0; }
.alert-title { font-weight: 600; font-size: 13px; }
.alert-title .tag { font-size: 10px; padding: 1px 6px; border-radius: 4px; margin-left: 6px; color: #fff; }
.alert-item.danger .tag { background: var(--danger); }
.alert-item.warn .tag { background: var(--warn); }
.alert-item.info .tag { background: var(--info); }
.alert-detail { color: var(--text-light); font-size: 12px; margin-top: 2px; }
.alert-link { font-size: 12px; color: var(--primary); cursor: pointer; white-space: nowrap; }
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-light); }
.empty-state .emoji { font-size: 40px; margin-bottom: 10px; }

/* 趋势图 */
.trend-wrap { display: flex; gap: 8px; align-items: flex-end; height: 180px; padding-top: 10px; overflow-x: auto; }
.trend-group { flex: 1; min-width: 40px; text-align: center; }
.trend-bars { display: flex; gap: 2px; height: 150px; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--border); }
.trend-bar { width: 10px; border-radius: 3px 3px 0 0; min-height: 2px; transition: height .3s; }
.trend-label { font-size: 11px; color: var(--text-light); margin-top: 6px; }
.trend-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; font-size: 11px; color: var(--text-light); }
.legend-dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; }

.recent-list { list-style: none; }
.recent-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); align-items: flex-start; }
.recent-item:last-child { border-bottom: none; }
.recent-date { font-size: 11px; color: var(--text-light); white-space: nowrap; width: 76px; }
.recent-info { flex: 1; min-width: 0; }
.recent-mod { font-size: 12px; font-weight: 600; }
.recent-sum { font-size: 12px; color: var(--text-light); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 台账表格 ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.search-box { position: relative; flex: 1; min-width: 200px; max-width: 360px; }
.search-box input { width: 100%; padding: 9px 12px 9px 34px; border: 1px solid var(--border); border-radius: 7px; background: #fff; }
.search-box::before { content: '🔍'; position: absolute; left: 11px; top: 50%; transform: translateY(-50%); font-size: 13px; opacity: .5; }
.table-info { color: var(--text-light); font-size: 12px; margin-left: auto; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 700px; }
thead th { background: #f8f9fa; padding: 11px 12px; text-align: left; font-weight: 600; color: #555; white-space: nowrap; border-bottom: 1px solid var(--border); position: sticky; top: 0; }
tbody td { padding: 10px 12px; border-bottom: 1px solid #f0f1f3; vertical-align: top; }
tbody tr:hover { background: #fafbfc; }
tbody tr:last-child td { border-bottom: none; }
.cell-text { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-actions { white-space: nowrap; }
.cell-actions button { border: none; background: none; cursor: pointer; padding: 3px 6px; border-radius: 4px; font-size: 12px; color: var(--primary); }
.cell-actions button:hover { background: var(--primary-light); }
.cell-actions .del { color: var(--danger); }
.cell-actions .del:hover { background: #fdf2f0; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 500; }
.badge-ok { background: #eafaf1; color: #1e8449; }
.badge-warn { background: #fef5e7; color: #b9770e; }
.badge-danger { background: #fdedec; color: #a93226; }
.badge-info { background: #eaf2f8; color: #1a5276; }
.pagination { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin-top: 14px; font-size: 12px; }
.pagination button { border: 1px solid var(--border); background: #fff; padding: 5px 11px; border-radius: 5px; cursor: pointer; }
.pagination button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.desc-box { background: #f8f9fa; border-left: 3px solid var(--primary); padding: 10px 14px; border-radius: 0 6px 6px 0; font-size: 12px; color: var(--text-light); margin-bottom: 16px; }

/* ---------- 应急组织 / 电话 ---------- */
.org-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.org-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); border-top: 3px solid var(--primary); }
.org-card .role { font-size: 12px; color: var(--text-light); }
.org-card .name { font-size: 18px; font-weight: 700; margin: 4px 0 8px; }
.org-card .duty { font-size: 12px; color: var(--text-light); min-height: 40px; }
.org-card .tel { margin-top: 10px; }
.org-card .tel a { color: var(--primary); font-weight: 600; font-size: 14px; }
.org-group-badge { display: inline-block; background: var(--primary-light); color: var(--primary); font-size: 10px; padding: 2px 8px; border-radius: 10px; margin-bottom: 6px; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); }
.contact-icon { width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 17px; background: var(--primary-light); flex-shrink: 0; }
.contact-card.emergency { border-color: var(--danger); background: #fdf5f4; }
.contact-card.emergency .contact-icon { background: var(--danger); color: #fff; }
.contact-info { flex: 1; min-width: 0; }
.contact-name { font-weight: 600; font-size: 13px; }
.contact-org { font-size: 11px; color: var(--text-light); }
.contact-tel { color: var(--primary); font-weight: 600; font-size: 14px; white-space: nowrap; }

.part-list, .rule-list { display: grid; gap: 12px; }
.part-item, .rule-item { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 14px 18px; display: flex; gap: 16px; align-items: flex-start; }
.part-num { width: 28px; height: 28px; border-radius: 6px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.part-name, .rule-name { font-weight: 600; margin-bottom: 4px; }
.part-meta { font-size: 12px; color: var(--text-light); }
.part-meta b { color: var(--text); }

/* ---------- 数据管理 ---------- */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.settings-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.settings-card h3 { font-size: 15px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.settings-card p { font-size: 12px; color: var(--text-light); margin-bottom: 14px; }
.unit-info { display: grid; gap: 8px; font-size: 13px; }
.unit-info div { display: flex; }
.unit-info .k { color: var(--text-light); width: 100px; flex-shrink: 0; }

/* ---------- 弹窗 ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-mask { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.modal-box { position: relative; background: #fff; border-radius: 12px; width: 100%; max-width: 700px; max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal-sm { max-width: 420px; }
.modal-head { padding: 16px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-head h3 { font-size: 16px; }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-light); line-height: 1; }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 22px; overflow-y: auto; flex: 1; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .full { grid-column: 1 / -1; }
.required::after { content: ' *'; color: var(--danger); }

/* ---------- Toast ---------- */
.toast { position: fixed; top: 76px; right: 24px; background: #2c3e50; color: #fff; padding: 11px 18px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.2); z-index: 200; font-size: 13px; animation: slideIn .2s; }
.toast.success { background: var(--ok); }
.toast.error { background: var(--danger); }
@keyframes slideIn { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .menu-toggle { display: block; }
  .topbar { padding: 0 14px; }
  .content { padding: 16px; }
  .topbar-date { display: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
