/* 庇护面谈归属地 · i589.win 版式 */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: -0.01em;
  font-size: 14px; line-height: 1.5; color: #1d1d1f; overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
#map { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; }
.hidden { display: none !important; }

/* 无 Key 提示 */
.nomap {
  position: fixed; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center;
  background: #f5f5f7; padding: 20px;
}
.nomap-card { background: #fff; border-radius: 16px; padding: 32px; max-width: 420px; text-align: center; box-shadow: 0 4px 24px rgba(0,0,0,.12); }
.nomap-card h2 { font-size: 18px; margin: 0 0 10px; font-weight: 600; }
.nomap-card p { color: #6e6e73; font-size: 14px; margin: 0; }
.nomap-card code { background: #f5f5f7; padding: 2px 8px; border-radius: 6px; font-size: 13px; }

/* 左侧浮层 */
#panel {
  position: fixed; top: 16px; left: 16px; bottom: 16px; width: 380px; max-width: calc(100vw - 32px);
  background: #fff; border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,.18), 0 1px 4px rgba(0,0,0,.12);
  display: flex; flex-direction: column; z-index: 10; overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 18px 14px;
}
.eyebrow { color: #0071e3; font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; }
.panel-head h1 { font-size: 20px; margin: 4px 0 0; font-weight: 600; letter-spacing: -.2px; }
.collapse-btn {
  border: none; background: #f5f5f7; border-radius: 50%; width: 36px; height: 36px;
  font-size: 22px; line-height: 1; cursor: pointer; color: #6e6e73; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.collapse-btn:hover { background: #e8e8ed; }
.panel-body { overflow-y: auto; padding: 4px 18px 18px; flex: 1; }
.panel-body::-webkit-scrollbar { width: 6px; }
.panel-body::-webkit-scrollbar-thumb { background: #d2d2d7; border-radius: 3px; }

/* 搜索框（Google 风格） */
.search-row {
  display: flex; align-items: center; gap: 0;
  border: 1px solid #d2d2d7; border-radius: 24px; overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.08); margin-top: 6px;
  transition: box-shadow .2s, border-color .2s;
}
.search-row:focus-within { border-color: #0071e3; box-shadow: 0 1px 6px rgba(0,125,250,.18); }
.search-row input {
  flex: 1; min-width: 0; border: none; outline: none;
  padding: 12px 4px 12px 18px; font-size: 15px; background: transparent;
}
.search-row input::placeholder { color: #86868b; }
button.primary {
  background: #0071e3; color: #fff; border: none; margin: 4px; border-radius: 20px;
  padding: 9px 20px; font-size: 14px; font-weight: 600; cursor: pointer; flex: none;
  transition: background .2s;
}
button.primary:hover { background: #0077ed; }
button.primary:disabled { opacity: .5; }
.hint { color: #6e6e73; font-size: 12px; margin-top: 8px; padding: 0 4px; }
.manual select {
  width: 100%; border: 1px solid #d2d2d7; border-radius: 12px;
  padding: 10px 12px; font-size: 14px; margin-top: 8px; background: #fff;
}

/* 图层三选一 */
.layers { margin: 16px 0 4px; }
.layers-title { font-size: 12px; font-weight: 600; color: #6e6e73; margin-bottom: 8px; padding: 0 2px; letter-spacing: .3px; }
.vpick { display: flex; gap: 8px; }
.vp {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 4px 10px; border: 1.5px solid #e8e8ed; border-radius: 14px;
  background: #fff; font-size: 13px; color: #1d1d1f; cursor: pointer;
  transition: all .2s;
}
.vp:hover { border-color: #d2d2d7; background: #f5f5f7; }
.vp .dot { width: 14px; height: 14px; }
.vp em { font-style: normal; color: #86868b; font-size: 11px; font-weight: 400; }
.vp.active { border-color: #0071e3; background: #e8f2fd; color: #0066cc; font-weight: 600; box-shadow: 0 1px 4px rgba(0,113,227,.16); }
.vp.active em { color: #0066cc; }
.vhint { margin-top: 10px; font-size: 12px; color: #6e6e73; line-height: 1.6; padding: 0 2px; }

.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.dot.blue { background: #0071e3; }
.dot.orange { background: #f29900; }
.dot.green { background: #34a853; }
.dot.purple { background: #911eb4; }
.dot.red { background: #d70015; }

/* 查询结果卡片 */
#results:empty { display: none; }
.res-block {
  background: #f5f5f7; border-radius: 14px; padding: 14px 16px; margin: 12px 0;
}
.res-block h3 { font-size: 14px; margin: 0 0 10px; color: #1d1d1f; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.res-block .big { font-size: 19px; font-weight: 600; margin: 4px 0; letter-spacing: -.2px; }
.res-block .addr { color: #6e6e73; font-size: 13px; }
.res-block .kv { display: flex; gap: 8px; font-size: 13px; margin: 6px 0; }
.res-block .kv .k { color: #6e6e73; flex: 0 0 64px; }
.res-item { padding: 10px 0; border-top: 1px solid #e8e8ed; font-size: 13px; }
.res-item:first-of-type { border-top: none; padding-top: 2px; }
.res-item .nm { font-weight: 600; }
.res-item .mt { color: #6e6e73; font-size: 12px; margin-top: 2px; }
.res-item .ds { color: #1d7a36; font-weight: 600; font-size: 12px; }
.tag {
  display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: 12px;
  background: #e8e8ed; color: #1d1d1f; margin-left: 6px; vertical-align: 1px;
}
.tag.detained { background: #fff1f1; color: #d70015; }
.tag.center { background: #e8f2fd; color: #0066cc; }
.infer {
  background: #fff4e5; border-radius: 10px;
  padding: 10px 12px; font-size: 12px; margin-top: 10px; color: #7a3d00; line-height: 1.6;
}
.warnbox {
  background: #fff1f1; border-radius: 10px;
  padding: 10px 12px; font-size: 12px; margin-top: 10px; color: #d70015; line-height: 1.6;
}
.hint { color: #6e6e73; font-size: 12px; margin-top: 8px; line-height: 1.6; }

.disclaimer { color: #86868b; font-size: 11px; border-top: 1px solid #f5f5f7; padding-top: 12px; margin-top: 14px; line-height: 1.6; }

/* 展开按钮 */
.expand-btn {
  position: fixed; top: 16px; left: 16px; z-index: 10;
  background: #fff; border: none; border-radius: 24px; padding: 12px 20px;
  font-size: 14px; font-weight: 600; box-shadow: 0 4px 16px rgba(0,0,0,.18); cursor: pointer;
  display: flex; align-items: center; gap: 8px; color: #1d1d1f;
}
#panel.collapsed { transform: translateX(calc(-100% - 20px)); transition: transform .3s cubic-bezier(.4,0,.2,1); }
#panel { transition: transform .3s cubic-bezier(.4,0,.2,1); }

/* InfoWindow */
.iw { font-size: 13px; line-height: 1.6; max-width: 260px; }
.iw b { font-size: 14px; font-weight: 600; }
.iw .tp { color: #6e6e73; font-size: 12px; }

/* 移动端 */
@media (max-width: 640px) {
  #panel {
    top: 0; left: 0; right: 0; bottom: auto; width: auto; max-width: none;
    border-radius: 0 0 20px 20px; max-height: 58vh;
    box-shadow: 0 4px 16px rgba(0,0,0,.16);
  }
  #panel.collapsed { transform: translateY(-110%); }
  .expand-btn { top: 12px; left: 12px; }
  .panel-head { padding: 16px 16px 12px; }
  .panel-head h1 { font-size: 18px; }
}

/* 语言切换 + 双语 */
.head-btns { display: flex; align-items: center; gap: 8px; flex: none; }
.lang-btn {
  border: 1.5px solid #d2d2d7; background: #fff; border-radius: 18px;
  padding: 6px 12px; font-size: 12px; font-weight: 600; color: #1d1d1f; cursor: pointer;
}
.lang-btn:hover { background: #f5f5f7; border-color: #0071e3; color: #0071e3; }
.panel-head h1 .en { display: block; font-size: 12px; font-weight: 400; color: #6e6e73; margin-top: 2px; }
.vp .en { display: block; font-size: 10px; font-weight: 400; color: #86868b; }
.vp.active .en { color: #0066cc; }
.vhint .en { display: block; font-size: 11px; color: #86868b; margin-top: 2px; }

/* 定位按钮 */
.locate-btn {
  position: fixed; right: 16px; bottom: 24px; z-index: 10;
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: none; cursor: pointer;
  font-size: 22px; color: #6e6e73; line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  display: flex; align-items: center; justify-content: center;
  transition: color .2s;
}
.locate-btn:hover { color: #0071e3; }
.locate-btn.locating { color: #0071e3; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .5; } }

/* 办公室辖区胶囊标注 */
.jlabel {
  position: absolute; transform: translate(-50%, -50%);
  background: rgba(255,255,255,.95);
  border: 2px solid; border-radius: 20px;
  padding: 5px 14px; font-size: 13px; font-weight: 600; color: #1d1d1f;
  white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.25);
  pointer-events: none; letter-spacing: .2px;
}
.jlabel small { display: block; font-size: 10px; font-weight: 400; color: #6e6e73; text-align: center; }
.jlabel.territory { font-size: 12px; padding: 4px 10px; opacity: .92; }

/* ===== i589.win 版式 ===== */
#panel { border-radius: 20px; background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 12px 40px rgba(0, 0, 0, .16), 0 0 0 1px rgba(0, 0, 0, .05); }
.panel-head { padding: 20px 20px 14px; align-items: flex-start; }
.panel-body { padding: 4px 20px 20px; }
.eyebrow { text-transform: none; letter-spacing: 0; font-size: 13px; color: #0066cc; text-decoration: none; }
a.eyebrow::before { content: "‹ "; }
a.eyebrow:hover { text-decoration: underline; }
.panel-head h1 { font-size: 22px; letter-spacing: -0.02em; margin-top: 6px; line-height: 1.2; }
.panel-head h1 .en { font-size: 13px; margin-top: 4px; letter-spacing: 0; }
.collapse-btn { background: #e8e8ed; width: 32px; height: 32px; font-size: 20px; }
.collapse-btn:hover { background: #d2d2d7; }
.lang-btn { border: 0; background: #e8e8ed; border-radius: 10px; padding: 7px 12px; color: #1d1d1f; font-weight: 400; }
.lang-btn:hover { background: #d2d2d7; color: #1d1d1f; }
.search-row { border-radius: 12px; box-shadow: none; background: #fff; }
.search-row:focus-within { box-shadow: 0 0 0 4px rgba(0, 125, 250, .18); }
.search-row input { padding: 12px 4px 12px 16px; font-size: 16px; font-family: inherit; }
button.primary { border-radius: 10px; padding: 8px 18px; font-weight: 400; font-family: inherit; }
.manual select { font-family: inherit; }
.layers-title { font-size: 13px; letter-spacing: 0; }
.vp { border: 0; background: #f5f5f7; border-radius: 14px; font-family: inherit; }
.vp:hover { background: #e8e8ed; }
.vp.active { background: #1d1d1f; color: #fff; box-shadow: none; }
.vp.active em, .vp.active .en { color: rgba(255, 255, 255, .7); }
.res-block { background: #f5f5f7; border-radius: 16px; padding: 16px 18px; }
.res-block h3 { font-size: 15px; }
.res-block .big { font-size: 21px; letter-spacing: -0.015em; }
.tag { border-radius: 980px; }
.infer, .warnbox { border-radius: 12px; padding: 12px 14px; font-size: 13px; }
.disclaimer { border-top-color: rgba(0, 0, 0, .08); font-size: 12px; }
.expand-btn { border-radius: 10px; font-family: inherit; font-weight: 400; box-shadow: 0 8px 24px rgba(0, 0, 0, .16); }
.locate-btn { box-shadow: 0 4px 16px rgba(0, 0, 0, .18); }
.jlabel { font-weight: 600; letter-spacing: 0; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
@media (max-width: 640px) { #panel { border-radius: 0 0 22px 22px; } }
