/* ============ 机构端首页 — 1:1 还原原型 dashboard-classic ============ */ .institution-dashboard { min-height: 100%; background: #f8fafc; color: #1e293b; line-height: 1.6; } /* 顶部工具栏 */ .institution-dashboard__toolbar { padding: 0 0 8px; } /* ============ dashboard-classic 布局 ============ */ .dashboard-classic { display: grid; gap: 0.85rem; } .dashboard-classic-top, .dashboard-classic-middle { display: grid; grid-template-columns: minmax(0, 3.2fr) minmax(300px, 1fr); gap: 0.85rem; } /* ============ dashboard-block 卡片 ============ */ .dashboard-block { background: #fff; border: 1px solid #e2e8f0; padding: 0.95rem; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04); } .dashboard-block-head { min-height: 28px; display: flex; align-items: flex-start; justify-content: space-between; gap: 0.8rem; margin-bottom: 0.75rem; } .dashboard-block-head h3 { font-size: 0.88rem; margin: 0; font-weight: 600; color: #1e293b; } .dashboard-block-head > div { display: flex; gap: 1.4rem; font-size: 0.7rem; color: #64748b; } .dashboard-block-head b { color: #2563eb; } /* ============ 当前项目节点统计 ============ */ .dashboard-status-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.75rem; } .dashboard-status-grid article { display: flex; align-items: center; gap: 0.65rem; min-height: 62px; padding: 0.65rem; background: #fff; box-shadow: 0 4px 16px rgba(30, 64, 100, 0.07); } .dashboard-status-grid article > i { width: 34px; height: 34px; border-radius: 4px; display: flex; align-items: center; justify-content: center; color: #fff; font-style: normal; font-weight: 700; font-size: 13px; flex: 0 0 34px; } .dashboard-status-grid .blue { background: #4098f7; } .dashboard-status-grid .violet { background: #8268ef; } .dashboard-status-grid .green { background: #23bfa5; } .dashboard-status-grid .orange { background: #ff9f2f; } .dashboard-status-grid .cyan { background: #0eafbd; } .dashboard-status-grid .red { background: #f0645b; } .dashboard-status-grid span, .dashboard-status-grid strong { display: block; } .dashboard-status-grid span { font-size: 0.7rem; color: #64748b; } .dashboard-status-grid strong { font-size: 1rem; margin-top: 0.15rem; color: #1e293b; } /* ============ 通知提醒 ============ */ .dashboard-reminder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; } .dashboard-reminder-grid article { display: flex; align-items: center; gap: 0.65rem; min-height: 64px; padding: 0.65rem; cursor: pointer; } .dashboard-reminder-grid article:last-child { grid-column: 1 / 2; } .dashboard-reminder-grid article.yellow { background: #fff9e8; } .dashboard-reminder-grid article.red { background: #fff2ef; } .dashboard-reminder-grid article.blue { background: #edf4ff; } .dashboard-reminder-grid i { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 5px; color: #fff; font-style: normal; font-weight: 700; font-size: 13px; flex: 0 0 34px; } .dashboard-reminder-grid .yellow i { background: #f7bd08; } .dashboard-reminder-grid .red i { background: #ff725c; } .dashboard-reminder-grid .blue i { background: #5b8def; } .dashboard-reminder-grid span, .dashboard-reminder-grid strong { display: block; } .dashboard-reminder-grid span { font-size: 0.68rem; color: #64748b; } .dashboard-reminder-grid strong { font-size: 1rem; margin-top: 0.12rem; color: #1e293b; } /* ============ 服务行业项目统计 / 评价类别占比 ============ */ .dashboard-industry-block, .dashboard-type-block { min-height: 285px; } /* 图例 */ .chart-legend span { display: flex; align-items: center; gap: 0.25rem; } .chart-legend i { width: 14px; height: 6px; border-radius: 5px; background: #4285f4; } .chart-legend span:last-child i { background: #ffab31; } /* 柱状图容器 */ .dashboard-bar-chart { height: 225px; } /* ECharts 柱状图 */ .institution-bar-chart { width: 100%; height: 225px; } /* ============ 评价类别占比 ============ */ .institution-donut-chart { width: 100%; height: 185px; display: flex; justify-content: center; align-items: center; } .dashboard-type-legend { display: flex; justify-content: center; gap: 0.8rem; flex-wrap: wrap; font-size: 0.62rem; color: #64748b; margin-top: 8px; } .dashboard-type-legend span { display: flex; align-items: center; } .dashboard-type-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 0.25rem; } /* ============ 项目执行情况表格 ============ */ .dashboard-project-block .data-table { background: #fff; border: 0; border-radius: 0; box-shadow: none; overflow: visible; } .dashboard-project-table table { width: 100%; border-collapse: collapse; } .dashboard-project-table th, .dashboard-project-table td { padding: 0.65rem 0.55rem; font-size: 0.7rem; } .dashboard-project-table th { text-align: left; font-weight: 600; color: #64748b; background: #f8fafc; border-bottom: 1px solid #e2e8f0; white-space: nowrap; } .dashboard-project-table td { border-bottom: 1px solid #e2e8f0; color: #1e293b; } .dashboard-project-table tr:last-child td { border-bottom: none; } .dashboard-project-table tr:hover td { background: #f8fafc; } /* ============ 原生按钮(匹配原型) ============ */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.42rem 0.85rem; border: 1px solid var(--color-border, #e2e8f0); border-radius: 8px; font-size: 0.78rem; font-weight: 500; cursor: pointer; transition: all 0.15s ease; background: #fff; color: #475569; text-decoration: none; } .btn-primary { background: #2563eb; color: #fff; border-color: #2563eb; } .btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; } .btn-ghost { background: transparent; color: #64748b; border: none; } .btn-ghost:hover { background: #f1f5f9; color: #1e293b; } .btn-sm { padding: 0.3rem 0.75rem; font-size: 0.7rem; } .dashboard-btn-ghost { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.75rem; border: none; border-radius: 8px; font-size: 0.7rem; font-weight: 500; cursor: pointer; background: transparent; color: #64748b; transition: all 0.15s ease; } .dashboard-btn-ghost:hover { background: #f1f5f9; color: #1e293b; } /* 表格操作按钮 */ .dashboard-table-link { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.75rem; border: none; border-radius: 8px; font-size: 0.7rem; font-weight: 500; cursor: pointer; text-decoration: none; background: #2563eb; color: #fff; transition: all 0.15s ease; } .dashboard-table-link:hover { background: #1d4ed8; text-decoration: none; color: #fff; } /* ============ 响应式 ============ */ @media (max-width: 1280px) { .dashboard-classic-top, .dashboard-classic-middle { grid-template-columns: 1fr; } .dashboard-status-grid { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 760px) { .dashboard-status-grid { grid-template-columns: repeat(2, 1fr); } .dashboard-reminder-grid { grid-template-columns: 1fr; } }