/* ============================================================
   数智化品牌出海运营模拟沙盘 · 样式
   ============================================================ */
:root {
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  --primary-grad: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --info: #0891b2;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.14);
  --transition: all .22s ease;
}
[data-theme="light"] {
  --bg: #f1f5f9;
  --bg-soft: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #eef2f7;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;
  --border: #e2e8f0;
  --border-2: #cbd5e1;
  --topbar-bg: rgba(255,255,255,0.92);
  --sidebar-bg: #ffffff;
  --hover: rgba(37,99,235,0.08);
  --active: rgba(37,99,235,0.14);
  --grad-bg: linear-gradient(160deg, #eff6ff 0%, #f5f3ff 100%);
}
[data-theme="dark"] {
  --bg: #0b1220;
  --bg-soft: #0f172a;
  --surface: #111a2e;
  --surface-2: #16213a;
  --surface-3: #1e2a44;
  --text: #e2e8f0;
  --text-2: #94a3b8;
  --text-3: #64748b;
  --border: #1e293b;
  --border-2: #334155;
  --topbar-bg: rgba(15,23,42,0.9);
  --sidebar-bg: #0f172a;
  --hover: rgba(59,130,246,0.1);
  --active: rgba(59,130,246,0.18);
  --grad-bg: linear-gradient(160deg, #0f172a 0%, #131a31 100%);
}
* { margin:0; padding:0; box-sizing:border-box; }
html,body { height:100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  transition: var(--transition);
}
::-webkit-scrollbar { width:8px; height:8px; }
::-webkit-scrollbar-thumb { background:var(--border-2); border-radius:4px; }
::-webkit-scrollbar-track { background:transparent; }

/* ============ 通用组件 ============ */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  padding:9px 18px; border-radius:var(--radius-sm); border:1px solid var(--border-2);
  background:var(--surface); color:var(--text); font-size:14px; font-weight:500;
  cursor:pointer; transition:var(--transition); white-space:nowrap;
}
.btn:hover { border-color:var(--primary); color:var(--primary); }
.btn-primary {
  background:var(--primary-grad); border:none; color:#fff;
  box-shadow:0 4px 12px rgba(37,99,235,0.35);
}
.btn-primary:hover { filter:brightness(1.1); color:#fff; transform:translateY(-1px); }
.btn-success { background:var(--success); border:none; color:#fff; }
.btn-danger { background:var(--danger); border:none; color:#fff; }
.btn-ghost { background:transparent; border:1px solid var(--border); }
.btn-sm { padding:5px 12px; font-size:12.5px; border-radius:6px; }
.btn-block { width:100%; }
.btn:disabled { opacity:.5; cursor:not-allowed; }

.card {
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:20px; transition:var(--transition);
}
.card:hover { box-shadow:var(--shadow); }
.card-title { font-size:16px; font-weight:600; margin-bottom:14px; display:flex; align-items:center; gap:8px; }
.card-title .badge { margin-left:auto; }

.badge {
  display:inline-flex; align-items:center; padding:2px 10px; border-radius:20px;
  font-size:11.5px; font-weight:600;
}
.badge-blue { background:rgba(37,99,235,0.12); color:var(--primary); }
.badge-green { background:rgba(22,163,74,0.12); color:var(--success); }
.badge-orange { background:rgba(217,119,6,0.14); color:var(--warning); }
.badge-red { background:rgba(220,38,38,0.12); color:var(--danger); }
.badge-purple { background:rgba(124,58,237,0.12); color:#7c3aed; }
.badge-gray { background:var(--surface-3); color:var(--text-2); }

.grid { display:grid; gap:16px; }
.grid-2 { grid-template-columns:repeat(2,1fr); }
.grid-3 { grid-template-columns:repeat(3,1fr); }
.grid-4 { grid-template-columns:repeat(4,1fr); }
.grid-auto { grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); }

.stat-card {
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:18px 20px; transition:var(--transition); position:relative; overflow:hidden;
}
.stat-card:hover { transform:translateY(-3px); box-shadow:var(--shadow-lg); }
.stat-card .stat-label { font-size:12.5px; color:var(--text-2); margin-bottom:8px; display:flex; align-items:center; gap:6px; }
.stat-card .stat-value { font-size:26px; font-weight:700; letter-spacing:-0.5px; }
.stat-card .stat-sub { font-size:12px; color:var(--text-3); margin-top:6px; }
.stat-card .stat-icon {
  position:absolute; right:14px; top:14px; width:38px; height:38px; border-radius:10px;
  display:flex; align-items:center; justify-content:center; font-size:19px;
}

/* 表格 */
.table-wrap { overflow-x:auto; border-radius:var(--radius-sm); border:1px solid var(--border); }
table.data-table { width:100%; border-collapse:collapse; font-size:13.5px; }
.data-table th {
  background:var(--surface-2); text-align:left; padding:11px 14px; font-weight:600;
  color:var(--text-2); border-bottom:1px solid var(--border); white-space:nowrap;
}
.data-table td { padding:11px 14px; border-bottom:1px solid var(--border); vertical-align:middle; }
.data-table tr:last-child td { border-bottom:none; }
.data-table tbody tr:hover { background:var(--hover); }
.data-table .num { text-align:right; font-variant-numeric:tabular-nums; }
.data-table .pos { color:var(--success); font-weight:600; }
.data-table .neg { color:var(--danger); font-weight:600; }

/* 表单 */
.form-field { margin-bottom:16px; }
.form-field label { display:block; font-size:13px; font-weight:500; color:var(--text-2); margin-bottom:6px; }
.form-field input, .form-field select, .form-field textarea {
  width:100%; padding:10px 14px; border:1px solid var(--border-2); border-radius:var(--radius-sm);
  background:var(--surface); color:var(--text); font-size:14px; transition:var(--transition);
  font-family:inherit;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline:none; border-color:var(--primary); box-shadow:0 0 0 3px rgba(37,99,235,0.15);
}
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }

/* ============ 登录页 ============ */
.view-login {
  min-height:100vh; display:flex; align-items:center; justify-content:center;
  position:relative; overflow:hidden;
  background:linear-gradient(135deg, #0f172a 0%, #1e3a8a 45%, #6d28d9 100%);
}
.login-bg { position:absolute; inset:0; }
.login-particles { position:absolute; inset:0; }
.particle {
  position:absolute; border-radius:50%;
  background:rgba(255,255,255,0.16);
  animation:floatUp linear infinite;
}
@keyframes floatUp {
  0% { transform:translateY(105vh) scale(0); opacity:0; }
  12% { opacity:1; }
  100% { transform:translateY(-10vh) scale(1); opacity:0; }
}
.login-card {
  position:relative; z-index:2; width:420px; max-width:92vw;
  background:rgba(255,255,255,0.06); backdrop-filter:blur(24px);
  -webkit-backdrop-filter:blur(24px);
  border:1px solid rgba(255,255,255,0.14); border-radius:20px;
  padding:40px 38px; box-shadow:0 24px 64px rgba(0,0,0,0.45);
  color:#fff;
}
.login-logo { text-align:center; margin-bottom:32px; }
.logo-mark { font-size:52px; margin-bottom:12px; }
.login-logo h1 { font-size:24px; font-weight:700; letter-spacing:1px; }
.login-logo h1 span { display:block; font-size:15px; font-weight:400; color:rgba(255,255,255,0.75); margin-top:4px; }
.login-sub { font-size:12.5px; color:rgba(255,255,255,0.6); margin-top:10px; }
.login-form .form-field label { color:rgba(255,255,255,0.75); }
.login-form input {
  background:rgba(255,255,255,0.1); border-color:rgba(255,255,255,0.22); color:#fff;
}
.login-form input::placeholder { color:rgba(255,255,255,0.4); }
.login-form input:focus { border-color:#60a5fa; box-shadow:0 0 0 3px rgba(96,165,250,0.2); }
.role-select { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.role-option {
  padding:12px 6px; text-align:center; border-radius:var(--radius-sm);
  border:1px solid rgba(255,255,255,0.2); cursor:pointer; transition:var(--transition);
  font-size:13.5px; color:rgba(255,255,255,0.85); background:rgba(255,255,255,0.05);
}
.role-option:hover { background:rgba(255,255,255,0.12); }
.role-option.active {
  background:rgba(96,165,250,0.28); border-color:#60a5fa; color:#fff; font-weight:600;
  box-shadow:0 0 0 3px rgba(96,165,250,0.2);
}
.login-tips { display:flex; align-items:center; justify-content:center; gap:8px; margin-top:20px; font-size:11.5px; color:rgba(255,255,255,0.5); }
.login-tips .dot { width:4px; height:4px; border-radius:50%; background:rgba(255,255,255,0.4); }

/* ============ 主框架 ============ */
.view-main { display:flex; flex-direction:column; height:100vh; }
.topbar {
  height:58px; flex-shrink:0; display:flex; align-items:center; justify-content:space-between;
  padding:0 20px; background:var(--topbar-bg); backdrop-filter:blur(12px);
  border-bottom:1px solid var(--border); position:relative; z-index:50;
}
.topbar-left { display:flex; align-items:center; gap:14px; }
.brand-mini { font-size:16px; font-weight:700; background:var(--primary-grad); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.topbar-divider { width:1px; height:22px; background:var(--border-2); }
.topbar-context { font-size:13.5px; color:var(--text-2); }
.topbar-right { display:flex; align-items:center; gap:8px; }
.icon-btn {
  width:36px; height:36px; border-radius:9px; border:1px solid var(--border);
  background:var(--surface); color:var(--text-2); font-size:15px; cursor:pointer; transition:var(--transition);
  display:flex; align-items:center; justify-content:center;
}
.icon-btn:hover { border-color:var(--primary); color:var(--primary); background:var(--hover); }
.user-chip {
  display:flex; align-items:center; gap:8px; padding:5px 12px 5px 5px;
  border-radius:22px; border:1px solid var(--border); background:var(--surface); cursor:default;
}
.user-avatar {
  width:28px; height:28px; border-radius:50%; background:var(--primary-grad);
  display:flex; align-items:center; justify-content:center; font-size:14px; color:#fff;
}
.user-name { font-size:13px; font-weight:500; }
.user-role-tag {
  font-size:10.5px; padding:1px 8px; border-radius:10px; font-weight:600;
  background:var(--active); color:var(--primary);
}

.main-body { flex:1; display:flex; overflow:hidden; }
.sidebar {
  width:216px; flex-shrink:0; background:var(--sidebar-bg); border-right:1px solid var(--border);
  padding:16px 12px; overflow-y:auto;
}
.nav-group { margin-bottom:18px; }
.nav-group-title {
  font-size:11px; color:var(--text-3); text-transform:uppercase; letter-spacing:1px;
  padding:0 10px; margin-bottom:6px; font-weight:600;
}
.nav-item {
  display:flex; align-items:center; gap:10px; padding:9px 12px; border-radius:9px;
  color:var(--text-2); cursor:pointer; transition:var(--transition); font-size:13.5px;
  margin-bottom:2px; user-select:none;
}
.nav-item:hover { background:var(--hover); color:var(--text); }
.nav-item.active { background:var(--active); color:var(--primary); font-weight:600; }
.nav-item .nav-icon { font-size:16px; width:22px; text-align:center; }
.nav-item .nav-badge {
  margin-left:auto; min-width:20px; height:20px; border-radius:10px; background:var(--danger);
  color:#fff; font-size:10.5px; display:flex; align-items:center; justify-content:center; padding:0 6px;
}

.content { flex:1; overflow-y:auto; padding:24px; background:var(--grad-bg); }
.page-head { display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:22px; flex-wrap:wrap; gap:12px; }
.page-title { font-size:22px; font-weight:700; letter-spacing:-0.3px; }
.page-desc { font-size:13px; color:var(--text-2); margin-top:5px; }

/* 欢迎横幅 */
.hero-banner {
  background:var(--primary-grad); border-radius:var(--radius-lg); padding:28px 30px;
  color:#fff; position:relative; overflow:hidden; margin-bottom:22px;
}
.hero-banner::after {
  content:""; position:absolute; right:-60px; top:-60px; width:220px; height:220px;
  border-radius:50%; background:rgba(255,255,255,0.1);
}
.hero-banner::before {
  content:""; position:absolute; right:60px; bottom:-90px; width:180px; height:180px;
  border-radius:50%; background:rgba(255,255,255,0.07);
}
.hero-title { font-size:20px; font-weight:700; position:relative; z-index:1; }
.hero-text { font-size:13.5px; opacity:0.9; margin-top:8px; position:relative; z-index:1; line-height:1.7; }

/* 回合进度条 */
.round-progress { display:flex; align-items:center; gap:6px; padding:4px 0; }
.round-dot {
  flex:1; height:8px; border-radius:4px; background:var(--surface-3);
  position:relative; overflow:hidden;
}
.round-dot.done { background:var(--primary-light); }
.round-dot.current { background:var(--primary-grad); }
.round-dot.done::after, .round-dot.current::after {
  content:""; position:absolute; inset:0;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  animation:shimmer 2s infinite;
}
@keyframes shimmer { 0%{transform:translateX(-100%)} 100%{transform:translateX(100%)} }
.round-label { font-size:12px; color:var(--text-2); font-weight:600; min-width:52px; text-align:right; }

/* 标签页 */
.tabs { display:flex; gap:6px; border-bottom:1px solid var(--border); margin-bottom:20px; overflow-x:auto; }
.tab {
  padding:10px 18px; font-size:14px; color:var(--text-2); cursor:pointer; border-bottom:2px solid transparent;
  transition:var(--transition); white-space:nowrap; font-weight:500;
}
.tab:hover { color:var(--text); }
.tab.active { color:var(--primary); border-bottom-color:var(--primary); font-weight:600; }

/* 决策面板 */
.decision-panel {
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:18px; transition:var(--transition);
}
.decision-panel:hover { box-shadow:var(--shadow); }
.decision-panel .dp-title { font-size:14.5px; font-weight:600; display:flex; align-items:center; gap:8px; margin-bottom:12px; }
.decision-panel .dp-cost { margin-left:auto; font-size:12px; color:var(--warning); font-weight:600; }

/* 进度条 */
.progress-bar { height:8px; background:var(--surface-3); border-radius:4px; overflow:hidden; }
.progress-fill { height:100%; border-radius:4px; background:var(--primary-grad); transition:width .5s ease; }
.progress-fill.green { background:linear-gradient(90deg,#16a34a,#22c55e); }
.progress-fill.orange { background:linear-gradient(90deg,#d97706,#f59e0b); }
.progress-fill.red { background:linear-gradient(90deg,#dc2626,#ef4444); }

/* 榜单 */
.rank-list { display:flex; flex-direction:column; gap:8px; }
.rank-item {
  display:flex; align-items:center; gap:12px; padding:11px 14px;
  background:var(--surface-2); border:1px solid var(--border); border-radius:10px; transition:var(--transition);
}
.rank-item:hover { box-shadow:var(--shadow); }
.rank-item.top1 { border-color:rgba(217,119,6,0.5); background:linear-gradient(90deg, rgba(217,119,6,0.08), transparent); }
.rank-item.top2 { border-color:rgba(148,163,184,0.5); }
.rank-item.top3 { border-color:rgba(180,83,9,0.4); }
.rank-num {
  width:30px; height:30px; border-radius:8px; display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:14px; background:var(--surface-3); color:var(--text-2); flex-shrink:0;
}
.rank-item.top1 .rank-num { background:linear-gradient(135deg,#f59e0b,#d97706); color:#fff; }
.rank-item.top2 .rank-num { background:linear-gradient(135deg,#94a3b8,#64748b); color:#fff; }
.rank-item.top3 .rank-num { background:linear-gradient(135deg,#b45309,#92400e); color:#fff; }
.rank-team { flex:1; font-weight:600; font-size:14px; }
.rank-team .rank-sub { font-size:11.5px; color:var(--text-3); font-weight:400; }
.rank-value { font-weight:700; font-size:15px; }
.rank-value.roi { color:var(--success); }

/* 图表容器 */
.chart-box { width:100%; height:220px; position:relative; }
.chart-box.sm { height:160px; }
.chart-box.lg { height:300px; }
.chart-legend { display:flex; gap:14px; flex-wrap:wrap; margin-top:10px; font-size:12px; color:var(--text-2); }
.legend-item { display:flex; align-items:center; gap:6px; }
.legend-dot { width:10px; height:10px; border-radius:3px; }

/* 模态框 */
.modal-mask {
  position:fixed; inset:0; background:rgba(0,0,0,0.5); backdrop-filter:blur(4px);
  display:flex; align-items:center; justify-content:center; z-index:100; animation:fadeIn .2s ease;
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.modal {
  background:var(--surface); border-radius:var(--radius-lg); width:600px; max-width:94vw;
  max-height:88vh; overflow-y:auto; box-shadow:var(--shadow-lg); animation:slideUp .25s ease;
}
@keyframes slideUp { from{transform:translateY(24px); opacity:0} to{transform:translateY(0); opacity:1} }
.modal-head { padding:20px 24px; border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; }
.modal-title { font-size:17px; font-weight:700; }
.modal-close { cursor:pointer; width:30px; height:30px; border-radius:8px; display:flex; align-items:center; justify-content:center; border:none; background:var(--surface-3); color:var(--text-2); font-size:14px; }
.modal-close:hover { background:var(--danger); color:#fff; }
.modal-body { padding:24px; }
.modal-foot { padding:16px 24px; border-top:1px solid var(--border); display:flex; justify-content:flex-end; gap:10px; }

/* Toast */
#toast-wrap { position:fixed; top:70px; right:20px; z-index:200; display:flex; flex-direction:column; gap:10px; }
.toast {
  padding:13px 18px; border-radius:10px; background:var(--surface); color:var(--text);
  box-shadow:var(--shadow-lg); border-left:4px solid var(--primary); font-size:13.5px;
  animation:slideIn .3s ease; max-width:360px; line-height:1.5;
}
.toast.success { border-left-color:var(--success); }
.toast.warning { border-left-color:var(--warning); }
.toast.error { border-left-color:var(--danger); }
.toast.info { border-left-color:var(--info); }
@keyframes slideIn { from{transform:translateX(40px); opacity:0} to{transform:translateX(0); opacity:1} }
.toast.hide { animation:slideOut .3s ease forwards; }
@keyframes slideOut { to{transform:translateX(40px); opacity:0} }

/* 沙盘卡片 */
.sandbox-card {
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  overflow:hidden; transition:var(--transition); cursor:pointer;
}
.sandbox-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-lg); border-color:var(--primary-light); }
.sandbox-cover {
  height:110px; background:var(--primary-grad); position:relative; padding:16px 18px; color:#fff;
  display:flex; flex-direction:column; justify-content:flex-end;
}
.sandbox-cover::after { content:""; position:absolute; inset:0; background:radial-gradient(circle at 80% 20%, rgba(255,255,255,0.2), transparent 55%); }
.sandbox-cover .sb-name { font-size:16px; font-weight:700; position:relative; z-index:1; }
.sandbox-cover .sb-status { position:relative; z-index:1; font-size:11.5px; opacity:0.9; margin-top:3px; }
.sandbox-body { padding:14px 18px; }
.sb-meta { display:flex; flex-wrap:wrap; gap:6px 14px; font-size:12px; color:var(--text-2); margin-bottom:10px; }
.sb-meta span { display:inline-flex; align-items:center; gap:4px; }
.sb-actions { display:flex; gap:8px; }

/* 资金条 */
.cash-bar {
  display:flex; align-items:center; gap:14px; padding:14px 18px;
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  margin-bottom:16px;
}
.cash-amount { font-size:24px; font-weight:700; color:var(--success); font-variant-numeric:tabular-nums; }
.cash-label { font-size:12px; color:var(--text-3); }
.cash-metrics { margin-left:auto; display:flex; gap:26px; }
.cash-metrics .cm { text-align:right; }
.cash-metrics .cm .v { font-size:16px; font-weight:600; }
.cash-metrics .cm .l { font-size:11.5px; color:var(--text-3); }

/* 轮次切换器 */
.round-switcher { display:flex; align-items:center; gap:10px; }
.round-switcher .rs-btn { width:32px; height:32px; border-radius:8px; border:1px solid var(--border-2); background:var(--surface); cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:14px; }
.round-switcher .rs-btn:hover { border-color:var(--primary); color:var(--primary); }
.round-switcher .rs-label { font-size:14px; font-weight:600; min-width:80px; text-align:center; }

/* 空状态 */
.empty-state { text-align:center; padding:50px 20px; color:var(--text-3); }
.empty-state .empty-icon { font-size:44px; margin-bottom:12px; }
.empty-state .empty-text { font-size:14px; }

/* 资源卡（博主/渠道等） */
.resource-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:12px; }
.resource-card {
  background:var(--surface-2); border:1px solid var(--border); border-radius:10px; padding:14px;
  cursor:pointer; transition:var(--transition); position:relative;
}
.resource-card:hover { border-color:var(--primary); box-shadow:var(--shadow); }
.resource-card.selected { border-color:var(--primary); background:var(--active); }
.resource-card .rc-name { font-size:13.5px; font-weight:600; margin-bottom:6px; display:flex; align-items:center; gap:6px; }
.resource-card .rc-meta { font-size:11.5px; color:var(--text-3); line-height:1.8; }
.resource-card .rc-price { font-size:13px; font-weight:700; color:var(--warning); margin-top:6px; }
.resource-card .rc-check {
  position:absolute; top:10px; right:10px; width:20px; height:20px; border-radius:50%;
  background:var(--primary); color:#fff; font-size:11px; display:none; align-items:center; justify-content:center;
}
.resource-card.selected .rc-check { display:flex; }

/* 分页/筛选 */
.filter-bar { display:flex; gap:10px; align-items:center; margin-bottom:16px; flex-wrap:wrap; }
.filter-bar select, .filter-bar input {
  padding:8px 12px; border:1px solid var(--border-2); border-radius:var(--radius-sm);
  background:var(--surface); color:var(--text); font-size:13px; font-family:inherit;
}

/* 财务表 */
.fin-table td.total-row { background:var(--surface-3); font-weight:700; }
.fin-table .indent { padding-left:28px !important; color:var(--text-2); }

/* 时间线 */
.timeline { position:relative; padding-left:24px; }
.timeline::before { content:""; position:absolute; left:8px; top:4px; bottom:4px; width:2px; background:var(--border-2); }
.tl-item { position:relative; padding-bottom:18px; }
.tl-item::before {
  content:""; position:absolute; left:-23px; top:4px; width:12px; height:12px; border-radius:50%;
  background:var(--primary); border:2px solid var(--surface); box-shadow:0 0 0 2px var(--primary-light);
}
.tl-item.done::before { background:var(--success); box-shadow:0 0 0 2px rgba(22,163,74,0.3); }
.tl-title { font-size:13.5px; font-weight:600; }
.tl-desc { font-size:12.5px; color:var(--text-2); margin-top:3px; }
.tl-time { font-size:11px; color:var(--text-3); margin-top:2px; }

/* 响应式 */
@media (max-width: 1200px) {
  .grid-4 { grid-template-columns:repeat(2,1fr); }
  .grid-3 { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 900px) {
  .grid-2 { grid-template-columns:1fr; }
  .sidebar { width:64px; }
  .sidebar .nav-item span:not(.nav-icon) { display:none; }
  .sidebar .nav-group-title { display:none; }
  .nav-item { justify-content:center; padding:11px; }
  .cash-metrics { display:none; }
}
@media (max-width: 600px) {
  .content { padding:14px; }
  .grid-3, .grid-4 { grid-template-columns:1fr; }
  .form-row { grid-template-columns:1fr; }
}

/* 打印 */
@media print {
  .sidebar, .topbar, .no-print { display:none !important; }
  .content { padding:0; background:#fff; }
}
