TrustDataSpace/assets/css/pages/mods/mod4-ops/doc-menu.css
sichan 987bef5737 + feat:
1. 数据产品详情页
2. 数据资产化树状图
3. 数据运营页
2025-02-03 14:51:07 +08:00

613 lines
9.5 KiB
CSS

.doc-menu {
position: relative;
margin-left: auto;
}
.doc-menu .doc-btn {
cursor: pointer;
padding: 10px 15px;
display: flex;
align-items: center;
gap: 8px;
color: #333;
transition: all 0.3s ease;
background: none;
border: none;
}
.doc-menu .doc-btn:hover {
color: #0056b3;
background: none;
}
.doc-list {
display: none;
position: absolute;
right: 0;
top: 100%;
background: white;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
border-radius: 8px;
padding: 12px;
min-width: 320px;
z-index: 1000;
}
.doc-menu:hover .doc-list {
display: block;
}
.doc-item {
padding: 12px;
display: flex;
align-items: center;
border-bottom: 1px solid #eee;
}
.doc-item:last-child {
border-bottom: none;
}
.doc-link {
color: #333;
text-decoration: none;
display: flex;
align-items: center;
gap: 8px;
width: 100%;
}
.doc-link:hover {
color: #0056b3;
}
.doc-link i {
color: #0056b3;
}
/* 重置所有按钮的基础样式 */
.data-market .btn {
background: none;
padding: 6px 12px;
transition: all 0.3s ease;
border: 1px solid;
}
/* 筛选区域按钮样式 */
.data-market .filter-section .btn-outline-danger {
color: #dc3545;
border-color: #dc3545;
}
.data-market .filter-section .btn-outline-warning {
color: #ffc107;
border-color: #ffc107;
}
.data-market .filter-section .btn-outline-info {
color: #0dcaf0;
border-color: #0dcaf0;
}
.data-market .filter-section .btn-outline-success {
color: #198754;
border-color: #198754;
}
.data-market .filter-section .btn-outline-secondary {
color: #6c757d;
border-color: #6c757d;
}
/* 卡片中的购买按钮样式 */
.data-market .card .btn-outline-primary {
color: #0d6efd;
border-color: #0d6efd;
display: inline-flex;
align-items: center;
gap: 4px;
}
/* 悬停效果 */
.data-market .filter-section .btn-outline-danger:hover {
color: #fff;
background-color: #dc3545;
}
.data-market .filter-section .btn-outline-warning:hover {
color: #fff;
background-color: #ffc107;
}
.data-market .filter-section .btn-outline-info:hover {
color: #fff;
background-color: #0dcaf0;
}
.data-market .filter-section .btn-outline-success:hover {
color: #fff;
background-color: #198754;
}
.data-market .filter-section .btn-outline-secondary:hover {
color: #fff;
background-color: #6c757d;
}
.data-market .card .btn-outline-primary:hover {
color: #fff;
background-color: #0d6efd;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 2rem;
}
.page-title {
font-size: 2.5rem;
color: #333;
margin-bottom: 2rem;
text-align: center;
border-bottom: 3px solid #007bff;
padding-bottom: 1rem;
}
section {
margin-bottom: 3rem;
}
section h2 {
color: #007bff;
font-size: 1.8rem;
margin-bottom: 1.5rem;
}
.content-box {
background-color: #fff;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
padding: 2rem;
margin-bottom: 2rem;
}
.content-box h3 {
color: #2c3e50;
font-size: 1.4rem;
margin-bottom: 1rem;
border-bottom: 2px solid #eee;
padding-bottom: 0.5rem;
}
.content-box ul {
list-style-type: none;
padding-left: 0;
}
.content-box ul li {
margin-bottom: 0.5rem;
padding-left: 1.5rem;
position: relative;
}
.content-box ul li:before {
content: "•";
color: #007bff;
position: absolute;
left: 0;
}
.table-responsive {
overflow-x: auto;
margin: 1rem 0;
}
table {
width: 100%;
border-collapse: collapse;
margin: 1rem 0;
}
table th,
table td {
padding: 0.75rem;
border: 1px solid #dee2e6;
text-align: left;
}
table th {
background-color: #f8f9fa;
font-weight: 600;
}
.profile-group,
.risk-group {
margin-bottom: 2rem;
}
.profile-group:last-child,
.risk-group:last-child {
margin-bottom: 0;
}
@media (max-width: 768px) {
.container {
padding: 1rem;
}
.page-title {
font-size: 2rem;
}
section h2 {
font-size: 1.5rem;
}
.content-box {
padding: 1rem;
}
}
/* 仪表盘容器 */
.dashboard-container {
padding: 2rem;
background-color: #f8fafc;
min-height: 100vh;
}
/* 顶部统计卡片 */
.stats-cards {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 1.5rem;
margin-bottom: 2rem;
}
.stat-card {
background: white;
border-radius: 12px;
padding: 1.5rem;
display: flex;
align-items: center;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.stat-icon {
width: 48px;
height: 48px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
margin-right: 1rem;
}
.stat-icon i {
font-size: 1.5rem;
color: white;
}
.customer-icon {
background-color: #7c3aed;
}
.revenue-icon {
background-color: #60a5fa;
}
.conversion-icon {
background-color: #fbbf24;
}
.deals-icon {
background-color: #34d399;
}
.stat-info h3 {
font-size: 0.875rem;
color: #64748b;
margin-bottom: 0.5rem;
}
.stat-number {
font-size: 1.5rem;
font-weight: 600;
color: #1e293b;
margin-bottom: 0.25rem;
}
.stat-trend {
font-size: 0.875rem;
display: flex;
align-items: center;
gap: 0.5rem;
}
.stat-trend.positive {
color: #34d399;
}
.stat-trend.negative {
color: #ef4444;
}
.stat-trend small {
color: #64748b;
}
/* 主要内容区域 */
.dashboard-content {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 1.5rem;
height: calc(100vh - 200px);
overflow: auto;
}
.content-left, .content-right {
display: flex;
flex-direction: column;
gap: 1.5rem;
overflow-y: auto;
max-height: 100%;
}
/* 面板通用样式 */
.panel {
background: white;
border-radius: 12px;
padding: 1.5rem;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
flex-shrink: 0;
}
.panel-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
}
.panel-header h2 {
font-size: 1.25rem;
color: #1e293b;
font-weight: 600;
}
/* 热门交易列表 */
.deals-list {
display: flex;
flex-direction: column;
gap: 1rem;
}
.deal-item {
display: flex;
align-items: center;
padding: 0.75rem;
border-radius: 8px;
background-color: #f8fafc;
}
.deal-avatar {
width: 40px;
height: 40px;
border-radius: 50%;
margin-right: 1rem;
}
.deal-info {
flex: 1;
}
.deal-name {
font-weight: 500;
color: #1e293b;
}
.deal-email {
font-size: 0.875rem;
color: #64748b;
}
.deal-amount {
font-weight: 600;
color: #1e293b;
}
/* 图表控制按钮 */
.chart-controls {
display: flex;
gap: 0.5rem;
}
.control-btn {
padding: 0.5rem 1rem;
border: 1px solid #e2e8f0;
border-radius: 6px;
background: none;
color: #64748b;
cursor: pointer;
transition: all 0.2s;
}
.control-btn.active {
background-color: #7c3aed;
color: white;
border-color: #7c3aed;
}
/* 数据来源统计 */
.source-stats {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1rem;
margin-top: 1.5rem;
}
.stat-item {
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.stat-label {
font-size: 0.875rem;
color: #64748b;
}
.stat-value {
font-size: 1.25rem;
font-weight: 600;
color: #1e293b;
}
/* 交易状态 */
.status-total {
font-size: 1.5rem;
font-weight: 600;
color: #1e293b;
display: flex;
align-items: baseline;
gap: 0.5rem;
}
.status-trend {
font-size: 0.875rem;
color: #34d399;
}
.status-list {
display: flex;
flex-direction: column;
gap: 1rem;
margin-top: 1.5rem;
}
.status-item {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.status-info {
display: flex;
align-items: center;
gap: 0.75rem;
}
.status-dot {
width: 8px;
height: 8px;
border-radius: 50%;
}
.status-dot.success {
background-color: #34d399;
}
.status-dot.pending {
background-color: #fbbf24;
}
.status-dot.rejected {
background-color: #ef4444;
}
.status-dot.upcoming {
background-color: #60a5fa;
}
.status-name {
flex: 1;
color: #1e293b;
}
.status-count {
color: #64748b;
font-size: 0.875rem;
}
.status-bar {
height: 6px;
background-color: #f1f5f9;
border-radius: 3px;
overflow: hidden;
}
.bar-fill {
height: 100%;
border-radius: 3px;
transition: width 0.3s ease;
}
.bar-fill.success {
background-color: #34d399;
}
.bar-fill.pending {
background-color: #fbbf24;
}
.bar-fill.rejected {
background-color: #ef4444;
}
.bar-fill.upcoming {
background-color: #60a5fa;
}
/* 响应式设计 */
@media (max-width: 1200px) {
.stats-cards {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 768px) {
.dashboard-container {
padding: 1rem;
}
.dashboard-content {
height: auto;
overflow: visible;
}
.content-left, .content-right {
overflow-y: visible;
max-height: none;
}
.revenue-chart, .source-distribution {
height: 300px;
}
.revenue-chart canvas {
height: 200px !important;
}
.source-distribution canvas {
height: 150px !important;
}
}
.revenue-chart {
height: 400px;
position: relative;
}
.revenue-chart canvas {
height: 300px !important;
}
.source-distribution {
height: 400px;
position: relative;
}
.source-distribution canvas {
height: 200px !important;
margin-bottom: 1rem;
}