/* ==========================================================================
   小浪起始页 · 🗺️ 中国地图留言(map.css)
   沿用 style.css 的毛玻璃底色 / 变量,只补地图页自己的排版
   ========================================================================== */

.map-body .page{ padding-top:22px; }

/* 顶部条上的全国计数 */
.map-total{
  font-size:13px; color:var(--ink-soft);
  background:rgba(255,255,255,.4);
  border:1px solid var(--glass-line);
  border-radius:999px; padding:7px 14px; margin-right:8px;
  white-space:nowrap;
}
.map-total b{ color:#e0559b; font-size:15px; }

/* ---------------- 地图卡 ---------------- */
.map-wrap{
  border-radius:var(--radius);
  padding:20px 22px 10px;
  margin-bottom:22px;
  overflow:hidden;
}
.map-head{ position:relative; z-index:1; }
.map-head h1{
  margin:0; font-size:22px; letter-spacing:.5px;
}
.mh-sub{ font-size:13px; font-weight:400; color:var(--ink-faint); margin-left:6px; }
.map-tip{
  margin:6px 0 4px; font-size:13px; color:var(--ink-soft);
  display:flex; align-items:center; gap:8px; min-height:20px;
}
.map-tip::before{ content:"💡"; }

.china-map{
  width:100%;
  height:min(62vh, 560px);
  min-height:340px;
  position:relative; z-index:1;
}
.map-loading{
  text-align:center; color:var(--ink-faint); font-size:13px;
  margin:0 0 10px;
}

/* ---------------- 留言区 ---------------- */
.msg-wrap{
  display:grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap:20px;
  align-items:start;
}
@media (max-width:900px){
  .msg-wrap{ grid-template-columns:1fr; }
}

.msg-form-card,.msg-list-card{
  border-radius:var(--radius);
  padding:20px 22px 22px;
}
.msg-form-card h2,.msg-list-card h2{
  margin:0 0 4px; font-size:17px;
}
.mf-sub{ margin:0 0 14px; font-size:12.5px; color:var(--ink-faint); }

.region-grid{
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px;
}
@media (max-width:520px){ .region-grid{ grid-template-columns:1fr; } }

.field{ display:flex; flex-direction:column; gap:6px; margin-bottom:12px; }
.field>span{ font-size:12.5px; color:var(--ink-soft); display:flex; align-items:center; gap:6px; }
.field input,.field select,.field textarea{
  font-family:inherit; font-size:14px; color:var(--ink);
  padding:10px 12px; border-radius:14px;
  border:1px solid var(--glass-line);
  background:rgba(255,255,255,.55);
  outline:none; transition:border-color .2s, box-shadow .2s, background .2s;
  width:100%;
}
.field textarea{ resize:vertical; min-height:64px; line-height:1.5; }
.field input:focus,.field select:focus,.field textarea:focus{
  border-color:#ff9ecb;
  box-shadow:0 0 0 3px rgba(255,158,203,.25);
  background:rgba(255,255,255,.8);
}
.field select:disabled{ opacity:.55; cursor:not-allowed; }
.mf-count{ font-style:normal; color:var(--ink-faint); font-size:11.5px; }

/* 境外提示(选到「🌏 境外 / 其他地区」时) */
.region-picked.bad{
  color:#c0392b; background:rgba(255,120,120,.16);
  border-color:rgba(255,120,120,.6); font-weight:700;
}

/* 已选地区回显 */
.region-picked{
  margin:2px 0 12px; font-size:13px; color:#b3538c;
  background:rgba(255,158,203,.16);
  border:1px dashed rgba(255,158,203,.55);
  border-radius:14px; padding:9px 12px;
}

.mf-actions{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.mf-hint{ font-size:12px; color:var(--ink-faint); }

/* ---------------- 省份留言列表 ---------------- */
.ml-head{ display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
.ml-count{ font-size:12.5px; color:var(--ink-faint); }
.ml-empty{
  margin:18px 0; text-align:center; color:var(--ink-faint); font-size:13.5px; line-height:1.9;
}
.ml-list{ display:flex; flex-direction:column; gap:10px; max-height:min(58vh,520px); overflow:auto; padding-right:4px; }
.ml-list::-webkit-scrollbar{ width:8px; }
.ml-list::-webkit-scrollbar-thumb{ background:rgba(255,158,203,.4); border-radius:8px; }

.ml-item{
  background:rgba(255,255,255,.5);
  border:1px solid var(--glass-line);
  border-radius:16px; padding:11px 13px;
  animation: mlIn .35s var(--ease-bounce) both;
}
@keyframes mlIn{ from{ opacity:0; transform:translateY(8px) scale(.98); } to{ opacity:1; transform:none; } }
.ml-item-top{ display:flex; align-items:center; gap:8px; margin-bottom:5px; }
.ml-nick{ font-weight:700; font-size:14px; color:#7a4d9a; }
.ml-region{ font-size:11.5px; color:var(--ink-faint); }
.ml-seq{
  margin-left:auto; font-size:11px; color:#b3538c;
  background:rgba(255,158,203,.2); border-radius:999px; padding:2px 9px; white-space:nowrap;
}
.ml-text{ font-size:13.5px; line-height:1.65; color:var(--ink); white-space:pre-wrap; word-break:break-word; }
.ml-time{ font-size:11px; color:var(--ink-faint); margin-top:6px; }

/* ---------------- 撒花卡片 ---------------- */
.fx-card{ max-width:420px; text-align:center; }
.fx-burst{ font-size:44px; animation: burstPop .7s var(--ease-bounce) both; }
@keyframes burstPop{ 0%{ transform:scale(.2) rotate(-18deg); opacity:0; } 60%{ transform:scale(1.18) rotate(6deg); } 100%{ transform:scale(1) rotate(0); opacity:1; } }
.fx-line{ font-size:16px; font-weight:700; margin:10px 0 4px; color:#7a4d9a; line-height:1.7; }
.fx-line b{ color:#e0559b; font-size:19px; }
.fx-line2{ font-size:13.5px; color:var(--ink-soft); margin:0 0 12px; }
.fx-quote{
  font-size:13.5px; line-height:1.7; color:var(--ink);
  background:rgba(255,255,255,.55); border:1px solid var(--glass-line);
  border-radius:14px; padding:10px 13px; margin-bottom:16px; text-align:left;
  white-space:pre-wrap; word-break:break-word;
}

.map-foot{
  margin:26px 0 0; text-align:center; font-size:12.5px; color:var(--ink-faint);
  display:flex; gap:8px; justify-content:center; flex-wrap:wrap;
}
.map-foot a{ color:#b3538c; text-decoration:none; }
.map-foot a:hover{ text-decoration:underline; }

/* 深色预设下微调 */
body.preset-dusk .field input,body.preset-dusk .field select,body.preset-dusk .field textarea,
body.preset-dusk .ml-item,body.preset-dusk .fx-quote{ background:rgba(255,255,255,.16); color:#fff; }
body.preset-dusk .ml-nick,body.preset-dusk .fx-line{ color:#ffd6ec; }
