* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f2f4f5;
  color: #000;
  font-size: 20px;                 /* 16 → 20 */
  -webkit-text-size-adjust: 100%;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}

/* 视图 */
.view[hidden] { display: none !important; }
.view { padding: 0 12px; }

.hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 4px 12px;
}
.hd h1 { font-size: 26px; margin: 0; font-weight: 800; }   /* 20 → 26 */
.hd-date { color: #666; font-size: 17px; }                  /* 13 → 17 */

/* 卡片 */
.card {
  background: #fff; border-radius: 16px; padding: 16px;
  margin-bottom: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.row:last-child { margin-bottom: 0; }
.row label { width: 76px; flex: none; color: #333; font-size: 20px; font-weight: 600; }  /* 14 → 20 */
.grow { flex: 1; min-width: 0; }

input, select {
  width: 100%; padding: 15px 14px; font-size: 22px;         /* 16 → 22 */
  border: 2px solid #c8ccd0; border-radius: 12px;           /* 1px 浅灰 → 2px 深灰 */
  background: #fff; color: #000; font-family: inherit; font-weight: 500;
}
input:focus, select:focus { outline: none; border-color: #2e7d32; }
input:disabled { background: #f0f0f0; color: #555; }

/* 按钮 */
.btn {
  display: block; width: 100%; padding: 16px; font-size: 21px; font-weight: 700;
  border: none; border-radius: 14px; background: #eceff1; color: #000;
  font-family: inherit; cursor: pointer;
}
/* 主打点按钮：高 88px，太阳下戴手套也按得中 */
.btn-lg { padding: 30px 18px; font-size: 30px; font-weight: 800; border-radius: 18px; }
.btn-primary { background: #2e7d32; color: #fff; box-shadow: 0 4px 0 #1b5e20; }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 #1b5e20; }
.btn-save { background: #1565c0; color: #fff; box-shadow: 0 4px 0 #0d47a1; }
.btn-save:active { transform: translateY(2px); box-shadow: 0 2px 0 #0d47a1; }
.btn:disabled { opacity: .55; box-shadow: none; transform: none; }

.btn-mini {
  padding: 12px 16px; font-size: 18px;                      /* 13 → 18，高 32 → 46 */
  border: 2px solid #c8ccd0; border-radius: 10px;
  background: #fff; color: #000; font-weight: 600;
  font-family: inherit; cursor: pointer; text-decoration: none; display: inline-block;
}
.btn-mini.danger { color: #c62828; border-color: #e6a5a5; }
.btn-mini.primary { color: #0d47a1; border-color: #90caf9; background: #f0f7ff; }

.row-btns { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }

/* 云端同步提示 */
.cloud-line { font-size: 18px; margin: 12px 0 4px; line-height: 1.5; font-weight: 600; }
.cloud-line.ok { color: #1b5e20; }
.cloud-line.warn { color: #e65100; }
.cloud-line.editing { color: #0d47a1; }

.hint { color: #555; font-size: 17px; margin-top: 12px; line-height: 1.6; }

/* GPS 状态：形状不变，只放大小圆点 10px → 22px */
.gps-line { display: flex; align-items: center; gap: 12px; font-size: 20px; color: #333; margin-bottom: 16px; font-weight: 600; }
.dot { width: 22px; height: 22px; border-radius: 50%; flex: none; }
.dot.gray { background: #9e9e9e; }
.dot.red { background: #e53935; box-shadow: 0 0 0 4px rgba(229,57,53,.18); }
.dot.orange { background: #fb8c00; box-shadow: 0 0 0 4px rgba(251,140,0,.18); }
.dot.green { background: #2e7d32; box-shadow: 0 0 0 4px rgba(46,125,50,.18); }

/* 点列表 */
.pts-head { display: flex; align-items: center; gap: 10px; font-size: 19px; margin-bottom: 12px; flex-wrap: wrap; }
.pts-head span { flex: 1; color: #333; font-weight: 600; min-width: 130px; }
.pts-head b { color: #2e7d32; font-size: 26px; }
.pts-head small { color: #666; font-size: 15px; margin-left: 4px; font-weight: 400; }
.pts { list-style: none; margin: 0 0 12px; padding: 0; }
.pts li {
  font-size: 18px; color: #222; padding: 11px 0;             /* 12 → 18 */
  border-bottom: 1px solid #eee; font-variant-numeric: tabular-nums;
}
.pts li:last-child { border-bottom: none; }
.pts li b {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: #2e7d32; color: #fff; font-weight: 800; font-size: 18px;
  margin-right: 10px; vertical-align: middle;
}
.pts li .acc { color: #777; font-size: 15px; margin-left: 8px; }
.pts li .ord { color: #2e7d32; margin-left: 8px; font-size: 16px; font-weight: 600; }
.pts li .gap { display: block; color: #555; font-size: 17px; margin-top: 4px; }
.pts li .gap.warn { color: #c62828; font-weight: 700; }

.sketch-wrap { background: #fafbfc; border-radius: 12px; padding: 8px; }
#sketch { width: 100%; height: auto; display: block; }

/* 结果：亩数 46 → 72 */
.result { text-align: center; }
.big-mu { font-size: 20px; color: #333; margin-bottom: 4px; font-weight: 600; }
.big-mu b { font-size: 72px; color: #2e7d32; font-weight: 800; letter-spacing: -2px; }
.result .sub { color: #555; font-size: 18px; margin-bottom: 12px; }
.edges { color: #666; font-size: 16px; margin-bottom: 16px; line-height: 1.7; }
.result .row { text-align: left; }
.result .btn { margin-top: 14px; }

/* 记录/汇总条目 */
.item {
  background: #fff; border-radius: 14px; padding: 16px; margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.item-top { display: flex; align-items: baseline; gap: 10px; }
.item-name { font-weight: 800; font-size: 22px; flex: 1; }   /* 16 → 22 */
.item-mu { color: #2e7d32; font-weight: 800; font-size: 30px; white-space: nowrap; }  /* 20 → 30 */
.item-mu small { font-size: 17px; font-weight: 700; }
.item-meta { color: #666; font-size: 17px; margin-top: 7px; }  /* 12 → 17 */
.item-note { color: #444; font-size: 18px; margin-top: 7px; }
.item-acts { margin-top: 12px; display: flex; gap: 10px; }

.day-hd {
  display: flex; align-items: baseline; gap: 10px;
  padding: 14px 4px 8px; font-size: 21px; font-weight: 800;
}
.day-hd .d-mu { color: #2e7d32; margin-left: auto; font-size: 24px; }

.total {
  display: flex; align-items: baseline; justify-content: center; gap: 10px;
  color: #333; font-size: 19px; font-weight: 600;
}
.total b { font-size: 48px; color: #2e7d32; font-weight: 800; }  /* 34 → 48 */

.empty { text-align: center; color: #888; padding: 50px 0; font-size: 19px; }
.spacer { height: 24px; }

/* 底栏：图标 21 → 28 */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; background: #fff; border-top: 2px solid #dfe2e5;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -2px 8px rgba(0,0,0,.05);
}
.tab {
  flex: 1; border: none; background: none; padding: 11px 0 9px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: #888; font-size: 15px; font-family: inherit; cursor: pointer; font-weight: 600;
}
.tab i { font-size: 28px; font-style: normal; line-height: 1; }
.tab.active { color: #2e7d32; }

/* Toast：15 → 21 */
.toast {
  position: fixed; left: 50%; top: 20%; transform: translateX(-50%);
  background: rgba(0,0,0,.9); color: #fff; padding: 18px 26px;
  border-radius: 14px; font-size: 21px; z-index: 100; max-width: 88%;
  text-align: center; line-height: 1.55; white-space: pre-line; font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.toast[hidden] { display: none; }
