/* 北海旅游信息采集系统 - 采集端样式（移动优先，无构建） */
* { 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;
  font-size: 15px; line-height: 1.6; color: #222; background: #f4f5f7;
  padding-bottom: 76px;
}
a { color: #1a73e8; text-decoration: none; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; background: #fff; border-bottom: 1px solid #eaeaea; font-weight: 600;
}
.topbar .right { font-weight: 400; font-size: 13px; color: #666; }
.wrap { padding: 14px; }
.card { background: #fff; border-radius: 10px; padding: 14px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.card h3 { margin: 0 0 10px; font-size: 15px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat { background: #fff; border-radius: 10px; padding: 12px; text-align: center; }
.stat .num { font-size: 22px; font-weight: 700; color: #1a73e8; }
.stat .label { font-size: 12px; color: #777; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: #555; margin-bottom: 6px; }
.field .req { color: #e53935; }
.field input[type=text], .field input[type=number], .field select, .field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #dcdfe6; border-radius: 8px; font-size: 15px; background: #fff;
}
.field input[readonly] {
  background: #f2f4f7; color: #444; border-color: #e3e6eb;
}
.geo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.geo-row .cap { font-size: 12px; color: #888; margin-bottom: 4px; }
.field textarea { min-height: 72px; }
.field .help { font-size: 12px; color: #999; margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 12px; border: 1px solid #dcdfe6; border-radius: 20px; background: #fff; font-size: 14px;
}
.chip.on { border-color: #1a73e8; background: #e8f0fe; color: #1a73e8; }
.btn {
  display: block; width: 100%; padding: 13px; border: none; border-radius: 8px; font-size: 16px;
  background: #1a73e8; color: #fff; text-align: center;
}
.btn.secondary { background: #fff; color: #1a73e8; border: 1px solid #1a73e8; }
.btn.gray { background: #eee; color: #444; }
.btn.danger { background: #e53935; }
.btn:disabled { opacity: .6; }
.btn-row { display: flex; gap: 10px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.badge.s0 { background: #eee; color: #666; }
.badge.s1 { background: #fff4e5; color: #b26a00; }
.badge.s2 { background: #e6f4ea; color: #1e7b34; }
.badge.s3 { background: #fdecea; color: #c62828; }
.badge.s5 { background: #e8f0fe; color: #1a73e8; }
.badge.s6 { background: #f0f0f0; color: #777; }
.list-item { background: #fff; border-radius: 10px; padding: 12px; margin-bottom: 10px; }
.list-item .t { display: flex; justify-content: space-between; align-items: center; }
.list-item .m { font-size: 12px; color: #888; margin-top: 4px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 14px 0; }
.tabs a { padding: 6px 12px; border-radius: 16px; background: #fff; color: #555; font-size: 14px; white-space: nowrap; }
.tabs a.on { background: #1a73e8; color: #fff; }
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; display: flex; background: #fff;
  border-top: 1px solid #eaeaea; padding: 8px 0 10px;
}
.bottom-nav a { flex: 1; text-align: center; font-size: 12px; color: #777; }
.bottom-nav a.on { color: #1a73e8; font-weight: 600; }
.bottom-nav a .ico { display: block; font-size: 18px; line-height: 1.2; }
.net-bar {
  position: fixed; left: 0; right: 0; top: 0; z-index: 60; padding: 4px 10px; font-size: 12px;
  color: #fff; background: #e53935; text-align: center;
}
.net-bar.ok { background: #2e7d32; }
.track-bar {
  position: fixed; left: 50%; bottom: 74px; transform: translateX(-50%); z-index: 55;
  display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 12px; border-radius: 18px;
  background: rgba(0, 0, 0, .74); color: #fff; font-size: 12px; white-space: nowrap; max-width: 92vw;
}
.track-bar.warn { background: rgba(230, 145, 0, .92); }
.track-bar.error { background: rgba(198, 40, 40, .92); }
.track-bar button {
  border: 0; border-radius: 12px; padding: 3px 9px; font-size: 12px; background: #fff; color: #222;
}
.track-bar button[disabled] { background: rgba(255, 255, 255, .5); }
.toast {
  position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); z-index: 100;
  background: rgba(0,0,0,.82); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-size: 14px; max-width: 84vw; text-align: center;
}
.picker-map { width: 100%; height: 260px; border-radius: 10px; overflow: hidden; background: #e9eef3; }
/* 地图选点：容器 + 十字准星（拖动地图，准星对准门店） */
.picker-map-wrap { position: relative; }
.picker-map-wrap .geo-cross {
  position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px;
  z-index: 5; pointer-events: none;
}
.picker-map-wrap .geo-cross::before,
.picker-map-wrap .geo-cross::after {
  content: ''; position: absolute; background: #e53935; box-shadow: 0 0 3px rgba(0, 0, 0, .6);
}
.picker-map-wrap .geo-cross::before { left: 11px; top: 0; width: 2px; height: 24px; }
.picker-map-wrap .geo-cross::after { left: 0; top: 11px; width: 24px; height: 2px; }
.map-loading {
  display: flex; align-items: center; justify-content: center; height: 100%; padding: 0 14px;
  color: #999; font-size: 13px; text-align: center;
}
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo-grid .ph, .photo-grid .add {
  position: relative; padding-top: 100%; border-radius: 8px; overflow: hidden; background: #eef1f4;
}
.photo-grid .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-grid .add { border: 1px dashed #bbb; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #999; }
.photo-grid .ph .del {
  position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,.6); color: #fff; font-size: 14px; line-height: 22px; text-align: center;
}
.warn { background: #fff8e1; border: 1px solid #ffe082; border-radius: 8px; padding: 10px; font-size: 13px; color: #8d6e00; }
.gray-note { color: #888; font-size: 13px; }
table.data { width: 100%; border-collapse: collapse; background: #fff; font-size: 13px; }
table.data th, table.data td { padding: 8px; border-bottom: 1px solid #eee; text-align: left; }
table.data th { background: #fafafa; font-weight: 600; }
.back-link { display: inline-block; margin-bottom: 10px; font-size: 14px; }
