/* ============================================================
   主页 3D 小组件：林间小屋
   ============================================================ */
.forest-widget-section {
  position: relative;
}
.forest-widget-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 0%, rgba(56, 126, 99, .16), transparent 18rem),
    rgba(5, 25, 19, .72);
  border: 1px solid rgba(224, 237, 226, .15);
  border-radius: 23px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .38);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  backdrop-filter: blur(20px) saturate(120%);
}
.forest-widget-head {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 15px 10px;
}
.forest-widget-kicker {
  margin: 0 0 3px;
  color: rgba(215, 184, 120, .74);
  font-size: 6.5px;
  font-weight: 600;
  letter-spacing: .22em;
  line-height: 1.5;
  text-transform: uppercase;
}
.forest-widget-head h2 {
  margin: 0;
  color: var(--cine-cream, #f2ecdf);
  font-family: var(--serif, Georgia, serif);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .01em;
}
.forest-widget-head h2 small {
  margin-left: 7px;
  color: rgba(199, 214, 202, .56);
  font-family: var(--font, sans-serif);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: .08em;
}
.forest-widget-badge {
  flex: none;
  padding: 4px 7px;
  color: var(--cine-gold, #d7b878);
  background: rgba(215, 184, 120, .08);
  border: 1px solid rgba(215, 184, 120, .24);
  border-radius: 999px;
  font-size: 6.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.forest-stage {
  position: relative;
  width: calc(100% - 20px);
  aspect-ratio: 16 / 10;
  min-height: 238px;
  margin: 0 10px;
  overflow: hidden;
  background: #04130f;
  border: 1px solid rgba(224, 237, 226, .12);
  border-radius: 17px;
  cursor: grab;
  touch-action: none;
}
#forestCanvas {
  display: block;
  width: 100%;
  height: 100%;
}
.forest-stage-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(1, 9, 7, .22) 0%, transparent 20%, transparent 63%, rgba(1, 10, 7, .66) 100%),
    radial-gradient(ellipse at 50% 48%, transparent 42%, rgba(0, 9, 6, .38) 100%);
}
.forest-stage-top,
.forest-stage-bottom {
  position: absolute;
  left: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
  color: rgba(235, 240, 230, .7);
  font-size: 6.5px;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.4;
}
.forest-stage-top { top: 10px; }
.forest-stage-bottom { bottom: 10px; align-items: flex-end; }
.forest-stage-bottom strong {
  color: var(--cine-cream, #f2ecdf);
  font-family: var(--serif, Georgia, serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
}
.forest-stage-bottom span {
  color: rgba(215, 184, 120, .6);
  font-size: 6px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.forest-loading {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  color: rgba(229, 237, 228, .65);
  background: linear-gradient(160deg, #04130f, #092a1f);
  font-size: 8px;
  letter-spacing: .12em;
  transition: opacity .6s ease, visibility .6s ease;
}
.forest-stage.is-ready .forest-loading {
  opacity: 0;
  visibility: hidden;
}
.forest-stage.is-failed .forest-loading {
  color: #d8c08a;
  opacity: 1;
  visibility: visible;
  background: linear-gradient(160deg, #04130f, #0b2b21);
  text-align: center;
  padding: 18px;
}
.forest-widget-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 15px 13px;
  color: rgba(176, 195, 182, .62);
  font-size: 7px;
  letter-spacing: .06em;
  line-height: 1.5;
}
.forest-widget-foot span:last-child {
  color: rgba(215, 184, 120, .54);
  letter-spacing: .12em;
  text-transform: uppercase;
}
@media (max-width: 380px) {
  .forest-widget-head { padding: 13px 13px 9px; }
  .forest-widget-head h2 { font-size: 20px; }
  .forest-stage { width: calc(100% - 16px); margin: 0 8px; min-height: 220px; aspect-ratio: 4 / 3; border-radius: 15px; }
  .forest-widget-foot { padding: 9px 13px 12px; font-size: 6.5px; }
  .forest-stage-top, .forest-stage-bottom { left: 10px; right: 10px; }
  .forest-stage-bottom strong { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .forest-loading { transition: none; }
}
