/** pages/garden/index.wxss **/ .garden-page { height: 100vh; display: flex; flex-direction: column; background-color: #FFFFFF; position: relative; overflow: hidden; } .page-header.with-banner { padding: 40rpx 40rpx 20rpx; background: white; z-index: 10; } .date-text { font-size: 26rpx; color: #558B2F; /* var(--primary) */ margin-bottom: 8rpx; font-weight: 700; text-transform: uppercase; letter-spacing: 1rpx; } .greeting-main { font-size: 56rpx; font-weight: 800; background: linear-gradient(120deg, #33691E, #689F38); -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; margin-bottom: 12rpx; line-height: 1.2; } .subtitle { font-size: 30rpx; color: #90A4AE; font-weight: 500; } .banner-container { margin: 0 40rpx 48rpx; height: 280rpx; border-radius: 40rpx; overflow: hidden; position: relative; box-shadow: 0 12rpx 32rpx rgba(85, 139, 47, 0.15); flex-shrink: 0; } .garden-banner { width: 100%; height: 100%; } .banner-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 24rpx 32rpx; background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 100%); display: flex; align-items: flex-end; } .count-tag { color: white; font-size: 24rpx; font-weight: 600; background: rgba(255, 255, 255, 0.2); padding: 8rpx 20rpx; border-radius: 24rpx; backdrop-filter: blur(8rpx); border: 1rpx solid rgba(255, 255, 255, 0.3); } .garden-list-wrapper { flex: 1; background: #F4F6F0; border-top-left-radius: 60rpx; border-top-right-radius: 60rpx; padding: 48rpx 40rpx 0; box-shadow: 0 -8rpx 40rpx rgba(0,0,0,0.05); overflow: hidden; display: flex; flex-direction: column; } .garden-list-container { height: 100%; } /* Plant Grid Layout */ .plant-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32rpx; padding-bottom: 40rpx; } .plant-card { background: rgba(255, 255, 255, 0.9); border-radius: 40rpx; overflow: hidden; box-shadow: 0 8rpx 24rpx rgba(85, 139, 47, 0.08), inset 0 0 0 2rpx rgba(255, 255, 255, 0.6); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); display: flex; flex-direction: column; position: relative; } .plant-card:active { transform: translateY(-8rpx); box-shadow: 0 16rpx 32rpx rgba(85, 139, 47, 0.15); } .plant-image-container { height: 300rpx; position: relative; background: #f0f0f0; overflow: hidden; } .plant-image-container t-image { width: 100%; height: 100%; transition: transform 0.6s ease; } .days-badge { position: absolute; top: 20rpx; right: 20rpx; background: rgba(255, 255, 255, 0.95); color: #33691E; padding: 8rpx 20rpx; border-radius: 20rpx; font-size: 20rpx; font-weight: 800; box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1); } .plant-info { padding: 28rpx; display: flex; flex-direction: column; } .plant-name { font-size: 32rpx; font-weight: 700; color: #263238; margin-bottom: 8rpx; } .status-wrap { display: flex; } .status { font-size: 22rpx; color: #33691E; background: #DCEDC8; padding: 4rpx 16rpx; border-radius: 12rpx; font-weight: 600; } /* Custom Floating Button */ .floating-add-btn { position: fixed; right: 40rpx; bottom: 60rpx; background: #558B2F; color: white; padding: 24rpx 40rpx; border-radius: 60rpx; display: flex; align-items: center; gap: 12rpx; box-shadow: 0 12rpx 32rpx rgba(85, 139, 47, 0.4); z-index: 1000; font-size: 28rpx; font-weight: 700; transition: all 0.2s ease; } .floating-add-btn:active { transform: scale(0.92); box-shadow: 0 4rpx 16rpx rgba(85, 139, 47, 0.2); }