Suzhou-SafetyToolsWarning-WX/pages/index/index.wxss

172 lines
2.5 KiB
Plaintext
Raw Normal View History

2025-11-07 14:54:09 +08:00
/* pages/index/index.wxss */
.container {
min-height: 100vh;
background-color: #F5F5F5;
padding-bottom: 20rpx;
}
/* 统计卡片 */
.stats-section {
padding: 32rpx;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.stats-card {
display: flex;
justify-content: space-around;
background: rgba(255, 255, 255, 0.95);
border-radius: 24rpx;
padding: 40rpx 20rpx;
box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.1);
}
.stat-item {
display: flex;
flex-direction: column;
align-items: center;
}
.stat-value {
font-size: 56rpx;
font-weight: bold;
color: #0052D9;
line-height: 1.2;
}
.stat-value.warning {
color: #FF6B00;
}
.stat-value.danger {
color: #E34D59;
}
.stat-label {
font-size: 24rpx;
color: #666;
margin-top: 12rpx;
}
/* 通用区块样式 */
.warning-section,
.quick-actions,
.recent-section {
margin: 32rpx;
background: #fff;
border-radius: 24rpx;
padding: 32rpx;
box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.05);
}
.section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 24rpx;
}
.section-title {
display: flex;
align-items: center;
font-size: 32rpx;
font-weight: bold;
color: #333;
}
.section-title text {
margin-left: 12rpx;
}
.section-more {
display: flex;
align-items: center;
font-size: 26rpx;
color: #999;
}
.section-more text {
margin-right: 4rpx;
}
/* 预警列表 */
.warning-list {
display: flex;
flex-direction: column;
gap: 24rpx;
}
.warning-item {
display: flex;
align-items: center;
padding: 24rpx;
background: #FFF7E6;
border-radius: 16rpx;
border-left: 6rpx solid #FF6B00;
}
.warning-icon {
margin-right: 20rpx;
}
.warning-content {
flex: 1;
}
.warning-title {
font-size: 30rpx;
font-weight: bold;
color: #333;
margin-bottom: 8rpx;
}
.warning-desc {
font-size: 24rpx;
color: #666;
margin-bottom: 8rpx;
}
.warning-time {
font-size: 24rpx;
color: #FF6B00;
}
.warning-tag {
margin-left: 16rpx;
}
/* 快捷入口 */
.action-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 32rpx;
}
.action-item {
display: flex;
flex-direction: column;
align-items: center;
}
.action-icon {
width: 96rpx;
height: 96rpx;
border-radius: 24rpx;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 16rpx;
box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.15);
}
.action-label {
font-size: 24rpx;
color: #666;
text-align: center;
}
/* 最近操作 */
.recent-section {
margin-bottom: 32rpx;
}