        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif; background-color: #f0f4f8; min-height: 100vh; display: flex; flex-direction: column; }

        .header { background: linear-gradient(135deg, #1e4d8c 0%, #2c5aa0 100%); color: white; padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
        .header h1 { font-size: 20px; font-weight: 600; }
        .header-right span { font-size: 14px; opacity: 0.9; }

        .container { display: flex; flex: 1; overflow: hidden; }
        .sidebar { width: 220px; background-color: #1a365d; color: white; padding: 16px 0; overflow-y: auto; flex-shrink: 0; }
        .sidebar-title { font-size: 18px; font-weight: 600; padding: 14px 20px; color: #7eb8ea; border-bottom: 1px solid #2d4a6f; margin-bottom: 8px; }
        .nav-item { padding: 14px 24px; cursor: pointer; transition: all 0.3s ease; font-size: 16px; position: relative; }
        .nav-item:hover { background-color: #2c5282; }
        .nav-item.active { background-color: #2c5282; border-left: 4px solid #4facfe; }

        .main-content { flex: 1; padding: 24px; overflow-y: auto; background-color: #f0f4f8; }
        .page { display: none; animation: fadeIn 0.3s ease; }
        .page.active { display: block; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

        .page-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; }
        .page-title { font-size: 20px; font-weight: 600; color: #1a365d; }
        .update-time { font-size: 13px; color: #6b7280; }
        .badge-standard { display: inline-block; padding: 4px 12px; background-color: #dbeafe; color: #1e4d8c; border-radius: 4px; font-size: 13px; font-weight: 500; }

        .stats-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 20px; }
        .stats-cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
        .stat-card { background: white; padding: 16px 18px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); display: flex; flex-direction: column; border-top: 3px solid #4facfe; min-height: 90px; justify-content: center; }
        .stat-card .label { font-size: 16px; color: #374151; margin-bottom: 8px; font-weight: 600; }
        .stat-card .value { font-size: 32px; font-weight: 700; color: #1e4d8c; }
        .stat-card .sub { font-size: 14px; margin-top: 6px; color: #4b5563; font-weight: 500; }

        .filter-bar { background: white; padding: 16px 20px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); margin-bottom: 20px; }
        .filter-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
        .filter-row + .filter-row { margin-top: 12px; }
        .search-box { flex: 1; min-width: 240px; position: relative; }
        .search-box input { width: 100%; padding: 8px 12px 8px 36px; border: 1px solid #d1d5db; border-radius: 4px; font-size: 14px; }
        .search-box::before { content: '🔍'; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 14px; }
        .filter-item { display: flex; align-items: center; gap: 6px; }
        .filter-item label { font-size: 13px; color: #4b5563; white-space: nowrap; }
        .filter-item select { padding: 6px 10px; border: 1px solid #d1d5db; border-radius: 4px; font-size: 13px; }
        .btn { padding: 8px 18px; border-radius: 4px; font-size: 14px; cursor: pointer; border: none; transition: all 0.3s; white-space: nowrap; }
        .btn-primary { background-color: #1e4d8c; color: white; }
        .btn-primary:hover { background-color: #2c5aa0; }
        .btn-secondary { background-color: white; color: #4b5563; border: 1px solid #d1d5db; }
        .btn-secondary:hover { background-color: #f3f4f6; }

        .content-grid-70-30 { display: grid; grid-template-columns: 70% 30%; gap: 20px; margin-bottom: 20px; }
        .content-grid-35-65 { display: grid; grid-template-columns: 35% 65%; gap: 20px; margin-bottom: 20px; }

        .panel { background: white; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); padding: 20px; }
        .panel-title { font-size: 16px; font-weight: 600; color: #1a365d; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid #e5e7eb; }

        .table-wrapper { overflow-x: auto; }
        .data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
        .data-table th, .data-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #e5e7eb; white-space: nowrap; }
        .data-table thead th { background-color: #1e4d8c; color: white; font-weight: 600; cursor: pointer; user-select: none; position: sticky; top: 0; }
        .data-table thead th:hover { background-color: #2c5aa0; }
        .data-table tbody tr:hover { background-color: #f0f7ff; }
        .data-table tbody tr:nth-child(even) { background-color: #f9fafb; }
        .data-table tbody tr:nth-child(even):hover { background-color: #f0f7ff; }
        .data-table input[type="checkbox"] { cursor: pointer; }

        .badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 500; }
        .badge-green { background-color: #d1fae5; color: #065f46; }
        .badge-blue { background-color: #dbeafe; color: #1e4d8c; }
        .badge-gray { background-color: #f3f4f6; color: #4b5563; }
        .badge-red { background-color: #fee2e2; color: #991b1b; }
        .badge-orange { background-color: #fef3c7; color: #92400e; }

        .type-icon { margin-right: 4px; }

        .link { color: #2563eb; cursor: pointer; text-decoration: none; margin-right: 8px; }
        .link:hover { text-decoration: underline; }
        .link-danger { color: #ef4444; }

        .pagination { display: flex; justify-content: space-between; align-items: center; padding: 16px 0 0; }
        .pagination-info { font-size: 13px; color: #6b7280; }
        .pagination-btns { display: flex; gap: 6px; }
        .pagination-btns button { padding: 6px 12px; border: 1px solid #d1d5db; border-radius: 4px; background: white; cursor: pointer; font-size: 13px; }
        .pagination-btns button.active { background-color: #1e4d8c; color: white; border-color: #1e4d8c; }
        .pagination-btns button:disabled { opacity: 0.5; cursor: not-allowed; }

        .chart-mini { width: 100%; height: 240px; }
        .stat-mini-card { background: #f8fafc; padding: 14px; border-radius: 6px; margin-bottom: 12px; }
        .stat-mini-card .title { font-size: 13px; color: #6b7280; margin-bottom: 10px; }
        .status-bar { display: flex; height: 24px; border-radius: 4px; overflow: hidden; margin-bottom: 8px; }
        .status-bar-segment { display: flex; align-items: center; justify-content: center; font-size: 11px; color: white; font-weight: 500; }
        .status-legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: #6b7280; }
        .status-legend-item { display: flex; align-items: center; gap: 4px; }
        .status-legend-dot { width: 10px; height: 10px; border-radius: 2px; }

        /* 侧滑面板 */
        .overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4); z-index: 998; display: none; }
        .overlay.show { display: block; }
        .slide-panel { position: fixed; top: 0; right: -520px; width: 500px; height: 100vh; background: white; z-index: 999; box-shadow: -4px 0 20px rgba(0,0,0,0.15); transition: right 0.3s ease; display: flex; flex-direction: column; }
        .slide-panel.show { right: 0; }
        .slide-panel-header { background: linear-gradient(135deg, #1e4d8c 0%, #2c5aa0 100%); color: white; padding: 20px; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; z-index: 10; }
        .slide-panel-header h3 { font-size: 16px; }
        .close-btn { background: none; border: none; color: white; font-size: 24px; cursor: pointer; }
        .slide-panel-body { padding: 20px; overflow-y: auto; flex: 1; min-height: 0; }
        .info-section { margin-bottom: 24px; }
        .info-section-title { font-size: 14px; font-weight: 600; color: #1a365d; margin-bottom: 12px; padding-left: 10px; border-left: 4px solid #4facfe; }
        .detail-fee-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
        .detail-fee-table th, .detail-fee-table td { border: 1px solid #e5e7eb; padding: 6px 10px; text-align: center; }
        .detail-fee-table th:first-child, .detail-fee-table td:first-child { width: 120px; text-align: left; font-weight: 600; white-space: nowrap; }
        .detail-fee-table th { background: #E8F4F8; color: #1F4E79; font-weight: 600; }
        .info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
        .info-item { display: flex; flex-direction: column; }
        .info-item .label { font-size: 12px; color: #6b7280; margin-bottom: 4px; }
        .info-item .value { font-size: 14px; color: #1a365d; font-weight: 500; }
        .map-placeholder { height: 180px; background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #1e4d8c; font-size: 14px; position: relative; }
        .map-pin { font-size: 32px; }

        /* 树形结构 */
        .tree-container { max-height: 600px; overflow-y: auto; }
        .tree-search { width: 100%; padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 4px; font-size: 13px; margin-bottom: 12px; }
        .tree-node { padding-left: 0; }
        .tree-item { padding: 6px 10px; cursor: pointer; font-size: 13px; display: flex; align-items: center; gap: 6px; border-radius: 4px; transition: background 0.2s; }
        .tree-item:hover { background-color: #f0f7ff; }
        .tree-item.active { background-color: #dbeafe; color: #1e4d8c; font-weight: 600; }
        .tree-item .toggle { width: 16px; text-align: center; font-size: 11px; color: #6b7280; }
        .tree-item .label { flex: 1; }
        .tree-item .count { font-size: 11px; color: #6b7280; background: #f3f4f6; padding: 1px 8px; border-radius: 10px; }
        .tree-children { padding-left: 20px; display: none; }
        .tree-children.expanded { display: block; }

        .coding-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 10px; }
        .coding-table th, .coding-table td { padding: 8px 12px; border: 1px solid #e5e7eb; text-align: left; }
        .coding-table th { background-color: #f9fafb; font-weight: 600; color: #374151; }
        .code-segment { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 12px; color: white; font-weight: 500; }
        .code-seg-1 { background-color: #1e4d8c; }
        .code-seg-2 { background-color: #4facfe; }
        .code-seg-3 { background-color: #10b981; }
        .code-seg-4 { background-color: #f97316; }
        .code-seg-5 { background-color: #8b5cf6; }
        .code-seg-6 { background-color: #ec4899; }
        .code-example { background: #f8fafc; padding: 12px; border-radius: 6px; font-family: monospace; font-size: 13px; color: #1a365d; margin-top: 8px; }

        .info-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
        .info-card { background: #f8fafc; padding: 14px; border-radius: 6px; border-left: 3px solid #4facfe; }
        .info-card .label { font-size: 12px; color: #6b7280; margin-bottom: 4px; }
        .info-card .value { font-size: 15px; font-weight: 600; color: #1a365d; }

        /* ===== Tab3 设备档案样式 ===== */
        .t3-grid-30-70 { display: grid; grid-template-columns: 30% 70%; gap: 20px; margin-bottom: 20px; }
        .t3-grid-60-40 { display: grid; grid-template-columns: 60% 40%; gap: 20px; margin-bottom: 20px; }
        .t3-grid-50-50 { display: grid; grid-template-columns: 50% 50%; gap: 20px; }

        .t3-device-list-table { width: 100%; border-collapse: collapse; font-size: 12px; }
        .t3-device-list-table th, .t3-device-list-table td { padding: 7px 8px; text-align: left; border-bottom: 1px solid #e5e7eb; white-space: nowrap; }
        .t3-device-list-table thead th { background-color: #1e4d8c; color: white; font-weight: 600; position: sticky; top: 0; }
        .t3-device-list-table tbody tr { cursor: pointer; transition: background 0.2s; }
        .t3-device-list-table tbody tr:hover { background-color: #f0f7ff; }
        .t3-device-list-table tbody tr.selected { background-color: #dbeafe; font-weight: 600; }
        .t3-stage-tag { display: inline-block; padding: 2px 6px; border-radius: 8px; font-size: 11px; font-weight: 500; }
        .t3-stage-采购中 { background: #fef3c7; color: #92400e; }
        .t3-stage-安装调试 { background: #dbeafe; color: #1e4d8c; }
        .t3-stage-运行中 { background: #d1fae5; color: #065f46; }
        .t3-stage-维护中 { background: #ffedd5; color: #9a3412; }
        .t3-stage-已退役 { background: #f3f4f6; color: #4b5563; }

        .t3-timeline-wrap { overflow-x: auto; padding: 10px 0; }
        .t3-timeline { display: flex; align-items: flex-start; justify-content: space-between; min-width: 700px; position: relative; padding: 20px 10px; }
        .t3-timeline-line { position: absolute; top: 38px; left: 5%; right: 5%; height: 3px; background: #e5e7eb; z-index: 0; }
        .t3-timeline-line-fill { position: absolute; top: 38px; left: 5%; height: 3px; background: #1e4d8c; z-index: 1; }
        .t3-tl-node { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 2; flex: 1; }
        .t3-tl-circle { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; border: 3px solid; background: white; }
        .t3-tl-done { border-color: #1e4d8c; background: #1e4d8c; color: white; }
        .t3-tl-current { border-color: #4facfe; background: #4facfe; color: white; width: 44px; height: 44px; margin-top: -4px; animation: t3pulse 2s infinite; }
        @keyframes t3pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(79,172,254,0.5); } 50% { box-shadow: 0 0 0 10px rgba(79,172,254,0); } }
        .t3-tl-future { border-color: #d1d5db; background: white; color: #9ca3af; }
        .t3-tl-label { font-size: 13px; font-weight: 600; color: #1a365d; margin-top: 8px; }
        .t3-tl-date { font-size: 11px; color: #6b7280; margin-top: 2px; }
        .t3-tl-days { font-size: 11px; color: #9ca3af; margin-top: 1px; }

        .t3-phase-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 16px; }
        .t3-phase-card { background: #f8fafc; padding: 12px; border-radius: 6px; border-top: 3px solid #e5e7eb; font-size: 12px; }
        .t3-phase-card.current { border-top-color: #4facfe; background: #eff6ff; }
        .t3-phase-card .ptitle { font-weight: 600; color: #1a365d; margin-bottom: 8px; font-size: 13px; }
        .t3-phase-card .pitem { margin-bottom: 4px; }
        .t3-phase-card .plabel { color: #6b7280; }
        .t3-phase-card .pvalue { color: #374151; font-weight: 500; }

        .t3-maint-timeline { position: relative; padding-left: 24px; }
        .t3-maint-timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: #e5e7eb; }
        .t3-maint-item { position: relative; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid #f3f4f6; }
        .t3-maint-item:last-child { border-bottom: none; }
        .t3-maint-icon { position: absolute; left: -22px; top: 2px; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; color: white; }
        .t3-icon-baoyang { background: #10b981; }
        .t3-icon-weixiu { background: #ef4444; }
        .t3-icon-shengji { background: #3b82f6; }
        .t3-maint-date { font-size: 12px; color: #6b7280; }
        .t3-maint-title { font-size: 13px; font-weight: 600; color: #1a365d; margin: 2px 0; }
        .t3-maint-desc { font-size: 12px; color: #374151; }
        .t3-maint-meta { font-size: 11px; color: #9ca3af; margin-top: 2px; }

        .t3-health-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
        .t3-health-metric { background: #f8fafc; padding: 12px; border-radius: 6px; text-align: center; }
        .t3-health-metric .hlabel { font-size: 11px; color: #6b7280; margin-bottom: 4px; }
        .t3-health-metric .hvalue { font-size: 18px; font-weight: 700; color: #1e4d8c; }

        /* Embedded模式：嵌入到主框架时隐藏header和sidebar */
        html, body.embedded { height: 100%; min-height: 0; max-height: 100%; overflow: hidden; }
        body.embedded .header { display: none; }
        body.embedded .sidebar { display: none; }
        body.embedded .container { flex: 1; min-height: 0; height: 100%; overflow: hidden; }
        body.embedded .container > .main-content { flex: 1; min-height: 0; min-width: 0; height: 100%; overflow-y: auto; overflow-x: hidden; overflow-anchor: none; padding: 16px; }

        /* ===== Tab1 冻结列 + 新增字段样式 ===== */
        .t1-frozen-wrapper { overflow-x: auto; }
        .t1-frozen-table { min-width: 3200px; }
        .t1-frozen-table th, .t1-frozen-table td { white-space: nowrap; padding: 8px 12px; font-size: 13px; border: 1px solid #E5E7EB; }
        .t1-frozen-table thead th { background: #1F4E79; color: #fff; font-weight: 600; position: sticky; top: 0; z-index: 2; }
        .t1-frozen-table tbody tr { height: 48px; }
        .t1-frozen-table tbody tr:nth-child(even) { background: #F7FBFF; }
        .t1-frozen-table tbody tr:hover { background: #E8F4F8; }

        /* 冻结前5列 */
        .frozen-col-1 { position: sticky; left: 0; z-index: 1; min-width: 50px; max-width: 50px; background: #fff; }
        .frozen-col-2 { position: sticky; left: 50px; z-index: 1; min-width: 90px; max-width: 90px; background: #fff; }
        .frozen-col-3 { position: sticky; left: 140px; z-index: 1; min-width: 140px; max-width: 140px; background: #fff; overflow: hidden; text-overflow: ellipsis; }
        .frozen-col-4 { position: sticky; left: 280px; z-index: 1; min-width: 90px; max-width: 90px; background: #fff; }
        .frozen-col-5 { position: sticky; left: 370px; z-index: 1; min-width: 90px; max-width: 90px; background: #fff; box-shadow: 4px 0 6px -4px rgba(0,0,0,0.15); }
        /* 表头冻结列：需要更高z-index覆盖非冻结表头 */
        .t1-frozen-table thead th.frozen-col-1 { left: 0; z-index: 4; background: #1F4E79; }
        .t1-frozen-table thead th.frozen-col-2 { left: 50px; z-index: 4; background: #1F4E79; }
        .t1-frozen-table thead th.frozen-col-3 { left: 140px; z-index: 4; background: #1F4E79; }
        .t1-frozen-table thead th.frozen-col-4 { left: 280px; z-index: 4; background: #1F4E79; }
        .t1-frozen-table thead th.frozen-col-5 { left: 370px; z-index: 4; background: #1F4E79; }
        /* 斑马纹行冻结列背景 */
        .t1-frozen-table tbody tr:nth-child(even) .frozen-col-1,
        .t1-frozen-table tbody tr:nth-child(even) .frozen-col-2,
        .t1-frozen-table tbody tr:nth-child(even) .frozen-col-3,
        .t1-frozen-table tbody tr:nth-child(even) .frozen-col-4,
        .t1-frozen-table tbody tr:nth-child(even) .frozen-col-5 { background: #F7FBFF; }
        /* hover行冻结列背景 */
        .t1-frozen-table tbody tr:hover .frozen-col-1,
        .t1-frozen-table tbody tr:hover .frozen-col-2,
        .t1-frozen-table tbody tr:hover .frozen-col-3,
        .t1-frozen-table tbody tr:hover .frozen-col-4,
        .t1-frozen-table tbody tr:hover .frozen-col-5 { background: #E8F4F8; }

        /* 冻结最后列 */
        .frozen-col-last { position: sticky; right: 0; z-index: 1; min-width: 130px; background: #fff; box-shadow: -4px 0 6px -4px rgba(0,0,0,0.15); }
        .t1-frozen-table thead th.frozen-col-last { z-index: 4; background: #1F4E79; }
        .t1-frozen-table tbody tr:nth-child(even) .frozen-col-last { background: #F7FBFF; }
        .t1-frozen-table tbody tr:hover .frozen-col-last { background: #E8F4F8; }

        /* 标签样式 */
        .al-tag { display: inline-block; padding: 2px 10px; border-radius: 4px; font-size: 12px; font-weight: 600; white-space: nowrap; }
        .tag-level-1 { background: #FEE2E2; color: #E53E3E; }
        .tag-level-2 { background: #DBEAFE; color: #3182CE; }
        .tag-level-3 { background: #F3F4F6; color: #718096; }
        .tag-service-1 { background: #D1FAE5; color: #38A169; }
        .tag-service-2 { background: #DBEAFE; color: #3182CE; }
        .badge-green { background: #D1FAE5; color: #38A169; }
        .badge-orange { background: #FEF3C7; color: #D97706; }
        .badge-red { background: #FEE2E2; color: #E53E3E; }

        /* 收费信息Popover */
        .al-fee-link { color: #2E75B6; cursor: pointer; text-decoration: none; }
        .al-fee-link:hover { text-decoration: underline; }
        .t1-fee-popover { position: fixed; width: 360px; background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.12); z-index: 9999; padding: 12px; }
        .t1-fee-title { font-size: 14px; font-weight: 600; color: #1F4E79; margin-bottom: 8px; }
        .t1-fee-table { width: 100%; border-collapse: collapse; font-size: 12px; }
        .t1-fee-table th, .t1-fee-table td { border: 1px solid #e5e7eb; padding: 4px 8px; text-align: center; }
        .t1-fee-table th { background: #E8F4F8; color: #1F4E79; font-weight: 600; }
