/** 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 24rpx;
  height: 220rpx;
  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 .uploaded-img {
  width: 100%;
  height: 100%;
  border-radius: 40rpx 40rpx 0 0;
}

.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);
}
/* List Footer */
.list-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32rpx 0;
}

.no-more-data {
    display: flex;
    align-items: center;
    gap: 16rpx;
    font-size: 24rpx;
    color: #999;
}

.divider-line {
    width: 60rpx;
    height: 2rpx;
    background: #E0E0E0;
}

/* Garden Empty State */
.garden-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 120rpx;
  position: relative;
  overflow: hidden;
}

.empty-sky-scene {
  position: absolute;
  top: 40rpx;
  width: 100%;
  height: 200rpx;
}

.sun-small {
  position: absolute;
  top: 20rpx;
  right: 60rpx;
  width: 80rpx;
  height: 80rpx;
  background: radial-gradient(circle, #FFF176 0%, #FDD835 100%);
  border-radius: 50%;
  box-shadow: 0 0 24rpx rgba(253, 216, 53, 0.4);
}

.cloud-small {
  position: absolute;
  top: 60rpx;
  left: 40rpx;
  width: 100rpx;
  height: 36rpx;
  background: #E1F5FE;
  border-radius: 20rpx;
  opacity: 0.7;
  animation: cloudFloat 8s ease-in-out infinite alternate;
}

.empty-center-icon {
  margin-bottom: 40rpx;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.emoji-sprout {
  font-size: 120rpx;
  line-height: 1;
  position: relative;
  z-index: 2;
  animation: sproutSway 3s ease-in-out infinite;
  transform-origin: bottom center;
}

.soil-base {
  width: 100rpx;
  height: 12rpx;
  background: #EFEBE9;
  border-radius: 50%;
  margin-top: -10rpx;
  z-index: 1;
}

.empty-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16rpx;
}

.msg-title {
  font-size: 36rpx;
  font-weight: 700;
  color: #558B2F;
}

.msg-sub {
  font-size: 28rpx;
  color: #90A4AE;
  font-weight: 500;
}

/* Guide Arrow Animation */
.guide-arrow-box {
  position: fixed;
  bottom: 170rpx;
  right: 80rpx;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: rotate(-10deg);
  z-index: 900;
  pointer-events: none; /* Let touches pass through to underlying nav if needed */
}

.arrow-text {
  font-size: 24rpx;
  font-weight: 600;
  color: #558B2F;
  margin-bottom: -8rpx;
  background: rgba(255, 255, 255, 0.9);
  padding: 4rpx 12rpx;
  border-radius: 12rpx;
  box-shadow: 0 2rpx 8rpx rgba(0,0,0,0.05);
}

.bounce-arrow {
  animation: bounceArrow 1.5s infinite;
}

@keyframes bounceArrow {
  0%, 100% { transform: translateY(0) rotate(-15deg); }
  50% { transform: translateY(10rpx) rotate(-15deg); }
}

@keyframes cloudFloat {
  from { transform: translateX(0); }
  to { transform: translateX(30rpx); }
}

@keyframes sproutSway {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}
