@import "tailwindcss"; @theme { --color-bg: #f4f7f9; --color-sidebar-bg: #001529; --color-sidebar-text: #a6adb4; --color-sidebar-active: #ffffff; --color-sidebar-active-bg: #1890ff; --color-surface: #ffffff; --color-border: #e8e8e8; --color-primary: #1890ff; --color-danger: #f5222d; --color-warning: #faad14; --color-success: #52c41a; --color-text-main: #262626; --color-text-sec: #8c8c8c; --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; } @layer base { html { font-size: 16px; /* 基础字号 */ } body { @apply bg-bg text-text-main font-sans; width: 100vw; height: 100vh; overflow-x: hidden; /* 防止横向滚动 */ text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; } #root { width: 100%; height: 100%; overflow: hidden; } } /* 响应式字体优化 */ h1, .ant-typography h1 { font-size: clamp(1.5rem, 2.5vw, 2rem) !important; } h2, .ant-typography h2 { font-size: clamp(1.25rem, 2vw, 1.75rem) !important; } h3, .ant-typography h3 { font-size: clamp(1.1rem, 1.8vw, 1.5rem) !important; } h4, .ant-typography h4 { font-size: clamp(1rem, 1.5vw, 1.25rem) !important; } /* 统计卡片字体自适应 */ .ant-statistic-content { font-size: clamp(1.2rem, 2vw, 1.8rem) !important; } .ant-statistic-title { color: #000 !important; opacity: 1; font-weight: 800; font-size: clamp(0.8rem, 1.2vw, 1rem) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ant-statistic-content-suffix { font-size: clamp(0.7rem, 1vw, 0.9rem) !important; } /* 全局滚动条优化 */ ::-webkit-scrollbar { width: 6px; height: 6px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.1); border-radius: 10px; } ::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.2); } .custom-scrollbar::-webkit-scrollbar { width: 4px; } .custom-scrollbar::-webkit-scrollbar-track { background: transparent; } .custom-scrollbar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; } .custom-scrollbar::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); } .ant-card-head-title { color: #0837A8; font-weight: 800 !important; font-size: clamp(0.9rem, 1.3vw, 1.1rem) !important; } .ant-card-head{ min-height:44px !important } .ant-card-body{ padding-top:12px !important; padding-bottom:12px !important; } .ant-select-selector,.ant-input,.ant-picker,.ant-input-affix-wrapper{ border-radius:8px !important; } .ant-btn{ border-radius:8px !important; } @keyframes sunRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } @keyframes cloudFloat { from { transform: translateX(-2px); } to { transform: translateX(2px); } } @keyframes rainDrop { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(12px); opacity: 0.4; } }