.land-shell {
  --land-orange: #bf4410;
  --land-ink: #242820;
  --land-muted: #5c6357;
  color: var(--land-ink);
  font-size: 1.25rem;
  line-height: 1.55;
  max-width: 1480px;
  margin: auto;
}
.land-shell * {
  box-sizing: border-box;
}
.land-shell button,
.land-shell input,
.land-shell textarea {
  font: inherit;
}
.land-shell button {
  cursor: pointer;
}
.land-shell button:disabled {
  cursor: default;
  opacity: 0.55;
}
.land-shell h1,
.land-shell h2,
.land-shell h3,
.land-shell p {
  margin: 0;
}
.land-shell h1 {
  font-size: clamp(2.125rem, 1.487rem + 3vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -1px;
}
.land-shell h2 {
  font-size: 1.625rem;
  line-height: 1.3;
}
.land-shell h3 {
  font-size: 1.4375rem;
  line-height: 1.4;
}
.land-shell :focus-visible {
  outline: 4px solid var(--land-orange);
  outline-offset: 4px;
}
.land-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 15px 0 28px;
}
.land-header p:not(.land-eyebrow) {
  margin-top: 14px;
  color: var(--land-muted);
}
.land-eyebrow {
  font-size: 1.25rem;
  color: var(--land-orange);
  margin-bottom: 12px !important;
  font-weight: 700;
}
.land-count {
  white-space: nowrap;
  background: white;
  border: 1px solid #deded8;
  border-radius: 18px;
  padding: 14px 22px;
  font-weight: 700;
}
.land-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 12px 20px;
  border: 1px solid #d3d5ce;
  border-radius: 14px;
  background: #fff;
  color: var(--land-ink);
  font-size: 1.25rem !important;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}
.land-button:hover {
  background: #f5f5f7;
}
.land-primary {
  background: var(--land-orange);
  color: white;
  border-color: var(--land-orange);
}
.land-primary:hover {
  background: #a6380c;
}
.land-button-selected {
  color: #a4350e;
  background: #fff1e9;
  border: 2px solid var(--land-orange);
  padding: 11px 19px;
}
.land-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.land-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.land-templates {
  position: relative;
}
.land-templates summary {
  list-style: none;
  cursor: pointer;
}
.land-templates summary::-webkit-details-marker {
  display: none;
}
.land-template-options {
  position: absolute;
  z-index: 3;
  top: calc(100% + 8px);
  left: 0;
  width: 350px;
  max-width: 85vw;
  display: grid;
  gap: 8px;
  padding: 10px;
  background: white;
  box-shadow: 0 10px 35px #2222;
  border: 1px solid #ddd;
  border-radius: 18px;
}
.land-template-options button {
  align-items: flex-start;
  flex-direction: column;
  text-align: left;
}
.land-template-options span {
  font-size: 1.25rem;
  color: var(--land-muted);
  font-weight: 400;
}
.land-demo {
  background: #fff4ec;
  border: 1px solid #efcdbb;
  border-radius: 18px;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.land-demo strong {
  font-size: 1.4375rem;
}
.land-demo span {
  flex: 1;
  min-width: 250px;
  color: #714527;
}
.land-draw-controls {
  background: #fff2e9;
  border: 2px solid var(--land-orange);
  border-radius: 18px;
  padding: 20px;
  margin: 20px 0;
}
.land-draw-controls p {
  margin: 8px 0 14px;
}
.land-point-count {
  display: block;
  margin-top: 12px;
  color: var(--land-muted);
}
.land-status {
  min-height: 0;
  color: #924016;
  margin: 12px 0 !important;
}
.land-status:empty {
  display: none;
}
.land-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.85fr);
  gap: 26px;
  align-items: start;
}
.land-map-column {
  min-width: 0;
}
.land-map-wrap {
  border: 1px solid #d6ddd1;
  border-radius: 22px;
  overflow: hidden;
  background: #eef2e8;
}
.land-map {
  display: block;
  width: 100%;
  height: auto;
  min-height: 260px;
  touch-action: pan-y;
}
.land-map-drawing {
  touch-action: none;
  cursor: crosshair;
  user-select: none;
}
.land-map-plot {
  cursor: pointer;
  outline: none;
}
.land-map-drawing .land-map-plot {
  cursor: crosshair;
}
.land-polygon {
  fill: #d7e8c5;
  stroke: #91aa78;
  stroke-width: 3;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.land-kind-rest {
  fill: #e9e2ce;
  stroke: #b1a37c;
}
.land-kind-path {
  fill: #e3e4df;
  stroke: #a4a69d;
  stroke-dasharray: 8 6;
}
.land-map-selected .land-polygon,
.land-map-plot:focus .land-polygon {
  stroke: var(--land-orange);
  stroke-width: 5;
  fill: #e3edce;
}
.land-map-label {
  font-size: 36px;
  font-weight: 750;
  fill: #283c20;
  text-anchor: middle;
  pointer-events: none;
  paint-order: stroke;
  stroke: #eef2e8;
  stroke-width: 3px;
  stroke-linejoin: round;
}
.land-map-crop {
  font-size: 30px;
  fill: #42533a;
  text-anchor: middle;
  pointer-events: none;
  paint-order: stroke;
  stroke: #eef2e8;
  stroke-width: 3px;
}
.land-map-caption {
  font-size: 1.25rem;
  color: var(--land-muted);
  margin: 14px 0 28px !important;
}
.land-preview-line {
  fill: #edb58d55;
  stroke: var(--land-orange);
  stroke-width: 4;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}
.land-preview-close {
  stroke: var(--land-orange);
  stroke-width: 3;
  stroke-dasharray: 8 7;
  vector-effect: non-scaling-stroke;
}
.land-preview-point {
  fill: white;
  stroke: var(--land-orange);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}
.land-plots h2 {
  margin-bottom: 15px;
}
.land-plot-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.land-plot-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 94px;
  text-align: left;
  background: white;
  border: 1px solid #d9ddd4;
  border-radius: 18px;
  padding: 15px;
  color: var(--land-ink);
}
.land-plot-card-selected {
  border: 2px solid var(--land-orange);
  padding: 14px;
  background: #fff8f3;
}
.land-plot-number {
  background: #eff2e9;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1.4375rem;
  font-weight: 700;
}
.land-plot-card-selected .land-plot-number {
  background: var(--land-orange);
  color: white;
}
.land-plot-card-text {
  display: grid;
  gap: 3px;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.land-plot-card-text strong {
  font-size: 1.4375rem;
}
.land-plot-card-text span,
.land-plot-card-text small {
  font-size: 1.25rem;
  color: var(--land-muted);
}
.land-plot-photo {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  overflow: hidden;
  border-radius: 12px;
  display: block;
}
.land-plot-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.land-plot-photo figure {
  margin: 0;
}
.land-plot-photo figcaption,
.land-plot-photo .photo-label {
  display: none;
}
.land-empty {
  background: white;
  border: 1px dashed #cbd0c5;
  border-radius: 18px;
  padding: 28px;
}
.land-empty p {
  margin-top: 8px;
  color: var(--land-muted);
}
.land-card {
  background: #fff;
  border: 1px solid #e0e1dc;
  border-radius: 22px;
  padding: 25px;
}
.land-editor {
  min-width: 0;
}
.land-section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}
.land-small {
  font-size: 1.25rem;
  color: var(--land-muted);
}
.land-field {
  display: grid;
  gap: 9px;
  margin: 20px 0;
  font-weight: 650;
}
.land-field input,
.land-field textarea {
  width: 100%;
  min-height: 56px;
  border: 1px solid #b9bfb2;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 400;
  color: var(--land-ink);
  background: #fff;
  resize: vertical;
}
.land-kind-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
  padding: 0;
  border: 0;
}
.land-kind-options legend {
  font-weight: 700;
  margin-bottom: 12px;
}
.land-crop-section {
  border-top: 1px solid #e4e6de;
  padding-top: 24px;
  margin-top: 24px;
}
.land-hint {
  color: var(--land-muted);
  font-size: 1.25rem;
  margin: 8px 0 16px !important;
}
.land-selection {
  font-weight: 650;
  margin: 10px 0 16px !important;
  color: #42612d;
}
.land-crop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.land-crop {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border: 1px solid #d9ddd4;
  border-radius: 14px;
  padding: 10px 5px;
  background: #fff;
  color: var(--land-ink);
  font-size: 1.25rem;
  min-height: 116px;
  overflow: hidden;
}
.land-crop img {
  display: block;
  width: 62px !important;
  height: 52px !important;
  object-fit: cover;
  border-radius: 8px;
  margin: auto;
}
.land-crop figure {
  margin: 0;
}
.land-crop figcaption,
.land-crop .photo-label {
  display: none;
}
.land-crop-active {
  border: 2px solid var(--land-orange);
  background: #fff5ed;
  padding: 9px 4px;
}
.land-crop-check {
  position: absolute;
  right: 5px;
  top: 3px;
  font-size: 1.25rem;
  color: var(--land-orange);
  font-weight: 800;
  line-height: 1.1;
  background: white;
  border-radius: 50%;
  width: 23px;
  height: 23px;
}
.land-harvest {
  background: #f5f5f7;
  border-radius: 15px;
  padding: 18px;
  margin-top: 24px;
}
.land-harvest p {
  font-size: 1.25rem;
  color: var(--land-muted);
  margin: 8px 0 14px;
}
.land-next {
  border-top: 1px solid #e4e6de;
  border-bottom: 1px solid #e4e6de;
  margin: 26px 0;
  padding: 20px 0;
}
.land-next summary {
  cursor: pointer;
  min-height: 52px;
  align-content: center;
  font-size: 1.4375rem;
  font-weight: 700;
}
.land-next summary span {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--land-muted);
  margin-left: 8px;
}
.land-feedback h3 {
  margin-bottom: 14px;
}
.land-delete {
  color: #a53120;
  margin-top: 10px;
  background: white;
}
.land-confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #17201066;
  padding: 20px;
  overflow: auto;
}
.land-confirm {
  max-width: 570px;
  width: 100%;
  box-shadow: 0 15px 80px #0003;
}
.land-confirm p {
  margin: 18px 0 24px;
}
.land-confirm h2 {
  overflow-wrap: anywhere;
}
@media (min-width: 1400px) {
  .land-crop-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1000px) {
  .land-workspace {
    grid-template-columns: 1fr;
  }
  .land-map {
    min-height: 0;
  }
  .land-crop-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .land-editor {
    padding: 22px;
  }
  .land-plot-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .land-map-label {
    font-size: 2.25rem;
  }
  .land-map-crop {
    font-size: 1.875rem;
  }
}
@media (max-width: 600px) {
  .land-header {
    align-items: flex-start;
  }
  .land-count {
    padding: 10px 13px;
  }
  .land-header h1 {
    font-size: 2.25rem;
  }
  .land-demo {
    padding: 18px;
  }
  .land-demo span {
    min-width: 0;
    flex-basis: 100%;
  }
  .land-demo button {
    width: 100%;
  }
  .land-toolbar > .land-button {
    flex: 1;
    min-width: 145px;
  }
  .land-toolbar .land-templates {
    width: 100%;
  }
  .land-templates summary {
    width: 100%;
  }
  .land-template-options {
    width: 100%;
    max-width: none;
  }
  .land-plot-list {
    grid-template-columns: 1fr;
  }
  .land-card {
    padding: 18px;
    border-radius: 18px;
  }
  .land-crop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .land-button-row > .land-button {
    flex: 1;
  }
  .land-draw-controls {
    padding: 16px;
  }
  .land-draw-controls h2 {
    font-size: 1.5rem;
  }
  .land-map-label {
    font-size: 2.75rem;
  }
  .land-map-crop {
    font-size: 2.1875rem;
  }
  .land-map-wrap {
    border-radius: 16px;
  }
  .land-map-caption {
    margin-bottom: 22px !important;
  }
  .land-confirm-backdrop {
    padding: 14px;
  }
  .land-confirm .land-button-row {
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  .land-shell * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (max-width: 600px) {
  .land-demo {
    padding: 14px;
    gap: 8px;
  }
  .land-demo strong {
    font-size: 1.125rem;
  }
  .land-demo span {
    font-size: 1rem;
  }
  .land-demo button {
    min-height: 48px;
    padding: 9px 13px;
    font-size: 1.125rem !important;
  }
  .land-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
  }
  .land-toolbar > .land-button {
    min-width: 0;
    padding: 10px 5px;
    font-size: 1.125rem !important;
  }
  .land-toolbar .land-templates {
    min-width: 0;
  }
  .land-templates summary {
    min-height: 56px;
    padding: 10px 5px;
    font-size: 1.125rem !important;
  }
  .land-header p:not(.land-eyebrow) {
    font-size: 1.125rem;
  }
  .land-count {
    font-size: 1.125rem;
    padding: 9px 12px;
  }
  .land-header {
    margin-top: 0;
    margin-bottom: 20px;
  }
  .land-template-options {
    width: calc(100vw - 40px);
    left: auto;
    right: 0;
    max-width: none;
  }
}

/* V3：作物库、分批下种、水源遮阴 */
.land-crop-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: #e7efe0;
  color: #2f5a35;
  font-size: 1.625rem;
  font-weight: 700;
}
.land-more {
  margin-top: 12px;
  width: 100%;
}
.land-field select {
  width: 100%;
  min-height: 56px;
  border: 1px solid #b9bfb2;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  color: var(--land-ink);
  font: inherit;
  font-weight: 400;
}
.land-plantings {
  border-top: 1px solid #e4e6de;
  margin-top: 26px;
  padding-top: 20px;
}
.land-planting-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}
.land-planting-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #f6f8f2;
  border-radius: 14px;
  padding: 12px 14px;
}
.land-planting-list li > span {
  display: grid;
  min-width: 0;
}
.land-planting-list li > span span {
  color: var(--land-muted);
  font-size: 1.125rem;
}
.land-planting-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}
.land-planting-add .land-field {
  margin: 12px 0 0;
}
.land-site {
  border: 0;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.land-site legend {
  font-weight: 650;
  margin-bottom: 8px;
}
@media (max-width: 600px) {
  .land-planting-add {
    grid-template-columns: 1fr 1fr;
  }
  .land-planting-add .land-button {
    grid-column: 1 / -1;
  }
  .land-site .land-button {
    flex: 1 1 40%;
  }
}

/* V3.1（F）：菜地图里的字是 SVG 用户单位（地图宽 1000），手机上地图只有约 300px 宽。
   窄屏只留地块名、把字放大，保证显示出来 ≥16px；作物名看下面的地块列表。 */
@media (max-width: 600px) {
  .land-map-label {
    font-size: 64px;
    stroke-width: 6px;
  }
  .land-map-crop,
  .land-map-plot image {
    display: none;
  }
}
