/* ============================================================
   MetaFM 园区楼宇设备设施智慧运维管理系统 — 全局样式 V1.0
   设计语言延续 MetaESG：侧边栏 220px var(--side-1) + 顶栏 56px + flex 内容区
   主色 var(--primary)，背景 #f0f3f8，卡片白底圆角4px
   ============================================================ */

/* ==================== 主题变量（页面色调可调） ====================
   默认 = 科技蓝；html[data-theme="gray"]=深空灰；html[data-theme="green"]=品牌绿
   切换方式：document.documentElement.setAttribute('data-theme','gray') */
:root {
  --primary:#0055cc; --primary-d:#0047b0; --primary-2:#1a5fd8;
  --accent:#4da3ff; --accent-soft:#e8f0ff; --accent-rgb:77,163,255;
  --side-1:#0a1f4e; --side-2:#123a7d;
}
html[data-theme="gray"] {
  --primary:#475569; --primary-d:#334155; --primary-2:#64748b;
  --accent:#94a3b8; --accent-soft:#eef2f6; --accent-rgb:148,163,184;
  --side-1:#1b2230; --side-2:#2a3340;
}
html[data-theme="green"] {
  --primary:#0f9a6e; --primary-d:#0b7d59; --primary-2:#12b886;
  --accent:#34d399; --accent-soft:#e6f7f1; --accent-rgb:52,211,153;
  --side-1:#06382b; --side-2:#0b5a40;
}

* { margin:0; padding:0; box-sizing:border-box; }
html,body { height:100%; }
body { font-family:'Microsoft YaHei','PingFang SC','Helvetica Neue',sans-serif; background:#f0f3f8; color:#1a2c4a; min-height:100vh; font-size:13px; }
a { text-decoration:none; color:inherit; }
button { font-family:inherit; }
::-webkit-scrollbar { width:8px; height:8px; }
::-webkit-scrollbar-thumb { background:#c8d2e2; border-radius:4px; }
::-webkit-scrollbar-thumb:hover { background:#a8b8d0; }
::-webkit-scrollbar-track { background:transparent; }

/* ==================== 登录页 ==================== */
.login-wrap { min-height:100vh; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,var(--side-1) 0%,var(--side-2) 55%,var(--primary-2) 100%); position:relative; overflow:hidden; }
.login-bg-deco { position:absolute; border-radius:50%; border:1px solid rgba(77,163,255,0.18); }
.login-card { width:400px; background:#fff; border-radius:8px; padding:40px 44px 36px; box-shadow:0 24px 64px rgba(4,15,40,0.45); position:relative; z-index:2; }
.login-logo { display:flex; align-items:center; gap:12px; margin-bottom:8px; }
.login-logo .logo-box { width:44px; height:44px; background:var(--primary); border-radius:8px; display:flex; align-items:center; justify-content:center; }
.login-logo .logo-box svg { width:24px; height:24px; stroke:#fff; fill:none; stroke-width:1.8; }
.login-title { font-size:21px; font-weight:600; color:#1a2c4a; }
.login-sub { font-size:12px; color:#8a9ab0; margin:6px 0 28px; }
.login-field { margin-bottom:18px; }
.login-btn { width:100%; padding:11px; background:var(--primary); color:#fff; border:none; border-radius:4px; font-size:14px; font-weight:500; cursor:pointer; transition:background 0.2s; }
.login-btn:hover { background:var(--primary-d); }
.login-tip { margin-top:18px; padding:10px 14px; background:#eaf2ff; border:1px solid #b8d4ff; border-radius:4px; font-size:11px; color:var(--primary-2); line-height:1.7; }

/* ==================== 应用外壳 ==================== */
.app-shell { display:none; min-height:100vh; }
.app-shell.on { display:block; }

/* ---- 左侧导航 ---- */
.sidebar { width:220px; min-height:100vh; background:linear-gradient(180deg,var(--side-2),var(--side-1)); display:flex; flex-direction:column; flex-shrink:0; position:fixed; top:0; left:0; bottom:0; z-index:100; }
.sidebar-brand { padding:20px 20px 16px; border-bottom:1px solid rgba(255,255,255,0.06); }
.sidebar-brand .logo-row { display:flex; align-items:center; gap:10px; }
.sidebar-brand .logo-box { width:32px; height:32px; background:var(--primary-2); border-radius:6px; display:flex; align-items:center; justify-content:center; }
.sidebar-brand .logo-box svg { width:18px; height:18px; stroke:#fff; fill:none; stroke-width:2; }
.sidebar-brand .brand-text { font-size:17px; font-weight:600; color:#fff; letter-spacing:1px; }
.sidebar-brand .brand-text span { color:var(--accent); }
.sidebar-brand .brand-sub { font-size:10px; color:rgba(255,255,255,0.35); margin-top:4px; letter-spacing:1px; }
.sidebar-version { margin-top:10px; }
.sidebar-version .v-name { font-size:11px; color:var(--accent); font-weight:600; }
.sidebar-nav { flex:1; overflow-y:auto; padding-bottom:10px; }
.sidebar-nav::-webkit-scrollbar { width:4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background:rgba(255,255,255,0.15); }
.sidebar-section { padding:14px 0 4px; }
.sidebar-section-title { font-size:10px; color:rgba(255,255,255,0.3); padding:0 20px 6px; letter-spacing:2px; }
.nav-item { display:flex; align-items:center; gap:10px; padding:9px 20px; cursor:pointer; font-size:13px; color:rgba(255,255,255,0.62); transition:all 0.15s; border-left:3px solid transparent; }
.nav-item:hover { background:rgba(var(--accent-rgb),0.08); color:rgba(255,255,255,0.9); }
.nav-item.active { background:rgba(var(--accent-rgb),0.15); color:#fff; border-left-color:var(--accent); }
.nav-item svg { width:16px; height:16px; stroke:currentColor; fill:none; stroke-width:1.8; flex-shrink:0; }
.nav-badge { margin-left:auto; background:#e84040; color:#fff; font-size:10px; padding:1px 6px; border-radius:8px; line-height:1.4; }
.sidebar-footer { padding:14px 20px; border-top:1px solid rgba(255,255,255,0.06); }
.sidebar-footer .brand-foot { margin-top:10px; padding-top:9px; border-top:1px dashed rgba(255,255,255,0.08); font-size:10px; color:rgba(255,255,255,0.28); letter-spacing:0.4px; }
.user-info { display:flex; align-items:center; gap:10px; }
.user-avatar { width:32px; height:32px; background:var(--primary-2); border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:13px; color:#fff; font-weight:500; }
.user-name { font-size:12px; color:rgba(255,255,255,0.72); }
.user-role { font-size:10px; color:rgba(255,255,255,0.35); margin-top:1px; }
.logout-link { margin-left:auto; font-size:11px; color:rgba(255,255,255,0.45); cursor:pointer; }
.logout-link:hover { color:var(--accent); }

/* ---- 主内容区 ---- */
.main-wrap { margin-left:220px; flex:1; display:flex; flex-direction:column; min-height:100vh; }
.topbar { height:56px; background:#fff; border-bottom:1px solid #e4e9f2; display:flex; align-items:center; padding:0 28px; gap:16px; flex-shrink:0; position:sticky; top:0; z-index:50; }
.topbar-breadcrumb { display:flex; align-items:center; gap:6px; font-size:13px; color:#6b7a96; flex:1; min-width:0; }
.topbar-breadcrumb .cur { color:#1a2c4a; font-weight:500; }
.topbar-breadcrumb .sep { color:#c0c8d8; }
.topbar-actions { display:flex; align-items:center; gap:12px; }
.topbar-btn { display:inline-flex; align-items:center; gap:6px; padding:6px 13px; border:1px solid #dde3ee; border-radius:3px; font-size:12px; color:#4a5878; cursor:pointer; background:#fff; font-family:inherit; transition:all 0.15s; white-space:nowrap; }
.topbar-btn:hover { border-color:var(--primary); color:var(--primary); }
.topbar-btn.primary { background:var(--primary); color:#fff; border-color:var(--primary); }
.topbar-btn.primary:hover { background:var(--primary-d); }
.mt-16 { margin-top:16px; }
.section-title-bar { display:flex; align-items:baseline; gap:12px; margin:22px 0 14px; padding-left:2px; }
.section-title-bar .stb-main { font-size:15px; font-weight:600; color:#1a2c4a; }
.section-title-bar .stb-sub { font-size:12px; color:#8a9ab0; }
.theme-swatches { display:inline-flex; align-items:center; gap:6px; padding:0 4px; }
.theme-swatches .ts { width:16px; height:16px; border-radius:50%; cursor:pointer; border:2px solid transparent; box-shadow:0 0 0 1px rgba(0,0,0,0.08); transition:transform .12s; }
.theme-swatches .ts:hover { transform:scale(1.12); }
.theme-swatches .ts.on { border-color:#1a2c4a; box-shadow:0 0 0 2px #fff,0 0 0 3px var(--accent); }
.topbar-btn svg { width:14px; height:14px; stroke:currentColor; fill:none; stroke-width:1.8; }
.topbar-tag { background:var(--accent-soft); color:var(--primary); font-size:11px; padding:3px 10px; border-radius:2px; white-space:nowrap; }
.notice-dot { width:8px; height:8px; background:#e84040; border-radius:50%; cursor:pointer; flex-shrink:0; }
.page-content { flex:1; padding:24px 28px; overflow-x:hidden; }
.page-header { margin-bottom:20px; display:flex; align-items:flex-start; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.page-title { font-size:18px; font-weight:600; color:#1a2c4a; }
.page-sub { font-size:12px; color:#8a9ab0; margin-top:5px; line-height:1.6; }
.page-header-actions { display:flex; gap:10px; flex-shrink:0; }

/* ==================== 统计卡片 ==================== */
.stat-row { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:20px; }
.stat-row.col3 { grid-template-columns:repeat(3,1fr); }
.stat-row.col5 { grid-template-columns:repeat(5,1fr); }
.stat-card { background:#fff; border-radius:4px; padding:18px 22px; border:1px solid #e8edf5; position:relative; overflow:hidden; }
.stat-card::before { content:''; position:absolute; top:0; left:0; width:3px; height:100%; }
.sc-blue::before { background:var(--primary); } .sc-green::before { background:#0f9a6e; }
.sc-amber::before { background:#d48806; } .sc-purple::before { background:#534ab7; }
.sc-red::before { background:#cf3636; } .sc-teal::before { background:#0891b2; }
.sc-orange::before { background:#ea580c; } .sc-dark::before { background:#1e3a5f; }
.stat-card .sc-label { font-size:12px; color:#8a9ab0; margin-bottom:8px; }
.stat-card .sc-val { font-size:27px; font-weight:600; color:#1a2c4a; line-height:1; }
/* 统计卡语义色修饰（蓝/绿/红/琥珀/紫） */
.stat-card.sc-blue { border-top:3px solid var(--primary); }
.stat-card.sc-green { border-top:3px solid #0f9a6e; }
.stat-card.sc-red { border-top:3px solid #cf3636; }
.stat-card.sc-amber { border-top:3px solid #d48806; }
.stat-card.sc-purple { border-top:3px solid #534ab7; }
.stat-card.sc-red .sc-val { color:#cf3636; }
.stat-card.sc-amber .sc-val { color:#d48806; }
.stat-card.sc-green .sc-val { color:#0f9a6e; }
.stat-card .sc-unit { font-size:13px; color:#8a9ab0; margin-left:4px; font-weight:400; }
.stat-card .sc-change { font-size:12px; margin-top:8px; color:#8a9ab0; }
.sc-up { color:#0f9a6e; } .sc-down { color:#cf3636; }
.stat-card .sc-icon { position:absolute; right:16px; top:50%; transform:translateY(-50%); opacity:0.07; }
.stat-card .sc-icon svg { width:38px; height:38px; stroke:var(--primary); fill:none; stroke-width:1.5; }
.sc-badge { position:absolute; top:12px; right:12px; font-size:10px; padding:2px 7px; border-radius:2px; background:#fff4e0; color:#d48806; }
.sc-badge.green { background:#edf7f3; color:#0f9a6e; }

/* ==================== 卡片 / 网格 ==================== */
.card { background:#fff; border-radius:4px; border:1px solid #e8edf5; overflow:hidden; }
.card-header { padding:14px 20px; border-bottom:1px solid #eef1f7; display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.card-title { font-size:14px; font-weight:600; color:#1a2c4a; display:flex; align-items:center; gap:8px; }
.card-title::before { content:''; width:3px; height:16px; background:var(--primary); border-radius:2px; flex-shrink:0; }
.card-title .sub { font-size:11px; color:#8a9ab0; font-weight:400; }
.card-body { padding:20px; }
.card-body.flush { padding:0; }
.card-extra { font-size:12px; color:#8a9ab0; display:flex; align-items:center; gap:10px; }
.content-grid { display:grid; grid-template-columns:2fr 1fr; gap:16px; margin-bottom:16px; }
.content-grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-bottom:16px; }
.content-grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:16px; }
.content-grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:16px; }
.grid-1-1-2 { display:grid; grid-template-columns:1fr 1fr 2fr; gap:16px; margin-bottom:16px; }

/* ==================== 表格 ==================== */
.table-toolbar { display:flex; align-items:center; gap:10px; padding:14px 20px; border-bottom:1px solid #eef1f7; flex-wrap:wrap; }
.table-toolbar .tt-left { display:flex; gap:10px; flex-wrap:wrap; flex:1; min-width:0; }
.table-toolbar .tt-right { display:flex; gap:10px; margin-left:auto; }
.search-input { border:1px solid #dde3ee; border-radius:3px; padding:7px 12px; font-size:12px; width:220px; outline:none; font-family:inherit; transition:border-color 0.2s; background:#fff; }
.search-input:focus { border-color:var(--primary); box-shadow:0 0 0 3px rgba(0,85,204,0.07); }
.search-input.sm { width:150px; } .search-input.lg { width:280px; }
.filter-select { border:1px solid #dde3ee; border-radius:3px; padding:7px 10px; font-size:12px; color:#4a5878; outline:none; background:#fff; font-family:inherit; cursor:pointer; }
.table-wrap { overflow-x:auto; }
.data-table { width:100%; border-collapse:collapse; font-size:13px; }
.data-table th { background:#f5f7fc; color:#6b7a96; font-weight:500; padding:10px 14px; text-align:left; border-bottom:1px solid #e8edf5; font-size:12px; white-space:nowrap; }
.data-table td { padding:11px 14px; border-bottom:1px solid #f0f3f8; color:#1a2c4a; vertical-align:middle; }
.data-table tr:last-child td { border-bottom:none; }
.data-table tr:hover td { background:#f8faff; }
.data-table .td-actions { white-space:nowrap; }
.data-table .td-num { font-variant-numeric:tabular-nums; }
.data-table .td-strong { font-weight:500; }
.data-table .td-sub { font-size:11px; color:#8a9ab0; margin-top:2px; }
.table-empty { padding:44px 20px; text-align:center; color:#a0acbe; font-size:12px; }
.table-empty svg { width:40px; height:40px; stroke:#d0d8e4; fill:none; stroke-width:1.2; margin-bottom:10px; }
.table-footer { display:flex; align-items:center; justify-content:space-between; padding:12px 20px; border-top:1px solid #eef1f7; font-size:12px; color:#8a9ab0; flex-wrap:wrap; gap:10px; }
.pager { display:flex; gap:6px; align-items:center; }
.pager-btn { min-width:26px; height:26px; padding:0 6px; border:1px solid #dde3ee; border-radius:3px; background:#fff; font-size:12px; color:#4a5878; cursor:pointer; }
.pager-btn:hover:not(:disabled) { border-color:var(--primary); color:var(--primary); }
.pager-btn.active { background:var(--primary); border-color:var(--primary); color:#fff; }
.pager-btn:disabled { opacity:0.45; cursor:not-allowed; }

/* ==================== 按钮 ==================== */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:7px 16px; border-radius:3px; font-size:12px; cursor:pointer; border:1px solid transparent; transition:all 0.15s; white-space:nowrap; }
.btn svg { width:13px; height:13px; stroke:currentColor; fill:none; stroke-width:2; }
.btn-primary { background:var(--primary); color:#fff; border-color:var(--primary); }
.btn-primary:hover { background:var(--primary-d); }
.btn-default { background:#fff; border-color:#dde3ee; color:#4a5878; }
.btn-default:hover { border-color:var(--primary); color:var(--primary); }
.btn-danger { background:#fff; border-color:#f0b8b8; color:#cf3636; }
.btn-danger:hover { background:#cf3636; border-color:#cf3636; color:#fff; }
.btn-success { background:#0f9a6e; border-color:#0f9a6e; color:#fff; }
.btn-success:hover { background:#0b855c; }
.btn-warning { background:#d48806; border-color:#d48806; color:#fff; }
.btn-warning:hover { background:#b8740a; }
.btn-ghost { background:transparent; color:var(--primary); padding:5px 8px; }
.btn-ghost:hover { background:#eaf2ff; }
.btn-ghost.danger { color:#cf3636; }
.btn-ghost.danger:hover { background:#fef0f0; }
.btn-sm { padding:4px 10px; font-size:11px; }
.btn-sm svg { width:12px; height:12px; }
.btn-lg { padding:10px 24px; font-size:13px; }
.btn:disabled { opacity:0.5; cursor:not-allowed; }
.btn-block { width:100%; }

/* ==================== 状态标签 ==================== */
.status-pill { display:inline-flex; align-items:center; gap:5px; padding:3px 10px; border-radius:2px; font-size:11px; white-space:nowrap; }
.status-pill .dot { width:5px; height:5px; border-radius:50%; background:currentColor; flex-shrink:0; }
.status-pill.done { background:#e8f7f0; color:#0f9a6e; }
.status-pill.doing { background:var(--accent-soft); color:var(--primary); }
.status-pill.pending { background:#fff4e0; color:#d48806; }
.status-pill.draft { background:#f0f3f8; color:#8a9ab0; }
.status-pill.alert { background:#fef0f0; color:#cf3636; }
.status-pill.gray { background:#f0f3f8; color:#8a9ab0; }
.status-pill.purple { background:#efeeff; color:#534ab7; }
.status-pill.teal { background:#e6f7fb; color:#0891b2; }
.status-pill.orange { background:#fff0e6; color:#ea580c; }
.tag { display:inline-block; padding:2px 8px; border-radius:2px; font-size:11px; background:#f0f3f8; color:#4a5878; margin:1px 3px 1px 0; white-space:nowrap; }
.tag.blue { background:var(--accent-soft); color:var(--primary); }
.tag.green { background:#e8f7f0; color:#0f9a6e; }
.tag.amber { background:#fff4e0; color:#d48806; }
.tag.red { background:#fef0f0; color:#cf3636; }
.tag.purple { background:#efeeff; color:#534ab7; }
.tag.teal { background:#e6f7fb; color:#0891b2; }
.tag.orange { background:#fff0e6; color:#ea580c; }

/* ==================== 模态框 / 抽屉 ==================== */
.modal-mask { position:fixed; inset:0; background:rgba(10,20,40,0.5); z-index:1000; display:none; align-items:flex-start; justify-content:center; padding:6vh 20px 20px; overflow-y:auto; }
.modal-mask.on { display:flex; }
.modal { background:#fff; border-radius:6px; width:640px; max-width:100%; box-shadow:0 20px 60px rgba(4,15,40,0.3); animation:modalIn 0.18s ease; }
.modal.lg { width:860px; } .modal.sm { width:460px; } .modal.xl { width:1080px; }
@keyframes modalIn { from { opacity:0; transform:translateY(-12px); } to { opacity:1; transform:none; } }
.modal-header { padding:16px 24px; border-bottom:1px solid #eef1f7; display:flex; align-items:center; justify-content:space-between; }
.modal-title { font-size:15px; font-weight:600; color:#1a2c4a; }
.modal-close { width:28px; height:28px; border:none; background:transparent; cursor:pointer; border-radius:4px; display:flex; align-items:center; justify-content:center; color:#8a9ab0; }
.modal-close:hover { background:#f0f3f8; color:#1a2c4a; }
.modal-close svg { width:14px; height:14px; stroke:currentColor; stroke-width:2; }
.modal-body { padding:24px; max-height:62vh; overflow-y:auto; }
.modal-footer { padding:14px 24px; border-top:1px solid #eef1f7; display:flex; justify-content:flex-end; gap:10px; }
.drawer-mask { position:fixed; inset:0; background:rgba(10,20,40,0.4); z-index:1000; display:none; }
.drawer-mask.on { display:block; }
.drawer { position:fixed; top:0; right:0; bottom:0; width:520px; max-width:92vw; background:#fff; z-index:1001; transform:translateX(100%); transition:transform 0.22s ease; display:flex; flex-direction:column; box-shadow:-8px 0 32px rgba(4,15,40,0.18); }
.drawer.on { transform:none; }
.drawer-header { padding:16px 22px; border-bottom:1px solid #eef1f7; display:flex; align-items:center; justify-content:space-between; flex-shrink:0; }
.drawer-body { flex:1; overflow-y:auto; padding:22px; }
.drawer-footer { padding:14px 22px; border-top:1px solid #eef1f7; display:flex; justify-content:flex-end; gap:10px; flex-shrink:0; }

/* ==================== 表单 ==================== */
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:14px 16px; margin-bottom:4px; }
.form-row.cols3 { grid-template-columns:1fr 1fr 1fr; }
.form-row.cols1 { grid-template-columns:1fr; }
.field-group { display:flex; flex-direction:column; gap:6px; margin-bottom:14px; }
.field-label { font-size:12px; color:#6b7a96; }
.field-label .req { color:#cf3636; margin-left:2px; }
.field-input, .field-select, .field-textarea { border:1px solid #dde3ee; border-radius:3px; padding:8px 12px; font-size:13px; color:#1a2c4a; outline:none; font-family:inherit; width:100%; background:#fff; transition:border-color 0.2s; }
.field-input:focus, .field-select:focus, .field-textarea:focus { border-color:var(--primary); box-shadow:0 0 0 3px rgba(0,85,204,0.07); }
.field-input:disabled, .field-select:disabled { background:#f5f7fc; color:#8a9ab0; }
.field-textarea { resize:vertical; min-height:80px; }
.field-hint { font-size:11px; color:#a0acbe; }
.field-check { display:flex; align-items:center; gap:7px; font-size:12px; color:#4a5878; cursor:pointer; user-select:none; }
.field-check input { accent-color:var(--primary); }
.radio-cards { display:flex; gap:10px; flex-wrap:wrap; }
.radio-card { border:1px solid #dde3ee; border-radius:4px; padding:9px 16px; font-size:12px; color:#4a5878; cursor:pointer; display:flex; align-items:center; gap:7px; transition:all 0.15s; }
.radio-card:hover { border-color:var(--primary); }
.radio-card.on { border-color:var(--primary); background:#eaf2ff; color:var(--primary); font-weight:500; }

/* ==================== 提示 ==================== */
.alert-box { border-radius:3px; padding:10px 14px; font-size:12px; display:flex; align-items:flex-start; gap:8px; margin-bottom:14px; line-height:1.7; }
.alert-box.info { background:#eaf2ff; border:1px solid #b8d4ff; color:var(--primary-2); }
.alert-box.warn { background:#fff8e6; border:1px solid #ffd77a; color:#9a6900; }
.alert-box.success { background:#edf7f3; border:1px solid #90d9bc; color:#0a7a52; }
.alert-box.danger { background:#fef0f0; border:1px solid #f0b8b8; color:#cf3636; }
.alert-box svg { width:14px; height:14px; flex-shrink:0; margin-top:2px; stroke:currentColor; fill:none; stroke-width:2; }
.toast-wrap { position:fixed; top:20px; left:50%; transform:translateX(-50%); z-index:2000; display:flex; flex-direction:column; gap:8px; align-items:center; }
.toast { background:#fff; border-radius:4px; padding:10px 20px; font-size:13px; box-shadow:0 8px 28px rgba(4,15,40,0.2); display:flex; align-items:center; gap:9px; animation:toastIn 0.2s ease; border:1px solid #e8edf5; }
@keyframes toastIn { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:none; } }
.toast .t-icon { width:16px; height:16px; border-radius:50%; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.toast .t-icon svg { width:10px; height:10px; stroke:#fff; stroke-width:2.5; }
.toast.success .t-icon { background:#0f9a6e; } .toast.error .t-icon { background:#cf3636; }
.toast.info .t-icon { background:var(--primary); } .toast.warning .t-icon { background:#d48806; }

/* ==================== 选项卡 ==================== */
.tabs { display:flex; border-bottom:1px solid #e4e9f2; margin-bottom:20px; flex-wrap:wrap; }
.tab { padding:10px 18px; font-size:13px; color:#8a9ab0; cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-1px; transition:all 0.15s; white-space:nowrap; }
.tab.active { color:var(--primary); border-bottom-color:var(--primary); font-weight:500; }
.tab:hover { color:var(--primary); }
.tab .cnt { font-size:10px; background:#f0f3f8; border-radius:8px; padding:1px 6px; margin-left:5px; }
.tab.active .cnt { background:var(--accent-soft); }

/* ==================== 流程步骤条 ==================== */
.flow-steps { display:flex; align-items:center; padding:6px 0 2px; flex-wrap:wrap; gap:0; }
.flow-step { display:flex; align-items:center; }
.flow-step .fs-node { display:flex; flex-direction:column; align-items:center; gap:5px; min-width:64px; }
.flow-step .fs-dot { width:26px; height:26px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:11px; background:#eef1f7; color:#8a9ab0; border:2px solid #eef1f7; }
.flow-step .fs-dot svg { width:12px; height:12px; stroke:currentColor; fill:none; stroke-width:2.5; }
.flow-step .fs-label { font-size:11px; color:#8a9ab0; white-space:nowrap; }
.flow-step.done .fs-dot { background:#0f9a6e; border-color:#0f9a6e; color:#fff; }
.flow-step.done .fs-label { color:#0f9a6e; }
.flow-step.current .fs-dot { background:var(--primary); border-color:var(--primary); color:#fff; box-shadow:0 0 0 4px rgba(0,85,204,0.15); }
.flow-step.current .fs-label { color:var(--primary); font-weight:600; }
.flow-step .fs-line { width:34px; height:2px; background:#e4e9f2; margin:0 4px 18px; }
.flow-step.done .fs-line { background:#0f9a6e; }
.flow-step.aborted .fs-dot { background:#fef0f0; border-color:#f0b8b8; color:#cf3636; }
.flow-step.aborted .fs-label { color:#cf3636; }

/* ==================== 时间线 ==================== */
.timeline { position:relative; padding-left:22px; }
.timeline::before { content:''; position:absolute; left:7px; top:6px; bottom:6px; width:2px; background:#e4e9f2; }
.tl-item { position:relative; padding-bottom:18px; }
.tl-item:last-child { padding-bottom:0; }
.tl-item::before { content:''; position:absolute; left:-19px; top:5px; width:8px; height:8px; border-radius:50%; background:#c8d2e2; border:2px solid #fff; }
.tl-item.hl::before { background:var(--primary); }
.tl-item.ok::before { background:#0f9a6e; }
.tl-item.warn::before { background:#d48806; }
.tl-item.bad::before { background:#cf3636; }
.tl-title { font-size:12px; font-weight:500; color:#1a2c4a; }
.tl-desc { font-size:12px; color:#6b7a96; margin-top:3px; line-height:1.6; }
.tl-time { font-size:11px; color:#a0acbe; margin-top:3px; }

/* ==================== 树形控件 ==================== */
.tree { font-size:13px; }
.tree-node { user-select:none; }
.tree-node-row { display:flex; align-items:center; gap:7px; padding:7px 10px; border-radius:3px; cursor:pointer; transition:background 0.12s; }
.tree-node-row:hover { background:#f0f6ff; }
.tree-node-row.on { background:#eaf2ff; color:var(--primary); font-weight:500; }
.tree-node-row .tn-arrow { width:14px; height:14px; flex-shrink:0; display:flex; align-items:center; justify-content:center; color:#a0acbe; transition:transform 0.15s; }
.tree-node-row .tn-arrow svg { width:11px; height:11px; stroke:currentColor; fill:none; stroke-width:2.2; }
.tree-node-row .tn-arrow.open { transform:rotate(90deg); }
.tree-node-row .tn-arrow.leaf { visibility:hidden; }
.tree-node-row .tn-icon { width:15px; height:15px; flex-shrink:0; display:flex; align-items:center; }
.tree-node-row .tn-icon svg { width:14px; height:14px; stroke:#4a7ab8; fill:none; stroke-width:1.8; }
.tree-node-row.on .tn-icon svg { stroke:var(--primary); }
.tree-node-row .tn-label { flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tree-node-row .tn-count { font-size:10px; color:#a0acbe; background:#f0f3f8; padding:1px 6px; border-radius:8px; }
.tree-children { padding-left:18px; }
.tree-children.collapsed { display:none; }

/* ==================== 看板 ==================== */
.kanban { display:grid; grid-template-columns:repeat(6,1fr); gap:12px; align-items:start; }
.kb-col { background:#f5f7fc; border-radius:4px; padding:10px; min-height:300px; }
.kb-col-head { display:flex; align-items:center; justify-content:space-between; padding:2px 4px 10px; font-size:12px; font-weight:600; color:#4a5878; }
.kb-col-head .cnt { font-size:11px; color:#8a9ab0; font-weight:400; background:#fff; border-radius:8px; padding:1px 8px; }
.kb-cards { display:flex; flex-direction:column; gap:10px; }
.kb-card { background:#fff; border-radius:4px; border:1px solid #e8edf5; padding:12px; cursor:pointer; transition:all 0.15s; }
.kb-card:hover { border-color:var(--primary); box-shadow:0 4px 14px rgba(0,85,204,0.1); }
.kb-card .kb-title { font-size:12px; font-weight:500; color:#1a2c4a; line-height:1.5; }
.kb-card .kb-meta { font-size:11px; color:#8a9ab0; margin-top:7px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.kb-card .kb-tags { margin-top:7px; }
.kb-card.urgent { border-left:3px solid #cf3636; }
.kb-card.high { border-left:3px solid #d48806; }

/* ==================== 进度条 / 分值 ==================== */
.prog-bar { background:#eef1f7; border-radius:2px; height:8px; overflow:hidden; }
.prog-fill { height:100%; border-radius:2px; transition:width 0.4s; background:var(--primary); }
.prog-fill.green { background:#0f9a6e; } .prog-fill.amber { background:#d48806; }
.prog-fill.red { background:#cf3636; } .prog-fill.teal { background:#0891b2; }
.prog-fill.purple { background:#534ab7; }
.prog-row { display:flex; align-items:center; gap:12px; padding:9px 0; border-bottom:1px solid #f0f3f8; }
.prog-row:last-child { border-bottom:none; }
.prog-row .pr-label { width:120px; font-size:12px; color:#4a5878; flex-shrink:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.prog-row .pr-bar { flex:1; }
.prog-row .pr-val { width:52px; font-size:12px; color:#1a2c4a; font-weight:500; text-align:right; flex-shrink:0; font-variant-numeric:tabular-nums; }
.score-ring { position:relative; display:inline-flex; align-items:center; justify-content:center; }
.score-ring svg { transform:rotate(-90deg); }
.score-ring .val { position:absolute; font-size:20px; font-weight:600; color:#1a2c4a; }

/* ==================== 日历 ==================== */
.calendar { font-size:12px; }
.cal-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.cal-title { font-size:14px; font-weight:600; color:#1a2c4a; }
.cal-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:6px; }
.cal-weekday { text-align:center; font-size:11px; color:#8a9ab0; padding:6px 0; }
.cal-day { min-height:86px; border:1px solid #eef1f7; border-radius:3px; padding:6px; background:#fff; position:relative; }
.cal-day.other { background:#fafbfe; }
.cal-day.today { border-color:var(--primary); background:#f5f9ff; }
.cal-day .cd-num { font-size:11px; color:#6b7a96; margin-bottom:4px; }
.cal-day.today .cd-num { color:var(--primary); font-weight:700; }
.cal-ev { font-size:10px; padding:2px 5px; border-radius:2px; margin-bottom:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; cursor:pointer; }
.cal-ev:hover { opacity:0.85; }
.cal-ev.blue { background:var(--accent-soft); color:var(--primary); }
.cal-ev.green { background:#e8f7f0; color:#0f9a6e; }
.cal-ev.amber { background:#fff4e0; color:#d48806; }
.cal-ev.red { background:#fef0f0; color:#cf3636; }
.cal-ev.purple { background:#efeeff; color:#534ab7; }
.cal-ev.teal { background:#e6f7fb; color:#0891b2; }
.cal-add { position:absolute; right:5px; top:5px; width:16px; height:16px; border-radius:3px; border:1px dashed #d0d8e4; color:#a0acbe; font-size:11px; line-height:14px; text-align:center; cursor:pointer; background:transparent; }
.cal-add:hover { border-color:var(--primary); color:var(--primary); }

/* ==================== 空态 ==================== */
.empty-state { padding:48px 20px; text-align:center; }
.empty-state svg { width:52px; height:52px; stroke:#d0d8e4; fill:none; stroke-width:1.1; margin-bottom:12px; }
.empty-state .es-title { font-size:13px; color:#6b7a96; margin-bottom:6px; }
.empty-state .es-sub { font-size:11px; color:#a0acbe; }

/* ==================== 图表容器 ==================== */
.chart-box { position:relative; width:100%; }
.chart-legend { display:flex; gap:14px; flex-wrap:wrap; margin-top:10px; }
.legend-item { display:flex; align-items:center; gap:6px; font-size:11px; color:#8a9ab0; }
.legend-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.mini-chart { height:38px; }

/* ==================== 详情页（档案） ==================== */
.profile-head { display:flex; gap:18px; align-items:flex-start; margin-bottom:18px; flex-wrap:wrap; }
.profile-avatar { width:64px; height:64px; border-radius:6px; background:linear-gradient(135deg,var(--accent-soft),#d4e5ff); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.profile-avatar svg { width:30px; height:30px; stroke:var(--primary); fill:none; stroke-width:1.5; }
.profile-name { font-size:17px; font-weight:600; color:#1a2c4a; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.profile-meta { font-size:12px; color:#8a9ab0; margin-top:6px; display:flex; gap:14px; flex-wrap:wrap; }
.desc-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:0; border:1px solid #eef1f7; border-radius:4px; overflow:hidden; }
.desc-grid .dg-item { padding:12px 16px; border-right:1px solid #eef1f7; border-bottom:1px solid #eef1f7; background:#fff; }
.desc-grid .dg-item:nth-child(3n) { border-right:none; }
.desc-grid .dg-label { font-size:11px; color:#8a9ab0; margin-bottom:5px; }
.desc-grid .dg-value { font-size:13px; color:#1a2c4a; word-break:break-all; }

/* ==================== 二维码 ==================== */
.qr-box { width:120px; height:120px; padding:8px; border:1px solid #e8edf5; border-radius:4px; background:#fff; }
.qr-box svg { width:100%; height:100%; }
.qr-canvas-wrap { display:flex; flex-direction:column; align-items:center; gap:10px; }

/* ==================== 实时数据卡片 ==================== */
.rt-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(215px,1fr)); gap:12px; }
.rt-card { border:1px solid #e8edf5; border-radius:4px; padding:14px; background:#fff; position:relative; overflow:hidden; }
.rt-card .rt-name { font-size:12px; color:#6b7a96; display:flex; align-items:center; gap:6px; }
.rt-card .rt-val { font-size:22px; font-weight:600; color:#1a2c4a; margin-top:8px; font-variant-numeric:tabular-nums; }
.rt-card .rt-val .unit { font-size:11px; color:#8a9ab0; font-weight:400; margin-left:3px; }
.rt-card .rt-trend { font-size:11px; margin-top:6px; }
.rt-card.alarm { border-color:#f0b8b8; background:#fffafa; }
.rt-card .rt-flag { position:absolute; top:0; right:0; font-size:10px; padding:2px 8px; border-radius:0 0 0 4px; background:#fef0f0; color:#cf3636; }
.rt-card .rt-flag.ok { background:#e8f7f0; color:#0f9a6e; }

/* ==================== 列表项 ==================== */
.list-item { display:flex; align-items:center; gap:12px; padding:11px 0; border-bottom:1px solid #f0f3f8; cursor:pointer; }
.list-item:last-child { border-bottom:none; }
.list-item:hover .li-title { color:var(--primary); }
.list-item .li-icon { width:32px; height:32px; border-radius:4px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.list-item .li-icon svg { width:15px; height:15px; stroke:currentColor; fill:none; stroke-width:1.8; }
.list-item .li-body { flex:1; min-width:0; }
.list-item .li-title { font-size:12px; font-weight:500; color:#1a2c4a; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; transition:color 0.15s; }
.list-item .li-desc { font-size:11px; color:#8a9ab0; margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.list-item .li-right { text-align:right; flex-shrink:0; }

/* ==================== 平面图/地图 ==================== */
.floorplan { position:relative; background:#e8edf5; border-radius:4px; overflow:auto; }
.fp-canvas { position:relative; min-width:760px; min-height:460px; background:
  linear-gradient(rgba(200,212,226,0.35) 1px, transparent 1px),
  linear-gradient(90deg, rgba(200,212,226,0.35) 1px, transparent 1px);
  background-size:24px 24px; }
.fp-room { position:absolute; border:2px solid #b8c6dc; background:rgba(255,255,255,0.82); border-radius:3px; display:flex; flex-direction:column; align-items:center; justify-content:center; font-size:11px; color:#4a5878; cursor:pointer; transition:all 0.15s; }
.fp-room:hover { border-color:var(--primary); background:#fff; }
.fp-room.on { border-color:var(--primary); background:#eaf2ff; }
.fp-room .rm-name { font-weight:500; }
.fp-room .rm-sub { font-size:10px; color:#8a9ab0; margin-top:2px; }
.fp-device { position:absolute; width:22px; height:22px; border-radius:50%; display:flex; align-items:center; justify-content:center; cursor:pointer; transform:translate(-50%,-50%); z-index:5; border:2px solid #fff; box-shadow:0 1px 4px rgba(10,31,78,0.25); }
.fp-device svg { width:11px; height:11px; stroke:#fff; fill:none; stroke-width:2.2; }
.fp-device:hover { transform:translate(-50%,-50%) scale(1.25); }
.fp-device.ok { background:#0f9a6e; } .fp-device.warn { background:#d48806; }
.fp-device.err { background:#cf3636; } .fp-device.off { background:#8a9ab0; }
.fp-toolbar { display:flex; gap:8px; padding:10px 14px; border-bottom:1px solid #eef1f7; align-items:center; flex-wrap:wrap; background:#fff; }
.fp-legend { display:flex; gap:14px; margin-left:auto; font-size:11px; color:#8a9ab0; flex-wrap:wrap; }
.fp-legend .lg { display:flex; align-items:center; gap:5px; }
.fp-legend .dot { width:9px; height:9px; border-radius:50%; }

/* ==================== 大屏模式 ==================== */
.screen-wrap { background:#040d20; min-height:100vh; color:#cfe3ff; padding:18px 24px; }
.screen-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.screen-title { font-size:22px; font-weight:600; color:#fff; letter-spacing:2px; display:flex; align-items:center; gap:12px; }
.screen-title svg { width:24px; height:24px; stroke:var(--accent); fill:none; stroke-width:1.8; }
.screen-sub { font-size:11px; color:rgba(207,227,255,0.5); margin-top:4px; letter-spacing:1px; }
.screen-time { text-align:right; font-size:12px; color:rgba(207,227,255,0.65); }
.screen-time .now { font-size:18px; color:#fff; font-variant-numeric:tabular-nums; }
.screen-grid { display:grid; grid-template-columns:repeat(12,1fr); gap:14px; }
.sc-panel { background:rgba(13,32,66,0.72); border:1px solid rgba(77,163,255,0.22); border-radius:6px; padding:14px 16px; position:relative; }
.sc-panel::before { content:''; position:absolute; top:0; left:0; width:3px; height:100%; background:var(--primary-2); border-radius:6px 0 0 6px; }
.sc-panel-title { font-size:13px; font-weight:600; color:#a8ccff; margin-bottom:12px; display:flex; align-items:center; gap:7px; letter-spacing:1px; }
.sc-panel-title svg { width:14px; height:14px; stroke:var(--accent); fill:none; stroke-width:2; }
.sc-kpi { text-align:center; padding:8px 4px; }
.sc-kpi .v { font-size:26px; font-weight:700; color:#fff; font-variant-numeric:tabular-nums; }
.sc-kpi .v .u { font-size:11px; color:rgba(207,227,255,0.5); font-weight:400; margin-left:2px; }
.sc-kpi .l { font-size:11px; color:rgba(207,227,255,0.55); margin-top:5px; }
.screen-alarm-item { display:flex; align-items:center; gap:10px; padding:8px 10px; background:rgba(77,163,255,0.06); border-radius:4px; margin-bottom:8px; font-size:12px; }
.screen-alarm-item .lv { width:6px; height:6px; border-radius:50%; flex-shrink:0; }
.screen-exit { position:fixed; right:20px; bottom:20px; z-index:10; }
.screen-dev-flow { display:flex; flex-direction:column; gap:8px; font-size:12px; }
.screen-flow-row { display:flex; align-items:center; gap:10px; }
.screen-flow-row .bar-bg { flex:1; height:14px; background:rgba(77,163,255,0.1); border-radius:2px; overflow:hidden; }
.screen-flow-row .bar-fill { height:100%; border-radius:2px; }

/* ==================== H5 移动端预览 ==================== */
.h5-phone { width:375px; height:720px; border-radius:26px; background:#040d20; padding:12px; box-shadow:0 20px 60px rgba(4,15,40,0.35); }
.h5-screen { width:100%; height:100%; border-radius:16px; background:#f0f3f8; overflow:hidden; display:flex; flex-direction:column; position:relative; }
.h5-statusbar { height:26px; background:var(--side-1); display:flex; align-items:center; justify-content:space-between; padding:0 16px; font-size:10px; color:#fff; flex-shrink:0; }
.h5-navbar { height:44px; background:var(--side-1); display:flex; align-items:center; justify-content:center; color:#fff; font-size:14px; font-weight:500; flex-shrink:0; position:relative; }
.h5-body { flex:1; overflow-y:auto; padding:14px; }
.h5-tabbar { height:52px; background:#fff; border-top:1px solid #e4e9f2; display:flex; flex-shrink:0; }
.h5-tabbar .ht { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; font-size:10px; color:#8a9ab0; cursor:pointer; }
.h5-tabbar .ht.on { color:var(--primary); }
.h5-tabbar .ht svg { width:19px; height:19px; stroke:currentColor; fill:none; stroke-width:1.8; }
.h5-card { background:#fff; border-radius:6px; padding:14px; margin-bottom:12px; }
.h5-btn { display:block; width:100%; padding:10px; background:var(--primary); color:#fff; border:none; border-radius:5px; font-size:13px; text-align:center; cursor:pointer; }
.h5-quick { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; background:#fff; border-radius:6px; padding:14px 10px; margin-bottom:12px; }
.h5-quick .hq { display:flex; flex-direction:column; align-items:center; gap:6px; font-size:11px; color:#4a5878; cursor:pointer; }
.h5-quick .hq .ic { width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center; }
.h5-quick .hq .ic svg { width:17px; height:17px; stroke:#fff; fill:none; stroke-width:1.9; }
.h5-step-dot { display:flex; align-items:center; gap:0; margin:10px 0; }
.h5-step-dot .s { flex:1; display:flex; flex-direction:column; align-items:center; gap:4px; font-size:9px; color:#a0acbe; }
.h5-step-dot .s .d { width:16px; height:16px; border-radius:50%; background:#e4e9f2; color:#fff; font-size:9px; display:flex; align-items:center; justify-content:center; }
.h5-step-dot .s.done .d { background:#0f9a6e; } .h5-step-dot .s.done { color:#0f9a6e; }
.h5-step-dot .s.cur .d { background:var(--primary); } .h5-step-dot .s.cur { color:var(--primary); }
.h5-rate { display:flex; gap:6px; }
.h5-rate .star { font-size:22px; color:#d8dfea; cursor:pointer; }
.h5-rate .star.on { color:#f5a623; }
.h5-phone-outer { display:flex; gap:32px; align-items:flex-start; flex-wrap:wrap; }
.h5-notes { flex:1; min-width:300px; }

/* ==================== AI 助手对话 ==================== */
.chat-wrap { display:flex; flex-direction:column; height:560px; }
.chat-msgs { flex:1; overflow-y:auto; padding:4px 2px; display:flex; flex-direction:column; gap:14px; }
.chat-msg { display:flex; gap:10px; max-width:85%; }
.chat-msg.user { align-self:flex-end; flex-direction:row-reverse; }
.chat-msg .cm-avatar { width:30px; height:30px; border-radius:50%; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:600; }
.chat-msg.ai .cm-avatar { background:linear-gradient(135deg,var(--primary),var(--accent)); color:#fff; }
.chat-msg.user .cm-avatar { background:#e8edf5; color:#4a5878; }
.chat-msg .cm-bubble { padding:10px 14px; border-radius:4px; font-size:12px; line-height:1.8; }
.chat-msg.ai .cm-bubble { background:#f5f8ff; border:1px solid #e0eaff; color:#1a2c4a; border-top-left-radius:0; }
.chat-msg.user .cm-bubble { background:var(--primary); color:#fff; border-top-right-radius:0; }
.chat-input-row { display:flex; gap:10px; padding-top:12px; border-top:1px solid #eef1f7; }
.chat-suggests { display:flex; gap:8px; flex-wrap:wrap; padding:10px 0 0; }
.chat-suggest { font-size:11px; padding:5px 12px; border:1px solid #dde3ee; border-radius:14px; color:#4a5878; cursor:pointer; background:#fff; }
.chat-suggest:hover { border-color:var(--primary); color:var(--primary); background:#eaf2ff; }
.typing { display:inline-flex; gap:4px; padding:4px 0; }
.typing span { width:6px; height:6px; border-radius:50%; background:#a8b8d0; animation:typing 1.2s infinite; }
.typing span:nth-child(2) { animation-delay:0.2s; } .typing span:nth-child(3) { animation-delay:0.4s; }
@keyframes typing { 0%,60%,100% { transform:none; opacity:0.4; } 30% { transform:translateY(-4px); opacity:1; } }

/* ==================== 其他工具类 ==================== */
.flex { display:flex; } .flex-1 { flex:1; } .flex-wrap { flex-wrap:wrap; }
.items-center { align-items:center; } .justify-between { justify-content:space-between; }
.gap-6 { gap:6px; } .gap-8 { gap:8px; } .gap-10 { gap:10px; } .gap-14 { gap:14px; } .gap-20 { gap:20px; }
.mt-8 { margin-top:8px; } .mt-12 { margin-top:12px; } .mt-16 { margin-top:16px; } .mt-20 { margin-top:20px; }
.mb-8 { margin-bottom:8px; } .mb-12 { margin-bottom:12px; } .mb-16 { margin-bottom:16px; } .mb-20 { margin-bottom:20px; }
.text-muted { color:#8a9ab0; } .text-xs { font-size:11px; } .text-sm { font-size:12px; }
.text-primary { color:var(--primary); } .text-success { color:#0f9a6e; } .text-warning { color:#d48806; } .text-danger { color:#cf3636; }
.text-right { text-align:right; } .text-center { text-align:center; }
.font-600 { font-weight:600; } .font-500 { font-weight:500; }
.nowrap { white-space:nowrap; } .ellipsis { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.divider { height:1px; background:#eef1f7; margin:16px 0; }
.kv-row { display:flex; font-size:12px; padding:7px 0; border-bottom:1px solid #f0f3f8; }
.kv-row:last-child { border-bottom:none; }
.kv-row .k { width:110px; color:#8a9ab0; flex-shrink:0; }
.kv-row .v { color:#1a2c4a; flex:1; }
.sec-title { font-size:13px; font-weight:600; color:#1a2c4a; margin:18px 0 12px; display:flex; align-items:center; gap:8px; }
.sec-title::before { content:''; width:3px; height:14px; background:var(--primary); border-radius:2px; }
.sec-title:first-child { margin-top:0; }
.mini-stat { display:flex; gap:16px; flex-wrap:wrap; }
.mini-stat .ms { background:#fafbfe; border:1px solid #eef1f7; border-radius:3px; padding:10px 16px; min-width:110px; }
.mini-stat .ms .v { font-size:18px; font-weight:600; color:#1a2c4a; }
.mini-stat .ms .l { font-size:11px; color:#8a9ab0; margin-top:3px; }
.badge-count { display:inline-flex; min-width:18px; height:18px; padding:0 5px; border-radius:9px; background:#e84040; color:#fff; font-size:10px; align-items:center; justify-content:center; }
.avatar-xs { width:22px; height:22px; border-radius:50%; background:var(--accent-soft); color:var(--primary); font-size:10px; display:inline-flex; align-items:center; justify-content:center; font-weight:500; flex-shrink:0; }
.link { color:var(--primary); cursor:pointer; } .link:hover { text-decoration:underline; }
.link.danger { color:#cf3636; }

@media (max-width:1400px) { .kanban { grid-template-columns:repeat(3,1fr); } }
@media print { .sidebar,.topbar,.no-print { display:none !important; } .main-wrap { margin-left:0; } }

/* ==================== V1.1 新增组件 ==================== */
/* 审批流程链步骤（采购审批流） */
.flow-chip { display:inline-block; padding:3px 10px; border-radius:12px; font-size:11px; background:#eef1f6; color:#8a9ab0; white-space:nowrap; }
.flow-chip.current { background:var(--accent-soft,#e8f0ff); color:var(--primary,#0055cc); font-weight:600; }
.flow-chip.done { background:#e8f7f0; color:#0f9a6e; }
/* 可选列表项（智能派单工单选择） */
.list-pickable:hover { background:#f6f8fb; }
.list-pickable { transition:background .15s; }
/* 评分卡片网格兜底 */
.score-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:8px; }

/* ==================== V1.2 系统演示中心（Demo Center） ==================== */
.demo-hero { display:flex; align-items:center; gap:24px; background:linear-gradient(135deg,var(--side-2),var(--side-1)); border-radius:6px; padding:24px 28px; color:#fff; margin-bottom:20px; flex-wrap:wrap; }
.demo-hero .dh-main { flex:1; min-width:280px; }
.demo-hero .dh-title { font-size:18px; font-weight:600; margin-bottom:8px; }
.demo-hero .dh-sub { font-size:12px; color:rgba(255,255,255,0.72); line-height:1.8; max-width:560px; }
.demo-hero .dh-actions { margin-top:16px; display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.demo-hero .dh-actions .link { color:var(--accent); font-size:12px; }
.demo-hero .dh-stats { display:flex; gap:26px; }
.demo-hero .dhs { text-align:center; }
.demo-hero .dhs-v { font-size:26px; font-weight:700; color:#fff; line-height:1; }
.demo-hero .dhs-l { font-size:11px; color:rgba(255,255,255,0.55); margin-top:6px; }

.demo-vals { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.demo-val { background:#fff; border:1px solid #e8edf5; border-radius:4px; padding:18px 20px; transition:box-shadow .15s, transform .15s; }
.demo-val:hover { box-shadow:0 6px 18px rgba(10,31,78,0.08); transform:translateY(-2px); }
.demo-val .dv-icon { width:42px; height:42px; border-radius:8px; background:var(--accent-soft); color:var(--primary); display:inline-flex; align-items:center; justify-content:center; margin-bottom:12px; }
.demo-val .dv-icon svg { width:22px; height:22px; stroke:currentColor; fill:none; stroke-width:1.8; }
.demo-val .dv-t { font-size:14px; font-weight:600; color:#1a2c4a; margin-bottom:6px; }
.demo-val .dv-d { font-size:12px; color:#8a9ab0; line-height:1.7; }

.demo-panorama { display:flex; flex-direction:column; gap:14px; }
.demo-group { background:#fff; border:1px solid #e8edf5; border-radius:4px; padding:16px 18px; }
.demo-group-title { font-size:12px; font-weight:600; color:var(--primary); margin-bottom:12px; letter-spacing:1px; }
.demo-mods { display:grid; grid-template-columns:repeat(auto-fill,minmax(170px,1fr)); gap:10px; }
.demo-mod { display:flex; align-items:center; gap:10px; padding:11px 14px; border:1px solid #eef1f7; border-radius:4px; background:#fafbfe; transition:all .15s; }
.demo-mod:hover { border-color:var(--primary); background:#fff; box-shadow:0 4px 12px rgba(10,31,78,0.06); }
.demo-mod .dm-icon { width:30px; height:30px; border-radius:6px; background:var(--accent-soft); color:var(--primary); display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; }
.demo-mod .dm-icon svg { width:18px; height:18px; stroke:currentColor; fill:none; stroke-width:1.8; }
.demo-mod .dm-name { font-size:13px; color:#1a2c4a; flex:1; }
.demo-mod .dm-go { color:#c0c8d8; display:inline-flex; }
.demo-mod:hover .dm-go { color:var(--primary); }

.demo-flow-tip { margin-top:16px; font-size:11px; color:#8a9ab0; background:#f7f9fc; border:1px dashed #e0e6f0; border-radius:4px; padding:9px 12px; }

.demo-res { display:flex; align-items:center; gap:12px; }
.demo-res .dr-ic { width:34px; height:34px; border-radius:7px; background:var(--accent-soft); color:var(--primary); display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; }
.demo-res .dr-ic svg { width:16px; height:16px; stroke:currentColor; fill:none; stroke-width:1.8; }
.demo-res .dr-t { font-size:13px; font-weight:600; color:#1a2c4a; }
.demo-res .dr-d { margin-top:2px; }

/* ---------- 全流程演示控制条（跨页面悬浮） ---------- */
.demo-tour-bar { position:fixed; right:24px; bottom:24px; z-index:9999; width:380px; max-width:calc(100vw - 48px);
  background:#fff; border:1px solid #e4e9f2; box-shadow:0 12px 36px rgba(10,31,78,0.18); border-radius:8px; padding:14px 16px; }
.demo-tour-bar .dtb-steps { display:flex; align-items:center; gap:0; margin-bottom:10px; }
.demo-tour-bar .dtb-dot { width:20px; height:20px; border-radius:50%; background:#eef1f6; color:#8a9ab0; font-size:10px; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; z-index:1; }
.demo-tour-bar .dtb-dot.cur { background:var(--primary); color:#fff; box-shadow:0 0 0 3px var(--accent-soft); }
.demo-tour-bar .dtb-dot.done { background:#0f9a6e; color:#fff; }
.demo-tour-bar .dtb-dot svg { width:11px; height:11px; stroke:#fff; fill:none; stroke-width:2.4; }
.demo-tour-bar .dtb-line { flex:1; height:2px; background:#eef1f6; margin:0 -1px; }
.demo-tour-bar .dtb-line.done { background:#0f9a6e; }
.demo-tour-bar .dtb-info { margin-bottom:10px; }
.demo-tour-bar .dtb-title { font-size:13px; font-weight:600; color:#1a2c4a; }
.demo-tour-bar .dtb-desc { font-size:11px; color:#8a9ab0; line-height:1.6; margin-top:4px; }
.demo-tour-bar .dtb-stop { display:inline-flex; align-items:center; gap:5px; padding:6px 14px; border:1px solid #f0c9c9; background:#fff5f5; color:#cf3636; border-radius:3px; font-size:12px; cursor:pointer; font-family:inherit; }
.demo-tour-bar .dtb-stop svg { width:12px; height:12px; stroke:currentColor; fill:none; stroke-width:2; }
.demo-tour-bar .dtb-stop:hover { background:#fdeaea; }

@media (max-width:1100px) { .demo-vals { grid-template-columns:repeat(2,1fr); } }
@media (max-width:700px)  { .demo-vals { grid-template-columns:1fr; } .demo-tour-bar { width:calc(100vw - 32px); right:16px; bottom:16px; } }

/* ---------- 演示场景预设（行业差异化） ---------- */
.demo-scenarios { display:flex; align-items:center; gap:14px; flex-wrap:wrap; background:linear-gradient(90deg,#f3f7ff,#f7f9fc); border:1px solid #e4e9f2; border-radius:8px; padding:12px 16px; margin-bottom:18px; }
.demo-scenarios .ds-label { font-size:12px; font-weight:600; color:#4a5878; white-space:nowrap; }
.demo-scenarios .ds-chips { display:flex; gap:8px; flex-wrap:wrap; }
.ds-chip { padding:5px 14px; border-radius:20px; background:#fff; border:1px solid #dde3ee; color:#4a5878; font-size:12px; cursor:pointer; user-select:none; transition:all .15s; }
.ds-chip:hover { border-color:var(--primary); color:var(--primary); }
.ds-chip.on { background:var(--primary); border-color:var(--primary); color:#fff; }
.demo-scenarios .ds-intro { flex:1; min-width:220px; font-size:12px; color:#4a5878; line-height:1.7; }
.demo-scenarios .ds-intro.text-muted { color:#8a9ab0; }
.demo-mod.recommend { border-color:var(--primary); background:linear-gradient(180deg,#f3f7ff,#fff); position:relative; }
.demo-mod.recommend .dm-icon { color:var(--primary); }
.demo-mod .dm-rec { position:absolute; top:-7px; right:8px; background:#0f9a6e; color:#fff; font-size:10px; padding:1px 7px; border-radius:10px; }

/* ============================================================
   V1.4 · 智能自治版 — 新增组件样式
   能碳治理 / 域垂 Agent / 信创合规 / 数据中枢 IFM / 开放 API
   ============================================================ */

/* ---------- 通用：等宽文本 / 代码块 / 空状态 ---------- */
.mono { font-family:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace; font-size:12px; color:#334a6e; }
.code-block { background:#0f1e38; color:#b9d4f5; border-radius:6px; padding:14px 16px; font-family:'SFMono-Regular',Consolas,Menlo,monospace; font-size:12px; line-height:1.8; overflow-x:auto; white-space:pre; margin-bottom:10px; }
.empty-hint { padding:26px 16px; text-align:center; color:#8a9ab0; font-size:12px; }

/* ---------- ① 域垂 Agent 执行轨迹 ---------- */
.ag-step { display:flex; align-items:flex-start; gap:8px; padding:9px 12px; border-radius:5px; font-size:12px; line-height:1.65; margin-bottom:7px; border:1px solid #e6ebf4; background:#fafbfd; color:#334a6e; }
.ag-ic { flex-shrink:0; font-size:13px; line-height:1.5; }
.ag-think { background:#f5f0ff; border-color:#e2d7fb; color:#5b3fa8; }
.ag-tool { background:#eef5ff; border-color:#cfe1fb; color:#1a4f9c; }
.ag-result { background:#edf8f3; border-color:#bfe6d3; color:#0a7a52; font-weight:600; }

/* ---------- ② 信创部署架构（合规底座） ---------- */
.deploy-arch { display:flex; align-items:stretch; gap:8px; flex-wrap:wrap; padding:6px 0 2px; }
.da-box { flex:1 1 150px; min-width:140px; border:1px solid #dbe4f2; border-radius:6px; padding:12px 13px; background:linear-gradient(180deg,#f7faff,#fff); }
.da-t { font-size:12px; font-weight:600; color:#1a2c4a; margin-bottom:5px; }
.da-d { font-size:11px; color:#7a8aa6; line-height:1.6; }
.da-edge { border-color:#cfe1fb; }
.da-app { border-color:#bcd7f7; background:linear-gradient(180deg,#eef5ff,#fff); }
.da-data { border-color:#cfd8f5; background:linear-gradient(180deg,#f2f4ff,#fff); }
.da-sec { border-color:#bfe6d3; background:linear-gradient(180deg,#edf8f3,#fff); }
.da-arrow { display:flex; align-items:center; justify-content:center; color:#9fb2cc; font-size:18px; font-weight:600; flex:0 0 18px; }

/* ---------- ③ IFM 综合设施闭环 ---------- */
.ifm-flow { display:flex; align-items:stretch; gap:6px; flex-wrap:wrap; }
.ifm-node { flex:1 1 130px; min-width:120px; border:1px solid #e0e7f2; border-radius:6px; background:#fff; padding:12px 10px; text-align:center; }
.ifm-ic { width:34px; height:34px; margin:0 auto 8px; border-radius:8px; background:var(--accent-soft); color:var(--primary); display:flex; align-items:center; justify-content:center; }
.ifm-ic svg { width:20px; height:20px; stroke:currentColor; fill:none; stroke-width:1.8; }
.ifm-t { font-size:12px; font-weight:600; color:#1a2c4a; margin-bottom:4px; }
.ifm-d { font-size:11px; color:#8a9ab0; line-height:1.55; }
.ifm-arrow { display:flex; align-items:center; color:#a9bad2; flex:0 0 16px; }
.ifm-arrow svg { width:16px; height:16px; stroke:currentColor; fill:none; stroke-width:2; }

/* ---------- ④ 数据血缘链 ---------- */
.lineage { display:flex; align-items:center; gap:7px; flex-wrap:wrap; padding:8px 2px; }
.ln-src { padding:9px 12px; border:1px solid #dbe4f2; border-radius:5px; background:#f7faff; font-size:12px; color:#334a6e; }
.ln-plus, .ln-arrow { color:#9fb2cc; font-size:15px; font-weight:600; }
.ln-hub { padding:12px 16px; border:1px solid var(--primary); border-radius:6px; background:var(--primary); color:#fff; font-size:12px; font-weight:600; text-align:center; line-height:1.6; }
.ln-out { padding:10px 14px; border:1px solid #bfe6d3; border-radius:5px; background:#edf8f3; color:#0a7a52; font-size:12px; }

/* ---------- ⑤ 开放 API 与集成中心 ---------- */
.api-method { display:inline-block; min-width:52px; text-align:center; padding:2px 8px; border-radius:3px; font-size:11px; font-weight:700; font-family:'SFMono-Regular',Consolas,Menlo,monospace; }
.api-get { background:#e6f6ef; color:#0a7a52; border:1px solid #bfe6d3; }
.api-post { background:#eaf2ff; color:var(--primary); border:1px solid #cfe1fb; }
.api-path { color:#334a6e; }
.api-key { color:#5b3fa8; background:#f5f0ff; padding:2px 6px; border-radius:3px; }
.guard-item { position:relative; padding:8px 0 8px 20px; border-bottom:1px solid #f0f3f8; }
.guard-item:last-child { border-bottom:none; }
.guard-item b { font-size:12px; color:#1a2c4a; font-weight:600; }
.guard-dot { position:absolute; left:2px; top:12px; width:8px; height:8px; border-radius:50%; background:#0f9a6e; box-shadow:0 0 0 3px rgba(15,154,110,.12); }
.guard-dot.ok { background:#0f9a6e; }
.oa-int-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.oa-int-card { border:1px solid #e0e7f2; border-radius:6px; background:#fff; padding:14px; }
.oa-int-head { display:flex; align-items:center; gap:10px; }
.oa-int-ico { width:36px; height:36px; flex-shrink:0; border-radius:8px; background:var(--accent-soft); color:var(--primary); display:flex; align-items:center; justify-content:center; }
.oa-int-ico svg { width:18px; height:18px; stroke:currentColor; fill:none; stroke-width:1.8; }
.oa-int-name { font-size:13px; font-weight:600; color:#1a2c4a; }
.oa-int-type { font-size:11px; color:#8a9ab0; margin-top:2px; }
.int-status { margin-left:auto; font-size:11px; padding:2px 9px; border-radius:12px; white-space:nowrap; }
.int-green { background:#e6f6ef; color:#0a7a52; }
.int-amber { background:#fff5e2; color:#9a6900; }
.int-gray { background:#f0f3f8; color:#8a9ab0; }
.oa-int-note { margin-top:11px; padding-top:9px; border-top:1px dashed #e6ebf4; font-size:11px; color:#7a8aa6; display:flex; align-items:center; gap:5px; }
.oa-int-note svg { width:12px; height:12px; stroke:currentColor; fill:none; stroke-width:2; }

/* ---------- ⑥ 孪生图层控制（内联样式兜底） ---------- */
.tw-ly { display:flex; align-items:center; gap:3px; font-size:11px; color:#5a6a86; cursor:pointer; white-space:nowrap; }
.tw-fp-host { min-width:820px; }

@media (max-width:1100px) { .oa-int-grid { grid-template-columns:repeat(2,1fr); } .da-arrow { display:none; } }
@media (max-width:700px)  { .oa-int-grid { grid-template-columns:1fr; } .ifm-arrow { display:none; } .deploy-arch { flex-direction:column; } }

/* ============================================================
   V1.4.1 交互增强：侧栏收起 / 大屏 16:9 投屏 / AI 一页 / BIM 轻量化
   ============================================================ */

/* ---------- ① 左侧菜单可收起 ---------- */
.sidebar, .main-wrap { transition:width .2s ease, margin-left .2s ease; }
body.sidebar-collapsed .sidebar { width:64px; }
body.sidebar-collapsed .main-wrap { margin-left:64px; }
body.sidebar-collapsed .sidebar-brand { padding:18px 10px 14px; }
body.sidebar-collapsed .sidebar-brand .logo-row { justify-content:center; }
body.sidebar-collapsed .brand-text,
body.sidebar-collapsed .brand-sub,
body.sidebar-collapsed .sidebar-version,
body.sidebar-collapsed .sidebar-section-title,
body.sidebar-collapsed .nav-item > span,
body.sidebar-collapsed .sidebar-footer .user-info > div,
body.sidebar-collapsed .sidebar-footer .logout-link,
body.sidebar-collapsed .sidebar-footer .brand-foot { display:none !important; }
body.sidebar-collapsed .nav-item { justify-content:center; padding:11px 0; border-left-width:0; position:relative; }
body.sidebar-collapsed .nav-item svg { width:18px; height:18px; }
body.sidebar-collapsed .sidebar-nav { padding-top:6px; }
body.sidebar-collapsed .sidebar-section { padding:6px 0 2px; border-top:1px solid rgba(255,255,255,.05); }
body.sidebar-collapsed .sidebar-section:first-child { border-top:0; }
body.sidebar-collapsed .sidebar-footer { padding:12px 0; display:flex; justify-content:center; }
body.sidebar-collapsed .sidebar-footer .user-info { padding:0; }
body.sidebar-collapsed .user-avatar { width:32px; height:32px; }
body.sidebar-collapsed .nav-item:hover::after {
  content:attr(data-label); position:absolute; left:calc(100% + 8px); top:50%; transform:translateY(-50%);
  background:#1b2f52; color:#fff; padding:6px 10px; border-radius:4px; font-size:12px;
  white-space:nowrap; z-index:200; box-shadow:0 6px 18px rgba(0,0,0,.32); pointer-events:none;
}
.sb-toggle { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; padding:0; border:1px solid #dde3ee; border-radius:3px; background:#fff; color:#4a5878; cursor:pointer; flex-shrink:0; }
.sb-toggle:hover { border-color:var(--primary); color:var(--primary); }
.sb-toggle svg { width:15px; height:15px; stroke:currentColor; fill:none; stroke-width:2; }

/* ---------- ② 数据大屏：常规自适应 + 16:9 单页投屏 ---------- */
.sc-c3 { grid-column:span 3; } .sc-c4 { grid-column:span 4; }
.sc-c5 { grid-column:span 5; } .sc-c6 { grid-column:span 6; }
.screen-actions { display:flex; align-items:center; gap:8px; }
.screen-cast-btn { display:inline-flex; align-items:center; gap:6px; padding:7px 14px; border-radius:4px; border:1px solid rgba(77,163,255,.5); background:rgba(26,95,216,.22); color:#a8ccff; font-size:12px; font-family:inherit; cursor:pointer; white-space:nowrap; }
.screen-cast-btn:hover { background:rgba(26,95,216,.42); color:#fff; border-color:var(--accent); }
.screen-cast-btn svg { width:14px; height:14px; stroke:currentColor; fill:none; stroke-width:1.8; }
@media (max-width:1500px) {
  .sc-c3,.sc-c4,.sc-c5,.sc-c6 { grid-column:span 6; }
}
@media (max-width:1080px) {
  .sc-c3,.sc-c4,.sc-c5,.sc-c6 { grid-column:span 12; }
  .screen-head { gap:12px; } .screen-title { font-size:17px; }
}
/* 投屏态强制回到 1920 设计稿的 12 列布局，不受外层视口宽度的媒体查询影响 */
body.screen-cast .sc-c3 { grid-column:span 3; }
body.screen-cast .sc-c4 { grid-column:span 4; }
body.screen-cast .sc-c5 { grid-column:span 5; }
body.screen-cast .sc-c6 { grid-column:span 6; }
/* 投屏态：隐藏外壳，1920×1080 设计稿等比缩放居中 */
body.screen-cast { overflow:hidden; background:#020817; }
body.screen-cast .sidebar, body.screen-cast .topbar { display:none !important; }
body.screen-cast .main-wrap { margin-left:0 !important; min-height:100vh; }
body.screen-cast .page-content { padding:0 !important; overflow:hidden !important; height:100vh; position:relative; }
body.screen-cast .screen-wrap {
  width:1920px; height:1080px; min-height:0; padding:26px 34px; box-sizing:border-box;
  position:absolute; top:50%; left:50%; transform-origin:center center;
  display:flex; flex-direction:column;
}
body.screen-cast .screen-head { margin-bottom:20px; flex-shrink:0; }
body.screen-cast .screen-title { font-size:30px; }
body.screen-cast .screen-grid { flex:1; min-height:0; grid-template-rows:316px 290px 254px; gap:18px; }
body.screen-cast .sc-panel { min-height:0; display:flex; flex-direction:column; padding:18px 20px; }
body.screen-cast .sc-panel-title { font-size:16px; margin-bottom:14px; }
body.screen-cast .sc-panel > div:last-child { flex:1; min-height:0; }
body.screen-cast #scMap, body.screen-cast #scAlerts, body.screen-cast #scWO, body.screen-cast #scDev, body.screen-cast #scInsp { flex:1; height:auto !important; max-height:none !important; min-height:0; }
body.screen-cast .chart-box { flex:1 !important; height:auto !important; min-height:0; position:relative; }
body.screen-cast .chart-box canvas { width:100% !important; height:100% !important; }
body.screen-cast .sc-kpi .v { font-size:34px; }
body.screen-cast .screen-exit { position:absolute; right:34px; bottom:26px; }
body.screen-cast .screen-cast-btn { display:none; }
.cast-tip { position:fixed; top:14px; left:50%; transform:translateX(-50%); z-index:9999; background:rgba(10,31,78,.9); color:#cfe3ff; border:1px solid rgba(77,163,255,.4); border-radius:20px; padding:8px 18px; font-size:12px; pointer-events:none; }

/* ---------- ③ AI 运维助手：一页布局 + 下拉 ---------- */
.ai-chat-page { display:grid; grid-template-columns:1fr 320px; gap:16px; height:calc(100vh - 228px); min-height:260px; }
.ai-chat-page > div { min-height:0; }
.ai-chat-main { display:flex; flex-direction:column; min-height:0; }
.ai-chat-main .card-body { flex:1; min-height:0; display:flex; flex-direction:column; padding:12px 16px; }
.ai-chat-page .chat-wrap { height:auto; flex:1; min-height:0; }
.ai-chat-page .chat-msgs { flex:1 1 auto; min-height:0; overflow-y:auto; }
.ai-chat-page .chat-suggests, .ai-chat-page .chat-input-row { flex-shrink:0; }
.ai-chat-page .chat-input-row { padding-top:10px; }
.ai-chat-side { overflow-y:auto; max-height:100%; padding-right:2px; }
.chat-domain-tag { display:inline-block; margin-bottom:8px; padding:2px 8px; border-radius:10px; background:#eaf2ff; color:var(--primary); font-size:10px; font-weight:600; }
.chat-select { height:30px; padding:0 8px; border:1px solid #dde3ee; border-radius:3px; background:#fff; color:#4a5878; font-size:12px; font-family:inherit; outline:0; cursor:pointer; }
.chat-select:focus { border-color:var(--primary); }
.chat-dd { position:relative; }
.chat-dd-btn { display:inline-flex; align-items:center; gap:5px; height:30px; padding:0 10px; border:1px solid #dde3ee; border-radius:3px; background:#fff; color:#4a5878; font-size:12px; font-family:inherit; cursor:pointer; white-space:nowrap; }
.chat-dd-btn:hover { border-color:var(--primary); color:var(--primary); }
.chat-dd-btn svg { width:12px; height:12px; stroke:currentColor; fill:none; stroke-width:2; }
.chat-dd-menu { position:absolute; right:0; top:calc(100% + 6px); width:260px; background:#fff; border:1px solid #dde3ee; border-radius:6px; box-shadow:0 12px 32px rgba(15,26,48,.16); z-index:60; padding:6px; display:none; }
.chat-dd.open .chat-dd-menu { display:block; }
.chat-dd-item { padding:8px 10px; border-radius:4px; font-size:12px; color:#334a6e; cursor:pointer; line-height:1.5; }
.chat-dd-item:hover { background:#eef5ff; color:var(--primary); }
.chat-dd-sep { height:1px; background:#eef1f7; margin:5px 4px; }
.chat-dd-label { padding:6px 10px 4px; font-size:10px; color:#8a9ab0; letter-spacing:1px; }
@media (max-width:1100px) { .ai-chat-page { grid-template-columns:1fr; height:auto; min-height:0; } .ai-chat-main { height:calc(100vh - 228px); min-height:260px; } .ai-chat-side { max-height:none; } }

/* ---------- ④ BIM 轻量化加载示意 ---------- */
.bim-wrap { border:1px solid #e0e7f2; border-radius:6px; overflow:hidden; background:#fff; }
.bim-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:10px 12px; border-bottom:1px solid #eef1f7; background:#fafbfe; }
.bim-toolbar .bim-note { flex:1; min-width:180px; font-size:11px; color:#7a8aa6; }
.bim-stage { height:330px; position:relative; background:radial-gradient(ellipse at 50% 35%,#12294f,#070d1a); overflow:hidden; }
.bim-stage svg { width:100%; height:100%; display:block; }
.bim-placeholder { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:10px; color:#8a9ab0; font-size:12px; }
.bim-placeholder svg { width:42px; height:42px; stroke:currentColor; fill:none; stroke-width:1.5; }
.bim-node { cursor:pointer; transition:opacity .15s; }
.bim-node:hover { opacity:.75; }
.bim-floor-label { cursor:pointer; }
.bim-progress { padding:9px 12px; border-top:1px solid #eef1f7; background:#fafbfe; font-size:11px; color:#4a5878; }
.bim-progress.hide { display:none; }
.bim-bar { height:5px; border-radius:3px; background:#e8edf5; overflow:hidden; margin-top:6px; }
.bim-bar > i { display:block; height:100%; width:0; border-radius:3px; background:linear-gradient(90deg,var(--primary),var(--accent)); transition:width .3s ease; }
.bim-layers { display:flex; gap:6px; flex-wrap:wrap; }
.bim-layer-chip { padding:3px 9px; border:1px solid #dde3ee; border-radius:12px; background:#fff; color:#5a6a86; font-size:11px; cursor:pointer; user-select:none; }
.bim-layer-chip.on { background:var(--primary); border-color:var(--primary); color:#fff; }
.bim-legend { display:flex; gap:14px; padding:8px 12px; font-size:11px; color:#7a8aa6; border-top:1px solid #eef1f7; flex-wrap:wrap; }
.bim-legend i { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:4px; vertical-align:middle; }

/* ---------- ⑦ API 对接配置：扩展指引步骤 ---------- */
.api-step { display:flex; align-items:flex-start; gap:10px; padding:9px 0; font-size:12px; line-height:1.7; color:#4a5878; border-bottom:1px solid #f4f6fa; }
.api-step:last-of-type { border-bottom:none; }
.api-step > b { flex:0 0 22px; height:22px; border-radius:50%; background:var(--accent-soft); color:var(--primary); display:flex; align-items:center; justify-content:center; font-size:11px; }
.api-step b { color:var(--primary); }

/* ---------- ⑧ 政策资讯与活动 ---------- */
.news-focus-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.news-focus { border:1px solid #dfe7f2; border-radius:6px; padding:15px 16px; background:linear-gradient(180deg,#f7faff,#fff); cursor:pointer; transition:all .15s; }
.news-focus:hover { border-color:var(--primary); box-shadow:0 6px 18px rgba(0,85,204,.08); transform:translateY(-1px); }
.nf-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:9px; }
.nf-date { font-size:11px; color:#8a9ab0; font-family:'SFMono-Regular',Consolas,monospace; }
.nf-title { font-size:14px; font-weight:600; color:#1a2c4a; line-height:1.5; margin-bottom:8px; }
.nf-sum { font-size:11px; color:#5a6a86; line-height:1.75; min-height:56px; }
.nf-org { margin-top:10px; padding-top:8px; border-top:1px dashed #e6ebf4; font-size:11px; color:#8a9ab0; display:flex; align-items:center; gap:5px; }
.nf-org svg { width:11px; height:11px; stroke:currentColor; fill:none; stroke-width:2; }
.news-tl { position:relative; padding-left:8px; }
.news-tl::before { content:''; position:absolute; left:64px; top:6px; bottom:6px; width:2px; background:#e8edf5; }
.news-tl-item { display:flex; gap:16px; position:relative; padding:0 0 18px; }
.news-tl-date { flex:0 0 52px; text-align:right; font-size:12px; font-weight:600; color:#334a6e; font-family:'SFMono-Regular',Consolas,monospace; padding-top:2px; }
.news-tl-date span { display:block; font-size:10px; color:#9aa8bd; font-weight:400; }
.news-tl-dot { flex:0 0 12px; width:12px; height:12px; border-radius:50%; margin-top:3px; z-index:1; border:2px solid #fff; box-shadow:0 0 0 1px #dbe3ee; }
.news-tl-dot.policy { background:#0055cc; } .news-tl-dot.standard { background:#534ab7; }
.news-tl-dot.innovation { background:#0f9a6e; } .news-tl-dot.event { background:#d48806; }
.news-tl-body { flex:1; min-width:0; border:1px solid #edf0f5; border-radius:5px; padding:11px 14px; background:#fff; }
.news-tl-title { font-size:13px; font-weight:600; color:#1a2c4a; margin-bottom:6px; }
.news-tl-meta { display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:11px; color:#8a9ab0; margin-bottom:6px; }
.news-tl-sum { font-size:12px; color:#4a5878; line-height:1.7; }
.news-tl-tags { display:flex; align-items:center; gap:4px; flex-wrap:wrap; margin-top:7px; }
.news-src-link { font-size:11px; color:var(--primary); cursor:pointer; text-decoration:none; margin-left:6px; }
.news-src-link:hover { text-decoration:underline; }
.news-list { display:flex; flex-direction:column; }
.news-item { display:flex; gap:18px; padding:13px 2px; border-bottom:1px solid #f0f3f8; }
.news-item:last-child { border-bottom:none; }
.news-item-date { flex:0 0 92px; font-size:12px; color:#8a9ab0; font-family:'SFMono-Regular',Consolas,monospace; }
.news-item-main { flex:1; min-width:0; }
.news-item-title { font-size:13px; font-weight:600; color:#1a2c4a; margin-bottom:6px; }
.news-item-meta { display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin-bottom:6px; }
.news-item-sum { font-size:12px; color:#4a5878; line-height:1.7; }
.news-act-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.news-act-card { border:1px solid #e2e8f2; border-radius:7px; background:#fff; padding:16px; display:flex; flex-direction:column; }
.na-head { display:flex; align-items:flex-start; gap:12px; }
.na-date { flex:0 0 54px; text-align:center; background:linear-gradient(180deg,#eef5ff,#f7faff); border:1px solid #cfe1fb; border-radius:5px; padding:7px 2px; }
.na-date b { display:block; font-size:22px; color:var(--primary); line-height:1.1; }
.na-date span { font-size:9px; color:#7a8aa6; font-family:'SFMono-Regular',Consolas,monospace; }
.na-head-main { flex:1; min-width:0; }
.na-title { font-size:14px; font-weight:600; color:#1a2c4a; line-height:1.5; }
.na-meta { margin-top:5px; font-size:11px; color:#8a9ab0; display:flex; align-items:center; gap:4px; }
.na-meta svg { width:11px; height:11px; stroke:currentColor; fill:none; stroke-width:2; }
.na-status { flex-shrink:0; font-size:10px; padding:3px 8px; border-radius:10px; white-space:nowrap; }
.na-status.done { background:#f0f3f8; color:#8a9ab0; } .na-status.soon { background:#fff4e0; color:#a86a00; }
.na-tags { margin:11px 0; display:flex; gap:4px; flex-wrap:wrap; }
.na-agenda { background:#fafbfe; border-radius:5px; padding:10px 12px; }
.na-sub { font-size:10px; color:#8a9ab0; letter-spacing:1px; margin-bottom:6px; }
.na-ag-item { display:flex; align-items:flex-start; gap:8px; font-size:11px; color:#4a5878; line-height:1.7; }
.na-ag-item span { flex:0 0 16px; height:16px; border-radius:50%; background:var(--accent-soft); color:var(--primary); font-size:9px; display:inline-flex; align-items:center; justify-content:center; margin-top:1px; }
.na-sum { margin-top:11px; font-size:11px; color:#5a6a86; line-height:1.75; flex:1; }
.na-foot { margin-top:12px; padding-top:10px; border-top:1px dashed #e6ebf4; display:flex; align-items:center; justify-content:space-between; gap:8px; }
@media (max-width:1100px) { .news-focus-grid { grid-template-columns:1fr; } .news-act-grid { grid-template-columns:1fr; } }

