Files
nxxmdata/data-screen/src/style.css
shenquanyi 2bd1d8c032 buider
2025-08-27 15:36:36 +08:00

105 lines
1.7 KiB
CSS

/* 全局样式 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
color: #ffffff;
overflow: hidden;
height: 100vh;
}
#app {
width: 100vw;
height: 100vh;
overflow: hidden;
}
/* 大屏适配 */
.data-screen {
width: 100%;
height: 100%;
background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
position: relative;
overflow: hidden;
}
/* 卡片样式 */
.card {
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 8px;
backdrop-filter: blur(10px);
padding: 20px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
/* 标题样式 */
.title {
font-size: 24px;
font-weight: bold;
color: #00d4ff;
text-align: center;
margin-bottom: 20px;
text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}
/* 数据项样式 */
.data-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.data-item:last-child {
border-bottom: none;
}
.data-label {
color: #a0a0a0;
font-size: 14px;
}
.data-value {
color: #00ff88;
font-size: 18px;
font-weight: bold;
}
/* 动画效果 */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.fade-in {
animation: fadeIn 0.6s ease-out;
}
/* 响应式设计 */
@media (max-width: 1920px) {
.title {
font-size: 22px;
}
}
@media (max-width: 1366px) {
.title {
font-size: 20px;
}
.card {
padding: 15px;
}
}