/* YIVAHUB · Guangdong industrial belt map.
   Adapted from the offline belt-map template, scoped under #beltmap so the
   site's own header/footer/main rules are not affected. */
#beltmap{--bm-ink:#151617;--bm-navy:#3c5968;--bm-blue:#428aae;--bm-line:#dfe5e8;--bm-muted:#787f82;
  --bm-bg:#f4f6f7;--bm-green:#427e56;--bm-gold:#ad8c4b;--bm-red:#a3473f;--bm-purple:#7a6fa8;
  background:var(--bm-bg);color:var(--bm-ink);height:80vh;min-height:620px;display:flex;flex-direction:column;
  border:1px solid var(--bm-line);border-radius:12px;overflow:hidden;font-size:14px;line-height:1.5}
#beltmap *{box-sizing:border-box}
#beltmap .bm-head{background:var(--bm-navy);color:#fff;padding:10px 16px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;z-index:10}
#beltmap .bm-head h2{font-size:16px;font-weight:700;white-space:nowrap;margin:0;color:#fff;border:0;padding:0}
#beltmap .bm-head .sub{font-size:11px;opacity:.75}
#beltmap .stats{font-size:12px;background:rgba(255,255,255,.12);padding:5px 12px;border-radius:14px;white-space:nowrap}
#beltmap #search{flex:1;min-width:170px;max-width:320px;padding:7px 12px;border:none;border-radius:8px;font-size:13px;outline:none;color:var(--bm-ink)}
#beltmap .chip{font-size:12px;padding:5px 11px;border-radius:14px;border:1px solid rgba(255,255,255,.45);background:transparent;color:#fff;cursor:pointer;white-space:nowrap}
#beltmap .chip.on{background:#fff;color:var(--bm-navy);font-weight:700}
#beltmap .btn{font-size:12px;padding:6px 12px;border-radius:6px;border:1px solid rgba(255,255,255,.45);background:transparent;color:#fff;cursor:pointer}
#beltmap .btn:hover{background:rgba(255,255,255,.12)}
#beltmap .bm-main{flex:1;display:flex;min-height:0}
#beltmap #mapwrap{flex:1.55;display:flex;flex-direction:column;background:#fff;margin:10px;border-radius:10px;box-shadow:0 1px 4px rgba(0,0,0,.08);overflow:hidden;min-width:0}
#beltmap #maphead{padding:8px 12px;display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--bm-line);flex-wrap:wrap}
#beltmap #crumb{font-size:13px;color:var(--bm-muted)}
#beltmap #crumb b{color:var(--bm-navy);font-size:14.5px}
#beltmap .mchip{font-size:11.5px;padding:4px 10px;border-radius:12px;border:1px solid var(--bm-line);background:#fff;color:var(--bm-muted);cursor:pointer;white-space:nowrap}
#beltmap .mchip.on{border-color:var(--bm-blue);color:var(--bm-blue);background:#f2f8fb;font-weight:700}
#beltmap #backbtn{display:none;font-size:12px;color:var(--bm-blue);background:none;border:1px solid var(--bm-blue);border-radius:5px;padding:3px 10px;cursor:pointer}
#beltmap #legend{margin-left:auto;display:flex;gap:7px;font-size:11px;color:var(--bm-muted);align-items:center;flex-wrap:wrap}
#beltmap .lg{display:flex;align-items:center;gap:4px}
#beltmap .sw{width:11px;height:11px;border-radius:3px;display:inline-block}
#beltmap #chart{flex:1;min-height:0}
#beltmap #panel{width:390px;flex:none;display:flex;flex-direction:column;background:#fff;margin:10px 10px 10px 0;border-radius:10px;box-shadow:0 1px 4px rgba(0,0,0,.08);overflow:hidden}
#beltmap #ptabs{display:flex;gap:6px;padding:10px 12px 0}
#beltmap .ptab{font-size:12px;padding:5px 13px;border-radius:13px;border:1px solid var(--bm-line);background:#fff;color:var(--bm-muted);cursor:pointer}
#beltmap .ptab.on{border-color:var(--bm-blue);color:var(--bm-blue);font-weight:700;background:#f2f8fb}
#beltmap #pinfo{padding:8px 14px 0;font-size:12px;color:var(--bm-muted);line-height:1.6}
#beltmap #pinfo b{color:var(--bm-navy);font-size:14px}
#beltmap #statbars{padding:8px 14px;border-bottom:1px solid var(--bm-line)}
#beltmap .bar{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--bm-muted);margin-bottom:4px}
/* 英文业态名比中文长得多（Agriculture & cultural tourism），标签必须能折行，否则压到条形上 */
#beltmap .bar .bl{flex:0 0 132px;white-space:normal;line-height:1.25}
#beltmap .bar .bt{height:10px;border-radius:5px;flex:0 1 auto}
#beltmap .bar .bv{margin-left:4px;flex:none}
#beltmap #list{flex:1;overflow-y:auto;padding:10px 12px 24px}
#beltmap .grp-h{font-size:12.5px;color:var(--bm-navy);font-weight:700;margin:8px 0 5px;padding:5px 8px;background:#f2f6f8;border-radius:6px}
#beltmap .belt{border:1px solid var(--bm-line);border-radius:8px;padding:9px 11px;margin-bottom:7px;cursor:pointer;transition:.15s;background:#fff}
#beltmap .belt:hover{border-color:var(--bm-blue);box-shadow:0 2px 8px rgba(66,138,174,.15)}
#beltmap .belt .t{display:flex;align-items:center;gap:7px}
#beltmap .belt .t b{font-size:13.5px;color:var(--bm-navy)}
#beltmap .badge{font-size:10px;padding:2px 7px;border-radius:9px;color:#fff;white-space:nowrap;flex:none}
#beltmap .belt .m{font-size:11.5px;color:var(--bm-muted);margin-top:3px;line-height:1.55;overflow-wrap:anywhere}
#beltmap .belt .m em{font-style:normal;color:var(--bm-ink)}
#beltmap .unit{border:1px solid var(--bm-line);border-left:3px solid var(--bm-blue);border-radius:8px;padding:8px 11px;margin-bottom:7px;cursor:pointer;background:#fff}
#beltmap .unit:hover{border-color:var(--bm-blue)}
#beltmap .unit .t{display:flex;align-items:center;gap:7px}
#beltmap .unit .t b{font-size:13px;color:var(--bm-navy)}
#beltmap .unit .lv{font-size:10px;color:#fff;background:var(--bm-gold);border-radius:8px;padding:1px 7px;white-space:nowrap}
#beltmap .unit .m{font-size:11.5px;color:var(--bm-muted);margin-top:3px;line-height:1.5}
#beltmap .unit .g{font-size:10.5px;color:var(--bm-muted)}
#beltmap #detail{display:none;border-bottom:2px solid var(--bm-blue);background:#f7fafc;padding:12px 14px;max-height:46%;overflow-y:auto}
#beltmap #detail h3{font-size:15.5px;color:var(--bm-navy);display:flex;align-items:center;gap:8px;margin:0}
#beltmap #dclose{margin-left:auto;font-size:12px;color:var(--bm-muted);background:none;border:none;cursor:pointer}
#beltmap #detail .row{font-size:12px;margin-top:6px;line-height:1.65}
#beltmap #detail .row b{color:var(--bm-muted);font-weight:400;display:inline-block;width:132px;vertical-align:top}
#beltmap #detail .locate{font-size:12px;color:#fff;background:var(--bm-blue);border:none;border-radius:5px;padding:5px 12px;cursor:pointer;margin-top:8px}
#beltmap .lk{display:inline-block;font-size:11px;color:var(--bm-blue);border:1px solid var(--bm-blue);border-radius:9px;padding:2px 8px;margin:2px 4px 2px 0;cursor:pointer}
#beltmap .lk:hover{background:var(--bm-blue);color:#fff}
#beltmap .dsec{font-size:12.5px;color:var(--bm-navy);font-weight:700;margin:10px 0 4px}
#beltmap #dash{display:none;flex:1;overflow-y:auto;padding:8px 12px 24px}
#beltmap .dchart{height:220px;border:1px solid var(--bm-line);border-radius:8px;margin-bottom:6px;background:#fff}
#beltmap #dc1{height:430px}
#beltmap #jingqi,#beltmap #chainsBox,#beltmap #clustersBox{display:flex;flex-wrap:wrap;gap:6px;padding:2px 0 8px}
#beltmap .jq{font-size:11.5px;padding:5px 10px;border-radius:12px;color:#fff;white-space:nowrap}
#beltmap .jq small{opacity:.75;font-size:10px}
#beltmap .cl{font-size:11.5px;padding:5px 11px;border-radius:12px;border:1px solid var(--bm-line);background:#fff;color:var(--bm-ink);cursor:pointer}
#beltmap .cl.on{border-color:var(--bm-blue);color:var(--bm-blue);font-weight:700;background:#f2f8fb}
#beltmap .chain{font-size:11.5px;background:#fff;border:1px solid var(--bm-line);border-radius:8px;padding:7px 10px;line-height:1.6}
#beltmap .chain b{color:var(--bm-navy)}
#beltmap .chain span{color:var(--bm-muted)}
#beltmap .empty{color:var(--bm-muted);font-size:12.5px;text-align:center;padding:26px 0}
/* Dashboard view takes the full width: in the 390px side panel the 21 city labels
   left almost no plot area for the horizontal GDP bars. */
#beltmap.dashmode #mapwrap{display:none}
#beltmap.dashmode #panel{width:auto;flex:1;margin:10px}
#beltmap.dashmode #dc1{height:520px}
#beltmap.dashmode #dc2{height:300px}
#beltmap #modal{display:none;position:fixed;inset:0;background:rgba(21,22,23,.45);z-index:9999;align-items:center;justify-content:center}
#beltmap #modal .box{background:#fff;border-radius:10px;max-width:660px;width:92%;max-height:80vh;overflow-y:auto;padding:22px 26px}
#beltmap #modal h3{color:var(--bm-navy);font-size:16px;margin-bottom:10px}
#beltmap #modal p{font-size:12.5px;line-height:1.8;color:#333;margin-bottom:8px}
@media(max-width:960px){
  #beltmap{height:auto;min-height:0}
  #beltmap .bm-main{flex-direction:column}
  #beltmap #mapwrap{flex:none;height:56vh;min-height:380px;margin:10px}
  #beltmap #panel{width:auto;margin:0 10px 10px}
  #beltmap #list{max-height:46vh}
  #beltmap #dc1{height:300px}
}
