458 lines
6.5 KiB
CSS
458 lines
6.5 KiB
CSS
/* 基础样式重置 */
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
line-height: 1.6;
|
|
color: #333;
|
|
background-color: #f8f9fa;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 0 20px;
|
|
}
|
|
|
|
/* 导航栏样式 */
|
|
.navbar {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: white;
|
|
padding: 1rem 0;
|
|
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.nav-container {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 0 20px;
|
|
}
|
|
|
|
.nav-logo {
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.nav-menu {
|
|
display: flex;
|
|
list-style: none;
|
|
gap: 2rem;
|
|
}
|
|
|
|
.nav-link {
|
|
color: white;
|
|
text-decoration: none;
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 5px;
|
|
transition: background-color 0.3s;
|
|
}
|
|
|
|
.nav-link:hover,
|
|
.nav-link.active {
|
|
background-color: rgba(255,255,255,0.2);
|
|
}
|
|
|
|
/* 主内容区域 */
|
|
.main-content {
|
|
padding: 2rem 0;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 2rem;
|
|
margin-bottom: 2rem;
|
|
color: #2c3e50;
|
|
text-align: center;
|
|
}
|
|
|
|
/* 概览卡片样式 */
|
|
.overview-section {
|
|
margin-bottom: 3rem;
|
|
}
|
|
|
|
.stats-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
gap: 1.5rem;
|
|
margin-top: 2rem;
|
|
}
|
|
|
|
.stat-card {
|
|
background: white;
|
|
padding: 2rem;
|
|
border-radius: 10px;
|
|
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
transition: transform 0.3s;
|
|
}
|
|
|
|
.stat-card:hover {
|
|
transform: translateY(-5px);
|
|
}
|
|
|
|
.stat-icon {
|
|
font-size: 2.5rem;
|
|
color: #667eea;
|
|
}
|
|
|
|
.stat-info h3 {
|
|
font-size: 2rem;
|
|
font-weight: 600;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
.stat-info p {
|
|
color: #7f8c8d;
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
/* 内容区域切换 */
|
|
.content-section {
|
|
display: none;
|
|
}
|
|
|
|
.content-section.active {
|
|
display: block;
|
|
}
|
|
|
|
/* 搜索栏样式 */
|
|
.search-bar {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-bottom: 2rem;
|
|
max-width: 400px;
|
|
}
|
|
|
|
.search-bar input {
|
|
flex: 1;
|
|
padding: 0.75rem;
|
|
border: 2px solid #e0e0e0;
|
|
border-radius: 5px;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.search-bar button {
|
|
padding: 0.75rem 1rem;
|
|
background: #667eea;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s;
|
|
}
|
|
|
|
.search-bar button:hover {
|
|
background: #5a6fd8;
|
|
}
|
|
|
|
/* 表格样式 */
|
|
.table-container {
|
|
background: white;
|
|
border-radius: 10px;
|
|
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.data-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.data-table th,
|
|
.data-table td {
|
|
padding: 1rem;
|
|
text-align: left;
|
|
border-bottom: 1px solid #e0e0e0;
|
|
}
|
|
|
|
.data-table th {
|
|
background: #f8f9fa;
|
|
font-weight: 600;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
.data-table tr:hover {
|
|
background: #f8f9fa;
|
|
}
|
|
|
|
/* 图表容器样式 */
|
|
.chart-container {
|
|
background: white;
|
|
padding: 2rem;
|
|
border-radius: 10px;
|
|
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
|
|
height: 500px;
|
|
}
|
|
|
|
.chart-controls {
|
|
display: flex;
|
|
gap: 1rem;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.chart-controls select {
|
|
padding: 0.5rem;
|
|
border: 2px solid #e0e0e0;
|
|
border-radius: 5px;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
/* 财务数据表格样式 */
|
|
.financial-table-container {
|
|
background: white;
|
|
border-radius: 10px;
|
|
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.financial-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.financial-table th,
|
|
.financial-table td {
|
|
padding: 1rem;
|
|
text-align: left;
|
|
border-bottom: 1px solid #e0e0e0;
|
|
}
|
|
|
|
.financial-table th {
|
|
background: #f8f9fa;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* 日志容器样式 */
|
|
.log-container {
|
|
background: white;
|
|
border-radius: 10px;
|
|
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
|
|
max-height: 600px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.log-list {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.log-item {
|
|
padding: 1rem;
|
|
border-left: 4px solid #667eea;
|
|
margin-bottom: 1rem;
|
|
background: #f8f9fa;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
.log-item.error {
|
|
border-left-color: #e74c3c;
|
|
background: #fdf2f2;
|
|
}
|
|
|
|
.log-item.warning {
|
|
border-left-color: #f39c12;
|
|
background: #fef9e7;
|
|
}
|
|
|
|
.log-item.info {
|
|
border-left-color: #3498db;
|
|
background: #f0f8ff;
|
|
}
|
|
|
|
.log-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.log-level {
|
|
padding: 0.25rem 0.5rem;
|
|
border-radius: 3px;
|
|
font-size: 0.8rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.log-level.info {
|
|
background: #3498db;
|
|
color: white;
|
|
}
|
|
|
|
.log-level.warning {
|
|
background: #f39c12;
|
|
color: white;
|
|
}
|
|
|
|
.log-level.error {
|
|
background: #e74c3c;
|
|
color: white;
|
|
}
|
|
|
|
.log-time {
|
|
color: #7f8c8d;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.log-message {
|
|
color: #2c3e50;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.log-details {
|
|
color: #7f8c8d;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
/* 分页样式 */
|
|
.pagination {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
margin-top: 2rem;
|
|
}
|
|
|
|
.pagination button {
|
|
padding: 0.5rem 1rem;
|
|
border: 1px solid #e0e0e0;
|
|
background: white;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s;
|
|
}
|
|
|
|
.pagination button:hover {
|
|
background: #f8f9fa;
|
|
}
|
|
|
|
.pagination button.active {
|
|
background: #667eea;
|
|
color: white;
|
|
border-color: #667eea;
|
|
}
|
|
|
|
/* 加载遮罩样式 */
|
|
.loading-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0,0,0,0.5);
|
|
display: none;
|
|
justify-content: center;
|
|
align-items: center;
|
|
z-index: 2000;
|
|
}
|
|
|
|
.loading-overlay.show {
|
|
display: flex;
|
|
}
|
|
|
|
.loading-spinner {
|
|
background: white;
|
|
padding: 2rem;
|
|
border-radius: 10px;
|
|
text-align: center;
|
|
}
|
|
|
|
.loading-spinner i {
|
|
font-size: 2rem;
|
|
color: #667eea;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
/* 响应式设计 */
|
|
@media (max-width: 768px) {
|
|
.nav-container {
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.nav-menu {
|
|
gap: 1rem;
|
|
}
|
|
|
|
.stats-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.chart-container {
|
|
height: 300px;
|
|
}
|
|
|
|
.search-bar {
|
|
flex-direction: column;
|
|
}
|
|
}
|
|
|
|
/* 按钮样式 */
|
|
.btn {
|
|
padding: 0.75rem 1.5rem;
|
|
border: none;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
font-size: 1rem;
|
|
transition: background-color 0.3s;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: #667eea;
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: #5a6fd8;
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: #95a5a6;
|
|
color: white;
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: #7f8c8d;
|
|
}
|
|
|
|
/* 控制面板样式 */
|
|
.control-panel {
|
|
display: flex;
|
|
gap: 1rem;
|
|
margin-bottom: 2rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.control-panel select,
|
|
.control-panel input {
|
|
padding: 0.5rem;
|
|
border: 2px solid #e0e0e0;
|
|
border-radius: 5px;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.control-panel button {
|
|
padding: 0.5rem 1rem;
|
|
background: #667eea;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s;
|
|
}
|
|
|
|
.control-panel button:hover {
|
|
background: #5a6fd8;
|
|
} |