/* 首页样式 */
.page-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #2E8B57 0%, #3CB371 100%);
}

/* 顶部区域 */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40rpx 24rpx 32rpx;
  color: #fff;
}

.user-info {
  display: flex;
  align-items: center;
}

.avatar {
  width: 80rpx;
  height: 80rpx;
  border-radius: 50%;
  margin-right: 20rpx;
  border: 2rpx solid rgba(255, 255, 255, 0.3);
}

.user-details {
  display: flex;
  flex-direction: column;
}

.nickname {
  font-size: 32rpx;
  font-weight: 600;
  margin-bottom: 8rpx;
}

.location {
  font-size: 24rpx;
  opacity: 0.8;
}

.weather {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.temperature {
  font-size: 36rpx;
  font-weight: 600;
  margin-bottom: 4rpx;
}

.weather-desc {
  font-size: 24rpx;
  opacity: 0.8;
}

/* 统计区域 */
.stats-container {
  margin: 0 24rpx 32rpx;
  background: #fff;
  border-radius: 20rpx;
  padding: 32rpx 24rpx;
  box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32rpx;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24rpx;
  border-radius: 16rpx;
  background: #f8f9fa;
  transition: all 0.3s ease;
}

.stat-item:active {
  background: #e9ecef;
  transform: scale(0.98);
}

.stat-number {
  font-size: 36rpx;
  font-weight: 700;
  color: #2E8B57;
  margin-bottom: 8rpx;
}

.stat-label {
  font-size: 24rpx;
  color: #666;
}

/* 快捷操作 */
.quick-actions {
  margin: 0 24rpx 32rpx;
  background: #fff;
  border-radius: 20rpx;
  padding: 32rpx 24rpx;
  box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.08);
}

.section-title {
  font-size: 32rpx;
  font-weight: 600;
  color: #333;
  margin-bottom: 24rpx;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24rpx;
}

.action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20rpx;
  border-radius: 16rpx;
  transition: all 0.3s ease;
}

.action-item:active {
  background: #f8f9fa;
  transform: scale(0.95);
}

.action-icon {
  width: 64rpx;
  height: 64rpx;
  margin-bottom: 12rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f8f0;
  border-radius: 50%;
}

.action-icon image {
  width: 36rpx;
  height: 36rpx;
}

.action-name {
  font-size: 24rpx;
  color: #666;
  text-align: center;
}

/* 最近活动 */
.recent-activities {
  margin: 0 24rpx 32rpx;
  background: #fff;
  border-radius: 20rpx;
  padding: 32rpx 24rpx;
  box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.08);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24rpx;
}

.section-more {
  font-size: 24rpx;
  color: #2E8B57;
}

.activities-list {
  display: flex;
  flex-direction: column;
}

.activity-item {
  display: flex;
  align-items: center;
  padding: 20rpx 0;
  border-bottom: 1rpx solid #f0f0f0;
  transition: all 0.3s ease;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-item:active {
  background: #f8f9fa;
  margin: 0 -24rpx;
  padding: 20rpx 24rpx;
  border-radius: 12rpx;
}

.activity-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.activity-title {
  font-size: 28rpx;
  color: #333;
  margin-bottom: 8rpx;
  font-weight: 500;
}

.activity-desc {
  font-size: 24rpx;
  color: #666;
  margin-bottom: 8rpx;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-time {
  font-size: 20rpx;
  color: #999;
}

.activity-arrow {
  width: 16rpx;
  height: 16rpx;
  border-top: 2rpx solid #ccc;
  border-right: 2rpx solid #ccc;
  transform: rotate(45deg);
  margin-left: 16rpx;
}

/* 加载状态 */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80rpx 40rpx;
  color: #fff;
}

.loading-spinner {
  width: 48rpx;
  height: 48rpx;
  border: 3rpx solid rgba(255, 255, 255, 0.3);
  border-top: 3rpx solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 24rpx;
}

/* 空状态 */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80rpx 40rpx;
  color: #fff;
  text-align: center;
}

.empty-icon {
  width: 160rpx;
  height: 160rpx;
  margin-bottom: 32rpx;
  opacity: 0.8;
}

.empty-text {
  font-size: 32rpx;
  font-weight: 500;
  margin-bottom: 16rpx;
}

.empty-desc {
  font-size: 24rpx;
  opacity: 0.8;
  line-height: 1.5;
  margin-bottom: 32rpx;
}

/* 响应式适配 */
@media (max-width: 750rpx) {
  .stats-grid {
    gap: 24rpx;
  }
  
  .actions-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16rpx;
  }
  
  .action-icon {
    width: 56rpx;
    height: 56rpx;
  }
  
  .action-icon image {
    width: 32rpx;
    height: 32rpx;
  }
  
  .action-name {
    font-size: 22rpx;
  }
}