/* ===== 农场场景 ===== */
.farm-scene {
  background: linear-gradient(180deg, #6b3e1f 0%, #7f4f24 30%, #587a3d 100%);
  padding: 24px;
  justify-content: flex-start;
}

.farm-topbar {
  width: 100%;
  max-width: 1100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 12px;
  flex-wrap: wrap;
}

.farm-back-button {
  font-size: 14px;
  padding: 10px 18px;
  background: #f7d774;
}

.farm-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.farm-badge {
  min-width: 140px;
  padding: 10px 14px;
  border: 4px solid #000;
  background: #f6e7b0;
  color: #2b1d0e;
  box-shadow: 4px 4px 0 #000;
  font-size: 14px;
  line-height: 1.5;
}

.farm-title {
  font-size: 34px;
  color: #ffe08a;
  margin-bottom: 18px;
  text-shadow: 3px 3px 0 #000;
  letter-spacing: 4px;
}

.farm-content {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 24px;
}

.farm-land-panel,
.farm-control-panel {
  border: 4px solid #000;
  box-shadow: 6px 6px 0 #000;
}

.farm-land-panel {
  background: #d9c28a;
  padding: 20px;
}

.farm-subtitle {
  font-size: 22px;
  color: #5c3415;
  margin-bottom: 16px;
  text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.2);
}

.farm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.plot-card {
  border: 4px solid #000;
  background: #8b5a2b;
  padding: 12px;
  cursor: pointer;
  box-shadow: 4px 4px 0 #000;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.plot-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000;
}

.plot-card.selected {
  outline: 4px solid #ffe066;
  outline-offset: 2px;
}

.plot-title {
  font-size: 16px;
  color: #fff2cc;
  margin-bottom: 10px;
}

.plot-stage {
  height: 130px;
  border: 4px solid #000;
  background: #b07d42;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* 土地纹理 */
.plot-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(0, 0, 0, 0.08) 18% 22%, transparent 22% 40%, rgba(0, 0, 0, 0.08) 40% 44%, transparent 44% 62%, rgba(0, 0, 0, 0.08) 62% 66%, transparent 66% 100%);
  pointer-events: none;
}

.plot-soil {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 52px;
  background: #6f4518;
  border-top: 4px solid #000;
}

.crop-sprite {
  position: relative;
  z-index: 2;
  margin-bottom: 44px;
}

.crop-seed {
  width: 16px;
  height: 16px;
  background: #f4d35e;
  border: 4px solid #000;
}

.crop-growing {
  width: 24px;
  height: 56px;
  position: relative;
  background: #5a8f29;
  border: 4px solid #000;
}

.crop-growing::before,
.crop-growing::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: #7cb342;
  border: 4px solid #000;
  top: 10px;
}

.crop-growing::before {
  left: -18px;
}

.crop-growing::after {
  right: -18px;
}

.crop-ready {
  width: 34px;
  height: 68px;
  position: relative;
  background: #5a8f29;
  border: 4px solid #000;
}

.crop-ready::before,
.crop-ready::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  background: #8bc34a;
  border: 4px solid #000;
  top: 6px;
}

.crop-ready::before {
  left: -24px;
}

.crop-ready::after {
  right: -24px;
}

.crop-ready .crop-head {
  position: absolute;
  top: -16px;
  left: 1px;
  width: 24px;
  height: 24px;
  background: #a5d66d;
  border: 4px solid #000;
}

.plot-status {
  margin-top: 10px;
  padding: 8px 10px;
  background: #f8e7b8;
  border: 4px solid #000;
  color: #44270b;
  font-size: 14px;
  min-height: 54px;
  line-height: 1.4;
}

.farm-control-panel {
  background: #fff4d6;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.farm-info-box {
  border: 4px solid #000;
  background: #fffdf6;
  padding: 14px;
  color: #53351b;
  line-height: 1.7;
  min-height: 110px;
}

.farm-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.farm-action-button {
  font-size: 18px;
  padding: 14px 18px;
}

.farm-action-button[disabled] {
  cursor: not-allowed;
  opacity: 0.7;
  background: #c8b98b;
  color: #4f4a3f;
}

.farm-message {
  border: 4px solid #000;
  background: #ffe08a;
  color: #4b2d00;
  padding: 14px;
  min-height: 80px;
  line-height: 1.6;
}

.farm-legend {
  border: 4px solid #000;
  background: #f7ebc8;
  padding: 14px;
  color: #5c3c1c;
  line-height: 1.7;
}

@media (max-width: 920px) {
  .farm-content {
    grid-template-columns: 1fr;
  }

  .farm-grid {
    grid-template-columns: 1fr;
  }
}
