/** * 钢材价格查询页面样式 * 使用 TDesign 组件库 + 自定义样式 */ page { background-color: #f5f5f5; height: 100%; } .container { width: 100%; min-height: 100vh; padding-bottom: 120rpx; box-sizing: border-box; } /* ========== 搜索表单区域 ========== */ .search-section { padding: 40rpx 30rpx; margin-bottom: 20rpx; } .section-title { font-size: 36rpx; font-weight: bold; color: #1a1a1a; margin-bottom: 32rpx; padding-left: 16rpx; border-left: 6rpx solid #0052D9; } .form-item { margin-bottom: 24rpx; } .btn-group { display: flex; gap: 20rpx; margin-top: 40rpx; } /* ========== 加载状态 ========== */ t-loading { margin: 40rpx 0; } /* ========== 查询结果区域 ========== */ .result-section { padding: 0 30rpx; width: 100%; box-sizing: border-box; } /* 统计卡片 */ .stats-card { background: #fff; border-radius: 16rpx; padding: 24rpx; margin-bottom: 24rpx; box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.06); box-sizing: border-box; } .stats-title { font-size: 28rpx; font-weight: bold; color: #1a1a1a; margin-bottom: 20rpx; padding-left: 8rpx; } .stats-grid { display: flex; flex-wrap: wrap; gap: 12rpx; } .stats-item { flex: 0 0 calc(100% - 6rpx); background: #fafafa; padding: 20rpx 16rpx; border-radius: 8rpx; text-align: center; box-sizing: border-box; min-height: 120rpx; display: flex; flex-direction: column; justify-content: center; align-items: center; } .stats-label { font-size: 24rpx; color: #8c8c8c; margin-bottom: 8rpx; } .stats-value { font-size: 28rpx; font-weight: bold; color: #1a1a1a; word-break: keep-all; white-space: nowrap; } .stats-value.avg { color: #0052D9; } .stats-value.min { color: #52c41a; } .stats-value.max { color: #ff4d4f; } .stats-trend { margin-top: 16rpx; padding-top: 16rpx; border-top: 1rpx solid #f0f0f0; font-size: 26rpx; color: #595959; text-align: center; display: flex; align-items: center; justify-content: center; gap: 6rpx; flex-wrap: wrap; } .trend-rate { color: #8c8c8c; font-size: 24rpx; } /* 价格列表 */ .price-list { background: #fff; border-radius: 16rpx; padding: 24rpx; box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.06); margin-bottom: 24rpx; } .list-header { font-size: 26rpx; color: #8c8c8c; margin-bottom: 16rpx; padding: 0 8rpx; } .price-card { background: #fff; border-radius: 12rpx; padding: 24rpx; margin-bottom: 16rpx; border: 1rpx solid #f0f0f0; transition: all 0.3s; } .price-card:active { background: #fafafa; transform: scale(0.98); } .price-main { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16rpx; } .price-info { flex: 1; display: flex; align-items: center; flex-wrap: wrap; } .price-region { font-size: 30rpx; font-weight: bold; color: #1a1a1a; margin-right: 8rpx; } .price-separator { color: #d9d9d9; margin: 0 8rpx; } .price-material { font-size: 30rpx; color: #1a1a1a; font-weight: 500; } .price-spec { font-size: 26rpx; color: #8c8c8c; margin-left: 8rpx; } .price-value { font-size: 36rpx; font-weight: bold; color: #ff4d4f; } .price-sub { display: flex; align-items: center; gap: 16rpx; font-size: 24rpx; } .price-date { color: #595959; } /* ========== 欢迎区域 ========== */ .welcome-section { padding: 60rpx 30rpx; } .welcome-card { background: linear-gradient(135deg, #0052D9 0%, #003C9E 100%); border-radius: 24rpx; padding: 60rpx 40rpx; text-align: center; box-shadow: 0 8rpx 24rpx rgba(0, 82, 217, 0.25); margin-bottom: 40rpx; } .welcome-icon { font-size: 120rpx; margin-bottom: 24rpx; } .welcome-title { font-size: 40rpx; font-weight: bold; color: #fff; margin-bottom: 16rpx; } .welcome-desc { font-size: 28rpx; color: rgba(255, 255, 255, 0.9); } .features { display: flex; justify-content: space-around; background: #fff; border-radius: 16rpx; padding: 40rpx; box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.06); } .feature-item { text-align: center; } .feature-icon { font-size: 56rpx; margin-bottom: 12rpx; } .feature-text { font-size: 26rpx; color: #595959; }