/* 悦读园地 · 明快农场视觉与轻量动画 */
body {
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 232, 137, .34), transparent 18%),
    linear-gradient(180deg, #eaf8fa 0, #f7f7e9 34%, #edf5df 100%);
}

.garden-hero {
  position: relative;
  padding: 28px 30px;
  border: 1px solid rgba(111, 174, 128, .22);
  border-radius: 24px;
  background:
    radial-gradient(circle at 91% 20%, #ffe27a 0 25px, rgba(255, 226, 122, .24) 26px 44px, transparent 45px),
    linear-gradient(150deg, rgba(255,255,255,.92), rgba(235,249,231,.9));
  box-shadow: 0 18px 55px rgba(60, 117, 80, .1);
  overflow: hidden;
}

.garden-hero:after {
  content: '';
  position: absolute;
  right: 16%;
  bottom: -25px;
  width: 180px;
  height: 65px;
  border-radius: 50% 50% 0 0;
  background: #a9d57e;
  box-shadow: 100px 12px 0 #83c879, -100px 18px 0 #c5e394;
  opacity: .58;
  pointer-events: none;
}

.garden-hero > * {
  position: relative;
  z-index: 1;
}

.garden-notice {
  background: linear-gradient(90deg, #fff8cf, #f4f9df);
  border-color: #eee1a6;
  box-shadow: 0 7px 18px rgba(119, 110, 48, .05);
}

.tree-card {
  border-color: #d4e4c8;
  background: linear-gradient(160deg, #fff, #fbfff5);
  box-shadow: 0 12px 30px rgba(56, 105, 70, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.tree-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(56, 105, 70, .14);
}

.tree-card.is-ready {
  border-color: #bfdc8a;
  box-shadow: 0 12px 32px rgba(141, 190, 90, .14);
}

.tree-visual {
  background:
    radial-gradient(ellipse at 20% 23%, rgba(255,255,255,.92) 0 15px, transparent 16px),
    radial-gradient(ellipse at 28% 23%, rgba(255,255,255,.85) 0 22px, transparent 23px),
    linear-gradient(180deg, #91dcf1 0 64%, #91ce6a 65% 77%, #67b95c 78% 100%);
  overflow: hidden;
}

.tree-visual:before {
  content: '';
  position: absolute;
  right: 15px;
  top: 12px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #ffe070;
  box-shadow: 0 0 0 7px rgba(255, 224, 112, .2), 0 0 24px rgba(255, 218, 82, .55);
}

.tree-visual:after {
  content: '';
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -21px;
  height: 55px;
  border-radius: 50% 50% 0 0;
  background: #78bd5e;
  box-shadow: 110px -5px 0 #91cd69;
}

.tree-crown {
  z-index: 1;
  background: radial-gradient(circle at 35% 27%, #b8e77b, #68b568 55%, #3f8c58 100%);
  box-shadow: -27px 18px 0 -10px #82c66d, 28px 18px 0 -10px #55a95e, 0 8px 20px rgba(39, 101, 56, .2);
  transform-origin: 50% 92%;
  animation: treeBreeze 4.8s ease-in-out infinite alternate;
}

.tree-trunk {
  z-index: 1;
  background: linear-gradient(90deg, #8c6036, #bd8b52 45%, #80542f);
}

.fruit {
  z-index: 3;
  width: 17px;
  height: 17px;
  border-color: rgba(255,255,255,.84);
  box-shadow: 0 3px 7px rgba(28, 57, 37, .25), 0 0 8px currentColor;
  animation: fruitSparkle 2.3s ease-in-out infinite;
}

.fruit:after {
  content: '';
  position: absolute;
  left: 3px;
  top: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
}

.tree-card.is-ready .tree-ready {
  background: #fff6b8;
  color: #6e621d;
  box-shadow: 0 4px 12px rgba(112, 101, 35, .12);
  animation: readyPulse 1.8s ease-in-out infinite;
}

.tree-action.can-take {
  background: linear-gradient(180deg, #e9f89d, #cfe978);
  box-shadow: 0 5px 0 #abc758, 0 9px 17px rgba(111, 146, 43, .16);
  transform: translateY(-2px);
}

.tree-action.can-take:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #abc758;
}

.basket-fruit {
  cursor: pointer;
  animation: basketBob 2.1s ease-in-out infinite alternate;
}

.basket-fruit:nth-child(even) {
  animation-delay: -.8s;
}

.friend-tab.active {
  background: linear-gradient(135deg, #236a55, #1d4b3d);
  box-shadow: 0 7px 18px rgba(29, 75, 61, .18);
}

.empty-basket {
  max-width: 155px;
  color: #839087;
  font: 9px/1.5 var(--serif);
  text-align: right;
}

@keyframes treeBreeze {
  0% { transform: translateX(-50%) rotate(-1.8deg); }
  100% { transform: translateX(-50%) rotate(2.3deg); }
}

@keyframes fruitSparkle {
  0%, 100% { transform: translateX(-1px) scale(.94); filter: brightness(.95); }
  50% { transform: translateX(2px) translateY(-2px) scale(1.13); filter: brightness(1.28); }
}

@keyframes readyPulse {
  50% { transform: scale(1.06); }
}

@keyframes basketBob {
  to { transform: translateY(-5px) rotate(4deg); }
}

@media (max-width: 700px) {
  .garden-hero { padding: 22px 19px; }
  .tree-card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tree-crown, .fruit, .tree-ready, .basket-fruit {
    animation: none !important;
  }
}
