/* pages/modeCompute/modeCompute.wxss */
|
|
.container {
|
background: linear-gradient(180deg, #f8fafe 0%, #f5f5f5 100%);
|
height: 100vh;
|
width: 100%;
|
box-sizing: border-box;
|
display: flex;
|
flex-direction: column;
|
overflow: hidden;
|
}
|
|
/* 固定头部区域 */
|
.fixed-header {
|
flex-shrink: 0;
|
z-index: 10;
|
background: #fff;
|
height: 25vh;
|
width: 100%;
|
display: flex;
|
flex-direction: column;
|
overflow: hidden;
|
position: relative;
|
}
|
|
/* 头部区域 */
|
.header-section {
|
background: linear-gradient(135deg, #fff 0%, #fafbfc 100%);
|
padding: 15rpx 30rpx;
|
margin: 0;
|
border-radius: 0;
|
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.06);
|
border: none;
|
width: 100%;
|
border-bottom: 1rpx solid #e6f4ff;
|
height: calc(25vh / 3);
|
display: flex;
|
flex-direction: column;
|
justify-content: center;
|
box-sizing: border-box;
|
overflow: hidden;
|
}
|
|
.dropdown-wrapper {
|
display: flex;
|
flex-direction: column;
|
width: 100%;
|
}
|
|
.dropdown-label {
|
font-size: 24rpx;
|
color: #666;
|
margin-bottom: 8rpx;
|
}
|
|
.dropdown-container {
|
display: flex;
|
align-items: center;
|
justify-content: space-between;
|
padding: 12rpx 20rpx;
|
background: linear-gradient(135deg, #f8fafe 0%, #f0f8ff 100%);
|
border-radius: 12rpx;
|
border: 1rpx solid #e6f4ff;
|
transition: all 0.3s ease;
|
position: relative;
|
overflow: hidden;
|
}
|
|
.dropdown-container::before {
|
content: '';
|
position: absolute;
|
top: 0;
|
left: 0;
|
right: 0;
|
bottom: 0;
|
background: linear-gradient(135deg, rgba(24, 144, 255, 0.05) 0%, rgba(24, 144, 255, 0.02) 100%);
|
opacity: 0;
|
transition: opacity 0.3s ease;
|
}
|
|
.dropdown-container:active::before {
|
opacity: 1;
|
}
|
|
.dropdown-text {
|
font-size: 28rpx;
|
color: #333;
|
flex: 1;
|
}
|
|
.dropdown-icon {
|
width: 32rpx;
|
height: 32rpx;
|
margin-left: 20rpx;
|
}
|
|
/* 切换按钮区域 */
|
.toggle-section {
|
background: linear-gradient(135deg, #fff 0%, #fafbfc 100%);
|
padding: 15rpx 30rpx;
|
margin: 0;
|
border-radius: 0;
|
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.06);
|
border: none;
|
width: 100%;
|
border-bottom: 1rpx solid #e6f4ff;
|
height: calc(25vh / 3);
|
display: flex;
|
flex-direction: column;
|
justify-content: center;
|
box-sizing: border-box;
|
overflow: hidden;
|
}
|
|
.toggle-buttons {
|
display: flex;
|
background: linear-gradient(135deg, #f8fafe 0%, #f0f8ff 100%);
|
border-radius: 16rpx;
|
padding: 6rpx;
|
border: 2rpx solid #e6f4ff;
|
position: relative;
|
width: 100%;
|
}
|
|
.toggle-btn {
|
flex: 1;
|
display: flex;
|
align-items: center;
|
justify-content: center;
|
padding: 12rpx 16rpx;
|
border-radius: 10rpx;
|
transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
position: relative;
|
z-index: 1;
|
}
|
|
.toggle-btn.active {
|
background: linear-gradient(135deg, #1890FF 0%, #40a9ff 100%);
|
box-shadow: 0 8rpx 24rpx rgba(24, 144, 255, 0.4);
|
transform: translateY(-2rpx);
|
}
|
|
.toggle-btn.active .toggle-icon {
|
filter: brightness(0) invert(1);
|
}
|
|
.toggle-btn.active text {
|
color: #fff;
|
}
|
|
.toggle-icon {
|
width: 32rpx;
|
height: 32rpx;
|
margin-right: 12rpx;
|
}
|
|
.toggle-btn text {
|
font-size: 24rpx;
|
color: #666;
|
}
|
|
/* 日期筛选区域 */
|
.date-filter-section {
|
background: linear-gradient(135deg, #fff 0%, #fafbfc 100%);
|
padding: 15rpx 30rpx;
|
width: 100%;
|
margin: 0;
|
border-radius: 0;
|
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.06);
|
border: none;
|
border-bottom: none;
|
height: calc(25vh / 3);
|
display: flex;
|
flex-direction: column;
|
justify-content: center;
|
box-sizing: border-box;
|
overflow: hidden;
|
}
|
|
.date-filter {
|
display: flex;
|
gap: 20rpx;
|
width: 100%;
|
}
|
|
.date-item {
|
flex: 1;
|
display: flex;
|
flex-direction: column;
|
}
|
|
.date-label {
|
font-size: 22rpx;
|
color: #666;
|
margin-bottom: 8rpx;
|
}
|
|
.date-picker {
|
display: flex;
|
align-items: center;
|
justify-content: space-between;
|
padding: 10rpx 20rpx;
|
background: linear-gradient(135deg, #f8fafe 0%, #f0f8ff 100%);
|
border-radius: 10rpx;
|
border: 1rpx solid #e6f4ff;
|
}
|
|
.date-text {
|
font-size: 24rpx;
|
color: #333;
|
flex: 1;
|
}
|
|
.date-icon {
|
width: 32rpx;
|
height: 32rpx;
|
margin-left: 20rpx;
|
}
|
|
/* 滚动内容区域 */
|
.content-scroll {
|
flex: 1;
|
height: 0;
|
background: #f5f5f5;
|
height: 75vh;
|
}
|
|
/* 内容展示区域 */
|
.content-section {
|
background: linear-gradient(135deg, #fff 0%, #fafbfc 100%);
|
margin: 0;
|
border-radius: 0;
|
box-shadow: none;
|
overflow: hidden;
|
border: none;
|
position: relative;
|
min-height: 100%;
|
}
|
|
.content-section::before {
|
content: '';
|
position: absolute;
|
top: 0;
|
left: 0;
|
right: 0;
|
height: 4rpx;
|
background: linear-gradient(90deg, #1890FF 0%, #40a9ff 50%, #1890FF 100%);
|
border-radius: 0;
|
}
|
|
/* 加载状态 */
|
.loading-container {
|
display: flex;
|
flex-direction: column;
|
align-items: center;
|
justify-content: center;
|
padding: 120rpx 40rpx;
|
}
|
|
.loading-spinner {
|
width: 60rpx;
|
height: 60rpx;
|
border: 6rpx solid #f0f8ff;
|
border-top: 6rpx solid #1890FF;
|
border-radius: 50%;
|
animation: spin 1s linear infinite;
|
margin-bottom: 30rpx;
|
}
|
|
.loading-text {
|
font-size: 28rpx;
|
color: #666;
|
animation: pulse 1.5s ease-in-out infinite;
|
}
|
|
@keyframes spin {
|
0% { transform: rotate(0deg); }
|
100% { transform: rotate(360deg); }
|
}
|
|
@keyframes pulse {
|
0%, 100% { opacity: 0.6; }
|
50% { opacity: 1; }
|
}
|
|
/* 图表区域 */
|
.chart-container {
|
padding: 20rpx;
|
height: 100%;
|
display: block;
|
min-height: 70vh;
|
width: 100%;
|
}
|
|
|
.chart-canvas {
|
width: 100%;
|
height: 60vh;
|
display: block;
|
flex: 1;
|
}
|
|
/* 列表区域 */
|
.list-container {
|
padding: 0;
|
height: 100%;
|
display: flex;
|
flex-direction: column;
|
min-height: 70vh;
|
}
|
|
|
|
/* 表格样式 */
|
.table-header,
|
.table-row {
|
display: flex;
|
align-items: center;
|
border-bottom: 1rpx solid #f0f0f0;
|
}
|
|
.table-header {
|
background: linear-gradient(135deg, #f8fafe 0%, #f0f8ff 100%);
|
padding: 24rpx 25rpx;
|
border-radius: 0;
|
border-bottom: 2rpx solid #e6f4ff;
|
position: sticky;
|
top: 0;
|
z-index: 10;
|
flex-shrink: 0;
|
}
|
|
.table-row {
|
padding: 28rpx 25rpx;
|
transition: background-color 0.2s ease;
|
}
|
|
.table-row:nth-child(even) {
|
background-color: rgba(248, 250, 254, 0.3);
|
}
|
|
.table-row:hover {
|
background-color: rgba(24, 144, 255, 0.05);
|
}
|
|
.table-row:last-child {
|
border-bottom: none;
|
}
|
|
.table-cell {
|
flex: 1;
|
text-align: center;
|
font-size: 26rpx;
|
color: #333;
|
padding: 0 12rpx;
|
word-break: break-all;
|
line-height: 1.5;
|
font-weight: 400;
|
}
|
|
.header-cell {
|
font-weight: 600;
|
color: #1890FF;
|
font-size: 28rpx;
|
letter-spacing: 0.5rpx;
|
}
|
|
.table-scroll {
|
flex: 1;
|
min-height: 60vh;
|
overflow-y: auto;
|
}
|
|
/* 无数据状态 */
|
.no-data {
|
display: flex;
|
flex-direction: column;
|
align-items: center;
|
justify-content: center;
|
padding: 80rpx 40rpx;
|
}
|
|
.no-data-img {
|
width: 200rpx;
|
height: 200rpx;
|
margin-bottom: 20rpx;
|
opacity: 0.7;
|
}
|
|
.no-data-text {
|
font-size: 32rpx;
|
color: #999;
|
}
|
|
/* 弹窗样式 */
|
.popup-content {
|
background-color: #fff;
|
border-radius: 16rpx 16rpx 0 0;
|
max-height: 70vh;
|
}
|
|
.popup-header {
|
padding: 30rpx;
|
text-align: center;
|
border-bottom: 1rpx solid #f0f0f0;
|
}
|
|
.popup-title {
|
font-size: 32rpx;
|
font-weight: 500;
|
color: #333;
|
}
|
|
.popup-body {
|
padding: 20rpx;
|
max-height: 50vh;
|
overflow-y: auto;
|
}
|
|
.crop-item {
|
padding: 30rpx;
|
border-radius: 12rpx;
|
margin-bottom: 20rpx;
|
border: 1rpx solid #e9ecef;
|
transition: all 0.3s;
|
}
|
|
.crop-item:last-child {
|
margin-bottom: 0;
|
}
|
|
.crop-item.selected {
|
background-color: #e6f4ff;
|
border-color: #1890FF;
|
}
|
|
.crop-name {
|
font-size: 32rpx;
|
font-weight: 600;
|
color: #333;
|
margin-bottom: 8rpx;
|
display: block;
|
}
|
|
.crop-info {
|
display: flex;
|
align-items: center;
|
margin-top: 8rpx;
|
}
|
|
.crop-et0 {
|
font-size: 26rpx;
|
color: #1890FF;
|
background-color: rgba(24, 144, 255, 0.1);
|
padding: 4rpx 12rpx;
|
border-radius: 12rpx;
|
display: inline-block;
|
}
|
|
/* 响应式设计 */
|
@media (max-width: 750rpx) {
|
.container {
|
padding-bottom: 0;
|
}
|
|
.header-section,
|
.toggle-section,
|
.date-filter-section {
|
margin: 0;
|
padding: 30rpx 20rpx;
|
border-radius: 0;
|
}
|
|
.content-section {
|
margin: 0;
|
border-radius: 0;
|
}
|
|
.date-filter {
|
flex-direction: column;
|
gap: 30rpx;
|
}
|
|
.table-cell {
|
font-size: 22rpx;
|
padding: 0 6rpx;
|
}
|
|
.header-cell {
|
font-size: 24rpx;
|
}
|
|
|
|
|
|
.toggle-btn {
|
padding: 20rpx 16rpx;
|
}
|
|
.toggle-icon {
|
width: 28rpx;
|
height: 28rpx;
|
margin-right: 8rpx;
|
}
|
|
.toggle-btn text {
|
font-size: 26rpx;
|
}
|
}
|
|
/* 动画效果 */
|
.toggle-btn:active {
|
transform: scale(0.98);
|
}
|
|
.dropdown-container:active,
|
.date-picker:active {
|
background-color: #e9ecef;
|
}
|
|
.crop-item:active {
|
transform: scale(0.98);
|
}
|
|
/* 手机端优化 */
|
.dropdown-container:active {
|
background: linear-gradient(135deg, #e6f4ff 0%, #d6efff 100%);
|
transform: scale(0.98);
|
}
|
|
.date-picker:active {
|
background: linear-gradient(135deg, #e6f4ff 0%, #d6efff 100%);
|
transform: scale(0.98);
|
}
|
|
/* 增强点击反馈 */
|
.toggle-btn:active {
|
transform: scale(0.95) translateY(-1rpx);
|
}
|
|
/* 优化滚动性能 */
|
.table-scroll {
|
-webkit-overflow-scrolling: touch;
|
}
|
|
.popup-body {
|
-webkit-overflow-scrolling: touch;
|
}
|
|
/* 确保图表在暗色主题下可见 */
|
@media (prefers-color-scheme: dark) {
|
.chart-canvas {
|
background-color: #1a1a1a;
|
}
|
}
|