/* 幼儿园关注管理页 —— 移动端优先, 风格与日历页一致 */
:root {
  --fg: #1f2933;
  --muted: #616e7c;
  --line: #e4e7eb;
  --bg: #f7f9fa;
  --card: #ffffff;
  --accent: #c2410c;
  --on: #07c160;
  --on-soft: #e7f5ec;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
/* 关键: 面板声明了 display:flex, 会覆盖 UA 对 [hidden] 的 display:none,
   不加这条登录框和主界面会同时显示 */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--fg);
  font-size: 15px;
  line-height: 1.5;
}

header {
  position: sticky; top: 0; z-index: 10;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 10px 14px;
  display: flex; align-items: baseline; gap: 10px;
}
header .calLink { color: var(--muted); text-decoration: none; font-size: 13px; }
h1 { font-size: 18px; }
#saveState { font-size: 13px; color: var(--muted); }

/* 登录面板: 独占全屏卡片, 与主界面互斥 */
#loginPanel {
  padding: 24px 16px; display: flex; flex-direction: column; gap: 8px;
  max-width: 420px; margin: 10vh auto 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
}
#loginPanel h2 { font-size: 15px; margin-bottom: 4px; }
#loginPanel label { font-size: 13px; color: var(--muted); }
#loginPanel input {
  border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; font-size: 14px; background: var(--card);
}

button {
  border: 1px solid var(--line); background: var(--card);
  border-radius: 8px; padding: 6px 14px; font-size: 14px; color: var(--fg);
}
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button:disabled { opacity: 0.6; }
/* 有未保存改动: 保存按钮描边提示 */
button.primary.dirty { box-shadow: 0 0 0 2px var(--on); }
#saveState { font-weight: 600; }
#saveState:not(:empty) { color: var(--accent); }

/* 地图 */
#map { width: 100%; height: 52vh; min-height: 300px; background: #e8edf1; }

/* 工具条 */
#toolbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 14px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
#search {
  flex: 1; min-width: 140px;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 10px; font-size: 14px;
}
#cnt { font-size: 13px; color: var(--muted); }

/* 幼儿园列表 */
#orgList { padding: 6px 14px 20px; max-width: 720px; }
.org {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; margin-top: 8px;
}
.org.hit { border-color: var(--accent); }
.org .info { min-width: 0; }
.org .info b { display: block; font-size: 14px; }
.logo {
  width: 22px; height: 22px; border-radius: 6px;
  object-fit: cover; vertical-align: -5px; margin-right: 6px;
}
.org .info span {
  display: block; font-size: 12px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.org button { flex-shrink: 0; }
.org button.on { background: var(--on-soft); border-color: var(--on); color: var(--on); font-weight: 600; }

.tip { font-size: 13px; color: var(--muted); padding: 10px 2px; }
.mapmsg { display: block; padding-top: 40px; text-align: center; }
