/* ============ 国资在线运行服务平台 复刻样式 ============ */
* { box-sizing: border-box; }
html, body, #app { height: 100%; margin: 0; padding: 0; font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif; }
body { font-size: 13px; color: #303133; background: #f4f5f7; }

#loader-wrapper { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 999999; background: #1f3a68; }
#loader { display: block; position: relative; left: 50%; top: 50%; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%; border: 3px solid transparent; border-top-color: #FFF; animation: spin 2s linear infinite; }
#loader:before { content: ""; position: absolute; top: 5px; left: 5px; right: 5px; bottom: 5px; border-radius: 50%; border: 3px solid transparent; border-top-color: #FFF; animation: spin 3s linear infinite; }
#loader:after { content: ""; position: absolute; top: 15px; left: 15px; right: 15px; bottom: 15px; border-radius: 50%; border: 3px solid transparent; border-top-color: #FFF; animation: spin 1.5s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* ---------- 登录页 ---------- */
.login-page { height: 100%; display: flex; background: linear-gradient(135deg, #0c2461 0%, #1e4b8f 55%, #2f6bc4 100%); position: relative; overflow: hidden; }
.login-page:before { content: ""; position: absolute; width: 900px; height: 900px; border-radius: 50%; background: rgba(255,255,255,.04); top: -300px; right: -200px; }
.login-page:after { content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%; background: rgba(255,255,255,.05); bottom: -250px; left: -150px; }
.login-left { flex: 1.2; display: flex; flex-direction: column; justify-content: center; padding-left: 8%; color: #fff; z-index: 1; }
.login-left .logo-row { display: flex; align-items: center; margin-bottom: 28px; }
.login-left .logo-badge { width: 54px; height: 54px; border-radius: 12px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.35); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; margin-right: 16px; }
.login-left h1 { font-size: 34px; margin: 0; letter-spacing: 4px; font-weight: 600; }
.login-left .sub { margin-top: 14px; font-size: 15px; opacity: .75; letter-spacing: 2px; }
.login-left .feat { margin-top: 46px; display: flex; gap: 34px; }
.login-left .feat div { font-size: 13px; opacity: .8; }
.login-left .feat i { display: block; font-size: 22px; margin-bottom: 8px; }
.login-right { flex: 1; display: flex; align-items: center; justify-content: center; z-index: 1; }
.login-card { width: 420px; background: #fff; border-radius: 12px; padding: 40px 42px 28px; box-shadow: 0 18px 50px rgba(0,20,60,.35); }
.login-card h2 { margin: 0 0 6px; font-size: 22px; color: #1f2d3d; }
.login-card .tip { color: #909399; font-size: 13px; margin-bottom: 26px; }
.login-card .el-input__inner { height: 44px; line-height: 44px; }
.login-card .el-input__prefix { left: 8px; }
.login-agree { margin: 4px 0 18px; font-size: 13px; color: #606266; }
.login-agree a { color: #2f6bc4; text-decoration: none; }
.login-btn { width: 100%; height: 44px; font-size: 16px; letter-spacing: 8px; background: linear-gradient(90deg,#2f6bc4,#1e4b8f); border: none; }
.login-btn:hover { opacity: .92; }
.login-footer { position: absolute; bottom: 18px; width: 100%; text-align: center; color: rgba(255,255,255,.55); font-size: 12px; letter-spacing: 1px; z-index: 1; }
.captcha-row { display: flex; gap: 10px; }
.captcha-img { width: 110px; height: 44px; border-radius: 4px; background: #e8f0fe; display: flex; align-items: center; justify-content: center; font-size: 20px; letter-spacing: 4px; color: #1e4b8f; font-weight: 700; cursor: pointer; user-select: none; font-style: italic; border: 1px solid #d5e2f5; }

/* ---------- 布局：参考截图的门户式白色导航 ---------- */
.layout { height: 100%; display: flex; flex-direction: column; }
.sidebar { width: 138px; background: #fbfcfe; height: calc(100% - 86px); overflow-y: auto; overflow-x: hidden; flex-shrink: 0; transition: width .28s; border-right: 1px solid #e6eaf0; position: fixed; top: 50px; left: 0; z-index: 4; padding-top: 4px; }
.sidebar.collapsed { width: 64px; }
.sidebar::-webkit-scrollbar { width: 4px; } .sidebar::-webkit-scrollbar-thumb { background: #dfe4eb; }
.sidebar-logo { display: none; }
.sidebar .el-menu { border-right: none; background: #fbfcfe !important; }
.sidebar .el-menu-item, .sidebar .el-submenu__title { height: 42px; line-height: 42px; color: #555 !important; font-size: 12px; padding-left: 16px !important; background: transparent !important; }
.sidebar .el-menu-item:hover, .sidebar .el-submenu__title:hover { background: #f4f7fb !important; color: #df463f !important; }
.sidebar .el-menu-item i, .sidebar .el-submenu__title i { color: #e94a45; margin-right: 8px; }
.sidebar .el-menu-item.is-active { color: #e94a45 !important; background: #fff1f0 !important; border-left: 3px solid #e94a45; padding-left: 13px !important; }
.sidebar .el-submenu.is-active > .el-submenu__title { color: #e94a45 !important; background: #fff7f6 !important; }
.sidebar .el-submenu .el-menu { background: #ffffff !important; }
.sidebar .el-submenu .el-menu-item { min-width: 138px; padding-left: 38px !important; }
.main-area { flex: 1; display: flex; flex-direction: column; min-width: 0; margin-left: 138px; margin-top: 50px; height: calc(100% - 50px); }
.navbar { height: 50px; position: fixed; top: 0; left: 0; right: 0; background: #fff; border-bottom: 1px solid #e7e7e7; display: flex; align-items: center; padding: 0 18px; flex-shrink: 0; z-index: 8; }
.brand-mark { display: flex; align-items: center; width: 178px; color: #333; white-space: nowrap; font-size: 13px; }
.brand-round { width: 24px; height: 24px; margin-right: 7px; border-radius: 50%; color: #fff; background: #df463f; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.top-nav { height: 100%; display: flex; align-items: center; gap: 2px; overflow: hidden; }
.top-nav-item { height: 100%; display: inline-flex; align-items: center; padding: 0 13px; font-size: 12px; color: #333; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.top-nav-item:hover, .top-nav-item.active { color: #df463f; border-bottom-color: #df463f; }
.navbar .fold-btn { display: none; }
.navbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.city-label { color: #777; font-size: 12px; }
.role-select { width: 145px; }
.role-select .el-input__inner { border-color: #eee; color: #666; font-size: 12px; }
.navbar-right .nav-icon { font-size: 17px; color: #5a5e66; cursor: pointer; position: relative; }
.navbar-right .nav-icon .el-badge__content { z-index: 2; }
.navbar-user { display: flex; align-items: center; cursor: pointer; color: #303133; font-size: 12px; }
.navbar-user .el-avatar { margin-right: 8px; background: #df463f; }
.subbar { height: 36px; background: #fff; border-bottom: 1px solid #eaeaea; display: flex; align-items: center; padding: 0 14px; flex-shrink: 0; }
.subbar .fold-btn { font-size: 16px; cursor: pointer; margin-right: 16px; color: #555; }
.subbar .el-breadcrumb { font-size: 11px; }
.tags-view { height: 32px; background: #fafafa; border-bottom: 1px solid #e4e7ed; display: flex; align-items: center; padding: 0 10px; gap: 5px; overflow-x: auto; flex-shrink: 0; }
.tags-view .tag-item { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; font-size: 11px; border: 1px solid #e2e2e2; border-radius: 2px; color: #777; cursor: pointer; white-space: nowrap; background: #fff; }
.tags-view .tag-item.active { background: #fff1f0; color: #df463f; border-color: #f2b4b0; }
.tags-view .tag-item .el-icon-close { font-size: 11px; margin-left: 4px; border-radius: 50%; }
.tags-view .tag-item .el-icon-close:hover { background: rgba(223,70,63,.15); }
.app-main { flex: 1; overflow-y: auto; padding: 10px; }
@media (max-width: 1100px) {
  .brand-mark { width: 160px; }
  .brand-mark b { font-size: 12px; }
  .top-nav-item { padding: 0 8px; }
  .city-label { display: none; }
  .role-select { width: 118px; }
}
@media (max-width: 820px) {
  .sidebar { width: 52px; }
  .sidebar .el-menu-item, .sidebar .el-submenu__title { padding-left: 17px !important; font-size: 0; }
  .sidebar .el-menu-item i, .sidebar .el-submenu__title i { margin-right: 0; font-size: 16px; }
  .sidebar .el-submenu .el-menu-item { padding-left: 17px !important; }
  .main-area { margin-left: 52px; }
  .brand-mark { width: 30px; }
  .brand-mark b { display: none; }
  .top-nav-item { padding: 0 8px; }
  .role-select { display: none; }
}

/* ---------- 通用页面 ---------- */
.app-container { min-height: 100%; }
.page-card { background: #fff; border-radius: 2px; padding: 12px 14px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.search-bar .el-form-item { margin-bottom: 8px; margin-right: 10px; }
.search-bar .el-form-item__label { font-weight: 400; color: #777; font-size: 12px; }
.search-bar .el-input__inner, .search-bar .el-select .el-input__inner { height: 28px; line-height: 28px; font-size: 12px; }
.toolbar { display: flex; align-items: center; margin-bottom: 9px; flex-wrap: wrap; gap: 6px; }
.toolbar .right { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.stat-cards { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.stat-card { flex: 1; min-width: 138px; background: #edf7ff; border: none; border-radius: 3px; padding: 11px 13px; }
.stat-card:nth-child(2) { background: #fff5e9; }
.stat-card:nth-child(3) { background: #f9efff; }
.stat-card:nth-child(4) { background: #edfbff; }
.stat-card:nth-child(5) { background: #f5efff; }
.stat-card .label { font-size: 11px; color: #777; margin-bottom: 6px; }
.stat-card .value { font-size: 20px; font-weight: 700; color: #333; font-family: DIN Alternate, Helvetica Neue, sans-serif; }
.stat-card .value small { font-size: 11px; color: #888; font-weight: 400; margin-left: 3px; }
.stat-card.hl { background: #edf7ff; border: none; }
.stat-card.hl .label, .stat-card.hl .value { color: #333; }
.stat-card.hl .value small { color: #888; }
.list-layout { display: flex; gap: 14px; align-items: flex-start; }
.tree-pane { width: 220px; flex-shrink: 0; background: #fff; border-radius: 6px; padding: 12px; box-shadow: 0 1px 3px rgba(0,21,41,.05); position: relative; transition: all .2s; }
.tree-pane.hidden-tree { display: none; }
.org-mode-tabs { display: flex; align-items: center; gap: 0; margin: -12px -12px 12px; border-bottom: 1px solid #ebeef5; background: #fafbfc; }
.org-mode-tab { flex: 1; padding: 10px 4px; text-align: center; font-size: 12px; color: #606266; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.org-mode-tab:hover { color: #df463f; background: #fff7f6; }
.org-mode-tab.active { color: #df463f; background: #fff; border-bottom-color: #df463f; font-weight: 600; }
.tree-title { font-size: 14px; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }
.tree-title .el-icon-arrow-left { cursor: pointer; color: #909399; }
.expand-handle { position: absolute; left: 0; top: 60px; background: #fff; border: 1px solid #e4e7ed; border-left: none; border-radius: 0 4px 4px 0; padding: 10px 4px; cursor: pointer; color: #909399; writing-mode: vertical-lr; font-size: 12px; z-index: 3; }
.main-pane { flex: 1; min-width: 0; }
.el-table { font-size: 12px; }
.el-table th.el-table__cell { background: #fafafa; color: #555; font-weight: 600; padding: 7px 0; }
.el-table td.el-table__cell { padding: 6px 0; }
.el-table .cell { white-space: nowrap; }
.pagination-wrap { display: flex; justify-content: flex-end; margin-top: 10px; }
.tab-count-tabs .el-tabs__item { font-size: 12px; height: 34px; line-height: 34px; }
.el-button--primary { background: #df463f; border-color: #df463f; }
.el-button--primary:hover, .el-button--primary:focus { background: #c93832; border-color: #c93832; }
.el-tabs__item.is-active, .el-tabs__item:hover { color: #df463f; }
.el-tabs__active-bar { background-color: #df463f; }
.el-pagination.is-background .el-pager li:not(.disabled).active { background-color: #df463f; }
.el-tree-node__content:hover, .el-tree-node.is-current > .el-tree-node__content { color: #df463f; background: #fff4f3; }
.link-btn { color: #df463f; cursor: pointer; margin-right: 8px; font-size: 12px; }
.link-btn.danger { color: #df463f; }
.link-btn:hover { text-decoration: underline; }
.money { color: #df463f; font-weight: 600; }
.desc-footer { margin-top: 16px; }
.section-title { font-size: 14px; font-weight: 600; margin: 18px 0 12px; padding-left: 9px; border-left: 3px solid #df463f; line-height: 1.2; }
.section-title:first-child { margin-top: 0; }

/* ---------- 首页工作台 ---------- */
.home-banner { background: linear-gradient(120deg,#1e4b8f,#2f6bc4 60%,#4a90d9); border-radius: 8px; color: #fff; padding: 26px 30px; display: flex; align-items: center; margin-bottom: 14px; position: relative; overflow: hidden; }
.home-banner:after { content:""; position:absolute; right:-60px; top:-60px; width:260px; height:260px; border-radius:50%; background:rgba(255,255,255,.08); }
.home-banner h2 { margin: 0 0 8px; font-size: 24px; letter-spacing: 1px; }
.home-banner p { margin: 0; opacity: .8; font-size: 13px; }
.home-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.home-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-top: 14px; }
.home-card { background: #fff; border-radius: 6px; padding: 16px 18px; box-shadow: 0 1px 3px rgba(0,21,41,.05); }
.home-card .card-head { display: flex; align-items: center; margin-bottom: 12px; }
.home-card .card-head .t { font-size: 15px; font-weight: 600; }
.home-card .card-head .more { margin-left: auto; font-size: 12px; color: #909399; cursor: pointer; }
.home-card .card-head .more:hover { color: #2f6bc4; }
.todo-item { display: flex; align-items: center; padding: 9px 4px; border-bottom: 1px solid #f2f4f8; cursor: pointer; }
.todo-item:hover { background: #f7f9fc; }
.todo-item .dot { width: 8px; height: 8px; border-radius: 50%; background: #f56c6c; margin-right: 10px; flex-shrink: 0; }
.todo-item .ti { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.todo-item .tp { font-size: 12px; color: #909399; margin-left: 10px; }
.type-chip { display: inline-block; padding: 2px 8px; font-size: 12px; border-radius: 3px; background: #ecf3ff; color: #2f6bc4; margin-right: 8px; flex-shrink: 0; }
.chip-row { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.chip-row .chip { padding: 4px 14px; border-radius: 14px; background: #f2f4f8; color: #606266; font-size: 12px; cursor: pointer; }
.chip-row .chip.active { background: #2f6bc4; color: #fff; }
.app-icons { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.app-icon-item { text-align: center; padding: 12px 4px; border-radius: 8px; cursor: pointer; transition: all .15s; }
.app-icon-item:hover { background: #f0f6ff; transform: translateY(-2px); }
.app-icon-item .ic { width: 44px; height: 44px; border-radius: 10px; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; }
.app-icon-item .nm { font-size: 12px; color: #303133; }
.donut-wrap { display: flex; align-items: center; justify-content: center; padding: 8px 0; }
.donut-legend { margin-left: 22px; }
.donut-legend .li { display: flex; align-items: center; font-size: 13px; margin-bottom: 10px; color: #606266; }
.donut-legend .li i { width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; display: inline-block; }
.donut-legend .li b { margin-left: auto; color: #303133; padding-left: 16px; }
.empty-box { text-align: center; color: #909399; padding: 34px 0; font-size: 13px; }
.empty-box i { font-size: 40px; display: block; margin-bottom: 10px; color: #c0c4cc; }

/* ---------- 统一门户 ---------- */
.portal-head { display: flex; gap: 14px; margin-bottom: 14px; }
.portal-kpi { flex: 1; background: #fff; border-radius: 8px; padding: 18px 20px; position: relative; overflow: hidden; box-shadow: 0 1px 3px rgba(0,21,41,.05); }
.portal-kpi .k-label { color: #606266; font-size: 13px; }
.portal-kpi .k-value { font-size: 30px; font-weight: 700; margin-top: 8px; font-family: DIN Alternate, sans-serif; }
.portal-kpi .k-foot { margin-top: 8px; font-size: 12px; color: #909399; }
.portal-kpi .k-icon { position: absolute; right: 14px; top: 14px; width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; }
.bar-row { display: flex; align-items: center; margin-bottom: 12px; font-size: 13px; }
.bar-row .bl { width: 110px; color: #606266; flex-shrink: 0; }
.bar-row .bt { flex: 1; height: 14px; background: #f2f4f8; border-radius: 7px; overflow: hidden; }
.bar-row .bf { height: 100%; border-radius: 7px; background: linear-gradient(90deg,#2f6bc4,#5ea0e6); }
.bar-row .bv { width: 90px; text-align: right; flex-shrink: 0; font-weight: 600; }

/* ---------- 地图检索 ---------- */
.map-wrap { display: flex; gap: 14px; height: calc(100vh - 190px); min-height: 480px; }
.map-side { width: 340px; flex-shrink: 0; overflow-y: auto; }
.map-canvas { flex: 1; background: #e8edf3; border-radius: 6px; position: relative; overflow: hidden; }
.map-canvas .grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(47,107,196,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(47,107,196,.07) 1px, transparent 1px); background-size: 40px 40px; }
.map-marker { position: absolute; transform: translate(-50%,-100%); cursor: pointer; z-index: 2; }
.map-marker .pin { background: #2f6bc4; color: #fff; padding: 4px 10px; border-radius: 4px; font-size: 12px; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.map-marker .pin:after { content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); border: 6px solid transparent; border-top-color: #2f6bc4; border-bottom: none; }
.map-circle { position: absolute; border: 2px dashed rgba(47,107,196,.5); border-radius: 50%; background: rgba(47,107,196,.08); transform: translate(-50%,-50%); }
.result-item { padding: 12px; border: 1px solid #ebeef5; border-radius: 6px; margin-bottom: 10px; cursor: pointer; }
.result-item:hover { border-color: #2f6bc4; box-shadow: 0 2px 8px rgba(47,107,196,.15); }
.result-item .rn { font-weight: 600; margin-bottom: 6px; }
.result-item .ra { font-size: 12px; color: #909399; }
.result-item .rd { font-size: 12px; color: #2f6bc4; margin-top: 6px; }

/* ---------- 流程轨迹 ---------- */
.flow-timeline { padding: 6px 0 0 4px; }
.flow-node { position: relative; padding: 0 0 22px 24px; border-left: 2px solid #e4e7ed; }
.flow-node:last-child { border-left-color: transparent; padding-bottom: 4px; }
.flow-node .nd { position: absolute; left: -7px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #c0c4cc; border: 2px solid #fff; box-shadow: 0 0 0 2px #e4e7ed; }
.flow-node.done .nd { background: #67c23a; box-shadow: 0 0 0 2px rgba(103,194,58,.3); }
.flow-node.cur .nd { background: #2f6bc4; box-shadow: 0 0 0 2px rgba(47,107,196,.3); }
.flow-node.reject .nd { background: #f56c6c; box-shadow: 0 0 0 2px rgba(245,108,108,.3); }
.flow-node .nt { font-size: 13px; font-weight: 600; }
.flow-node .ns { font-size: 12px; color: #909399; margin-top: 3px; }

/* ---------- 卡片视图 ---------- */
.card-view { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 14px; }
.asset-card { border: 1px solid #ebeef5; border-radius: 8px; overflow: hidden; transition: all .15s; }
.asset-card:hover { box-shadow: 0 4px 14px rgba(0,21,41,.12); transform: translateY(-2px); }
.asset-card .ac-img { height: 120px; background: linear-gradient(120deg,#3a6ea5,#2f6bc4); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.85); font-size: 34px; position: relative; }
.asset-card .ac-status { position: absolute; top: 8px; right: 8px; }
.asset-card .ac-body { padding: 12px 14px; }
.asset-card .ac-name { font-weight: 600; margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-card .ac-row { font-size: 12px; color: #909399; margin-bottom: 4px; display: flex; justify-content: space-between; }
.asset-card .ac-row b { color: #606266; font-weight: 500; }
.asset-card .ac-foot { border-top: 1px solid #f2f4f8; padding: 8px 14px; display: flex; justify-content: flex-end; }

/* ---------- 测试清单 ---------- */
.test-table .el-tag { margin: 2px; }

/* ---------- Element 细节 ---------- */
.el-drawer__header { margin-bottom: 12px; font-weight: 600; color: #303133; }
.el-dialog__header { border-bottom: 1px solid #f2f4f8; }
.el-descriptions-item__label { color: #909399; }
.text-secondary { color: #909399; font-size: 12px; }
.mb14 { margin-bottom: 14px; }
