/* 全局样式 */
|
* {
|
margin: 0;
|
padding: 0;
|
box-sizing: border-box;
|
}
|
|
body {
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
background-color: #f5f5f5;
|
color: #333;
|
line-height: 1.6;
|
}
|
|
/* 响应式布局 */
|
@media (max-width: 768px) {
|
.content-container {
|
margin: 16px 8px !important;
|
padding: 16px !important;
|
}
|
|
.header-menu {
|
display: none !important;
|
}
|
|
.logo {
|
margin: 8px !important;
|
}
|
|
.a-row {
|
flex-direction: column;
|
}
|
|
.a-col {
|
width: 100% !important;
|
margin-bottom: 16px;
|
}
|
|
.stat-card,
|
.risk-item,
|
.exposure-item {
|
margin-bottom: 16px;
|
}
|
|
.chart-container {
|
height: 300px !important;
|
}
|
}
|
|
/* 加载动画 */
|
.loading-container {
|
display: flex;
|
justify-content: center;
|
align-items: center;
|
height: 200px;
|
}
|
|
.loading-spinner {
|
border: 4px solid rgba(0, 0, 0, 0.1);
|
border-radius: 50%;
|
border-top: 4px solid #1890ff;
|
width: 40px;
|
height: 40px;
|
animation: spin 1s linear infinite;
|
}
|
|
@keyframes spin {
|
0% { transform: rotate(0deg); }
|
100% { transform: rotate(360deg); }
|
}
|
|
/* 错误提示 */
|
.error-message {
|
background-color: #fff2f0;
|
border: 1px solid #ffccc7;
|
border-radius: 4px;
|
padding: 12px;
|
margin: 16px 0;
|
color: #cf1322;
|
}
|
|
/* 成功提示 */
|
.success-message {
|
background-color: #f6ffed;
|
border: 1px solid #b7eb8f;
|
border-radius: 4px;
|
padding: 12px;
|
margin: 16px 0;
|
color: #52c41a;
|
}
|
|
/* 警告提示 */
|
.warning-message {
|
background-color: #fffbe6;
|
border: 1px solid #ffe58f;
|
border-radius: 4px;
|
padding: 12px;
|
margin: 16px 0;
|
color: #fa8c16;
|
}
|
|
/* 卡片样式增强 */
|
.ant-card {
|
border-radius: 8px;
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
|
transition: all 0.3s ease;
|
}
|
|
.ant-card:hover {
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
|
}
|
|
/* 表格样式增强 */
|
.ant-table {
|
border-radius: 8px;
|
overflow: hidden;
|
}
|
|
.ant-table-thead > tr > th {
|
background-color: #fafafa;
|
font-weight: 600;
|
}
|
|
/* 按钮样式增强 */
|
.ant-btn {
|
border-radius: 4px;
|
transition: all 0.3s ease;
|
}
|
|
.ant-btn:hover {
|
transform: translateY(-1px);
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
}
|
|
/* 输入框样式增强 */
|
.ant-input,
|
.ant-select,
|
.ant-input-number {
|
border-radius: 4px;
|
transition: all 0.3s ease;
|
}
|
|
.ant-input:focus,
|
.ant-select:focus,
|
.ant-input-number:focus {
|
box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
|
}
|
|
/* 响应式导航 */
|
@media (max-width: 768px) {
|
.ant-layout-header {
|
padding: 0 16px !important;
|
}
|
|
.ant-menu {
|
display: none;
|
}
|
|
.mobile-menu-button {
|
display: block;
|
}
|
}
|
|
.mobile-menu-button {
|
display: none;
|
color: white;
|
font-size: 20px;
|
cursor: pointer;
|
}
|
|
/* 滚动条样式 */
|
::-webkit-scrollbar {
|
width: 8px;
|
height: 8px;
|
}
|
|
::-webkit-scrollbar-track {
|
background: #f1f1f1;
|
border-radius: 4px;
|
}
|
|
::-webkit-scrollbar-thumb {
|
background: #c1c1c1;
|
border-radius: 4px;
|
}
|
|
::-webkit-scrollbar-thumb:hover {
|
background: #a8a8a8;
|
}
|
|
/* 动画效果 */
|
.fade-enter-active,
|
.fade-leave-active {
|
transition: opacity 0.3s ease;
|
}
|
|
.fade-enter-from,
|
.fade-leave-to {
|
opacity: 0;
|
}
|
|
.slide-enter-active,
|
.slide-leave-active {
|
transition: transform 0.3s ease;
|
}
|
|
.slide-enter-from {
|
transform: translateX(-100%);
|
}
|
|
.slide-leave-to {
|
transform: translateX(100%);
|
}
|
|
/* 工具提示样式 */
|
.ant-tooltip {
|
font-size: 12px;
|
}
|
|
/* 标签样式 */
|
.ant-tag {
|
border-radius: 4px;
|
}
|
|
/* 统计卡片样式 */
|
.ant-statistic-title {
|
font-size: 14px;
|
color: #666;
|
}
|
|
.ant-statistic-content {
|
font-size: 24px;
|
font-weight: bold;
|
}
|
|
/* 进度条样式 */
|
.ant-progress {
|
margin: 8px 0;
|
}
|
|
/* 时间选择器样式 */
|
.ant-picker {
|
border-radius: 4px;
|
}
|
|
/* 滑块样式 */
|
.ant-slider {
|
margin: 8px 0;
|
}
|
|
/* 复选框样式 */
|
.ant-checkbox {
|
margin-right: 8px;
|
}
|
|
/* 表单样式 */
|
.ant-form-item {
|
margin-bottom: 16px;
|
}
|
|
.ant-form-item-label {
|
font-weight: 500;
|
}
|
|
/* 标签页样式 */
|
.ant-tabs {
|
margin-bottom: 16px;
|
}
|
|
.ant-tabs-tab {
|
padding: 12px 16px;
|
}
|
|
.ant-tabs-tab-active {
|
font-weight: 600;
|
}
|
|
/* 分割线样式 */
|
.ant-divider {
|
margin: 16px 0;
|
}
|
|
/* 空状态样式 */
|
.empty-state {
|
display: flex;
|
flex-direction: column;
|
align-items: center;
|
justify-content: center;
|
padding: 48px 0;
|
color: #999;
|
}
|
|
.empty-state-icon {
|
font-size: 48px;
|
margin-bottom: 16px;
|
}
|
|
.empty-state-text {
|
font-size: 16px;
|
}
|